|
@ -42,9 +42,6 @@ import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.logging.Logger;
|
|
|
|
|
|
import static com.yihu.wlyy.service.common.util.ManageUtilService.page;
|
|
|
|
|
|
/**
|
|
|
* Created by Trick on 2018/5/31.
|
|
@ -610,12 +607,17 @@ public class SpecialistService extends BaseService {
|
|
|
return "0";
|
|
|
}
|
|
|
|
|
|
public JSONObject findPatientSigninfo(String code) throws Exception {
|
|
|
public JSONObject findPatientSigninfo(String code,String messageCode) throws Exception {
|
|
|
Map<String, Object> param = new HashedMap();
|
|
|
param.put("code", code);
|
|
|
HttpResponse response = HttpUtils.doGet(specialistUrl + "svr-specialist/findPatientSigninfo", param);
|
|
|
JSONObject rs = new JSONObject(response.getContent());
|
|
|
if ("succes".equals(rs.getString("message"))) {
|
|
|
if (StringUtils.isNoneBlank(messageCode)){
|
|
|
Message message = messageDao.findByCode(messageCode);
|
|
|
message.setRead(0);
|
|
|
messageDao.save(message);
|
|
|
}
|
|
|
JSONObject json = rs.getJSONObject("obj");
|
|
|
List<PatientDiseaseServer> patientDiseaseServers = patientDiseaseServerDao.findBySpecialistRelationCodeAndDel(code,"1");
|
|
|
json.put("diseaseServer",patientDiseaseServers);
|