Commit 130142a3a87349c3bf8dbf2be855d21d85cc9eea

Authored by yangfei
1 parent 6d79c0dca7

服务同步对象

Showing 1 changed file with 2 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java View file @ 130142a
... ... @@ -20,7 +20,6 @@
20 20 import com.lyms.platform.permission.service.*;
21 21 import com.lyms.platform.pojo.Patients;
22 22 import com.lyms.platform.query.PatientsQuery;
23   -import net.sf.json.JSONArray;
24 23 import org.apache.commons.collections.CollectionUtils;
25 24 import org.springframework.beans.factory.annotation.Autowired;
26 25 import org.springframework.stereotype.Component;
... ... @@ -500,7 +499,7 @@
500 499 patientQuery.setSynStatus(1);
501 500 List<PatientService> patientServices = patientServiceService.queryPatientService(patientQuery);
502 501 Map<String, String> params = new HashMap<>();
503   - JSONArray jsonArray = new JSONArray();
  502 + List<JSONObject> jsonArray = new ArrayList<>();
504 503 for (PatientService ps : patientServices) {
505 504 JSONObject jsonObject = new JSONObject();
506 505 jsonObject.put("id", ps.getId());
... ... @@ -518,7 +517,7 @@
518 517 jsonObject.put("createDate", DateUtil.getyyyy_MM_dd_hms(ps.getCreateDate()));
519 518 jsonArray.add(jsonObject);
520 519 }
521   - baseResponse.setObject(jsonArray.toString());
  520 + baseResponse.setObject(jsonArray);
522 521 baseResponse.setErrorcode(ErrorCodeConstants.SUCCESS);
523 522 baseResponse.setErrormsg("成功");
524 523 return baseResponse;