فهرست منبع

优化病人费用清单查询

hurugang 3 سال پیش
والد
کامیت
148089179d

+ 3 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -899,6 +899,9 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
 
     @Override
     public List<Map<String, Object>> queryChargeListByPatient(String patientId, String name, String serialNo, Date beginDate, Date endDate, String warnDept) {
+        if(StringUtils.isBlank(warnDept)){
+            warnDept=null;
+        }
         List<Map<String, Object>> chargeListByPatient = mzChargeDetailMapper.selectChargeListByPatient(patientId, name, serialNo, beginDate, endDate, warnDept);
 //        if (YesNoEnum.YES.equals(hisDate)) {
 //            chargeListByPatient = mzChargeDetailMapper.selectHisChargeListByPatient(patientId, name, serialNo, beginDate, endDate);

+ 2 - 1
src/main/resources/static/js/mz/charge_list.js

@@ -232,6 +232,7 @@ function setPatientId() {
         contentType: "application/json;charset=UTF-8",
         dataType: "json",
         headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
+        async:false,
         success: function (res) {
             if (res == '401' || res == 401) {
                 window.location.href = '/thmz/login/view'
@@ -342,7 +343,7 @@ function print() {
  * 查询同一病人所有收费明细
  */
 function fitAllfymx() {
-    var patientId = $("#patientId").val();
+    var patientId = $("#patientId").val();btn_query
     if (patientId == undefined || patientId == null || patientId == "") {
         return;
     }