|
@ -85,14 +85,23 @@ public class BusinessAlertServiceImpl implements IBusinessAlertService { |
|
|
BusinessAlert alert = MapstructUtils.convert(param, BusinessAlert.class); |
|
|
BusinessAlert alert = MapstructUtils.convert(param, BusinessAlert.class); |
|
|
alert.setCreateTime(new Date()); |
|
|
alert.setCreateTime(new Date()); |
|
|
alert.setJobName(alert.getLabelCn()+ DateUtils.getTime()); |
|
|
alert.setJobName(alert.getLabelCn()+ DateUtils.getTime()); |
|
|
|
|
|
|
|
|
//创建案件号
|
|
|
//创建案件号
|
|
|
try { |
|
|
try { |
|
|
incrementalAlertCount(alert); |
|
|
incrementalAlertCount(alert); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error(e.getMessage(),e); |
|
|
log.error(e.getMessage(),e); |
|
|
} |
|
|
} |
|
|
|
|
|
this.baseMapper.insert(alert); |
|
|
|
|
|
return alert; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public BusinessAlert addAlert(BusinessAlert alert) { |
|
|
|
|
|
alert.setCreateTime(new Date()); |
|
|
|
|
|
if(ObjectUtil.isNull(alert.getJobName())){ |
|
|
|
|
|
alert.setJobName(alert.getLabelCn()+ DateUtils.getTime()); |
|
|
|
|
|
} |
|
|
|
|
|
alert.setJobName(alert.getLabelCn()+ DateUtils.getTime()); |
|
|
this.baseMapper.insert(alert); |
|
|
this.baseMapper.insert(alert); |
|
|
return alert; |
|
|
return alert; |
|
|
} |
|
|
} |
|
|