buzhanyi 2 년 전
부모
커밋
5d9e87a670
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      purchase-system/src/main/java/com/ozs/base/mapper/BaseNoticeMapper.java

+ 1 - 1
purchase-system/src/main/java/com/ozs/base/mapper/BaseNoticeMapper.java

@@ -24,7 +24,7 @@ public interface BaseNoticeMapper extends BaseMapper<BaseNotice> {
             " on b.demand_id = r.ref_id  " +
             "  left join pm_demand p on  b.demand_id = p.demand_id " +
             " where b.demand_id != -1 and  ( #{isAdmin} " +
-            " or if(#{roleFlay},(r.dept_id = #{deptId} and  r.ref_type = 1), p.purchase_dept_id = #{deptId}  ) " +
+            " or if(#{roleFlay},(r.dept_id = #{deptId} and  r.ref_type = 2), p.purchase_dept_id = #{deptId}  ) " +
             " )" +
             " and (#{noticeName} is null  or   b.name like concat('%',#{noticeName},'%'))  " +
             " and (#{type} is null  or   b.type = #{type})  " +