Commit 9713d52dad0bda5a35eda0ee9ae366ea94027fd2
1 parent
ab6830cc4e
Exists in
master
and in
6 other branches
承德公卫字段异常问题修复
Showing 1 changed file with 20 additions and 20 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/Cdfy/CdGwInterface.java
View file @
9713d52
... | ... | @@ -134,28 +134,28 @@ |
134 | 134 | |
135 | 135 | conn = ConnTools.makeGwConnection(); |
136 | 136 | |
137 | - //个人基本信息语句 | |
137 | + //个人基本信息语句DELETE_MARK,LAST_UPDATE_DTIME | |
138 | 138 | String inBaseInfoSql = "insert into BASEINFO(ORG_CODE,PATIENT_ID,CARD_NO,CARD_TYPE_CODE,NAME,\n" + |
139 | 139 | "SEX_CODE,BIRTH_DATE,ID_TYPE_CODE,ID_NO,EMPLOYER_NAME,TEL_NO,\n" + |
140 | 140 | "CONTACT_NAME,CONTACT_TEL_NO,NATIONALITY_CODE,ABO_CODE,RH_CODE,\n" + |
141 | 141 | "EDUCATION_CODE,OCCUPATION_CODE,MARRIAGE_CODE,DRUG_ALLERGY_MARK,OP_HISTORY_MARK,TRAUMA_HISTORY_MARK,\n" + |
142 | - "BLOOD_TRANSF_MARK,GENETIC_DISEASE_HISTORY,OPERATION_HISTORY,Sec_Type_Code,Employer_Tel_No,DELETE_MARK,LAST_UPDATE_DTIME) \n" + | |
143 | - "values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; | |
142 | + "BLOOD_TRANSF_MARK,GENETIC_DISEASE_HISTORY,OPERATION_HISTORY,Sec_Type_Code,Employer_Tel_No,LAST_UPDATE_DTIME) \n" + | |
143 | + "values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; | |
144 | 144 | |
145 | - //地址信息语句,01:户籍地址 | |
145 | + //地址信息语句,01:户籍地址DELETE_MARK,LAST_UPDATE_DTIME | |
146 | 146 | String inAddressSql01 = "insert into BASEINFO_ADDRESS(ORG_CODE,PATIENT_ID,Address_Type_Code,Addr_Province,Addr_City,\n" + |
147 | - "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,DELETE_MARK,LAST_UPDATE_DTIME) \n" + | |
148 | - "values(?,?,?,?,?,?,?,?,?,?,?,?)"; | |
147 | + "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,LAST_UPDATE_DTIME) \n" + | |
148 | + "values(?,?,?,?,?,?,?,?,?,?,?)"; | |
149 | 149 | |
150 | - //地址信息语句,03:居住地址 | |
150 | + //地址信息语句,03:居住地址DELETE_MARK,LAST_UPDATE_DTIME | |
151 | 151 | String inAddressSql03 = "insert into BASEINFO_ADDRESS(ORG_CODE,PATIENT_ID,Address_Type_Code,Addr_Province,Addr_City,\n" + |
152 | - "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,DELETE_MARK,LAST_UPDATE_DTIME) \n" + | |
153 | - "values(?,?,?,?,?,?,?,?,?,?,?,?)"; | |
152 | + "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,LAST_UPDATE_DTIME) \n" + | |
153 | + "values(?,?,?,?,?,?,?,?,?,?,?)"; | |
154 | 154 | |
155 | - //地址信息语句,07:产后居住地 | |
155 | + //地址信息语句,07:产后居住地DELETE_MARK,LAST_UPDATE_DTIME | |
156 | 156 | String inAddressSql07 = "insert into baseinfo_address(ORG_CODE,PATIENT_ID,Address_Type_Code,Addr_Province,Addr_City,\n" + |
157 | - "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,DELETE_MARK,LAST_UPDATE_DTIME) \n" + | |
158 | - "values(?,?,?,?,?,?,?,?,?,?,?,?)"; | |
157 | + "Addr_County,Addr_Town,Addr_Village,Addr_House_No,Postal_Code,LAST_UPDATE_DTIME) \n" + | |
158 | + "values(?,?,?,?,?,?,?,?,?,?,?)"; | |
159 | 159 | |
160 | 160 | |
161 | 161 | |
... | ... | @@ -222,8 +222,8 @@ |
222 | 222 | ps.setString(25,null); |
223 | 223 | ps.setString(26,null); |
224 | 224 | ps.setString(27,null); |
225 | - ps.setString(28,"0"); | |
226 | - ps.setDate(29, new Date(patient.getModified().getTime())); | |
225 | + //ps.setString(28,"0"); | |
226 | + ps.setDate(28, new Date(patient.getModified().getTime())); | |
227 | 227 | |
228 | 228 | int inResult = ps.executeUpdate(); |
229 | 229 | if (inResult > 0) { |
... | ... | @@ -238,8 +238,8 @@ |
238 | 238 | ps.setString(8,patient.getAddress()); |
239 | 239 | ps.setString(9,patient.getAddress()); |
240 | 240 | ps.setString(10,null); |
241 | - ps.setString(11,"0"); | |
242 | - ps.setDate(12, new Date(patient.getModified().getTime())); | |
241 | + //ps.setString(11,"0"); | |
242 | + ps.setDate(11, new Date(patient.getModified().getTime())); | |
243 | 243 | |
244 | 244 | int adress01 = ps.executeUpdate(); |
245 | 245 | if (adress01 > 0) { |
... | ... | @@ -254,8 +254,8 @@ |
254 | 254 | ps.setString(8,patient.getAddressRegister()); |
255 | 255 | ps.setString(9,patient.getAddressRegister()); |
256 | 256 | ps.setString(10,null); |
257 | - ps.setString(11,"0"); | |
258 | - ps.setDate(12, new Date(patient.getModified().getTime())); | |
257 | + //ps.setString(11,"0"); | |
258 | + ps.setDate(11, new Date(patient.getModified().getTime())); | |
259 | 259 | |
260 | 260 | int adress03 = ps.executeUpdate(); |
261 | 261 | if (adress03 > 0) { |
... | ... | @@ -270,8 +270,8 @@ |
270 | 270 | ps.setString(8,patient.getAddressPostRest()); |
271 | 271 | ps.setString(9,patient.getAddressPostRest()); |
272 | 272 | ps.setString(10,null); |
273 | - ps.setString(11,"0"); | |
274 | - ps.setDate(12, new Date(patient.getModified().getTime())); | |
273 | + //ps.setString(11,"0"); | |
274 | + ps.setDate(11, new Date(patient.getModified().getTime())); | |
275 | 275 | |
276 | 276 | int adress07 = ps.executeUpdate(); |
277 | 277 | if (adress07 > 0) { |