|
@@ -15,8 +15,8 @@ public interface MonthlyReconciliationMapper extends BaseMapper<MonthlyReconcili
|
|
|
|
|
|
@Select("select p.* from " +
|
|
|
" pm_demand p left join pm_audit_dept_ref r " +
|
|
|
- " on p.demand_id = r.ref_id and r.ref_type = 2 " +
|
|
|
- " where r.dept_id = #{deptId} " +
|
|
|
+ " on p.demand_id = r.ref_id " +
|
|
|
+ " where (#{userId} = 1 or (r.dept_id = #{deptId} and r.ref_type = 2) ) " +
|
|
|
" and (#{projectName} is null or p.project_name like concat('%',#{projectName},'%')) " +
|
|
|
" and (#{purchaseServices} is null or p.purchase_services = #{purchaseServices}) " +
|
|
|
" and (#{projectStatus} is null or p.project_status = #{projectStatus}) " +
|