Commit f794aaa194f11eb0d2fbc85de765fdbce7e6ef4d
1 parent
2b4e41f588
Exists in
master
and in
6 other branches
产筛
Showing 1 changed file with 15 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/zcfy/ZcPrenatalService.java
View file @
f794aaa
... | ... | @@ -9,6 +9,7 @@ |
9 | 9 | import com.lyms.platform.common.dao.operator.MongoQuery; |
10 | 10 | import com.lyms.platform.common.result.BaseObjectResponse; |
11 | 11 | import com.lyms.platform.common.utils.DateUtil; |
12 | +import com.lyms.platform.common.utils.ExceptionUtils; | |
12 | 13 | import com.lyms.platform.operate.web.facade.ViewFacade; |
13 | 14 | import com.lyms.platform.pojo.AntExChuModel; |
14 | 15 | import com.lyms.platform.pojo.AntenatalExaminationModel; |
... | ... | @@ -25,6 +26,8 @@ |
25 | 26 | import java.sql.Connection; |
26 | 27 | import java.sql.PreparedStatement; |
27 | 28 | import java.sql.ResultSet; |
29 | +import java.text.SimpleDateFormat; | |
30 | +import java.util.Date; | |
28 | 31 | import java.util.List; |
29 | 32 | import java.util.Map; |
30 | 33 | |
... | ... | @@ -651,7 +654,7 @@ |
651 | 654 | |
652 | 655 | return null; |
653 | 656 | } catch (Exception e) { |
654 | - e.printStackTrace(); | |
657 | + ExceptionUtils.catchException(e, "saveAntexChu"); | |
655 | 658 | }finally { |
656 | 659 | try{ |
657 | 660 | ps.close(); |
... | ... | @@ -936,7 +939,7 @@ |
936 | 939 | |
937 | 940 | }catch (Exception e){ |
938 | 941 | |
939 | - e.printStackTrace(); | |
942 | + ExceptionUtils.catchException(e,"saveAntexFu"); | |
940 | 943 | |
941 | 944 | }finally { |
942 | 945 | try{ |
... | ... | @@ -996,6 +999,16 @@ |
996 | 999 | return br; |
997 | 1000 | } |
998 | 1001 | |
1002 | + | |
1003 | + public void handleWork() { | |
1004 | + Date end = new Date(); | |
1005 | + Date start = new Date(end.getTime()-1000*60*500); | |
1006 | + String startDate = DateUtil.getyyyy_MM_dd_hms(start); | |
1007 | + String endDate = DateUtil.getyyyy_MM_dd_hms(end); | |
1008 | + System.out.println("start=" + startDate + "end=" + endDate); | |
1009 | + saveChuZhen(startDate, endDate); | |
1010 | + saveFuZhen(startDate,endDate); | |
1011 | + } | |
999 | 1012 | |
1000 | 1013 | } |