master
胡锐 1 year ago
parent 8f173d8363
commit 7dcbf23b19
  1. 3
      schedule/src/main/java/com/hfkj/schedule/TransferSchedule.java
  2. 2
      service/src/main/java/com/hfkj/service/rebate/impl/BsRebateMerAccountOrderServerImpl.java

@ -88,7 +88,7 @@ public class TransferSchedule {
startTime.set(Calendar.SECOND, 00);
Calendar endTime = Calendar.getInstance();
startTime.add(Calendar.DAY_OF_MONTH, -1);
endTime.add(Calendar.DAY_OF_MONTH, -1);
endTime.setTime(new Date());
endTime.set(Calendar.HOUR_OF_DAY, 00);
endTime.set(Calendar.MINUTE, 00);
@ -113,6 +113,7 @@ public class TransferSchedule {
transferAccounts.setOrderNo("1000"+System.currentTimeMillis()+"");
transferAccounts.setAmount(new BigDecimal(MapUtils.getString(param, "totalPrice")));
transferAccounts.setRebateTransferCycleIdentifier(transferCycle.getId());
transferAccounts.setContent(DateUtil.date2String(startTime.getTime(),"yyyy-MM-dd") + "活动结算");
transferAccountsService.transfer(transferAccounts);
}
} catch (Exception e) {

@ -81,7 +81,7 @@ public class BsRebateMerAccountOrderServerImpl implements BsRebateMerAccountOrde
RebateMerAccountTradeObject accountTradeObject = new RebateMerAccountTradeObject();
accountTradeObject.setTradeObjectType(RebateMerAccountObjectTypeEnum.type1);
accountTradeObject.setTradeObjectId(accountOrder.getId());
accountTradeObject.setTradeObjectContent(Objects.requireNonNull(TradeOrderPayModeEnum.getNameByCode(accountOrder.getPayType())).getName()+"充值:" + accountTradeObject.getTradeObjectContent() + "元");
accountTradeObject.setTradeObjectContent(Objects.requireNonNull(TradeOrderPayModeEnum.getNameByCode(accountOrder.getPayType())).getName()+"充值:" + accountOrder.getTradePrice() + "元");
rebateMerAccountService.income(accountOrder.getAccountNumber(),accountOrder.getTradePrice(),accountTradeObject);
}
} else {

Loading…
Cancel
Save