南昌市物联网技防平台-后台
zengh
2021-01-28 46df2e1e645e8f2025c1c7d7ae124e61f2d23c96
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/jingdan/mapper/JingdanMapper.xml
@@ -27,7 +27,24 @@
    <select id="selectJingdanPage" resultMap="jingdanResultMap">
        select * from sys_jingdan where is_deleted = 0
        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,
        d.addvnm FROM sys_jingdan j LEFT JOIN sys_district d on d.addvcds=j.addvcd where 1=1
        <if test="jingdan.waringType!=null and jingdan.waringType!=''">
            and j.waringType=#{jingdan.waringType}
        </if>
        <if test="jingdan.beginTime!=null and jingdan.beginTime!=''">
            and j.galarmTime &gt;=#{jingdan.beginTime}
        </if>
        <if test="jingdan.endTime!=null and jingdan.endTime!=''">
            and j.galarmTime &lt;=#{jingdan.endTime}
        </if>
        <if test="jingdan.addvcd!=null and jingdan.addvcd!=''">
            and j.addvcd=#{jingdan.addvcd}
        </if>
        <if test="jingdan.type!=null and jingdan.type!=''">
            and j.type=#{jingdan.type}
        </if>
    </select>
    <select id="selectList" resultMap="jingdanResultMap">