Ver código fonte

核查任务列表修改

rengb 4 anos atrás
pai
commit
0f1680fe32
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/main/resources/mapper/MedCheckInfoMapper.xml

+ 2 - 1
src/main/resources/mapper/MedCheckInfoMapper.xml

@@ -315,7 +315,8 @@
         a.check_time as checkTime,
         c.`level` as level,
         c.score_res as scoreRes,
-        case when a.check_type='2' and FIND_IN_SET(b.beh_dept_id,#{currentDeptIds}) then 0 else 1 end as isDel
+        <!-- 张三是A科室的监管员,李四是A科室和B科室的普通质控员,那么张三在核查任务列表中不能看到李四B科室的数据  -->
+        case when a.check_type='0' and FIND_IN_SET(b.beh_dept_id,#{currentDeptIds})=0 then 0 else 1 end as isDel
         from med_check_info a join med_behospital_info b on a.hospital_id=b.hospital_id and
         a.behospital_code=b.behospital_code
         join med_qcresult_info c on b.hospital_id=c.hospital_id and b.behospital_code=c.behospital_code and