智慧保安后台管理项目备份
zhongrj
2024-05-24 b5960d1968e007b91d4d33dd7cbb74f1b566f2c1
src/main/java/org/springblade/modules/permit/mapper/PermitMapper.xml
@@ -29,11 +29,21 @@
        <result column="contacts" property="contacts"/>
        <result column="contactscell" property="contactscell"/>
        <result column="approve" property="approve"/>
        <result column="jurisdiction" property="jurisdiction"/>
    </resultMap>
    <select id="selectPermitPage" resultMap="permitResultMap">
        select * from sys_permit
        select * from sys_permit where 1=1
        <if test="permit.ptype!=null and permit.ptype!=''">
            and  ptype=#{permit.ptype}
        </if>
        <if test="permit.usetype=='1'.toString()">
            and jurisdiction in(${jurisdiction})
        </if>
        <if test="permit.usetype=='2'.toString()">
            and  jurisdiction=#{permit.jurisdiction}
        </if>
    </select>
</mapper>