Forráskód Böngészése

获取患者任务类型接口患者所属医院为当前操作用户医院

songxinlu 4 éve
szülő
commit
81c4d9669a

+ 1 - 1
src/main/java/com/diagbot/facade/MedCheckWorkFacade.java

@@ -154,7 +154,7 @@ public class MedCheckWorkFacade {
      */
     public void execute(String param) {
         JSONObject paramJson = JSONObject.parseObject(param);
-        Long hospiatlId = paramJson.getLong("hospital");
+        Long hospiatlId = Long.parseLong(SysUserUtils.getCurrentHospitalID());
         JSONObject typeValue = paramJson.getJSONObject("typeVal");
         JSONObject typeName = paramJson.getJSONObject("typeName");
         int searchSize = paramJson.getInteger("searchSize");

+ 1 - 1
src/main/resources/mapper/MedicalRecordMapper.xml

@@ -81,7 +81,7 @@
         on a.behospital_code = b.behospital_code and a.hospital_id = b.hospital_id and a.is_deleted = 'N' and b.is_deleted = 'N'
         LEFT JOIN med_medical_record c
         on a.behospital_code = c.behospital_code and a.hospital_id = c.hospital_id and a.is_deleted = 'N' and c.is_deleted = 'N'
-        where  b.`value` is null
+        where  b.`value` is null and a.hospital_id = #{hospitalId}
         <if test="modeList != null and modeList.size() > 0">
             and c.mode_id in
             <foreach collection="modeList" open="(" separator="," close=")" item="item">