Commit d85307b14d96ba21f6694c00eb49dd95c5943df6

Authored by Administrator
1 parent aedc4e3c0e

update

Showing 2 changed files with 4 additions and 3 deletions

platform-biz-service/src/main/resources/mainOrm/master/BabyDiagnoseMapper.xml View file @ d85307b
... ... @@ -106,7 +106,7 @@
106 106 <if test="startBirthDate != null and startBirthDate!=''">
107 107 AND
108 108 <![CDATA[
109   - DATEDIFF(#{startBirthDate},birth)>=0
  109 + DATEDIFF(#{startBirthDate},birth)<=0
110 110 ]]>
111 111 </if>
112 112 <if test="endBirthDate != null and endBirthDate!=''">
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java View file @ d85307b
... ... @@ -829,12 +829,13 @@
829 829 list.add(map);
830 830 }
831 831 if (null != checkMonthAge && null != endCheckMonthAge) {
  832 + List<Map<String, Object>> list1 = new ArrayList<>();
832 833 for (Map<String, Object> mapList : list) {
833 834 if ((int) mapList.get("monthAge") >= checkMonthAge && (int) mapList.get("monthAge") <= endCheckMonthAge) {
834   - list.add(mapList);
  835 + list1.add(mapList);
835 836 }
836 837 }
837   - pageResult.setGrid(list);
  838 + pageResult.setGrid(list1);
838 839 return RespBuilder.buildSuccess(pageResult);
839 840 } else {
840 841 pageResult.setGrid(list);