Commit 7b8c2b61 authored by Administrator's avatar Administrator

创建项目

parent de507dea
......@@ -10,9 +10,11 @@ import cn.quant.spring.util.DateUtils;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import static cn.quant.baa.pay.Constant.MINI_LOCAL_DATE;
import static cn.quant.baa.pay.Constant.PAY_DUE_TIME;
/**
* Created by Administrator on 2021/8/27 0027.
......@@ -135,13 +137,12 @@ public class EntityBuilder {
}
public static BatchCycleTriggerEntity payTrigger(Long triggerId, TransactionSummaryEntity history) {
Date now = DateUtils.now();
BatchCycleTriggerEntity entity = new BatchCycleTriggerEntity();
entity.setAccountId(history.getAccountId());
entity.setChanNotifyStatus(StatusCode.PEND);
entity.setEntityCode(history.getTxnType());
entity.setMchNotifyStatus(StatusCode.PEND);
entity.setPayDueTime(DateUtils.toLocalDateTime(now).plusMinutes(30));
entity.setPayDueTime(LocalDateTime.now().plus(PAY_DUE_TIME));
entity.setTargetId(history.getTransactionId());
entity.setTriggerId(triggerId);
entity.setPartitionKey(history.getPartitionKey());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment