Commit 9cd9c6906c64c001a890d17c1c0d251f89825679
1 parent
ac459f5615
Exists in
master
and in
6 other branches
诸城初诊,复诊接口
Showing 3 changed files with 71 additions and 35 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/zcfy/ConnTools.java
View file @
9cd9c69
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | private static String fmPassword = "lyms123"; |
| 21 | 21 | |
| 22 | 22 | private static String czDirverClassName = "com.mysql.jdbc.Driver"; |
| 23 | - private static String czUrl = "jdbc:mysql://:119.90.57.26:3306/platform"; | |
| 23 | + private static String czUrl = "jdbc:mysql://119.90.57.26:3306/platform?useUnicode=true&characterEncoding=utf8"; | |
| 24 | 24 | private static String czUser = "platform"; |
| 25 | 25 | private static String czPassword = "platform123"; |
| 26 | 26 |
platform-operate-api/src/main/java/com/lyms/hospitalapi/zcfy/ZcPrenatalService.java
View file @
9cd9c69
| ... | ... | @@ -48,7 +48,7 @@ |
| 48 | 48 | |
| 49 | 49 | if (StringUtils.isNotEmpty(antExChuModel.getId())) { |
| 50 | 50 | |
| 51 | - String slSql = "select count(*) from lyms_zccz where id = " + antExChuModel.getId() + ""; | |
| 51 | + String slSql = "select count(*) from lyms_zccscz where id = \"" + antExChuModel.getId() + "\""; | |
| 52 | 52 | ps=conn.prepareStatement(slSql); |
| 53 | 53 | rs=ps.executeQuery(); |
| 54 | 54 | if(rs.next()){ |
| ... | ... | @@ -56,7 +56,7 @@ |
| 56 | 56 | } |
| 57 | 57 | if(count > 0){//更新数据 |
| 58 | 58 | |
| 59 | - String upSql = "delete from lyms_zccz where id ="+antExChuModel.getId()+""; | |
| 59 | + String upSql = "delete from lyms_zccscz where id =\""+antExChuModel.getId()+"\""; | |
| 60 | 60 | ps = conn.prepareStatement(upSql); |
| 61 | 61 | int delCount = ps.executeUpdate(); |
| 62 | 62 | if(delCount == 1){ |
| 63 | 63 | |
| ... | ... | @@ -72,7 +72,10 @@ |
| 72 | 72 | String heartRate = null; |
| 73 | 73 | String fetalPresentation = null; |
| 74 | 74 | String join1 = null; |
| 75 | + /*String dueDate = map.get("dueDate").toString(); | |
| 76 | + String lastMenses = map.get("lastMenses").toString();*/ | |
| 75 | 77 | |
| 78 | + | |
| 76 | 79 | if(list != null && list.size()>0){ |
| 77 | 80 | fetalPosition = list.get(0).get("fetalPosition").toString();//胎方位 |
| 78 | 81 | heartRate = list.get(0).get("heartRate").toString();//心率 |
| ... | ... | @@ -80,7 +83,7 @@ |
| 80 | 83 | join1 = list.get(0).get("join").toString();//衔接 |
| 81 | 84 | |
| 82 | 85 | } |
| 83 | - String inSql = "insert into lyms_zccz(id,name,idcard,vccardno,\n" + | |
| 86 | + String inSql = "insert into lyms_zccscz(id,name,idcard,vccardno,\n" + | |
| 84 | 87 | "phone,genRemark,gynRemark,treatmentOpinion3,\n" + |
| 85 | 88 | "quicken,quickenRemark,resultSupple,syjgSelect,\n" + |
| 86 | 89 | "hivktSelect,neoDeathTodo,birthDefectTodo,neoDeath,\n" + |
| ... | ... | @@ -98,26 +101,26 @@ |
| 98 | 101 | "jhBilirubin,ygbmky,ygbmkt,ygeky,ygekt,\n" + |
| 99 | 102 | "yghxkt,xqjq,xnsd,hivkt,ydfmw,ydqjd,\n" + |
| 100 | 103 | "bChao,heartRate,fetalPosition,fetalPresentation,join1,checkDate,\n" + |
| 101 | - "cDueWeek,checkDoctor,hospital) " + | |
| 102 | - "values("+antExChuModel.getId()+","+patients.getUsername()+","+patients.getCardNo()+","+patients.getVcCardNo()+",\n" + | |
| 103 | - ""+patients.getPhone()+","+map.get("genRemark")+","+map.get("gynRemark")+","+map.get("treatmentOpinion3")+",\n" + | |
| 104 | - ""+map.get("quicken")+","+map.get("quickenRemark")+","+map.get("resultSupple")+","+map.get("syjgSelect")+",\n" + | |
| 105 | - ""+map.get("hivktSelect")+","+map.get("neoDeathTodo")+","+map.get("birthDefectTodo")+","+map.get("neoDeath")+",\n" + | |
| 106 | - ""+map.get("birthDefect")+","+map.get("dueDate")+","+map.get("lastMenses")+","+map.get("bg")+","+map.get("pastHistory")+",\n" + | |
| 107 | - ""+map.get("familyHistory")+","+map.get("personalHistory")+","+map.get("ymjzHistory")+","+map.get("ywgmHistory")+",\n" + | |
| 108 | - ""+map.get("fksxHistory")+","+map.get("ysfyHistory")+","+map.get("cestationInfo")+","+map.get("hHealthInfo")+",\n" + | |
| 109 | - ""+map.get("pregnancyTimes")+","+map.get("prodTime")+","+map.get("delivery")+","+map.get("planedProd")+",\n" + | |
| 110 | - ""+map.get("abortion")+","+map.get("stillbirth")+","+map.get("stillChan")+","+map.get("height")+","+map.get("weight")+",\n" + | |
| 111 | - ""+map.get("yqWeight")+","+map.get("baricIndex")+","+map.get("bp")+","+map.get("heart")+","+map.get("lungs")+",\n" + | |
| 112 | - ""+map.get("vulva")+","+map.get("vagina")+","+map.get("cervical")+","+map.get("uterus")+","+map.get("fujian")+",\n" + | |
| 113 | - ""+map.get("gonggao")+","+map.get("fuwei")+","+map.get("edema")+","+map.get("tireNumber")+","+map.get("xhdb")+",\n" + | |
| 114 | - ""+map.get("bxbjs")+","+map.get("platelet")+","+map.get("chgOther")+","+map.get("ndb")+","+map.get("nt")+",\n" + | |
| 115 | - ""+map.get("urineKetone")+","+map.get("bld")+","+map.get("ncgOther")+","+map.get("abo")+","+map.get("rh")+",\n" + | |
| 116 | - ""+map.get("bloodSugar")+","+map.get("xqgbzam")+","+map.get("xqgczam")+","+map.get("albumin")+","+map.get("totalBilirubin")+",\n" + | |
| 117 | - ""+map.get("jhBilirubin")+","+map.get("ygbmky")+","+map.get("ygbmkt")+","+map.get("ygeky")+","+map.get("ygekt")+",\n" + | |
| 118 | - ""+map.get("yghxkt")+","+map.get("xqjq")+","+map.get("xnsd")+","+map.get("hivkt")+","+map.get("ydfmw")+","+map.get("ydqjd")+",\n" + | |
| 119 | - ""+map.get("bChao")+","+heartRate+","+fetalPosition+","+fetalPresentation+","+join1+","+map.get("checkDate")+",\n" + | |
| 120 | - ""+map.get("cDueWeek")+","+map.get("checkDoctor")+","+map.get("hospital")+")"; | |
| 104 | + "cDueWeek,checkDoctor,hospital,dirOpinion) " + | |
| 105 | + "values(\""+antExChuModel.getId()+"\",\""+patients.getUsername()+"\",\""+patients.getCardNo()+"\",\""+patients.getVcCardNo()+"\",\n" + | |
| 106 | + "\""+patients.getPhone()+"\",\""+map.get("genRemark")+"\",\""+map.get("gynRemark")+"\",\""+map.get("treatmentOpinion3")+"\",\n" + | |
| 107 | + "\""+map.get("quicken")+"\",\""+map.get("quickenRemark")+"\",\""+map.get("resultSupple")+"\",\""+map.get("syjgSelect")+"\",\n" + | |
| 108 | + "\""+map.get("hivktSelect")+"\",\""+map.get("neoDeathTodo")+"\",\""+map.get("birthDefectTodo")+"\",\""+map.get("neoDeath")+"\",\n" + | |
| 109 | + "\""+map.get("birthDefect")+"\",\""+map.get("dueDate")+"\",\""+map.get("lastMenses")+"\",\""+map.get("bg")+"\",\""+map.get("pastHistory")+"\",\n" + | |
| 110 | + "\""+map.get("familyHistory")+"\",\""+map.get("personalHistory")+"\",\""+map.get("ymjzHistory")+"\",\""+map.get("ywgmHistory")+"\",\n" + | |
| 111 | + "\""+map.get("fksxHistory")+"\",\""+map.get("ysfyHistory")+"\",\""+map.get("cestationInfo")+"\",\""+map.get("hHealthInfo")+"\",\n" + | |
| 112 | + "\""+map.get("pregnancyTimes")+"\",\""+map.get("prodTime")+"\",\""+map.get("delivery")+"\",\""+map.get("planedProd")+"\",\n" + | |
| 113 | + "\""+map.get("abortion")+"\",\""+map.get("stillbirth")+"\",\""+map.get("stillChan")+"\",\""+map.get("height")+"\",\""+map.get("weight")+"\",\n" + | |
| 114 | + "\""+map.get("yqWeight")+"\",\""+map.get("baricIndex")+"\",\""+map.get("bp")+"\",\""+map.get("heart")+"\",\""+map.get("lungs")+"\",\n" + | |
| 115 | + "\""+map.get("vulva")+"\",\""+map.get("vagina")+"\",\""+map.get("cervical")+"\",\""+map.get("uterus")+"\",\""+map.get("fujian")+"\",\n" + | |
| 116 | + "\""+map.get("gonggao")+"\",\""+map.get("fuwei")+"\",\""+map.get("edema")+"\",\""+map.get("tireNumber")+"\",\""+map.get("xhdb")+"\",\n" + | |
| 117 | + "\""+map.get("bxbjs")+"\",\""+map.get("platelet")+"\",\""+map.get("chgOther")+"\",\""+map.get("ndb")+"\",\""+map.get("nt")+"\",\n" + | |
| 118 | + "\""+map.get("urineKetone")+"\",\""+map.get("bld")+"\",\""+map.get("ncgOther")+"\",\""+map.get("abo")+"\",\""+map.get("rh")+"\",\n" + | |
| 119 | + "\""+map.get("bloodSugar")+"\",\""+map.get("xqgbzam")+"\",\""+map.get("xqgczam")+"\",\""+map.get("albumin")+"\",\""+map.get("totalBilirubin")+"\",\n" + | |
| 120 | + "\""+map.get("jhBilirubin")+"\",\""+map.get("ygbmky")+"\",\""+map.get("ygbmkt")+"\",\""+map.get("ygeky")+"\",\""+map.get("ygekt")+"\",\n" + | |
| 121 | + "\""+map.get("yghxkt")+"\",\""+map.get("xqjq")+"\",\""+map.get("xnsd")+"\",\""+map.get("hivkt")+"\",\""+map.get("ydfmw")+"\",\""+map.get("ydqjd")+"\",\n" + | |
| 122 | + "\""+map.get("bChao")+"\",\""+heartRate+"\",\""+fetalPosition+"\",\""+fetalPresentation+"\",\""+join1+"\",\""+map.get("checkDate")+"\",\n" + | |
| 123 | + "\""+map.get("cDueWeek")+"\",\""+map.get("checkDoctor")+"\",\""+map.get("hospital")+"\",\""+map.get("dirOpinion")+"\")"; | |
| 121 | 124 | |
| 122 | 125 | ps=conn.prepareStatement(inSql); |
| 123 | 126 | int result = ps.executeUpdate(); |
| ... | ... | @@ -169,7 +172,7 @@ |
| 169 | 172 | |
| 170 | 173 | if(br.getData() != null && patients != null){ |
| 171 | 174 | |
| 172 | - String slSql = "select count(*) from lyms_zcfz where id = " + antenatalExaminationModel.getId() + ""; | |
| 175 | + String slSql = "select count(*) from lyms_zccsfz where id = \"" + antenatalExaminationModel.getId() + "\""; | |
| 173 | 176 | ps = conn.prepareStatement(slSql); |
| 174 | 177 | rs = ps.executeQuery(); |
| 175 | 178 | while(rs.next()){ |
| ... | ... | @@ -177,7 +180,7 @@ |
| 177 | 180 | } |
| 178 | 181 | |
| 179 | 182 | if(count > 0){//更新数据 |
| 180 | - String delSql = "delete from lyms_zcfz where id="+antenatalExaminationModel.getId()+""; | |
| 183 | + String delSql = "delete from lyms_zccsfz where id=\""+antenatalExaminationModel.getId()+"\""; | |
| 181 | 184 | ps = conn.prepareStatement(delSql); |
| 182 | 185 | int delCount = ps.executeUpdate(); |
| 183 | 186 | if(delCount == 1){ |
| ... | ... | @@ -203,7 +206,7 @@ |
| 203 | 206 | |
| 204 | 207 | } |
| 205 | 208 | |
| 206 | - String inSql = "insert into lyms_zcfz(id,name,idcard,vccardno,\n" + | |
| 209 | + String inSql = "insert into lyms_zccsfz(id,name,idcard,vccardno,\n" + | |
| 207 | 210 | "phone,checkDate,currentDueDate,checkDoctor,\n" + |
| 208 | 211 | "hospital,chiefComplaint,bp,weight,gongGao,\n" + |
| 209 | 212 | "abdominalCircumference,edema,tireNumber,quicken,\n" + |
| ... | ... | @@ -211,14 +214,14 @@ |
| 211 | 214 | "hemoglobin,urineProtein,bloodSugar,bloodSugar2,\n" + |
| 212 | 215 | "bloodSugar3,bloodSugar4,bChao,diagnosis,\n" + |
| 213 | 216 | "diagnosisOther,treatmentOpinion,guide) " + |
| 214 | - "values("+antenatalExaminationModel.getId()+","+patients.getUsername()+","+patients.getCardNo()+","+patients.getVcCardNo()+",\n" + | |
| 215 | - ""+patients.getPhone()+","+map.get("checkDate")+","+map.get("currentDueDate")+","+map.get("checkDoctor")+",\n" + | |
| 216 | - ""+map.get("hospital")+","+map.get("chiefComplaint")+","+map.get("bp")+","+map.get("weight")+","+map.get("gongGao")+",\n" + | |
| 217 | - ""+map.get("abdominalCircumference")+","+map.get("edema")+","+map.get("tireNumber")+","+map.get("quicken")+",\n" + | |
| 218 | - ""+map.get("quickenRemark")+","+heartRate+","+fetalPosition+","+fetalPresentation+","+join1+",\n" + | |
| 219 | - ""+map.get("hemoglobin")+","+map.get("urineProtein")+","+map.get("bloodSugar")+","+map.get("bloodSugar2")+",\n" + | |
| 220 | - ""+map.get("bloodSugar3")+","+map.get("bloodSugar4")+","+map.get("bChao")+","+map.get("diagnosis")+",\n" + | |
| 221 | - ""+map.get("diagnosisOther")+","+map.get("treatmentOpinion")+","+map.get("guide")+")"; | |
| 217 | + "values(\""+antenatalExaminationModel.getId()+"\",\""+patients.getUsername()+"\",\""+patients.getCardNo()+"\",\""+patients.getVcCardNo()+"\",\n" + | |
| 218 | + "\""+patients.getPhone()+"\",\""+map.get("checkDate")+"\",\""+map.get("currentDueDate")+"\",\""+map.get("checkDoctor")+"\",\n" + | |
| 219 | + "\""+map.get("hospital")+"\",\""+map.get("chiefComplaint")+"\",\""+map.get("bp")+"\",\""+map.get("weight")+"\",\""+map.get("gongGao")+"\",\n" + | |
| 220 | + "\""+map.get("abdominalCircumference")+"\",\""+map.get("edema")+"\",\""+map.get("tireNumber")+"\",\""+map.get("quicken")+"\",\n" + | |
| 221 | + "\""+map.get("quickenRemark")+"\",\""+heartRate+"\",\""+fetalPosition+"\",\""+fetalPresentation+"\",\""+join1+"\",\n" + | |
| 222 | + "\""+map.get("hemoglobin")+"\",\""+map.get("urineProtein")+"\",\""+map.get("bloodSugar")+"\",\""+map.get("bloodSugar2")+"\",\n" + | |
| 223 | + "\""+map.get("bloodSugar3")+"\",\""+map.get("bloodSugar4")+"\",\""+map.get("bChao")+"\",\""+map.get("diagnosis")+"\",\n" + | |
| 224 | + "\""+map.get("diagnosisOther")+"\",\""+map.get("treatmentOpinion")+"\",\""+map.get("guide")+"\")"; | |
| 222 | 225 | |
| 223 | 226 | ps = conn.prepareStatement(inSql); |
| 224 | 227 | int result = ps.executeUpdate(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
9cd9c69
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | import com.lyms.hospitalapi.lcdcf.LcdcfFmService; |
| 7 | 7 | import com.lyms.hospitalapi.qhdfy.QhdfyFmService; |
| 8 | 8 | import com.lyms.hospitalapi.qhdfy.QhdfyHisService; |
| 9 | +import com.lyms.hospitalapi.zcfy.ZcPrenatalService; | |
| 9 | 10 | import com.lyms.platform.biz.JdbcUtil; |
| 10 | 11 | import com.lyms.platform.biz.service.*; |
| 11 | 12 | import com.lyms.platform.common.annotation.TokenRequired; |
| 12 | 13 | |
| ... | ... | @@ -143,7 +144,10 @@ |
| 143 | 144 | @Autowired |
| 144 | 145 | private com.lyms.hospitalapi.lcdcf.LcdcfFmService lcdcfFmService; |
| 145 | 146 | |
| 147 | + @Autowired | |
| 148 | + private ZcPrenatalService zcPrenatalService; | |
| 146 | 149 | |
| 150 | + | |
| 147 | 151 | static Map<String, String> highRisks = new HashMap<>(); |
| 148 | 152 | |
| 149 | 153 | static { |
| ... | ... | @@ -1933,6 +1937,35 @@ |
| 1933 | 1937 | Map<String, Object> map = new HashMap<String, Object>(); |
| 1934 | 1938 | map.put("id", "1236544"); |
| 1935 | 1939 | return map; |
| 1940 | + } | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + /** | |
| 1944 | + *诸城初诊测试 | |
| 1945 | + * @return | |
| 1946 | + */ | |
| 1947 | + @RequestMapping(value="/zc/cz") | |
| 1948 | + @ResponseBody | |
| 1949 | + public BaseObjectResponse getCsCz(@RequestParam("id")String id,@RequestParam("parentId")String parentId){ | |
| 1950 | + AntExChuModel antExChuModel = new AntExChuModel(); | |
| 1951 | + antExChuModel.setId(id); | |
| 1952 | + antExChuModel.setParentId(parentId); | |
| 1953 | + BaseObjectResponse br = zcPrenatalService.saveAntexChu(antExChuModel); | |
| 1954 | + return br; | |
| 1955 | + } | |
| 1956 | + | |
| 1957 | + /** | |
| 1958 | + *诸城复诊测试 | |
| 1959 | + * @return | |
| 1960 | + */ | |
| 1961 | + @RequestMapping(value="/zc/fz") | |
| 1962 | + @ResponseBody | |
| 1963 | + public BaseObjectResponse getCsFz(@RequestParam("id")String id,@RequestParam("parentId")String parentId){ | |
| 1964 | + AntenatalExaminationModel antenatalExaminationModel = new AntenatalExaminationModel(); | |
| 1965 | + antenatalExaminationModel.setId(id); | |
| 1966 | + antenatalExaminationModel.setParentId(parentId); | |
| 1967 | + BaseObjectResponse br = zcPrenatalService.saveAntexFu(antenatalExaminationModel); | |
| 1968 | + return br; | |
| 1936 | 1969 | } |
| 1937 | 1970 | |
| 1938 | 1971 |