|
@@ -21,6 +21,8 @@ import org.jeecg.modules.itdmGongDan.service.IItdmGongdanMasterService;
|
|
|
import org.jeecg.modules.itdmGongDan.service.IItdmTestPlanService;
|
|
|
import org.jeecg.modules.itdmGongDan.vo.ItdmGongdanDetailListVO;
|
|
|
import org.jeecg.modules.weituo.entity.ItdmWeituoInfo;
|
|
|
+import org.jeecg.modules.weituo.entity.ItdmWeituoYangpin;
|
|
|
+import org.jeecg.modules.weituo.mapper.ItdmWeituoYangpinMapper;
|
|
|
import org.jeecg.modules.weituo.service.IItdmWeituoInfoService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -57,6 +59,9 @@ public class ItdmGongdanDetailController extends JeecgController<ItdmGongdanDeta
|
|
|
@Autowired
|
|
|
@SuppressWarnings("all")
|
|
|
private IItdmWeituoInfoService iItdmWeituoInfoService;
|
|
|
+ @Autowired
|
|
|
+ @SuppressWarnings("all")
|
|
|
+ private ItdmWeituoYangpinMapper itdmWeituoYangpinMapper;
|
|
|
|
|
|
|
|
|
@ApiOperation(value="工单detail-分页列表查询", notes="工单detail-分页列表查询")
|
|
@@ -88,7 +93,8 @@ public class ItdmGongdanDetailController extends JeecgController<ItdmGongdanDeta
|
|
|
ItdmGongdanMaster master = iItdmGongdanMasterService.getById(i.getWoId());
|
|
|
ItdmTestPlan itdmTestPlan = master==null?null:itdmTestPlanService.getById(master.getJihuaShiyanId());
|
|
|
ItdmWeituoInfo itdmWeituoInfo = itdmTestPlan==null?null:iItdmWeituoInfoService.getById(itdmTestPlan.getWeituoId());
|
|
|
- return GongDanDetailConvert.INSTANCE.toList(i, master,itdmTestPlan,itdmWeituoInfo);
|
|
|
+ ItdmWeituoYangpin itdmWeituoYangpin = master==null?null:itdmWeituoYangpinMapper.selectById(master.getWeituoYangpinId());
|
|
|
+ return GongDanDetailConvert.INSTANCE.toList(i, master,itdmTestPlan,itdmWeituoInfo,itdmWeituoYangpin.getSampleModelSpecification());
|
|
|
}).collect(Collectors.toList());
|
|
|
return Result.OK(GongDanDetailConvert.INSTANCE.converter(pageList,list));
|
|
|
}else return Result.OK(new Page<ItdmGongdanDetailListVO>());
|