This commit is contained in:
xy
2025-07-16 15:11:48 +08:00
parent 186eec4f7e
commit 1bb9ad1cf7

View File

@@ -98,6 +98,16 @@ public class CsAlarmServiceImpl extends ServiceImpl<CsEventMapper, CsEventPO> im
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();
csEvent.setLineId(lineId);