Kaynağa Gözat

优化医生工作台数据加载数量

hurugang 2 yıl önce
ebeveyn
işleme
22bac5f955

+ 6 - 1
src/main/java/cn/hnthyy/thmz/controller/api/MedicalViewApiController.java

@@ -1991,7 +1991,12 @@ public class MedicalViewApiController {
             mzyReqrec.setUnitCode(mzyRequest.getUnitCode());
             mzyReqrec.setChargeType(mzyRequest.getChargeType());
             mzyReqrec.setDoctorCode(mzyRequest.getDoctorCode());
-            mzyReqrec.setRequestDay(mzyRequest.getRequestDay());
+            Date now= new Date();
+            if(DateUtil.fomart(now,"yyyy-MM-dd").equals(DateUtil.fomart(mzyRequest.getRequestDay(),"yyyy-MM-dd"))){
+                mzyReqrec.setRequestDay(now);
+            }else {
+                mzyReqrec.setRequestDay(mzyRequest.getRequestDay());
+            }
             if (WX.equals(mzyReqrec.getPaymode())) {
                 mzyReqrec.setPaymode(Constants.ZZWX);
             } else {

+ 0 - 11
src/main/java/cn/hnthyy/thmz/controller/mz/MzyReqrecController.java

@@ -4,22 +4,17 @@ import cn.hnthyy.thmz.Utils.*;
 import cn.hnthyy.thmz.comment.UserLoginToken;
 import cn.hnthyy.thmz.common.Constants;
 import cn.hnthyy.thmz.entity.MzException;
-import cn.hnthyy.thmz.entity.his.*;
 import cn.hnthyy.thmz.entity.his.mz.*;
-import cn.hnthyy.thmz.entity.his.zd.ZdChequeType;
 import cn.hnthyy.thmz.entity.his.zd.ZdUnitCode;
 import cn.hnthyy.thmz.entity.thmz.User;
 import cn.hnthyy.thmz.enums.PayMarkEnum;
 import cn.hnthyy.thmz.enums.YesNoEnum;
-import cn.hnthyy.thmz.service.his.*;
 import cn.hnthyy.thmz.pageDto.MzyReqrecPageDto;
 import cn.hnthyy.thmz.service.his.mz.*;
-import cn.hnthyy.thmz.service.his.zd.ZdChequeTypeService;
 import cn.hnthyy.thmz.service.his.zd.ZdUnitCodeService;
 import cn.hnthyy.thmz.vo.MzyReqrecVo;
 import cn.hnthyy.thmz.vo.PageViewVo;
 import cn.hnthyy.thmz.vo.ThmzmxsrParamsVo;
-import com.auth0.jwt.interfaces.DecodedJWT;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -41,19 +36,13 @@ public class MzyReqrecController {
     @Autowired
     private MzPatientMiService mzPatientMiService;
     @Autowired
-    private ResponceTypeService responceTypeService;
-    @Autowired
     private ZdUnitCodeService zdUnitCodeService;
     @Autowired
     private EmployeeService employeeService;
     @Autowired
-    private ZdChequeTypeService zdChequeTypeService;
-    @Autowired
     private MzZdWorkTimeService mzZdWorkTimeService;
     @Autowired
     private MzyZdChargeTypeService mzyZdChargeTypeService;
-    @Autowired
-    private RegionService regionService;
 
     /**
      * 保存挂号信息

+ 1 - 1
src/main/resources/static/js/mz/clinic.js

@@ -1661,7 +1661,7 @@ function loadCanClinicTableList(id, queryParams) {
         queryParams: queryParams,           //传递参数(*)
         sidePagination: "server",           //分页方式:client客户端分页,server服务端分页(*)
         pageNumber: 1,                       //初始化加载第一页,默认第一页
-        pageSize: 2,                       //每页的记录行数(*)
+        pageSize: 5,                       //每页的记录行数(*)
         pageList: [2, 5, 10, 25, 50, 100],        //可供选择的每页的行数(*)
         search: false,                       //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
         strictSearch: true,