|
@ -223,7 +223,10 @@ public class DoctorSchemeService {
|
|
|
for (int i = 0; i < datalist.size(); i++) {
|
|
|
DoctorSchemeBloodSugger doctorSchemeBloodSugger = new DoctorSchemeBloodSugger();
|
|
|
|
|
|
Long id = datalist.getJSONObject(i).getLong("id");
|
|
|
long id = 0;
|
|
|
if(datalist.getJSONObject(i).containsKey("id")){
|
|
|
id=datalist.getJSONObject(i).getLong("id");
|
|
|
}
|
|
|
if(id != 0){
|
|
|
doctorSchemeBloodSugger.setId(datalist.getJSONObject(i).getLong("id"));
|
|
|
}
|
|
@ -284,7 +287,10 @@ public class DoctorSchemeService {
|
|
|
for (int i = 0; i < datalist.size(); i++) {
|
|
|
DoctorSchemeBloodPressure doctorSchemeBloodPressure = new DoctorSchemeBloodPressure();
|
|
|
|
|
|
Long id = datalist.getJSONObject(i).getLong("id");
|
|
|
long id = 0;
|
|
|
if(datalist.getJSONObject(i).containsKey("id")){
|
|
|
id=datalist.getJSONObject(i).getLong("id");
|
|
|
}
|
|
|
if(id != 0){
|
|
|
doctorSchemeBloodPressure.setId(datalist.getJSONObject(i).getLong("id"));
|
|
|
}
|
|
@ -334,7 +340,7 @@ public class DoctorSchemeService {
|
|
|
}
|
|
|
|
|
|
for (int i = 0; i < codes.size(); i++) {
|
|
|
patientcodeList.add(codes.getJSONObject(i).toString());
|
|
|
patientcodeList.add(codes.get(i).toString());
|
|
|
}
|
|
|
|
|
|
if (!patientcodeList.isEmpty()) {
|
|
@ -345,8 +351,9 @@ public class DoctorSchemeService {
|
|
|
TransactionStatus status = transactionManager.getTransaction(def); // 获得事务状态
|
|
|
try {
|
|
|
|
|
|
PatientSchemeList patientSchemeListObj = new PatientSchemeList();
|
|
|
|
|
|
for (String patientcode : patientcodeList) {
|
|
|
PatientSchemeList patientSchemeListObj = new PatientSchemeList();
|
|
|
patientSchemeListDao.delByPatientCodeAndSchemeCode(patientcode, Integer.parseInt(type), schemecode);
|
|
|
patientSchemeListObj.setCode(UUID.randomUUID().toString());
|
|
|
patientSchemeListObj.setPatientcode(patientcode);
|