tangzy
2021-12-09 486f6cda7ccd893f7ff91c088b2f26b991a08f2b
src/main/java/org/springblade/modules/permit/mapper/PermitMapper.xml
@@ -23,11 +23,27 @@
        <result column="permitime" property="permitime"/>
        <result column="deptid" property="deptid"/>
        <result column="ptype" property="ptype"/>
        <result column="storage" property="storage"/>
        <result column="cardid" property="cardid"/>
        <result column="representativecell" property="representativecell"/>
        <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>