| | |
| | | <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> |
| | | |