|
@ -1,9 +1,12 @@
|
|
package com.yihu.wlyy.controller.synergy.customer;
|
|
package com.yihu.wlyy.controller.synergy.customer;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
import com.yihu.wlyy.controller.BaseController;
|
|
import com.yihu.wlyy.controller.BaseController;
|
|
import com.yihu.wlyy.entity.User;
|
|
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.manager.user.UserService;
|
|
import com.yihu.wlyy.service.synergy.SynergyManageService;
|
|
import com.yihu.wlyy.service.synergy.SynergyManageService;
|
|
|
|
import com.yihu.wlyy.service.synergy.SynergyWorkorderServicerLogService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
@ -30,6 +33,10 @@ public class CustomerSynergyManageController extends BaseController {
|
|
private SynergyManageService synergyManageService;
|
|
private SynergyManageService synergyManageService;
|
|
@Autowired
|
|
@Autowired
|
|
private UserService userService;
|
|
private UserService userService;
|
|
|
|
@Autowired
|
|
|
|
private SynergyWorkorderServicerLogService synergyWorkorderServicerLogService;
|
|
|
|
@Autowired
|
|
|
|
private ObjectMapper objectMapper;
|
|
|
|
|
|
@RequestMapping(value = "/getWorkOrderInfo", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@RequestMapping(value = "/getWorkOrderInfo", method = {RequestMethod.GET, RequestMethod.POST})
|
|
@ApiOperation(value = "获取协同服务工单信息")
|
|
@ApiOperation(value = "获取协同服务工单信息")
|
|
@ -228,4 +235,26 @@ public class CustomerSynergyManageController extends BaseController {
|
|
return invalidUserException(e, -1, "保存随访项目数据失败!" + e.getMessage());
|
|
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());
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|