|
@ -85,13 +85,15 @@ public class LabelService {
|
|
|
sign.setSignSource(json.getString("sign_source"));
|
|
|
sign.setDiseaseCondition(json.getString("disease_condition"));
|
|
|
sign.setAdminTeamId(json.getString("admin_team_id"));
|
|
|
BasePatientDO patientDO = patientDao.findByIdcard(sign.getIdcard());
|
|
|
if(patientDO!=null){
|
|
|
if(sign.getPatient()==null){
|
|
|
sign.setPatient(patientDO.getId());
|
|
|
if(StringUtils.isNotBlank(sign.getDiseaseCondition())){
|
|
|
BasePatientDO patientDO = patientDao.findByIdcard(sign.getIdcard());
|
|
|
if(patientDO!=null){
|
|
|
if(sign.getPatient()==null){
|
|
|
sign.setPatient(patientDO.getId());
|
|
|
}
|
|
|
patientDO.setDiseaseCondition(Integer.parseInt(sign.getDiseaseCondition()));
|
|
|
patientDao.save(patientDO);
|
|
|
}
|
|
|
patientDO.setDiseaseCondition(Integer.parseInt(sign.getDiseaseCondition()));
|
|
|
patientDao.save(patientDO);
|
|
|
}
|
|
|
jsonArray.remove(i);
|
|
|
break;
|