Browse Source

医保出院结算时,治疗方式(是否手术)不能为空

lighter 3 years ago
parent
commit
3bbd0e6987

+ 1 - 1
pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>thyyxxk</groupId>
     <artifactId>web-server</artifactId>
-    <version>10.0.9</version>
+    <version>10.1.0</version>
     <name>web-server</name>
     <description>server for yibao-web</description>
     <properties>

+ 3 - 0
src/main/java/thyyxxk/webserver/dao/his/yibao/DismissDao.java

@@ -392,4 +392,7 @@ public interface DismissDao {
 
     @Select("select count(1) from zy_dis_diag_yb where inpatient_no=#{inpatientNo} and admiss_times=#{admissTimes}")
     int selectYbDisDiagCount(@Param("inpatientNo") String inpatientNo, @Param("admissTimes") Integer admissTimes);
+
+    @Select("select operation from zy_actpatient where inpatient_no=#{zyh}")
+    String selectOperation(@Param("zyh") String zyh);
 }

+ 6 - 0
src/main/java/thyyxxk/webserver/service/yibao/DismissService.java

@@ -201,6 +201,12 @@ public class DismissService {
                 exception.setMessage("医保出院诊断不能为空,请联系医生在病案首页填写。");
                 throw new BizException(exception);
             }
+            String operation = dao.selectOperation(inpatientNo);
+            if (StringUtil.isBlank(operation)) {
+                ExceptionEnum exception = ExceptionEnum.LOGICAL_ERROR;
+                exception.setMessage("治疗方式(是否手术)不能为空,请联系医生在病案首页填写。");
+                throw new BizException(exception);
+            }
             String hisTotalCharge;
             if (param.getDismissFlag() == 2) {
                 lastZjdzDatetime = ledgerSn == 1 ? param.getAdmissDate() :