Commit 1c8955902ae24f961db1a0ea954be18f912bf1c4
1 parent
fcad143175
Exists in
master
and in
1 other branch
短信修改
Showing 2 changed files with 35 additions and 20 deletions
platform-data-api/src/main/java/com/lyms/platform/data/service/impl/SmsServiceImpl.java
View file @
1c89559
... | ... | @@ -2240,14 +2240,16 @@ |
2240 | 2240 | { |
2241 | 2241 | Set<String> idset = new HashSet<>(); |
2242 | 2242 | Date yuYueDate = DateUtil.addDay(new Date(), sendTimeType); |
2243 | + Date startDeate = DateUtil.addDay(new Date(), sendTimeType-1); | |
2243 | 2244 | if (yuYueDate != null) |
2244 | 2245 | { |
2245 | 2246 | //把时间格式化成 yyyy_MM_dd 的日期 |
2246 | 2247 | yuYueDate = DateUtil.formatDate(yuYueDate); |
2248 | + startDeate = DateUtil.formatDate(startDeate); | |
2247 | 2249 | } |
2248 | 2250 | AntExChuQuery antExChuQuery = new AntExChuQuery(); |
2249 | 2251 | antExChuQuery.setYn(YnEnums.YES.getId()); |
2250 | - antExChuQuery.setNextCheckTimeStart(yuYueDate); | |
2252 | + antExChuQuery.setNextCheckTimeStart(startDeate); | |
2251 | 2253 | antExChuQuery.setNextCheckTimeEnd(yuYueDate); |
2252 | 2254 | antExChuQuery.setHospitalId(tempHid); |
2253 | 2255 | List<AntExChuModel> chus = antenatalExaminationService.queryAntExChu(antExChuQuery); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/Test.java
View file @
1c89559
... | ... | @@ -9,6 +9,7 @@ |
9 | 9 | import com.lyms.platform.permission.model.Users; |
10 | 10 | import com.lyms.platform.permission.service.UsersService; |
11 | 11 | import com.lyms.platform.pojo.Patients; |
12 | +import com.lyms.platform.query.AntExChuQuery; | |
12 | 13 | import com.lyms.platform.query.PatientsQuery; |
13 | 14 | import org.springframework.context.ApplicationContext; |
14 | 15 | import org.springframework.context.support.ClassPathXmlApplicationContext; |
15 | 16 | |
16 | 17 | |
17 | 18 | |
... | ... | @@ -25,25 +26,37 @@ |
25 | 26 | public class Test{ |
26 | 27 | |
27 | 28 | public static void main(String[] args){ |
28 | - PatientsQuery patientsQuery1 = new PatientsQuery(); | |
29 | - patientsQuery1.setHospitalId("221"); | |
30 | - patientsQuery1.setYn(YnEnums.YES.getId()); | |
31 | - patientsQuery1.setType(1); | |
29 | +// PatientsQuery patientsQuery1 = new PatientsQuery(); | |
30 | +// patientsQuery1.setHospitalId("221"); | |
31 | +// patientsQuery1.setYn(YnEnums.YES.getId()); | |
32 | +// patientsQuery1.setType(1); | |
33 | +// | |
34 | +// List buildType = new ArrayList(); | |
35 | +// buildType.add(0); | |
36 | +// buildType.add(2); | |
37 | +// patientsQuery1.setBuildTypeList(buildType); | |
38 | +// | |
39 | +// patientsQuery1.setQueryNo("q"); | |
40 | +// | |
41 | +// | |
42 | +// | |
43 | +// patientsQuery1.setBookbuildingDateStart(DateUtil.parseYMD("1999-11-11")); | |
44 | +// patientsQuery1.setBookbuildingDateEnd(DateUtil.parseYMD("2016-12-08")); | |
32 | 45 | |
33 | - List buildType = new ArrayList(); | |
34 | - buildType.add(0); | |
35 | - buildType.add(2); | |
36 | - patientsQuery1.setBuildTypeList(buildType); | |
37 | 46 | |
38 | - patientsQuery1.setQueryNo("q"); | |
47 | + Date yuYueDate = DateUtil.addDay(new Date(), 2); | |
48 | + if (yuYueDate != null) | |
49 | + { | |
50 | + //把时间格式化成 yyyy_MM_dd 的日期 | |
51 | + yuYueDate = DateUtil.formatDate(yuYueDate); | |
52 | + } | |
53 | + AntExChuQuery antExChuQuery = new AntExChuQuery(); | |
54 | + antExChuQuery.setYn(YnEnums.YES.getId()); | |
55 | + antExChuQuery.setNextCheckTimeStart(yuYueDate); | |
56 | + antExChuQuery.setNextCheckTimeEnd(yuYueDate); | |
57 | + antExChuQuery.setHospitalId("242"); | |
39 | 58 | |
40 | - | |
41 | - | |
42 | - patientsQuery1.setBookbuildingDateStart(DateUtil.parseYMD("1999-11-11")); | |
43 | - patientsQuery1.setBookbuildingDateEnd(DateUtil.parseYMD("2016-12-08")); | |
44 | - | |
45 | - | |
46 | - System.out.println(patientsQuery1.convertToQuery().convertToMongoQuery()); | |
59 | + System.out.println(antExChuQuery.convertToQuery().convertToMongoQuery()); | |
47 | 60 | |
48 | 61 | } |
49 | 62 | } |