Переглянути джерело

病案室可以打印签收状态的病案

lighter 2 роки тому
батько
коміт
19f0e6a3b8

+ 3 - 0
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/CaseFrontSheetDao.java

@@ -628,6 +628,9 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
     Integer selectFileStatus(@Param("bah") String bah,
                              @Param("admissTimes") Integer admissTimes);
 
+    @Select("select rtrim(dept_code) from a_employee_mi where code=#{code}")
+    String selectUserDept(@Param("code") String code);
+
     @Select("select count(1) from t_yb_setl_modify_req where pat_no=#{bah} and times=#{times}")
     Integer selectModified(@Param("bah") String bah, @Param("times") Integer times);
 

+ 4 - 1
src/main/java/thyyxxk/webserver/service/casefrontsheet/CaseFrontSheetMainService.java

@@ -614,7 +614,10 @@ public class CaseFrontSheetMainService {
         CaseFrontsheetMain sheet = param.getSheet();
         Integer status = dao.selectFileStatus(sheet.getBah(), sheet.getAdmissTimes());
         if (null != status && status == 1) {
-            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "已最终归档病案首页无法打印!");
+            String userDept = dao.selectUserDept(TokenUtil.getTokenUserId());
+            if (!userDept.equals("2100000")) {
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "已最终归档病案首页无法打印!");
+            }
         }
         dao.deleteSheetInfo(sheet.getBah(), sheet.getAdmissTimes());
         ResultVo<List<CodeName>> save = saveSheet(param.getSheet());