积分灵兰币控制负数
This commit is contained in:
@@ -631,6 +631,9 @@ public class MyUserController {
|
||||
public R pointChange(@RequestParam Map<String, String> params){
|
||||
String pointType = params.get("pointType");
|
||||
String pointAmount = params.get("pointAmount");
|
||||
if (Integer.valueOf(pointAmount)<=0){
|
||||
return R.error("变动金额不能为负数");
|
||||
}
|
||||
String id = params.get("id");
|
||||
MyUserEntity byId = userService.getById(id);
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user