智慧保安后台管理项目备份
zengh
2022-03-24 2fd22cf41b15eb118e6350bb106162fb1c118404
src/main/java/org/springblade/modules/permit/mapper/PermitMapper.xml
@@ -34,7 +34,16 @@
    <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>