|
@@ -4,9 +4,7 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.lang.Assert;
|
|
import cn.hutool.core.lang.Assert;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
-import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopPageReqVO;
|
|
|
|
|
-import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopRespVO;
|
|
|
|
|
-import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.SopSaveReqVO;
|
|
|
|
|
|
|
+import cn.iocoder.yudao.module.iscs.controller.admin.sop.vo.*;
|
|
|
import cn.iocoder.yudao.module.iscs.dal.dataobject.sop.SopDO;
|
|
import cn.iocoder.yudao.module.iscs.dal.dataobject.sop.SopDO;
|
|
|
import cn.iocoder.yudao.module.iscs.dal.mysql.sop.SopMapper;
|
|
import cn.iocoder.yudao.module.iscs.dal.mysql.sop.SopMapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -98,8 +96,20 @@ public class SopServiceImpl extends ServiceImpl<SopMapper, SopDO> implements Sop
|
|
|
SopDO sopDO = sopMapper.selectById(id);
|
|
SopDO sopDO = sopMapper.selectById(id);
|
|
|
Assert.isTrue(sopDO != null, "数据不存在!");
|
|
Assert.isTrue(sopDO != null, "数据不存在!");
|
|
|
SopRespVO bean = BeanUtils.toBean(sopDO, SopRespVO.class);
|
|
SopRespVO bean = BeanUtils.toBean(sopDO, SopRespVO.class);
|
|
|
|
|
+ // 查询SopUser
|
|
|
|
|
+ SopUserPageReqVO sopUserPageReqVO = new SopUserPageReqVO().setSopId(id);
|
|
|
|
|
+ List<SopUserRespVO> sopUserList = sopUserService.getSopUserList(sopUserPageReqVO);
|
|
|
|
|
+ // 查询SopPoints
|
|
|
|
|
+ SopPointsPageReqVO sopPointsPageReqVO = new SopPointsPageReqVO().setSopId(id);
|
|
|
|
|
+ List<SopPointsRespVO> sopPointsList = sopPointsService.getSopPointsList(sopPointsPageReqVO);
|
|
|
|
|
+ // 查询SopWorkflowStep
|
|
|
|
|
+ SopWorkflowStepPageReqVO sopWorkflowStepPageReqVO = new SopWorkflowStepPageReqVO().setSopId(id);
|
|
|
|
|
+ List<SopWorkflowStepRespVO> sopWorkflowStepList = sopWorkflowStepService.getSopWorkflowStepList(sopWorkflowStepPageReqVO);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 组装数据
|
|
|
|
|
+ bean.setSopUserList(sopUserList);
|
|
|
|
|
+ bean.setSopPointsList(sopPointsList);
|
|
|
|
|
+ bean.setSopStepList(sopWorkflowStepList);
|
|
|
return bean;
|
|
return bean;
|
|
|
}
|
|
}
|
|
|
|
|
|