|
@ -66,6 +66,7 @@ public class SynergyManageService extends BaseService {
|
|
|
JSONArray array = new JSONArray();
|
|
|
String patientCode1 = null;
|
|
|
Doctor doctor1 = doctorDao.findByCode(doctor);
|
|
|
StringBuffer buffer = new StringBuffer();
|
|
|
for (String patientCode:patientSet){
|
|
|
if (patientSet.size() == 1){
|
|
|
patientCode1 = patientCode;
|
|
@ -74,6 +75,7 @@ public class SynergyManageService extends BaseService {
|
|
|
com.alibaba.fastjson.JSONObject object = new com.alibaba.fastjson.JSONObject();
|
|
|
object.put("servicePatientCode",patient.getCode());
|
|
|
object.put("servicePatientName",patient.getName());
|
|
|
buffer.append(patient.getName()+",");
|
|
|
object.put("ssc",patient.getSsc());
|
|
|
object.put("idcard",patient.getIdcard());
|
|
|
object.put("mobile",patient.getMobile());
|
|
@ -84,6 +86,7 @@ public class SynergyManageService extends BaseService {
|
|
|
object.put("townName",hospital.getTownName());
|
|
|
array.add(object);
|
|
|
}
|
|
|
buffer.deleteCharAt(buffer.length()-1);
|
|
|
com.alibaba.fastjson.JSONObject object = new com.alibaba.fastjson.JSONObject();
|
|
|
object.put("type",type);
|
|
|
object.put("serviceTime",serviceDate);
|
|
@ -94,6 +97,8 @@ public class SynergyManageService extends BaseService {
|
|
|
object.put("hospitalName",doctor1.getHospitalName());
|
|
|
object.put("createUserType",1);
|
|
|
object.put("remark",remark);
|
|
|
object.put("servicerCount",patientSet.size());
|
|
|
object.put("servicerKey",buffer);
|
|
|
if (type == 3){
|
|
|
Followup followup = new Followup();
|
|
|
followup.setDoctorCode(doctor1.getCode());
|