瀏覽代碼

优化门特费用获取。

lighter 4 年之前
父節點
當前提交
fcf7a28775

+ 1 - 1
pom.xml

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

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/markmtfees/MarkMtFeesDao.java

@@ -13,7 +13,7 @@ public interface MarkMtFeesDao {
     @Select("select rtrim(social_no) from mz_patient_mi where patient_id=#{patientId}")
     String selectSocialNoByPatientId(@Param("patientId") String patientId);
 
-    @Select("select max(times) from mz_charge_detail where patient_id=#{patientId} and pay_mark='5' ")
+    @Select("select times from mz_patient_mi where patient_id=#{patientId} ")
     Integer selectMaxTimes(@Param("patientId") String patientId);
 
     @Select("select phone_no from mz_patient_mi where patient_id=#{patientId}")

+ 3 - 0
src/main/java/thyyxxk/webserver/service/markmtfees/MarkMtFeesService.java

@@ -165,6 +165,9 @@ public class MarkMtFeesService {
         mzChargeDetailList.removeIf(item -> "TC".equals(item.get("billItemCode")) ||
                 !"5".equals(item.get("payMark")) || "BILL99".equals(item.get("chargeItemCode")) ||
                 "四舍五入".equals(item.get("tcName")));
+        if (mzChargeDetailList.isEmpty()) {
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "未查询到此患者的待缴费处方。");
+        }
         Map<Integer, List<MzReceipt>> orderReceiptsMap = new HashMap<>(Capacity.DEFAULT);
         String doctorName = dao.selectDoctorName(mzChargeDetailList.get(0).get("doctorCode").toString());
         mzChargeDetailList.forEach(item -> {

+ 3 - 0
src/main/resources/application-prod.yml

@@ -42,6 +42,9 @@ spring:
 mybatis:
   configuration:
     map-underscore-to-camel-case: true
+logging:
+  level:
+    thyyxxk.webserver.dao: info
 
 UPLOAD_BASE:
   http://172.16.32.163