|
@ -1918,19 +1918,20 @@ public class ManagerQuestionnaireService extends BaseService {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public String createWorkOrder(String jsonData, List<Map<String, Object>> patientInfo, String doctor) throws Exception{
|
|
|
public JSONObject createWorkOrder(String jsonData, List<Map<String, Object>> patientInfo, String doctor) throws Exception{
|
|
|
JSONObject object = new JSONObject(jsonData);
|
|
|
JSONArray patientInfos = new JSONArray(patientInfo);
|
|
|
Doctor d = doctorService.findDoctorByCode(doctor);
|
|
|
object.put("createUser", d.getCode());
|
|
|
object.put("createUserName", d.getName());
|
|
|
object.put("createUserType", 1);
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("patientInfo", patientInfo.toString());
|
|
|
param.put("patientInfo", patientInfos.toString());
|
|
|
param.put("jsonData", object.toString());
|
|
|
HttpResponse response = null;
|
|
|
response = HttpUtils.doPost(customerUrl + "synergy/questionnaire/createWorkOrder", param);
|
|
|
JSONObject rs = new JSONObject(response.getContent());
|
|
|
return rs.getString("data");
|
|
|
return rs;
|
|
|
}
|
|
|
|
|
|
/**
|