Browse Source

无事件查询返回空

develop
王兴琳 4 months ago
parent
commit
c75b9ee8f6
  1. 3
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

3
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -1172,6 +1172,9 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
public DcEvent selectEventSubclassById(String id) { public DcEvent selectEventSubclassById(String id) {
// //
DcEvent dcEvent = dcEventMapper.selectDcEventById(id); DcEvent dcEvent = dcEventMapper.selectDcEventById(id);
if (dcEvent ==null){
return new DcEvent();
}
int eventType = Math.toIntExact(dcEvent.getEventType()); int eventType = Math.toIntExact(dcEvent.getEventType());
List<DcProcessConfig> processConfigList = dcProcessConfigMapper.selectDcProcessConfigByEventType(Math.toIntExact(dcEvent.getEventType())); List<DcProcessConfig> processConfigList = dcProcessConfigMapper.selectDcProcessConfigByEventType(Math.toIntExact(dcEvent.getEventType()));
dcEvent.setProcessConfigList(processConfigList); dcEvent.setProcessConfigList(processConfigList);

Loading…
Cancel
Save