-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加 userId 到 PayOrderDO #555
base: master-jdk17
Are you sure you want to change the base?
添加 userId 到 PayOrderDO #555
Conversation
(cherry picked from commit 22ba34868e3d222822bd714a151059f0ed8df26b)
@@ -28,6 +28,10 @@ public class PayOrderCreateReqDTO implements Serializable { | |||
@NotEmpty(message = "用户 IP 不能为空") | |||
private String userIp; | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1、可以搞成非必传
2、建议 userType 也存储
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
userType
有必要记录么? 🤔
除了管理员使用管理端测试支付的时候会产生零星的几个交易订单以为, 其他的应该都是会员产生的了吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现有业务如此,但是有可能 admin 卖租户套餐,类似这种业务哈。
...-biz/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/order/vo/PayOrderBaseVO.java
Show resolved
Hide resolved
...z/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/order/vo/PayOrderPageReqVO.java
Outdated
Show resolved
Hide resolved
...odule-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/dal/dataobject/order/PayOrderDO.java
Outdated
Show resolved
Hide resolved
@@ -88,14 +88,18 @@ public class PayOrderDO extends BaseDO { | |||
private Integer channelFeePrice; | |||
/** | |||
* 支付状态 | |||
* | |||
* <p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种换行,不加哈。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 这个是 IDEA 格式化代码的时候自动加上去的...
我手动删掉以后再执行格式代码又会加上, 确定要删掉么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
去掉哈。
ps:代码不要批量格式化。。。最好是自己写出来,就是标准的哈。
@MentatBot can you review the pr? |
# Conflicts: # yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/convert/order/TradeOrderConvert.java # yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/service/demo/PayDemoOrderServiceImpl.java # yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/service/wallet/PayWalletRechargeServiceImpl.java
业务上经常需要通过用户 id 来进行支付订单的查询, 但目前只能通过用户 id 查询到交易 id, 再通过交易 id 来查询支付订单, 很麻烦.
NOTE: 需要同步修改未上传到 git 仓库的 sql 脚本.