| | |
| | | ja_gd_data_objection do |
| | | left join |
| | | ja_gd_data_objection_attachment da |
| | | on do.id = da.objection_id and da.is_deleted = 0 |
| | | on do.id = da.objection_id::VARCHAR and da.is_deleted = 0 |
| | | left join |
| | | blade_dept bd on bd.id = do.create_dept |
| | | blade_dept bd on bd.id = do.create_dept::VARCHAR |
| | | <where> |
| | | do.is_deleted = 0 |
| | | and da.is_deleted = 0 |
| | |
| | | and do.objection_status = #{param2.objectionStatus} |
| | | </if> |
| | | <if test="param2.deptList != null and param2.deptList.size > 0"> |
| | | and do.create_dept in |
| | | and ( |
| | | do.create_dept in |
| | | <foreach collection="param2.deptList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | ) |
| | | or do.apply_target_dept_id in |
| | | <foreach collection="param2.deptList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | |
| | | from |
| | | ja_gd_data_objection do |
| | | left join |
| | | ja_gd_data_objection_attachment da on do.id = da.objection_id |
| | | ja_gd_data_objection_attachment da on do.id = da.objection_id::VARCHAR |
| | | <where> |
| | | and da.is_deleted = 0 |
| | | <if test="id != null "> |