-
-
Notifications
You must be signed in to change notification settings - Fork 9k
添加企业微信审批详情总费用金额字段支持 #3859
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
base: develop
Are you sure you want to change the base?
添加企业微信审批详情总费用金额字段支持 #3859
Conversation
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
🤖 Augment PR Summary概述:本 PR 为企业微信「获取审批详情」结果补齐缺失的总费用金额字段,便于 SDK 用户直接读取接口返回的总金额数据。
🤖 Was this summary useful? React with 👍 or 👎 |
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.
Review completed. No suggestions at this time.
Comment augment review to trigger a new review at any time.
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.
Pull request overview
本 Pull Request 为企业微信审批详情接口添加了 sum_money(总费用金额)字段支持,解决了用户无法获取审批单总费用数据的问题。
变更内容:
- 在
WxCpApprovalDetailResult.WxCpApprovalDetail实体类中新增sumMoney字段(类型为Long,单位:分) - 添加完整的单元测试验证字段的序列化/反序列化功能以及向后兼容性
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/oa/WxCpApprovalDetailResult.java | 新增 sumMoney 字段及完整的 JavaDoc 注释,使用 @SerializedName("sum_money") 注解映射 JSON 字段 |
| weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImplTest.java | 添加 testApprovalDetailSumMoney() 测试方法,覆盖字段存在和不存在两种场景,确保向后兼容性 |
企业微信获取审批详情接口返回的
sum_money字段(总费用金额)未在 SDK 实体类中定义,导致用户无法获取该数据。变更内容
WxCpApprovalDetailResult.WxCpApprovalDetail:新增
sumMoney字段(映射 JSONsum_money)Long,单位:分nullWxCpOaServiceImplTest:添加单元测试验证字段序列化/反序列化及向后兼容性
使用示例
向后兼容,不影响现有代码。
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
developer.work.weixin.qq.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.