提交 003738ac authored 作者: jiangwenye's avatar jiangwenye

增加开票公司信息

上级 8a175426
...@@ -64,8 +64,8 @@ public class OwnerSettlementOwnerController { ...@@ -64,8 +64,8 @@ public class OwnerSettlementOwnerController {
@ApiOperation(value = "获取违约结算平台收款账号",notes = "<br>By:姜文业") @ApiOperation(value = "获取违约结算平台收款账号",notes = "<br>By:姜文业")
@GetMapping("/getBreakSettlementPlatformAccount") @GetMapping("/getBreakSettlementPlatformAccount")
public Result<SettlementPlatformAccountVO> getBreakSettlementPlatformAccount() { public Result<SettlementPlatformAccountVO> getBreakSettlementPlatformAccount(@NotNull(message = "id不能为空") Integer id) {
return Result.ok(settlementOwnerService.getBreakSettlementPlatformAccount()); return Result.ok(settlementOwnerService.getBreakSettlementPlatformAccount(id));
} }
@ApiOperation(value = "付款接口",notes = "<br>By:李瑞新") @ApiOperation(value = "付款接口",notes = "<br>By:李瑞新")
......
...@@ -396,13 +396,14 @@ public class BreakContractSettlementOwnerServiceImpl implements BreakContractSe ...@@ -396,13 +396,14 @@ public class BreakContractSettlementOwnerServiceImpl implements BreakContractSe
}*/ }*/
//货主账号 //货主账号
BreakContractSettlementOwner settlementOwner = breakContractSettlementOwnerDao.getEntityByKey(id).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND); BreakContractSettlementOwner settlementOwner = breakContractSettlementOwnerDao.getEntityByKey(id).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
FeignOrderVO orderInfoFeign = orderFeign.getOrderInfoFeign(settlementOwner.getOrderNo());
List<CarrierPagePlatformAccountConfigVO> configs = List<CarrierPagePlatformAccountConfigVO> configs =
platformAccountConfigService.getPlatformAccountConfigByType( platformAccountConfigService.getPlatformAccountConfigByType(
PlatformAccountConfigEnum.BusinessType.BREAK.getCode(), PlatformAccountConfigEnum.BusinessType.BREAK.getCode(),
PlatformAccountConfigEnum.OwnerType.COMPANY.getCode(), PlatformAccountConfigEnum.OwnerType.COMPANY.getCode(),
null, null,
null, orderInfoFeign.getInvoicingCompanyId(),
PlatformAccountConfigEnum.ConfigRange.PAY.getCode()); PlatformAccountConfigEnum.ConfigRange.PAY.getCode());
if(CollectionUtils.isEmpty(configs)){ if(CollectionUtils.isEmpty(configs)){
throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_IS_NULL); throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_IS_NULL);
......
...@@ -3,7 +3,10 @@ package com.clx.performance.service.impl.settle; ...@@ -3,7 +3,10 @@ package com.clx.performance.service.impl.settle;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clx.order.feign.OrderFeign;
import com.clx.order.vo.feign.FeignOrderVO;
import com.clx.performance.component.NetworkSyncComponent; import com.clx.performance.component.NetworkSyncComponent;
import com.clx.performance.dao.breakcontract.BreakContractSettlementOwnerDao;
import com.clx.performance.dao.settle.SettlementLogDao; import com.clx.performance.dao.settle.SettlementLogDao;
import com.clx.performance.dao.settle.SettlementOwnerDao; import com.clx.performance.dao.settle.SettlementOwnerDao;
import com.clx.performance.dao.settle.SettlementOwnerDetailDao; import com.clx.performance.dao.settle.SettlementOwnerDetailDao;
...@@ -13,6 +16,7 @@ import com.clx.performance.enums.OrderChildLogEnum; ...@@ -13,6 +16,7 @@ import com.clx.performance.enums.OrderChildLogEnum;
import com.clx.performance.enums.PerformanceResultEnum; import com.clx.performance.enums.PerformanceResultEnum;
import com.clx.performance.enums.PlatformAccountConfigEnum; import com.clx.performance.enums.PlatformAccountConfigEnum;
import com.clx.performance.enums.settle.*; import com.clx.performance.enums.settle.*;
import com.clx.performance.model.breakcontract.BreakContractSettlementOwner;
import com.clx.performance.model.settle.SettlementLog; import com.clx.performance.model.settle.SettlementLog;
import com.clx.performance.model.settle.SettlementOwner; import com.clx.performance.model.settle.SettlementOwner;
import com.clx.performance.model.settle.SettlementOwnerDetail; import com.clx.performance.model.settle.SettlementOwnerDetail;
...@@ -79,6 +83,8 @@ public class SettlementOwnerServiceImpl implements SettlementOwnerService { ...@@ -79,6 +83,8 @@ public class SettlementOwnerServiceImpl implements SettlementOwnerService {
private final SettlementMqHandlerService settlementMqHandlerService; private final SettlementMqHandlerService settlementMqHandlerService;
private final PlatformAccountConfigService platformAccountConfigService; private final PlatformAccountConfigService platformAccountConfigService;
private final OrderFeign orderFeign;
private final BreakContractSettlementOwnerDao breakContractSettlementOwnerDao;
...@@ -178,7 +184,7 @@ public class SettlementOwnerServiceImpl implements SettlementOwnerService { ...@@ -178,7 +184,7 @@ public class SettlementOwnerServiceImpl implements SettlementOwnerService {
} }
@Override @Override
public SettlementPlatformAccountVO getBreakSettlementPlatformAccount() { public SettlementPlatformAccountVO getBreakSettlementPlatformAccount(Integer id) {
//平台账号 //平台账号
//SettlementPlatformAccount platformAccount = settlementPlatformAccountDao.getSettlementPlatformAccount(); //SettlementPlatformAccount platformAccount = settlementPlatformAccountDao.getSettlementPlatformAccount();
...@@ -190,12 +196,15 @@ public class SettlementOwnerServiceImpl implements SettlementOwnerService { ...@@ -190,12 +196,15 @@ public class SettlementOwnerServiceImpl implements SettlementOwnerService {
vo.setPayeeBankName(platformAccount.getBankName()); vo.setPayeeBankName(platformAccount.getBankName());
}*/ }*/
BreakContractSettlementOwner settlementOwner = breakContractSettlementOwnerDao.getEntityByKey(id).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
FeignOrderVO orderInfoFeign = orderFeign.getOrderInfoFeign(settlementOwner.getOrderNo());
List<CarrierPagePlatformAccountConfigVO> configs = List<CarrierPagePlatformAccountConfigVO> configs =
platformAccountConfigService.getPlatformAccountConfigByType( platformAccountConfigService.getPlatformAccountConfigByType(
PlatformAccountConfigEnum.BusinessType.BREAK.getCode(), PlatformAccountConfigEnum.BusinessType.BREAK.getCode(),
PlatformAccountConfigEnum.OwnerType.COMPANY.getCode(), PlatformAccountConfigEnum.OwnerType.COMPANY.getCode(),
null, null,
null, orderInfoFeign.getInvoicingCompanyId(),
PlatformAccountConfigEnum.ConfigRange.COLLECTION.getCode()); PlatformAccountConfigEnum.ConfigRange.COLLECTION.getCode());
if(CollectionUtils.isEmpty(configs)){ if(CollectionUtils.isEmpty(configs)){
throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_IS_NULL); throw new ServiceSystemException(PerformanceResultEnum.PLATFORM_ACCOUNT_CONFIG_IS_NULL);
......
...@@ -21,7 +21,7 @@ public interface SettlementOwnerService { ...@@ -21,7 +21,7 @@ public interface SettlementOwnerService {
SettlementPlatformAccountVO getSettlementPlatformAccount(); SettlementPlatformAccountVO getSettlementPlatformAccount();
SettlementPlatformAccountVO getBreakSettlementPlatformAccount(); SettlementPlatformAccountVO getBreakSettlementPlatformAccount(Integer id);
SettlementPlatformAccountVO getCarrierSettlementPlatformAccount(String settlementNo); SettlementPlatformAccountVO getCarrierSettlementPlatformAccount(String settlementNo);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论