|
@@ -3,6 +3,7 @@ package com.rongwei.bscommon.sys.service.impl;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import com.rongwei.bscommon.sys.utils.BusinessFunUtils;
|
|
|
import com.rongwei.bsentity.domain.ZhcxItpProjectNodeStateDo;
|
|
|
import com.rongwei.bscommon.sys.dao.ZhcxItpProjectNodeStateDao;
|
|
|
import com.rongwei.bscommon.sys.service.ZhcxItpProjectNodeStateService;
|
|
@@ -15,6 +16,7 @@ import org.springframework.stereotype.Service;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -57,7 +59,8 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
|
queryWrapper.eq(ZhcxItpProjectNodeStateDo::getPrjid, itpDo.getProjectid())
|
|
|
.eq(ZhcxItpProjectNodeStateDo::getMathinecode, mn)
|
|
|
.eq(ZhcxItpProjectNodeStateDo::getNodeid, itpDo.getInspectioncontentid());
|
|
|
- ZhcxItpProjectNodeStateDo stateDo = getOne(queryWrapper);
|
|
|
+ List<ZhcxItpProjectNodeStateDo> stateList = list(queryWrapper);
|
|
|
+ ZhcxItpProjectNodeStateDo stateDo = BusinessFunUtils.getPrjNodeState(stateList);
|
|
|
|
|
|
ZhcxItpProjectNodeStateResultDto dto = new ZhcxItpProjectNodeStateResultDto();
|
|
|
ZhcxItpProjectNodeStateDo entity = new ZhcxItpProjectNodeStateDo();
|