|
@@ -96,6 +96,10 @@ public class WarehousingOrderServiceImpl extends ServiceImpl<WarehousingOrderMap
|
|
|
private IPaymentManagementService paymentManagementService;
|
|
|
@Autowired
|
|
|
private IContractInventoryDistributionService contractInventoryDistributionService;
|
|
|
+ @Autowired
|
|
|
+ private ICustomerInfoService customerInfoService;
|
|
|
+ @Autowired
|
|
|
+ private IIdentityAuthenticationInfoService identityAuthenticationInfoService;
|
|
|
@Value("${file-root-path}")
|
|
|
private String localPath;
|
|
|
@Autowired
|
|
@@ -235,6 +239,35 @@ public class WarehousingOrderServiceImpl extends ServiceImpl<WarehousingOrderMap
|
|
|
.eq("comp_id", warehousingOrder2.getCompId()));
|
|
|
if (contractManagementInfo != null) {
|
|
|
warehousingOrder2.setBuyer(contractManagementInfo.getBuyer());
|
|
|
+ //采购入库客户信息
|
|
|
+ if ("采购入库".equals(warehousingOrder2.getInType())){
|
|
|
+ CustomerInfo customerInfo = customerInfoService.selectOne(new EntityWrapper<CustomerInfo>().eq("comp_id",warehousingOrder2.getCompId())
|
|
|
+ .andNew().eq("comp_name", contractManagementInfo.getSeller()).or()
|
|
|
+ .eq("customer_name", contractManagementInfo.getSeller()));
|
|
|
+ if (customerInfo != null) {
|
|
|
+ if (customerInfo.getCompName() != null){
|
|
|
+ warehousingOrder2.setCustomerName(customerInfo.getCompName());
|
|
|
+ }else {
|
|
|
+ warehousingOrder2.setCustomerName(customerInfo.getCustomerName());
|
|
|
+ }
|
|
|
+ warehousingOrder2.setBankCard(customerInfo.getBankCard());
|
|
|
+ warehousingOrder2.setBankDeposit(customerInfo.getBankDeposit());
|
|
|
+ warehousingOrder2.setBankDepositBranch(customerInfo.getBankDepositBranch());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //采购入库客户信息
|
|
|
+ else if ("收购入库".equals(warehousingOrder2.getInType())){
|
|
|
+ IdentityAuthenticationInfo identityAuthenticationInfo = identityAuthenticationInfoService.selectOne(new EntityWrapper<IdentityAuthenticationInfo>()
|
|
|
+ .eq("customer_name",warehousingOrder2.getCustomer())
|
|
|
+ .eq("authentication_status_key","7")
|
|
|
+ .eq("comp_id",warehousingOrder2.getCompId()));
|
|
|
+ if (identityAuthenticationInfo != null){
|
|
|
+ warehousingOrder2.setCustomerName(identityAuthenticationInfo.getCustomerName());
|
|
|
+ warehousingOrder2.setBankCard(identityAuthenticationInfo.getBankCard());
|
|
|
+ warehousingOrder2.setBankDeposit(identityAuthenticationInfo.getBankDeposit());
|
|
|
+ warehousingOrder2.setBankDepositBranch(identityAuthenticationInfo.getBankDepositBranch());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
List<ExpenseAllocationInfo> expenseAllocationInfos=expenseAllocationInfoService.selectList(new EntityWrapper<ExpenseAllocationInfo>()
|