|
@@ -315,7 +315,8 @@
|
|
a.check_time as checkTime,
|
|
a.check_time as checkTime,
|
|
c.`level` as level,
|
|
c.`level` as level,
|
|
c.score_res as scoreRes,
|
|
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
|
|
from med_check_info a join med_behospital_info b on a.hospital_id=b.hospital_id and
|
|
a.behospital_code=b.behospital_code
|
|
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
|
|
join med_qcresult_info c on b.hospital_id=c.hospital_id and b.behospital_code=c.behospital_code and
|