吉安感知网项目-后端
linwei
6 days ago 99b371ac98d700976d569ab6b51e69703a841c49
feat(workorder): 添加事件状态时间线功能
1 files modified
7 ■■■■■ changed files
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/service/impl/GdClueEventStatusFlowServiceImpl.java 7 ●●●●● patch | view | raw | blame | history
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/service/impl/GdClueEventStatusFlowServiceImpl.java
@@ -20,6 +20,7 @@
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.secure.utils.AuthUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.sxkj.common.utils.SpringContextUtil;
import org.sxkj.gd.workorder.entity.GdClueEventEntity;
import org.sxkj.gd.workorder.entity.GdClueEventStatusFlowEntity;
import org.sxkj.gd.workorder.enums.EventStatusEnum;
@@ -45,9 +46,6 @@
@Service
@AllArgsConstructor
public class GdClueEventStatusFlowServiceImpl extends BaseServiceImpl<GdClueEventStatusFlowMapper, GdClueEventStatusFlowEntity> implements IGdClueEventStatusFlowService {
    @Autowired
    private  IGdClueEventService gdClueEventService;
    /**
     * 根据事件ID查询状态流转记录列表
@@ -153,7 +151,8 @@
        }
        // 2. 查询事件当前状态
        GdClueEventEntity event = gdClueEventService.getById(eventId);
        IGdClueEventService gdClueEventService = SpringContextUtil.getBean(IGdClueEventService.class);
        GdClueEventEntity event = gdClueEventService.getById(eventId);
        if (event == null) {
            throw new RuntimeException("事件不存在");
        }