微调
This commit is contained in:
@@ -98,6 +98,16 @@ public class CsAlarmServiceImpl extends ServiceImpl<CsEventMapper, CsEventPO> im
|
|||||||
throw new BusinessException(DATA_ERROR);
|
throw new BusinessException(DATA_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//判断是否有重复数据
|
||||||
|
CsEventPO po2 = this.lambdaQuery().eq(CsEventPO::getLineId,lineId)
|
||||||
|
.eq(CsEventPO::getStartTime,eventTime)
|
||||||
|
.eq(CsEventPO::getClDid,appEventMessage.getMsg().getClDid())
|
||||||
|
.eq(CsEventPO::getProcess,po.getProcess())
|
||||||
|
.eq(CsEventPO::getTag,tag).one();
|
||||||
|
if (po2 != null) {
|
||||||
|
throw new BusinessException(DATA_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
//事件入库
|
//事件入库
|
||||||
CsEventPO csEvent = new CsEventPO();
|
CsEventPO csEvent = new CsEventPO();
|
||||||
csEvent.setLineId(lineId);
|
csEvent.setLineId(lineId);
|
||||||
|
|||||||
Reference in New Issue
Block a user