|
@@ -103,7 +103,11 @@ public class RuleAccountThresholdServiceImpl extends ServiceImpl<RuleAccountThre
|
|
|
}
|
|
|
String threshold = ruleJson.getString("threshold");
|
|
|
RuleAccountThreshold updateThreshold = new RuleAccountThreshold();
|
|
|
- updateThreshold.setThreshold(threshold);
|
|
|
+ if (Check.isNull(threshold)) {
|
|
|
+ updateThreshold.setThreshold(null);
|
|
|
+ } else {
|
|
|
+ updateThreshold.setThreshold(threshold);
|
|
|
+ }
|
|
|
QueryWrapper<RuleAccountThreshold> updateQueryWrapper = new QueryWrapper();
|
|
|
updateQueryWrapper.eq("account_id", accountId);
|
|
|
updateQueryWrapper.eq("rule_id", ruleId);
|