智慧保安后台管理项目备份
zhongrj
2024-05-24 b5960d1968e007b91d4d33dd7cbb74f1b566f2c1
src/main/java/org/springblade/modules/record/mapper/RecordMapper.xml
@@ -24,17 +24,33 @@
        <result column="offices" property="offices"/>
        <result column="officetime" property="officetime"/>
        <result column="deptid" property="deptid"/>
        <result column="examinetime" property="examinetime"/>
        <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"/>
        <result column="cardid" property="cardid"/>
        <result column="ptype" property="ptype"/>
        <result column="papprove" property="papprove"/>
        <result column="xapprove" property="xapprove"/>
        <result column="sapprove" property="sapprove"/>
        <result column="popinion" property="popinion"/>
        <result column="xopinion" property="xopinion"/>
        <result column="sopinion" property="sopinion"/>
    </resultMap>
    <select id="selectRecordPage" resultMap="recordResultMap">
        select * from sys_record
        select * from sys_record where 1=1
        <if test="record.ptype!=null and record.ptype!=''">
            and  ptype=#{permit.ptype}
        </if>
        <if test="record.usetype=='1'.toString()">
            and jurisdiction in(${jurisdiction})
        </if>
        <if test="record.usetype=='2'.toString()">
            and  jurisdiction=#{permit.jurisdiction}
        </if>
    </select>
</mapper>