智慧保安后台管理-外网
Administrator
2022-06-16 8b375fe00a241b3a769b82fe3dac8d1c9dce8a02
src/main/java/org/springblade/modules/talk/mapper/TalkMapper.xml
@@ -15,11 +15,17 @@
        <result column="imgurl" property="imgurl"/>
    </resultMap>
    <!--自定义心理咨询分页查询-->
    <select id="selectTalkPage" resultMap="talkResultMap">
        select * from sys_talk where 1=1
        <if test="talk.deptid!=null and alk.deptid!='' and alk.deptid!='1123598813738675201'">
            deptid=#{talk.deptid}
        select st.* from sys_talk st
        left join sys_information si on si.departmentid = st.deptid
        left join sys_jurisdiction sj on si.jurisdiction = sj.id
        where 1=1
        <if test="talk.deptid!=null and talk.deptid!='' and talk.deptid!='1123598813738675201'">
            and st.deptid=#{talk.deptid}
        </if>
        <if test="talk.jurisdiction!=null and talk.jurisdiction!='' and talk.jurisdiction!='1372091709474910209'">
            and (sj.id=#{talk.jurisdiction} or sj.parent_id = #{talk.jurisdiction})
        </if>
    </select>