|
@@ -2071,8 +2071,8 @@ public class WmScorePackageController {
|
|
|
@PostMapping("/stopWmScorePackage")
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public R stopWmScorePackage(@RequestBody WmScorePackage wmScorePackage) {
|
|
|
- if (StrUtil.isBlank(wmScorePackage.getId()) || StrUtil.equalsAny(wmScorePackage.getEnableType(), "1", "2")) {
|
|
|
- return R.failed("必填参数为空");
|
|
|
+ if (StrUtil.isBlank(wmScorePackage.getId()) || !StrUtil.equalsAny(wmScorePackage.getEnableType(), "1", "2")) {
|
|
|
+ return R.failed("参数错误");
|
|
|
}
|
|
|
|
|
|
return R.ok(wmScorePackageService.terminatePackageForDept(wmScorePackage.getId(),
|
|
@@ -3072,8 +3072,8 @@ public class WmScorePackageController {
|
|
|
@SysLog("终止积分包(个人包)")
|
|
|
@GetMapping("/updateEnable")
|
|
|
public R terminatePackageForPersonal(WmScorePackage wmScorePackage) {
|
|
|
- if (StrUtil.equalsAny(wmScorePackage.getEnableType(), "1", "2") || StrUtil.isBlank(wmScorePackage.getId())) {
|
|
|
- return R.failed("必填参数为空");
|
|
|
+ if (!StrUtil.equalsAny(wmScorePackage.getEnableType(), "1", "2") || StrUtil.isBlank(wmScorePackage.getId())) {
|
|
|
+ return R.failed("参数错误");
|
|
|
}
|
|
|
|
|
|
String cacheKey = CacheConstants.TERMINATE_PACKAGE_KEY + wmScorePackage.getId();
|