Commit 1f6b7cc3 authored by tangwei's avatar tangwei

接警时间赋值

parent 53e065c8
package com.yeejoin.amos.boot.module.jcs.biz.service.impl;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -52,11 +53,11 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
* @return
*/
@Transactional
public AlertCalledVo createAlertCalled(AlertCalledVo alertCalledVo) throws Exception {
public AlertCalledVo createAlertCalled(AlertCalledVo alertCalledVo) {
try {
// 警情基本信息
AlertCalled alertCalled = alertCalledVo.getAlertCalled();
alertCalled.setCallTime(new Date());
// 判断是否归并警情
if (alertCalled.getFatherAlert() != null) {
// 警情归并,设置当前警情状态为结束。
......@@ -91,7 +92,10 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
*/
eSAlertCalledService.saveAlertCalledToES(alertCalled);
return alertCalledVo;
return alertCalledVo;
} catch (Exception e) {
throw new RuntimeException("报送失败,系统异常!");
}
}
......
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