Commit 581a981767dfa5137418ba66357a6848ad27c6d9
1 parent
82024eb284
Exists in
master
and in
6 other branches
诸城产检日期修改
Showing 1 changed file with 13 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/zcfy/ZcPrenatalService.java
View file @
581a981
| ... | ... | @@ -23,11 +23,10 @@ |
| 23 | 23 | import org.springframework.data.mongodb.core.query.Criteria; |
| 24 | 24 | import org.springframework.stereotype.Service; |
| 25 | 25 | |
| 26 | -import java.sql.Connection; | |
| 27 | -import java.sql.PreparedStatement; | |
| 28 | -import java.sql.ResultSet; | |
| 26 | +import java.sql.*; | |
| 29 | 27 | import java.text.SimpleDateFormat; |
| 30 | 28 | import java.util.*; |
| 29 | +import java.util.Date; | |
| 31 | 30 | |
| 32 | 31 | /** |
| 33 | 32 | * 诸城初诊复诊接口(GXK) |
| ... | ... | @@ -577,8 +576,12 @@ |
| 577 | 576 | ps.setString(83,fetalPresentation); |
| 578 | 577 | ps.setString(84,join1); |
| 579 | 578 | if(map.get("checkDate") != null){ |
| 580 | - ps.setString(85,map.get("checkDate").toString()); | |
| 581 | - }else{ | |
| 579 | + String created = DateUtil.getyyyy_MM_dd_hms(antExChuModel.getCreated()); | |
| 580 | + int index = created.indexOf(" "); | |
| 581 | + String sfm = created.substring(index); | |
| 582 | + String date = map.get("checkDate").toString()+sfm; | |
| 583 | + ps.setString(85, date); | |
| 584 | + } else{ | |
| 582 | 585 | ps.setString(85,null); |
| 583 | 586 | } |
| 584 | 587 | if(map.get("cDueWeek") != null){ |
| ... | ... | @@ -833,7 +836,11 @@ |
| 833 | 836 | ps.setString(4,patients.getVcCardNo()); |
| 834 | 837 | ps.setString(5,patients.getPhone()); |
| 835 | 838 | if(map.get("checkDate") != null){ |
| 836 | - ps.setString(6,map.get("checkDate").toString()); | |
| 839 | + String created = DateUtil.getyyyy_MM_dd_hms(antenatalExaminationModel.getCreated()); | |
| 840 | + int index = created.indexOf(" "); | |
| 841 | + String sfm = created.substring(index); | |
| 842 | + String date = map.get("checkDate").toString()+sfm; | |
| 843 | + ps.setString(6,date); | |
| 837 | 844 | }else{ |
| 838 | 845 | ps.setString(6,null); |
| 839 | 846 | } |