Commit 46a86965 authored by tangwei's avatar tangwei

修改bug

parent e64a8656
......@@ -80,7 +80,7 @@ public class AlertCalledController extends BaseController {
@PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "新增警情接警记录", notes = "新增警情接警记录")
@Transactional
public ResponseModel<AlertCalledVo> saveAlertCalled(@RequestBody AlertCalledVo alertCalledVo) throws Exception{
public ResponseModel<AlertCalled> saveAlertCalled(@RequestBody AlertCalledVo alertCalledVo) throws Exception{
if (ValidationUtil.isEmpty(alertCalledVo)
|| ValidationUtil.isEmpty(alertCalledVo.getAlertCalled()))
......@@ -89,9 +89,12 @@ public class AlertCalledController extends BaseController {
JSONObject.parseObject(null != redisUtils.get(buildKey(getToken())) ?
redisUtils.get(buildKey(getToken())).toString() : null, ReginParams.class);
//获取当前登录人公司
alertCalledVo.getAlertCalled().setCompanyName(reginParams.getCompany().getCompanyName());
return ResponseHelper.buildResponse(iAlertCalledService.createAlertCalled(alertCalledVo));
String name= reginParams.getCompany().getCompanyName();
AlertCalled alertCalled = alertCalledVo.getAlertCalled();
alertCalled.setCompanyName(name);
alertCalledVo.setAlertCalled(alertCalled);
alertCalledVo =iAlertCalledService.createAlertCalled(alertCalledVo);
return ResponseHelper.buildResponse(alertCalledVo.getAlertCalled());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment