智慧保安后台管理-外网-验收版本
tangzy
2021-12-06 cc057177b2fb17aee9a173a6adbabdc578fd74c7
src/main/java/org/springblade/modules/recordk/mapper/RecordkMapper.xml
@@ -32,11 +32,36 @@
        <result column="contactscell" property="contactscell"/>
        <result column="storage" property="storage"/>
        <result column="approve" property="approve"/>
        <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"/>
        <result column="overtime" property="overtime"/>
    </resultMap>
    <select id="selectRecordkPage" resultMap="recordkResultMap">
        select * from sys_recordk
        select * from sys_recordk si left join
        sys_jurisdiction sj
        on
        sj.id = si.jurisdiction where 1=1
        <if test="recordk.ptype!=null and recordk.ptype!=''">
            and ptype=#{record.ptype}
        </if>
        <if test="recordk.jurisdiction!=null and recordk.jurisdiction != '' and recordk.jurisdiction!='1372091709474910209'">
            and (sj.id = #{record.jurisdiction} or sj.parent_id = #{record.jurisdiction})
        </if>
        <if test="recordk.papprove!=null and recordk.papprove!=''">
            and papprove=#{record.papprove}
        </if>
        <if test="recordk.xapprove!=null and recordk.xapprove!=''">
            and xapprove=#{record.xapprove}
        </if>
        <if test="recordk.sapprove!=null and recordk.sapprove!=''">
            and sapprove=#{record.sapprove}
        </if>
    </select>
    <select id="selectIn" resultType="java.util.HashMap">