浏览代码

'接诊开处方搜药修复'

yaodeguang 3 周之前
父节点
当前提交
1e36b061fb
共有 1 个文件被更改,包括 14 次插入14 次删除
  1. 14 14
      src/main/java/cn/hnthyy/thmz/service/impl/his/yp/YpZdGroupNameServiceImpl.java

+ 14 - 14
src/main/java/cn/hnthyy/thmz/service/impl/his/yp/YpZdGroupNameServiceImpl.java

@@ -66,21 +66,21 @@ public class YpZdGroupNameServiceImpl implements YpZdGroupNameService {
 
     @Override
     public List<YpZdGroupNameVo> selectYfAllByTime() {
-//        List<YpZdGroupNameVo> resultList = new ArrayList<>();
+        List<YpZdGroupNameVo> resultList = new ArrayList<>();
         List<YpZdGroupNameVo> list = ypZdGroupNameMapper.selectYfAllByTime();
-//        for (YpZdGroupNameVo vo : list) {
-//            String startTime = vo.getStartTime();
-//            String endTime = vo.getEndTime();
-//            if (StrUtil.isBlank(startTime)) {
-//                resultList.add(vo);
-//                continue;
-//            }
-//            if (DateUtil.isTimeInRange(
-//                    LocalTime.now(), LocalTime.parse(startTime), LocalTime.parse(endTime))) {
-//                resultList.add(vo);
-//            }
-//        }
-        return list;
+        for (YpZdGroupNameVo vo : list) {
+            String startTime = vo.getStartTime();
+            String endTime = vo.getEndTime();
+            if (StrUtil.isBlank(startTime)) {
+                resultList.add(vo);
+                continue;
+            }
+            if (DateUtil.isTimeInRange(
+                    LocalTime.now(), LocalTime.parse(startTime), LocalTime.parse(endTime))) {
+                resultList.add(vo);
+            }
+        }
+        return resultList;
     }
 
     /**