|
@@ -80,6 +80,9 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
|
@Autowired
|
|
|
private CXCommonFeginClient autoCommonFeginClient;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ZhcxCommissionCheckBaseInfoTreeService zhcxCommissionCheckBaseInfoTreeService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private ExcelUtils excelUtils;
|
|
|
|
|
@@ -129,6 +132,20 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
|
if(setDetails.isEmpty()){
|
|
|
return R.error("项目不能为空");
|
|
|
}
|
|
|
+ String productTypeId = check.getProductTypeId();
|
|
|
+ if(StringUtils.isEmpty(productTypeId)){
|
|
|
+ return R.error("引用标准库不能为空");
|
|
|
+ }
|
|
|
+ LambdaQueryWrapper<ZhcxCommissionCheckBaseInfoTreeDo> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(ZhcxCommissionCheckBaseInfoTreeDo::getDeleted,"0")
|
|
|
+ .eq(ZhcxCommissionCheckBaseInfoTreeDo::getBaseinfoid,productTypeId);
|
|
|
+ List<ZhcxCommissionCheckBaseInfoTreeDo> list = zhcxCommissionCheckBaseInfoTreeService.list(queryWrapper);
|
|
|
+ if(list.size() > 0){
|
|
|
+ list.forEach(tree -> {
|
|
|
+ tree.setId(tree.getId()+check.getProjectcode());
|
|
|
+ });
|
|
|
+ zhcxCommissionCheckBaseInfoTreeService.saveBatch(list);
|
|
|
+ }
|
|
|
// 试车子表
|
|
|
List<ZhcxCommissionCheckDetailDo> checkDetails = checkDTO.getCheckDetails();
|
|
|
// 查询已保存过的子表数据(平台bug,已保存的数据只能去数据库中查)
|