|
@@ -32,6 +32,7 @@ import com.fjhx.customer.entity.customer.po.Customer;
|
|
|
import com.fjhx.customer.service.customer.CustomerService;
|
|
|
import com.fjhx.file.entity.FileInfoVo;
|
|
|
import com.fjhx.file.utils.ObsFileUtil;
|
|
|
+import com.fjhx.flow.service.flow.FlowExampleService;
|
|
|
import com.fjhx.item.entity.product.dto.ProductInfoSelectDto;
|
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
|
import com.fjhx.purchase.entity.arrival.po.ArrivalDetail;
|
|
@@ -151,6 +152,9 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
@Autowired
|
|
|
private QualityDetailService qualityDetailService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FlowExampleService flowExampleService;
|
|
|
+
|
|
|
/**
|
|
|
* 分页
|
|
|
*
|
|
@@ -201,26 +205,31 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
// 获取包装附件
|
|
|
Map<Long, List<FileInfoVo>> packageFileMap = ObsFileUtil.getFileMap(ids, 2);
|
|
|
for (ContractVo p : list) {
|
|
|
- if (MapUtils.isNotEmpty(cusMap)) {//客户
|
|
|
+
|
|
|
+ // 客户
|
|
|
+ if (MapUtils.isNotEmpty(cusMap)) {
|
|
|
List<Customer> customers = cusMap.getOrDefault(p.getBuyCorporationId(), null);
|
|
|
p.setBuyCorporationName(customers == null ? null : customers.get(0).getName());
|
|
|
- //赋值客户标签
|
|
|
+ // 赋值客户标签
|
|
|
p.setTag(customers == null ? null : customers.get(0).getTag());
|
|
|
}
|
|
|
|
|
|
- // 赋值交接单附件
|
|
|
- if (MapUtils.isNotEmpty(fileMap)) {
|
|
|
- List<FileInfoVo> fileInfoVos = fileMap.get(p.getId());
|
|
|
- p.setFileInfoVos(fileInfoVos);
|
|
|
- }
|
|
|
+ // 赋值交接单附件
|
|
|
+ if (MapUtils.isNotEmpty(fileMap)) {
|
|
|
+ List<FileInfoVo> fileInfoVos = fileMap.get(p.getId());
|
|
|
+ p.setFileInfoVos(fileInfoVos);
|
|
|
+ }
|
|
|
|
|
|
- // 赋值包装附件信息
|
|
|
- if (MapUtils.isNotEmpty(packageFileMap)) {
|
|
|
- List<FileInfoVo> packageFileInfoVOList = packageFileMap.get(p.getId());
|
|
|
- p.setPackageFileInfoVOList(packageFileInfoVOList);
|
|
|
- }
|
|
|
+ // 赋值包装附件信息
|
|
|
+ if (MapUtils.isNotEmpty(packageFileMap)) {
|
|
|
+ List<FileInfoVo> packageFileInfoVOList = packageFileMap.get(p.getId());
|
|
|
+ p.setPackageFileInfoVOList(packageFileInfoVOList);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ // 赋值流程id
|
|
|
+ flowExampleService.setFlowId(list, ContractVo::setFlowId);
|
|
|
}
|
|
|
return page;
|
|
|
}
|