瀏覽代碼

复诊优化

lihong 1 年之前
父節點
當前提交
533063ed4f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzyReqrecServiceImpl.java

+ 1 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzyReqrecServiceImpl.java

@@ -1103,7 +1103,7 @@ public class MzyReqrecServiceImpl implements MzyReqrecService {
             Date now = new Date();
             Date visitDate = mzyReqrecMapper.selectMaxVisitDateByPatientIdAndVisitDept(reqrec);
             Date disDate = mzyReqrecMapper.selectMaxDisDateByZkWardAndMzNo(reqrec);
-            if ((visitDate != null && cn.hutool.core.date.DateUtil.between(visitDate, now, DateUnit.DAY) <= 3) || (disDate != null && cn.hutool.core.date.DateUtil.between(disDate, now, DateUnit.DAY) <= 15)) {
+            if ((visitDate != null && cn.hutool.core.date.DateUtil.between(visitDate, now, DateUnit.SECOND) <= 60*60*24*3) || (disDate != null && cn.hutool.core.date.DateUtil.between(disDate, now, DateUnit.SECOND) <= 60*60*24*15)) {
                 return R.ok();
             }else {
                 String visitTime = cn.hutool.core.date.DateUtil.formatDateTime(cn.hutool.core.date.DateUtil.offsetDay(now, -3));