|
@ -1,12 +1,9 @@
|
|
|
package com.yihu.wlyy.controller.synergy.customer;
|
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.yihu.wlyy.controller.BaseController;
|
|
|
import com.yihu.wlyy.entity.User;
|
|
|
import com.yihu.wlyy.entity.synergy.ManageSynergyWorkorderServicerLogDO;
|
|
|
import com.yihu.wlyy.service.manager.user.UserService;
|
|
|
import com.yihu.wlyy.service.synergy.SynergyManageService;
|
|
|
import com.yihu.wlyy.service.synergy.SynergyWorkorderServicerLogService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
@ -16,7 +13,6 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@ -33,10 +29,6 @@ public class CustomerSynergyManageController extends BaseController {
|
|
|
private SynergyManageService synergyManageService;
|
|
|
@Autowired
|
|
|
private UserService userService;
|
|
|
@Autowired
|
|
|
private SynergyWorkorderServicerLogService synergyWorkorderServicerLogService;
|
|
|
@Autowired
|
|
|
private ObjectMapper objectMapper;
|
|
|
|
|
|
@RequestMapping(value = "/getWorkOrderInfo", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ApiOperation(value = "获取协同服务工单信息")
|
|
@ -191,70 +183,4 @@ public class CustomerSynergyManageController extends BaseController {
|
|
|
return error(-1,"获取失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@ApiOperation("新增临时随访记录(返回ID)")
|
|
|
@RequestMapping(value = "/addFollowup", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
public String addFollowup(@ApiParam(name = "doctor", value = "医生代码", defaultValue = "443a196ef8744536a531260eb26c05d7")
|
|
|
@RequestParam(value = "doctor", required = true) String doctor,
|
|
|
@ApiParam(name = "patient", value = "患者代码", defaultValue = "443a196ef8744536a531260eb26c05d7")
|
|
|
@RequestParam(value = "patient", required = true) String patient,
|
|
|
@ApiParam(name = "date", value = "下次随访时间", defaultValue = "2016-12-15 20:00:00")
|
|
|
@RequestParam(value = "date", required = true) String date,
|
|
|
@ApiParam(name = "followupType", value = "随访方式【字典FOLLOWUP_WAY_DICT】", defaultValue = "12")
|
|
|
@RequestParam(value = "followupType", required = true) String followupType,
|
|
|
@ApiParam(name = "followupClass", value = "随访类别【1.高血压 2.糖尿病 3高糖】", defaultValue = "1")
|
|
|
@RequestParam(value = "followupClass", required = true) String followupClass,
|
|
|
@ApiParam(name = "followupManagerStatus", value = "随访管理状态【字典FOLLOWUP_MANAGER_STATUS】", defaultValue = "1")
|
|
|
@RequestParam(value = "followupManagerStatus", required = false) String followupManagerStatus,
|
|
|
@ApiParam(name = "plandate", value = "下次随访时间", defaultValue = "2016-12-14 20:00:00")
|
|
|
@RequestParam(value = "plandate", required = false) String plandate,
|
|
|
@ApiParam(name = "prescriptioncode", value = "续方CODE", defaultValue = "续方CODE")
|
|
|
@RequestParam(value = "prescriptioncode", required = false) String prescriptioncode) {
|
|
|
try {
|
|
|
String response = synergyManageService.addFollowup(doctor, patient, date, followupType, followupClass, followupManagerStatus,plandate,prescriptioncode);
|
|
|
|
|
|
return write(200, "新增临时随访记录成功!", "data", response);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return invalidUserException(e, -1, "新增临时随访记录失败!" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@ApiOperation("保存随访项目数据")
|
|
|
@RequestMapping(value = "/saveFollowupProjectData", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
public String saveFollowupProjectData(@ApiParam(name = "followup", value = "随访项目对象")
|
|
|
@RequestParam(value = "followup", required = true)String followup ) {
|
|
|
try {
|
|
|
synergyManageService.saveFollowupProjectData(followup);
|
|
|
return write(200, "保存随访项目数据成功!");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return invalidUserException(e, -1, "保存随访项目数据失败!" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 添加协同服务操作日志
|
|
|
*
|
|
|
* @param servicerLog
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("添加协同服务操作日志")
|
|
|
@RequestMapping(value = "/createSynergyServicerLog", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
public String createSynergyServicerLog(@ApiParam(name = "servicerLog", value = "协同服务操作日志")
|
|
|
@RequestParam(value = "servicerLog", required = true)String servicerLog ) {
|
|
|
try {
|
|
|
ManageSynergyWorkorderServicerLogDO synergyWorkorderServicerLogDO = objectMapper.readValue(servicerLog,ManageSynergyWorkorderServicerLogDO.class);
|
|
|
synergyWorkorderServicerLogService.create(synergyWorkorderServicerLogDO);
|
|
|
return write(200, "保存随访项目数据成功!");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return invalidUserException(e, -1, "保存随访项目数据失败!" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|