|
@@ -116,10 +116,6 @@ public class ContractFileServiceImpl extends ServiceImpl<ContractFileMapper, Con
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public ContractFile getContractFileById(String id) {
|
|
|
- return contractFileMapper.getContractFileById(id);
|
|
|
- }
|
|
|
|
|
|
/**新增所有子表*/
|
|
|
public void saveChildAll(ContractFile contractFile){
|
|
@@ -193,4 +189,22 @@ public class ContractFileServiceImpl extends ServiceImpl<ContractFileMapper, Con
|
|
|
contractFileAndBusiness.setDelFlag("1");
|
|
|
iContractFileAndBusinessService.update(contractFileAndBusiness,contractFileAndBusinessQueryWrapper);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ContractFile getContractFileById(String id) {
|
|
|
+ ContractFile contractFile=contractFileMapper.getContractFileById(id);
|
|
|
+ if(contractFile!=null){
|
|
|
+ //获取产品
|
|
|
+ QueryWrapper<ContractFileProduct> productQueryWrapper=new QueryWrapper<>();
|
|
|
+ productQueryWrapper.lambda().eq(ContractFileProduct::getDelFlag,"0");
|
|
|
+ productQueryWrapper.lambda().eq(ContractFileProduct::getContractFileId,contractFile.getId());
|
|
|
+ productQueryWrapper.lambda().orderByAsc(ContractFileProduct::getSort);
|
|
|
+ List<ContractFileProduct> productList=iContractFileProductService.list(productQueryWrapper);
|
|
|
+ //获取模块
|
|
|
+// QueryWrapper<ContractFileModular>
|
|
|
+ }
|
|
|
+ return contractFileMapper.getContractFileById(id);
|
|
|
+ }
|
|
|
+
|
|
|
}
|