package com.iplatform.pay.util;
|
|
import com.iplatform.model.po.S_pay_notify;
|
import com.walker.infrastructure.utils.DateUtils;
|
import com.walker.pay.NotifyValue;
|
|
public class NotifyUtils {
|
|
/**
|
* 组装一个基础的支付通知对象,后续还要设置其他参数。
|
* @param notifyValue 系统返回的通知包装对象。
|
* @return
|
* @date 2023-03-01
|
*/
|
public static final S_pay_notify acquireCombineBaseNotify(NotifyValue<?> notifyValue){
|
S_pay_notify s_pay_notify = new S_pay_notify();
|
s_pay_notify.setOrder_id(Long.parseLong(notifyValue.getOrderId()));
|
s_pay_notify.setNotify_id(notifyValue.getId());
|
s_pay_notify.setCreate_time(DateUtils.getDateTimeNumber(System.currentTimeMillis()));
|
s_pay_notify.setNotify_type(notifyValue.getDataType());
|
s_pay_notify.setTrade_no(notifyValue.getTradeNo());
|
return s_pay_notify;
|
}
|
}
|