|
@ -6,9 +6,11 @@ import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.yihu.es.entity.FollowupContentESDO;
|
|
import com.yihu.es.entity.FollowupContentESDO;
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
|
|
import com.yihu.wlyy.entity.message.Message;
|
|
import com.yihu.wlyy.service.app.followup.FollowUpService;
|
|
import com.yihu.wlyy.service.app.followup.FollowUpService;
|
|
import com.yihu.wlyy.service.app.followup.FollowupDrugsService;
|
|
import com.yihu.wlyy.service.app.followup.FollowupDrugsService;
|
|
import com.yihu.wlyy.service.app.survey.SurveyScreenResultService;
|
|
import com.yihu.wlyy.service.app.survey.SurveyScreenResultService;
|
|
|
|
import com.yihu.wlyy.service.specialist.SpecialistEvaluateSevice;
|
|
import com.yihu.wlyy.service.survey.ManagerQuestionnaireService;
|
|
import com.yihu.wlyy.service.survey.ManagerQuestionnaireService;
|
|
import com.yihu.wlyy.service.third.jw.ZyDictService;
|
|
import com.yihu.wlyy.service.third.jw.ZyDictService;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
@ -43,6 +45,8 @@ public class SynergyManagerController extends BaseController{
|
|
private ZyDictService zyDictService;
|
|
private ZyDictService zyDictService;
|
|
@Autowired
|
|
@Autowired
|
|
private FollowupDrugsService followupDrugsService;
|
|
private FollowupDrugsService followupDrugsService;
|
|
|
|
@Autowired
|
|
|
|
private SpecialistEvaluateSevice specialistEvaluateSevice;
|
|
|
|
|
|
@ApiOperation("新增临时随访记录(返回ID)")
|
|
@ApiOperation("新增临时随访记录(返回ID)")
|
|
@RequestMapping(value = "/addFollowup", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/addFollowup", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
@ -279,4 +283,41 @@ public class SynergyManagerController extends BaseController{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 发送消息 type:19 受理提醒,20 待办工作提醒 21 服务进展提醒-已完成 22 服务进展提醒-未完成
|
|
|
|
* message{sender:"",receiver:"",relationCode:""}
|
|
|
|
* @param message
|
|
|
|
* @param hospital
|
|
|
|
* @param patient
|
|
|
|
* @param time
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "sendMessage", method = RequestMethod.GET)
|
|
|
|
@ResponseBody
|
|
|
|
@ApiOperation("发送消息")
|
|
|
|
public String sendMessage(@ApiParam(name = "message",value = "消息对象(如:{'sender':'','receiver':'','relationCode':'','type':19})",required = true)
|
|
|
|
@RequestParam(value = "message",required = true)String message,
|
|
|
|
@ApiParam(name = "hospital",value = "医院code",required = false)
|
|
|
|
@RequestParam(value = "hospital",required = false)String hospital,
|
|
|
|
@ApiParam(name = "patient",value = "居民code",required = true)
|
|
|
|
@RequestParam(value = "patient",required = true)String patient,
|
|
|
|
@ApiParam(name = "time",value = "时间",required = false)
|
|
|
|
@RequestParam(value = "time",required = false)Integer time,
|
|
|
|
@ApiParam(name = "jsonObject",value = "参数",required = false)
|
|
|
|
@RequestParam(value = "jsonObject",required = false) String jsonObject){
|
|
|
|
try {
|
|
|
|
com.alibaba.fastjson.JSONObject object = com.alibaba.fastjson.JSONObject.parseObject(message);
|
|
|
|
Message message1 = new Message();
|
|
|
|
message1.setSender(object.getString("sender"));
|
|
|
|
message1.setType(object.getInteger("type"));
|
|
|
|
message1.setReceiver(object.getString("receiver"));
|
|
|
|
message1.setRelationCode(object.getString("relationCode"));
|
|
|
|
com.alibaba.fastjson.JSONObject jsonObject1 = com.alibaba.fastjson.JSONObject.parseObject(jsonObject);
|
|
|
|
return write(200, "获取消息成功!","data",specialistEvaluateSevice.sendMessage(message1,hospital,patient,time,jsonObject1));
|
|
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
|
|
return error(-1, "获取消息失败!");
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|