-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mis): 增加配置消费记录精度、最小作业消费金额的功能,默认精度为 2 位小数,默认最小消费金额为 0.01 (#1388)
## 做了什么 1、增加配置消费记录精度,默认精度为 2 位小数; 2、最小消费金额的功能默认最小消费金额为 0.01; 3、账户、租户的余额展示精度与消费记录精度一致; 4、充值金额展示的小数位与消费记录的精度保持一致; 5、充值时数值输入框精度与消费记录的精度保持一致。 ## 注意 - 如果您想保持之前的版本中的计费逻辑,需要增加配置如下: ```yaml title="config/mis.yaml" jobChargeDecimalPrecision: 3 jobMinCharge : 0 ``` - 如果您设置的最小作业消费金额小于消费记录精度的最小值,scow在启动的时候会抛出错误 --------- Co-authored-by: Chen Junda <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,193 additions
and
96 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@scow/mis-server": patch | ||
"@scow/mis-web": patch | ||
--- | ||
|
||
增加配置消费记录精度,默认精度为 2 位小数; | ||
增加最小作业消费金额的功能,默认最小作业消费金额为 0.01; | ||
账户、租户的余额展示精度与消费记录精度一致; | ||
充值金额展示的小数位与消费记录的精度保持一致; | ||
充值时数值输入框精度与消费记录的精度保持一致。 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@scow/config": patch | ||
--- | ||
|
||
增加配置消费记录精度、最小消费金额的功能,默认精度为 2 位小数,默认最小消费金额为 0.01。 | ||
### 注意:此更新必定影响作业计费结果(除非您以前所有计费项价格皆为0)如果您不想更改之前的版本中的计费逻辑,需要增加配置如下: | ||
|
||
```yaml title="config/mis.yaml" | ||
jobChargeDecimalPrecision: 3 | ||
jobMinCharge : 0 | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,3 @@ db: | |
|
||
periodicSyncUserAccountBlockStatus: | ||
enabled: false | ||
|
||
|
This file contains 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
This file contains 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
Oops, something went wrong.