shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
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;
    }
}