|
@@ -43,7 +43,7 @@ public class AdminUserIntegralController {
|
|
|
String rules=commonInfoService.findOne(437).getValue();
|
|
String rules=commonInfoService.findOne(437).getValue();
|
|
|
String[] split = rules.split(",",5);
|
|
String[] split = rules.split(",",5);
|
|
|
//积分过期规则 -1永不过期
|
|
//积分过期规则 -1永不过期
|
|
|
- String overdue= commonInfoService.findOne(438).getValue();
|
|
|
|
|
|
|
+// String overdue= commonInfoService.findOne(438).getValue();
|
|
|
//每笔订单积分上限
|
|
//每笔订单积分上限
|
|
|
String maxIntegral= commonInfoService.findOne(439).getValue();
|
|
String maxIntegral= commonInfoService.findOne(439).getValue();
|
|
|
result.put("flag",flag);
|
|
result.put("flag",flag);
|
|
@@ -52,8 +52,8 @@ public class AdminUserIntegralController {
|
|
|
result.put("ruleMaxAmount",split[2]);
|
|
result.put("ruleMaxAmount",split[2]);
|
|
|
result.put("ruleAmount2",split[3]);
|
|
result.put("ruleAmount2",split[3]);
|
|
|
result.put("ruleValue2",split[4]);
|
|
result.put("ruleValue2",split[4]);
|
|
|
- result.put("overdue",overdue);
|
|
|
|
|
- result.put("overdueFlag","-1".equals(overdue)?"0":"1");
|
|
|
|
|
|
|
+// result.put("overdue",overdue);
|
|
|
|
|
+// result.put("overdueFlag","-1".equals(overdue)?"0":"1");
|
|
|
result.put("maxIntegral",maxIntegral);
|
|
result.put("maxIntegral",maxIntegral);
|
|
|
return Result.success().put("data", result);
|
|
return Result.success().put("data", result);
|
|
|
}
|
|
}
|
|
@@ -61,7 +61,7 @@ public class AdminUserIntegralController {
|
|
|
@ApiOperation("管理端更新积分规则")
|
|
@ApiOperation("管理端更新积分规则")
|
|
|
@PostMapping(value = "updateIntegralRules")
|
|
@PostMapping(value = "updateIntegralRules")
|
|
|
public Result updateIntegralRules(IntegralRulesDto irDto){
|
|
public Result updateIntegralRules(IntegralRulesDto irDto){
|
|
|
- if(irDto.getRuleAmount1().compareTo(irDto.getRuleMaxAmount())>=0){
|
|
|
|
|
|
|
+ if(Integer.parseInt(irDto.getRuleAmount1())>Integer.parseInt((irDto.getRuleMaxAmount()))){
|
|
|
return Result.error("门限金额不能小于规则一金额");
|
|
return Result.error("门限金额不能小于规则一金额");
|
|
|
}
|
|
}
|
|
|
String rules=irDto.getRuleAmount1()+","+irDto.getRuleValue1()+","+irDto.getRuleMaxAmount()+","+irDto.getRuleAmount2()+
|
|
String rules=irDto.getRuleAmount1()+","+irDto.getRuleValue1()+","+irDto.getRuleMaxAmount()+","+irDto.getRuleAmount2()+
|
|
@@ -75,9 +75,9 @@ public class AdminUserIntegralController {
|
|
|
commonInfo2.setValue(rules);
|
|
commonInfo2.setValue(rules);
|
|
|
commonInfoService.updateBody(commonInfo2);
|
|
commonInfoService.updateBody(commonInfo2);
|
|
|
//过期规则
|
|
//过期规则
|
|
|
- CommonInfo commonInfo3=commonInfoService.findOne(438);
|
|
|
|
|
- commonInfo3.setValue(irDto.getOverdue());
|
|
|
|
|
- commonInfoService.updateBody(commonInfo3);
|
|
|
|
|
|
|
+// CommonInfo commonInfo3=commonInfoService.findOne(438);
|
|
|
|
|
+// commonInfo3.setValue(irDto.getOverdue());
|
|
|
|
|
+// commonInfoService.updateBody(commonInfo3);
|
|
|
//积分上限
|
|
//积分上限
|
|
|
CommonInfo commonInfo4=commonInfoService.findOne(439);
|
|
CommonInfo commonInfo4=commonInfoService.findOne(439);
|
|
|
commonInfo4.setValue(irDto.getMaxIntegral());
|
|
commonInfo4.setValue(irDto.getMaxIntegral());
|