|
|
@ -688,7 +688,7 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
public String addExFund(CashCollection addFundsDTO) { |
|
|
public String addExFund(CashCollection addFundsDTO) { |
|
|
if (addFundsDTO.getPerformanceMarket() == null|| addFundsDTO.getPerformanceMarket().isEmpty()) |
|
|
if (addFundsDTO.getPerformanceMarket() == null|| addFundsDTO.getPerformanceMarket().isEmpty()) |
|
|
throw new IllegalArgumentException("业绩归属地区不能为空"); |
|
|
throw new IllegalArgumentException("业绩归属地区不能为空"); |
|
|
if (addFundsDTO.getIncomeType() == null|| addFundsDTO.getIncomeType().isEmpty()) |
|
|
|
|
|
|
|
|
if (addFundsDTO.getGoodsName() == null|| addFundsDTO.getGoodsName().isEmpty()) |
|
|
throw new IllegalArgumentException("收入类别不能为空"); |
|
|
throw new IllegalArgumentException("收入类别不能为空"); |
|
|
if (addFundsDTO.getPayType() == null|| addFundsDTO.getPayType().isEmpty()) |
|
|
if (addFundsDTO.getPayType() == null|| addFundsDTO.getPayType().isEmpty()) |
|
|
throw new IllegalArgumentException("付款方式不能为空"); |
|
|
throw new IllegalArgumentException("付款方式不能为空"); |
|
|
@ -700,9 +700,15 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
String orderNumber = UUID.randomUUID().toString().replaceAll("-", ""); |
|
|
String orderNumber = UUID.randomUUID().toString().replaceAll("-", ""); |
|
|
//构建订单信息 |
|
|
//构建订单信息 |
|
|
addFundsDTO.setOrderCode("QT_" + orderNumber); //订单号 |
|
|
addFundsDTO.setOrderCode("QT_" + orderNumber); //订单号 |
|
|
|
|
|
addFundsDTO.setStatus(4); |
|
|
|
|
|
addFundsDTO.setActivity("123"); |
|
|
|
|
|
addFundsDTO.setJwcode(90039082); |
|
|
|
|
|
addFundsDTO.setName("HomilyLink"); |
|
|
|
|
|
addFundsDTO.setMarket("24032"); |
|
|
addFundsDTO.setOrderType(1); |
|
|
addFundsDTO.setOrderType(1); |
|
|
addFundsDTO.setReceivedMarket(addFundsDTO.getPerformanceMarket()); |
|
|
addFundsDTO.setReceivedMarket(addFundsDTO.getPerformanceMarket()); |
|
|
addFundsDTO.setReceivedAmount(addFundsDTO.getPaymentAmount()); |
|
|
addFundsDTO.setReceivedAmount(addFundsDTO.getPaymentAmount()); |
|
|
|
|
|
addFundsDTO.setReceivedCurrency(addFundsDTO.getPaymentCurrency()); |
|
|
|
|
|
|
|
|
cashCollectionMapper.addExFund(addFundsDTO); |
|
|
cashCollectionMapper.addExFund(addFundsDTO); |
|
|
return "添加成功"; |
|
|
return "添加成功"; |
|
|
|