| | |
| | | ( SELECT * FROM blade_dict WHERE code = 'notice' ) d |
| | | ON |
| | | n.category = d.dict_key |
| | | left join sys_information si on si.departmentid = bd.id |
| | | left join sys_jurisdiction sj on sj.id = si.jurisdiction |
| | | WHERE |
| | | n.is_deleted = 0 |
| | | <if test="notice.title!=null"> |
| | |
| | | <if test="notice.deptId!=null and notice.deptId!=''"> |
| | | and n.dept_id = #{notice.deptId} |
| | | </if> |
| | | <if test="notice.jurisdiction!=null and notice.jurisdiction!='' and notice.jurisdiction!='1372091709474910209'"> |
| | | and (sj.id=#{notice.jurisdiction} or sj.parent_id = #{notice.jurisdiction}) |
| | | </if> |
| | | <if test="notice.startTime!=null and notice.startTime!=''"> |
| | | and n.release_time >= #{notice.startTime} |
| | | </if> |