|
@ -13,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;
|
|
@ -145,48 +144,43 @@ public class CustomerSynergyManageController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@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);
|
|
|
@RequestMapping(value = "/reminderList", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取催单列表")
|
|
|
public String reminderList(@ApiParam(name="userCode",value="客服code",required = false)
|
|
|
@RequestParam(required = false)String userCode,
|
|
|
@ApiParam(name="receiveType",value="客服角色(1、客服,2、客服负责人)",required = false)
|
|
|
@RequestParam(required = false)Integer receiveType,
|
|
|
@ApiParam(name="sortType",value="排序(1、升序,2、降序)",required = false,defaultValue = "1")
|
|
|
@RequestParam(required = false,defaultValue = "1")Integer sortType){
|
|
|
try{
|
|
|
|
|
|
return write(200, "新增临时随访记录成功!", "data", response);
|
|
|
} catch (Exception e) {
|
|
|
if(!StringUtils.isNotEmpty(userCode)){
|
|
|
userCode = getUID();
|
|
|
}
|
|
|
List<Map<String,Object>> resultList = synergyManageService.reminderList(userCode,receiveType,sortType);
|
|
|
return write(200,"获取成功","data", resultList);
|
|
|
}catch (Exception e){
|
|
|
error(e);
|
|
|
return invalidUserException(e, -1, "新增临时随访记录失败!" + e.getMessage());
|
|
|
return error(-1,"获取失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/workorderRate", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "任务进度")
|
|
|
public String workorderRate(@ApiParam(name="userCode",value="客服code",required = false)
|
|
|
@RequestParam(required = false)String userCode,
|
|
|
@ApiParam(name="workorderCode",value="协同服务工单code",required = true)
|
|
|
@RequestParam(required = true)String workorderCode){
|
|
|
try{
|
|
|
|
|
|
@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) {
|
|
|
if(!StringUtils.isNotEmpty(userCode)){
|
|
|
userCode = getUID();
|
|
|
}
|
|
|
Map<String,Object> resultMap = synergyManageService.workorderRate(workorderCode,userCode);
|
|
|
return write(200,"获取成功","data", resultMap);
|
|
|
}catch (Exception e){
|
|
|
error(e);
|
|
|
return invalidUserException(e, -1, "保存随访项目数据失败!" + e.getMessage());
|
|
|
return error(-1,"获取失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|