Commit a0d1a5b91fe7fb645cf36dde365ade29e9bdf96b
1 parent
4350583e
feat(domain): 添加JsonIgnore注解隐藏敏感字段
- 在BaseMapping类中添加verifyInformation字段的@JsonIgnore注解 - 在BaseMapping类中添加returnKeys字段的@JsonIgnore注解 - 引入com.fasterxml.jackson.annotation.JsonIgnore包 --- feat(doc): 更新生产字段配置文档 - 添加settleMethod结算方式配置示例 - 补充对应的JSON配置结构说明
Showing
2 changed files
with
14 additions
and
0 deletions
doc/生产字段配置.md
| @@ -1282,6 +1282,17 @@ PLAT_WITHDRAW(7, "平台提现") | @@ -1282,6 +1282,17 @@ PLAT_WITHDRAW(7, "平台提现") | ||
| 1282 | } | 1282 | } |
| 1283 | ``` | 1283 | ``` |
| 1284 | 1284 | ||
| 1285 | +### 2.10 settleMethod 结算方式 | ||
| 1286 | +```json | ||
| 1287 | +{ | ||
| 1288 | + "pipelineId": 2, | ||
| 1289 | + "documentType": "AR_receivable", | ||
| 1290 | + "configKey": "settleMethod", | ||
| 1291 | + "settingFieldType": 0, | ||
| 1292 | + "fixedValue": "1" | ||
| 1293 | +} | ||
| 1294 | +``` | ||
| 1295 | + | ||
| 1285 | ## 3.收款单配置JSON | 1296 | ## 3.收款单配置JSON |
| 1286 | 1297 | ||
| 1287 | ### 3.1 currency 币别 | 1298 | ### 3.1 currency 币别 |
tax-central/src/main/java/com/diligrp/tax/central/domain/BaseMapping.java
| 1 | package com.diligrp.tax.central.domain; | 1 | package com.diligrp.tax.central.domain; |
| 2 | 2 | ||
| 3 | +import com.fasterxml.jackson.annotation.JsonIgnore; | ||
| 3 | import lombok.Getter; | 4 | import lombok.Getter; |
| 4 | import lombok.Setter; | 5 | import lombok.Setter; |
| 5 | 6 | ||
| @@ -11,6 +12,8 @@ import lombok.Setter; | @@ -11,6 +12,8 @@ import lombok.Setter; | ||
| 11 | @Getter | 12 | @Getter |
| 12 | @Setter | 13 | @Setter |
| 13 | public abstract class BaseMapping { | 14 | public abstract class BaseMapping { |
| 15 | + @JsonIgnore | ||
| 14 | private String verifyInformation; | 16 | private String verifyInformation; |
| 17 | + @JsonIgnore | ||
| 15 | private String returnKeys; | 18 | private String returnKeys; |
| 16 | } | 19 | } |