|
|
|
@ -101,16 +101,16 @@ public class AEventsController extends BaseController {
|
|
|
|
|
return success(aEventsService.fiveEventCount());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改事件标题
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "修改事件标题")
|
|
|
|
|
@PostMapping("/edit")
|
|
|
|
|
public AjaxResult edit(@RequestBody Events events) {
|
|
|
|
|
Events byId = aEventsService.getByInnerEventId(events.getInnerEventId());
|
|
|
|
|
events.setTitleBefore(byId.getTitle());
|
|
|
|
|
return toAjax(aEventsService.edit(events));
|
|
|
|
|
}
|
|
|
|
|
// /**
|
|
|
|
|
// * 修改事件标题
|
|
|
|
|
// */
|
|
|
|
|
// @ApiOperation(value = "修改事件标题")
|
|
|
|
|
// @PostMapping("/edit")
|
|
|
|
|
// public AjaxResult edit(@RequestBody Events events) {
|
|
|
|
|
// Events byId = aEventsService.getByInnerEventId(events.getInnerEventId());
|
|
|
|
|
// events.setTitleBefore(byId.getTitle());
|
|
|
|
|
// return toAjax(aEventsService.edit(events));
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据事件的innerEventId查询事件详情
|
|
|
|
@ -145,9 +145,9 @@ public class AEventsController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "事件提级或退回")
|
|
|
|
|
@PostMapping("/eventChangeIsReport")
|
|
|
|
|
public AjaxResult eventChangeIsReport(@RequestBody @Valid AEventChangeIsReport events) {
|
|
|
|
|
if(events.getCaseSerial().isEmpty()){
|
|
|
|
|
throw new ServiceException("请选择工单上报!");
|
|
|
|
|
}
|
|
|
|
|
// if(events.getCaseSerial().isEmpty()){
|
|
|
|
|
// throw new ServiceException("请选择工单上报!");
|
|
|
|
|
// }
|
|
|
|
|
aEventsService.eventChangeIsReport(events);
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|