Merged
Conversation
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add total cost field to approval detail result
添加企业微信审批详情总费用金额字段支持
Jan 19, 2026
🤖 Augment PR Summary概述:本 PR 为企业微信「获取审批详情」结果补齐缺失的总费用金额字段,便于 SDK 用户直接读取接口返回的总金额数据。
🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
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() 测试方法,覆盖字段存在和不存在两种场景,确保向后兼容性 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
企业微信获取审批详情接口返回的
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.