shikeying
2024-02-23 1d6e7763f4a30272cc0818ea12f83697b7375c45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
    }
}