| | |
| | | <result column="handletype" property="handletype"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectJingdanPage" resultMap="jingdanResultMap"> |
| | | SELECT j.id,j.galarmPeople,j.phoneNumber,j.place,j.content,j.galarmTime,j.waringType,j.deviceNumber,j.type, |
| | | j.handleP,j.handleTime,j.handName,j.level,ST_ASTEXT(j.coordinate) as coordinate,j.jd,j.wd,j.addvcd,j.rName, |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <!-- <insert id="insert"> |
| | | insert into sys_jingdan(galarmPeople,phoneNumber,place,content,galarmTime,waringType,deviceNumber,type, |
| | | handleP,handleTime,handName,level,coordinate,jd,wd,addvcd) |
| | | values (#{galarmPeople},#{phoneNumber},#{place},#{content},#{galarmTime} |
| | | ,#{waringType},#{deviceNumber},#{type},#{handleP},#{handleTime}, |
| | | #{handName},#{level},POINT(#{jd},#{wd}),#{jd},#{wd},#{addvcd}) |
| | | </insert>--> |
| | | <!-- <insert id="insert">--> |
| | | <!-- insert into sys_jingdan(galarmPeople,phoneNumber,place,content,galarmTime,waringType,deviceNumber,type,--> |
| | | <!-- handleP,handleTime,handName,level,coordinate,jd,wd,addvcd)--> |
| | | <!-- values (#{galarmPeople},#{phoneNumber},#{place},#{content},#{galarmTime}--> |
| | | <!-- ,#{waringType},#{deviceNumber},#{type},#{handleP},#{handleTime},--> |
| | | <!-- #{handName},#{level},POINT(#{jd},#{wd}),#{jd},#{wd},#{addvcd})--> |
| | | <!-- </insert>--> |
| | | |
| | | |
| | | <sql id="key"> |
| | |
| | | <if test="level!=null and level!=''"> |
| | | #{level}, |
| | | </if> |
| | | <if test="coordinate=null and coordinate=''"> |
| | | coordinate, |
| | | </if> |
| | | <if test="jd!=null and wd!=null"> |
| | | POINT(#{jd},#{wd}), |
| | | </if> |