Commit 401ebf7d by Jony.L

wpgj支付 魔法数字

parent a337f9df
......@@ -12,6 +12,8 @@ import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import static com.luhu.computility.module.pay.enums.WpgjOrderStatusEnum.WAITING;
/**
* WPGJ旺铺聚合支付订单 API 实现类
*
......@@ -41,7 +43,7 @@ public class PayOrderWpgjApiImpl implements PayOrderWpgjApi {
wpgjOrder.setOrderNo(reqDTO.getOrderNo());
wpgjOrder.setOrderTitle(reqDTO.getOrderTitle());
wpgjOrder.setOrderAmt(reqDTO.getOrderAmt()); // 单位:元
wpgjOrder.setOrderStatus("0"); // 0-处理中
wpgjOrder.setOrderStatus(WAITING.getStatus()); // 0-处理中
wpgjOrder.setOrderTime(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")));
// orderId字段在WPGJ回调时才会设置,创建时保持null
......
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 sign in to comment