维护系统->检查方法后端接口数据校验修改

This commit is contained in:
qk123
2025-12-04 09:33:44 +08:00
parent c636e77fd0
commit 213723b220

View File

@@ -30,9 +30,6 @@ public class CheckMethodAppServiceImpl implements ICheckMethodAppService {
@Override
public R<?> addCheckMethod(CheckMethod checkMethod) {
//1.数据校验
if (ObjectUtil.isEmpty(checkMethod.getId())) {
return R.fail("检查方法id不能为空");
}
if (ObjectUtil.isEmpty(checkMethod.getName())) {
return R.fail("检查方法名称不能为空!");
}
@@ -50,9 +47,6 @@ public class CheckMethodAppServiceImpl implements ICheckMethodAppService {
@Override
public R<?> updateCheckMethod(CheckMethod checkMethod) {
//1.数据校验
if (ObjectUtil.isEmpty(checkMethod.getId())) {
return R.fail("检查方法id不能为空");
}
if (ObjectUtil.isEmpty(checkMethod.getName())) {
return R.fail("检查方法名称不能为空!");
}