|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.jeecg.config.JeecgBaseConfig;
|
|
|
+import org.jeecg.modules.Itdmgongdanshuju.mapper.ItdmGongdanShujuMapper;
|
|
|
import org.jeecg.modules.baogao.convert.BaogaoConvert;
|
|
|
import org.jeecg.modules.baogao.dto.ItdmBaogaoCreateDTO;
|
|
|
import org.jeecg.modules.baogao.entity.ItdmBaogao;
|
|
@@ -84,6 +85,10 @@ public class ItdmBaogaoServiceImpl extends ServiceImpl<ItdmBaogaoMapper, ItdmBao
|
|
|
private ItdmChuanganqiMapper chuangeMapper;
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ItdmGongdanShujuMapper itdmGongdanShujuMapper;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public Page<ItdmBaogaoListVO> pageVO(Page<ItdmBaogao> pageVO, QueryWrapper<ItdmBaogao> queryWrapper) {
|
|
|
|
|
@@ -195,6 +200,11 @@ public class ItdmBaogaoServiceImpl extends ServiceImpl<ItdmBaogaoMapper, ItdmBao
|
|
|
map.put("daqiya", dto.getDaqiya());
|
|
|
map.putAll(PoiTiUtils.getBaogaoImage(getBaogaoImage(dto)));
|
|
|
|
|
|
+ map.putAll(PoiTiUtils.getYSdata(getBaogaoShuju(dto)));
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -206,6 +216,15 @@ public class ItdmBaogaoServiceImpl extends ServiceImpl<ItdmBaogaoMapper, ItdmBao
|
|
|
.stream().distinct().collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
+ private List<String> getBaogaoShuju(ItdmBaogaoCreateDTO dto) {
|
|
|
+
|
|
|
+
|
|
|
+ return tdmTestPlanMapper.getImageByShiyanid(dto.getTestItemsIds())
|
|
|
+ .stream().distinct().collect(Collectors.toList());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
private List<ItdmDevice> getDeviceList(List<String> list) {
|
|
|
|
|
|
|