Commit 409463de39e4eb1b52195fd75099dc6bee603231
1 parent
81c09f8695
Exists in
luanping
滦平 月龄逻辑更改
Showing 1 changed file with 12 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/GuideLineController.java
View file @
409463d
1 | 1 | package com.lyms.platform.operate.web.controller; |
2 | 2 | |
3 | 3 | import com.lyms.platform.biz.service.GuidelinesService; |
4 | -import com.lyms.platform.common.annotation.TokenRequired; | |
5 | 4 | import com.lyms.platform.common.base.BaseController; |
6 | -import com.lyms.platform.common.base.LoginContext; | |
7 | -import com.lyms.platform.operate.web.facade.AutoMatchFacade; | |
8 | 5 | import com.lyms.platform.operate.web.request.GuideQuery; |
9 | 6 | import com.lyms.platform.pojo.Guidelines; |
10 | 7 | import com.lyms.platform.query.GuidelinesQuery; |
... | ... | @@ -65,8 +62,18 @@ |
65 | 62 | public String lpGuide(GuideQuery guideQuery) { |
66 | 63 | GuidelinesQuery guidelinesQuery=new GuidelinesQuery(); |
67 | 64 | guidelinesQuery.setType(guideQuery.getType()); |
68 | - guidelinesQuery.setMaxStart(guideQuery.getNum()); | |
69 | - guidelinesQuery.setMinEnd(guideQuery.getNum()); | |
65 | + //2月龄(页面内容与3月龄一致)、4月龄(页面内容与3月龄一致)、5月龄(页面内容与6月龄一致)、 | |
66 | + //9月龄(页面内容与8月龄一致)、10月龄(页面内容与8月龄一致)。 | |
67 | + Integer num = guideQuery.getNum(); | |
68 | + if(num == 2 || num == 4){ | |
69 | + num=3; | |
70 | + }else if(num == 5){ | |
71 | + num=6; | |
72 | + }else if(num == 9 || num == 10){ | |
73 | + num=8; | |
74 | + } | |
75 | + guidelinesQuery.setMaxStart(num); | |
76 | + guidelinesQuery.setMinEnd(num); | |
70 | 77 | List<Guidelines> list = guidelinesService.queryGuidelines(guidelinesQuery); |
71 | 78 | StringBuilder stringBuilder=new StringBuilder(128); |
72 | 79 | if(CollectionUtils.isNotEmpty(list)){ |