|
|
@ -67,6 +67,7 @@ import com.yxt.anrui.fin.api.kingdee.arreceivebill.ARReceivebill; |
|
|
|
import com.yxt.anrui.fin.api.kingdee.bdcustomer.BdCustomer; |
|
|
|
import com.yxt.anrui.fin.biz.finselectedreceivablesdetailed.FinSelectedReceivablesDetailedService; |
|
|
|
import com.yxt.anrui.fin.biz.finuncollectedreceivablesdetailed.FinUncollectedReceivablesDetailedService; |
|
|
|
import com.yxt.anrui.fin.biz.kingdee.FinKingDeeService; |
|
|
|
import com.yxt.anrui.fin.biz.kingdee.arreceivebill.ArReceivebillService; |
|
|
|
import com.yxt.anrui.fin.biz.kingdee.bdcustomer.BdCustomerService; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|
|
@ -153,6 +154,8 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl |
|
|
|
private BasePurchaseSystemFeign basePurchaseSystemFeign; |
|
|
|
@Autowired |
|
|
|
private LoanSolutionsFeign loanSolutionsFeign; |
|
|
|
@Autowired |
|
|
|
private FinKingDeeService finKingDeeService; |
|
|
|
|
|
|
|
private QueryWrapper<FinCollectionConfirmation> createQueryWrapper(FinCollectionConfirmationQuery query) { |
|
|
|
// todo: 这里根据具体业务调整查询条件
|
|
|
@ -3171,8 +3174,20 @@ public class FinCollectionConfirmationService extends MybatisBaseService<FinColl |
|
|
|
customerQuery.setOrgCode(orgCode); |
|
|
|
} |
|
|
|
} |
|
|
|
ResultBean<String> customerResultBean = crmCustomerTempFeign.checkCustomerOrUpdate(customerQuery); |
|
|
|
log.info("推送客户{}", customerResultBean); |
|
|
|
// ResultBean<String> customerResultBean = crmCustomerTempFeign.checkCustomerOrUpdate(customerQuery);
|
|
|
|
// log.info("推送客户{}", customerResultBean);
|
|
|
|
//根据客户编码查询金蝶中是否存在该客户
|
|
|
|
Boolean aBoolean = finKingDeeService.customerExistState(customerQuery.getCustomerNo()).getData(); |
|
|
|
if (!aBoolean) {//不存在则创建
|
|
|
|
BdCustomer bdCustomer = new BdCustomer(); |
|
|
|
bdCustomer.setFNumber(customerQuery.getCustomerNo()); |
|
|
|
bdCustomer.setFName(customerQuery.getCustomerName()); |
|
|
|
bdCustomer.setTOrgIds(customerQuery.getOrgCode()); |
|
|
|
ResultBean resultBean = bdCustomerService.draftBdCustomer(bdCustomer); |
|
|
|
log.info("推送客户{}", resultBean); |
|
|
|
}else{ |
|
|
|
log.info("已存在客户{}",customerQuery.getCustomerNo()); |
|
|
|
} |
|
|
|
return customerQuery.getCustomerNo(); |
|
|
|
} |
|
|
|
|
|
|
|