|
@ -291,8 +291,8 @@ public class WlyyBusinessService {
|
|
|
params.put("idcard",idcard);
|
|
|
|
|
|
String patientCardNo = null;
|
|
|
patientMedicareCardDao.deleteByPatientId(patientId);
|
|
|
if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
patientMedicareCardDao.deleteByPatientId(patientId);
|
|
|
net.sf.json.JSONArray array =prescriptionService.findPatientCard(patientId);
|
|
|
for (int i=0;i<array.size();i++){
|
|
|
net.sf.json.JSONObject object = array.getJSONObject(i);
|
|
@ -316,6 +316,7 @@ public class WlyyBusinessService {
|
|
|
patientMedicareCardDao.save(patientMedicareCardDO);
|
|
|
}
|
|
|
}else if (wxId.equalsIgnoreCase("xm_xzzx_wx")){
|
|
|
patientMedicareCardDao.deleteByPatientId(patientId);
|
|
|
JSONArray array = xzzxEntranceService.selectPateintCard(patientId);
|
|
|
for (int i=0;i<array.size();i++){
|
|
|
JSONObject jsonObject = array.getJSONObject(i);
|
|
@ -338,8 +339,6 @@ public class WlyyBusinessService {
|
|
|
patientMedicareCardDO.setRemark(cardTypeName);
|
|
|
patientMedicareCardDao.save(patientMedicareCardDO);
|
|
|
}
|
|
|
}else if (wxId.equalsIgnoreCase("xm_hcyy_wx")){
|
|
|
|
|
|
}else {
|
|
|
PatientMedicareCardDO patientMedicareCardDO = patientMedicareCardDao.findByTypeAndPatientCodeAndDel("A_01",patientId,"1");
|
|
|
if (patientMedicareCardDO!=null){
|
|
@ -376,18 +375,21 @@ public class WlyyBusinessService {
|
|
|
patientSccParams.put("sex",basePatientDO.getSex().toString());
|
|
|
patientSccParams.put("phone",basePatientDO.getMobile());
|
|
|
patientSccParams.put("birthday",DateUtil.dateToStrShort(basePatientDO.getBirthday()));
|
|
|
//JSONObject object = wlyyHttpService.sendWlyyMes("wlyyFindAccountBySsc", null, patientSccParams);
|
|
|
|
|
|
JSONObject rs = wlyyHttpService.sendWlyyMes("wlyyGetPatientAccetokenByIdcard",null,params);
|
|
|
if(rs!=null){
|
|
|
Integer status = rs.getInteger("status");
|
|
|
if(200 == status){
|
|
|
JSONObject data = rs.getJSONObject("data");
|
|
|
result = data.getString("patientCode");
|
|
|
}else{
|
|
|
logger.info(rs.toJSONString());
|
|
|
throw new Exception("请求i健康接口失败");
|
|
|
JSONObject object = wlyyHttpService.sendWlyyMes("wlyyFindAccountBySsc", null, patientSccParams);
|
|
|
try {
|
|
|
JSONObject rs = wlyyHttpService.sendWlyyMes("wlyyGetPatientAccetokenByIdcard",null,params);
|
|
|
if(rs!=null){
|
|
|
Integer status = rs.getInteger("status");
|
|
|
if(200 == status){
|
|
|
JSONObject data = rs.getJSONObject("data");
|
|
|
result = data.getString("patientCode");
|
|
|
}else{
|
|
|
logger.info(rs.toJSONString());
|
|
|
throw new Exception("请求i健康接口失败");
|
|
|
}
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
try {
|
|
|
baseOperateLogService.saveOperateLog(doctorId,patientId,"JKDA","健康档案","","");
|