|
@ -137,6 +137,7 @@ public class CreditLogService {
|
|
object.put("name",patient.getName());
|
|
object.put("name",patient.getName());
|
|
object.put("idCard",patient.getIdcard());
|
|
object.put("idCard",patient.getIdcard());
|
|
object.put("openId",patient.getOpenid());
|
|
object.put("openId",patient.getOpenid());
|
|
|
|
object.put("unionId",patient.getUnionid());
|
|
String url =getBaseUrl() + "createCreditsDetail";
|
|
String url =getBaseUrl() + "createCreditsDetail";
|
|
Map<String,String> params = new HashMap<>();
|
|
Map<String,String> params = new HashMap<>();
|
|
params.put("creditsDetail",object.toJSONString());
|
|
params.put("creditsDetail",object.toJSONString());
|
|
@ -494,8 +495,14 @@ public class CreditLogService {
|
|
String response = null;
|
|
String response = null;
|
|
String url =getBaseUrl() + "doctorAddIntegrate";
|
|
String url =getBaseUrl() + "doctorAddIntegrate";
|
|
JSONArray array = object.getJSONArray("patientIds");
|
|
JSONArray array = object.getJSONArray("patientIds");
|
|
|
|
JSONArray jsonArray = new JSONArray();
|
|
|
|
for (int i =0 ;i<array.size();i++){
|
|
|
|
Patient patient = patientDao.findByCode(array.getString(i));
|
|
|
|
JSONObject jsonObject = (JSONObject) JSONObject.toJSON(patient);
|
|
|
|
jsonArray.add(jsonObject);
|
|
|
|
}
|
|
JSONObject object1 = new JSONObject();
|
|
JSONObject object1 = new JSONObject();
|
|
object1.put("patientIds",array);
|
|
|
|
|
|
object1.put("patient",jsonArray);
|
|
object1.put("ruleId",object.getString("ruleId"));
|
|
object1.put("ruleId",object.getString("ruleId"));
|
|
object1.put("description",object.getString("description"));
|
|
object1.put("description",object.getString("description"));
|
|
JSONObject object2 = null;
|
|
JSONObject object2 = null;
|