Skip to content
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

Open
wants to merge 10 commits into
base: master-jdk17
Choose a base branch
from

Conversation

DevDengChao
Copy link
Contributor

业务上经常需要通过用户 id 来进行支付订单的查询, 但目前只能通过用户 id 查询到交易 id, 再通过交易 id 来查询支付订单, 很麻烦.

NOTE: 需要同步修改未上传到 git 仓库的 sql 脚本.

@@ -28,6 +28,10 @@ public class PayOrderCreateReqDTO implements Serializable {
@NotEmpty(message = "用户 IP 不能为空")
private String userIp;


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1、可以搞成非必传
2、建议 userType 也存储

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

userType 有必要记录么? 🤔
除了管理员使用管理端测试支付的时候会产生零星的几个交易订单以为, 其他的应该都是会员产生的了吧?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现有业务如此,但是有可能 admin 卖租户套餐,类似这种业务哈。

@@ -88,14 +88,18 @@ public class PayOrderDO extends BaseDO {
private Integer channelFeePrice;
/**
* 支付状态
*
* <p>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种换行,不加哈。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 这个是 IDEA 格式化代码的时候自动加上去的...
我手动删掉以后再执行格式代码又会加上, 确定要删掉么?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去掉哈。

ps:代码不要批量格式化。。。最好是自己写出来,就是标准的哈。

@YunaiV
Copy link
Owner

YunaiV commented Aug 16, 2024

@MentatBot can you review the pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants