| | |
| | | ( SELECT * FROM blade_dict WHERE code = 'notice' ) d |
| | | ON |
| | | n.category = d.dict_key |
| | | <if test="notice.deptId!=null and notice.jurisdiction!=null"> |
| | | left join |
| | | blade_user bu |
| | | on |
| | | bu.dept_id = n.dept_id |
| | | </if> |
| | | WHERE |
| | | n.is_deleted = 0 |
| | | <if test="notice.title!=null"> |
| | |
| | | <if test="notice.type!=null"> |
| | | and n.type = #{notice.type} |
| | | </if> |
| | | <if test="notice.deptId!=null and notice.jurisdiction!=null"> |
| | | and (n.dept_id = #{notice.deptId} or bu.jurisdiction = #{notice.jurisdiction} |
| | | or n.dept_id = 1123598813738675201 |
| | | ) |
| | | </if> |
| | | <if test="notice.deptId!=null and notice.jurisdiction==null"> |
| | | and (n.dept_id = #{notice.deptId} and n.category=2 |
| | | or n.dept_id = 1123598813738675201 |
| | | ) |
| | | <if test="notice.deptId!=null and notice.deptId!=''"> |
| | | and n.dept_id = #{notice.deptId} |
| | | </if> |
| | | <if test="notice.startTime!=null and notice.startTime!=''"> |
| | | and n.release_time >= #{notice.startTime} |