维护系统->检查方法后端接口数据校验修改
This commit is contained in:
@@ -30,9 +30,6 @@ public class CheckMethodAppServiceImpl implements ICheckMethodAppService {
|
|||||||
@Override
|
@Override
|
||||||
public R<?> addCheckMethod(CheckMethod checkMethod) {
|
public R<?> addCheckMethod(CheckMethod checkMethod) {
|
||||||
//1.数据校验
|
//1.数据校验
|
||||||
if (ObjectUtil.isEmpty(checkMethod.getId())) {
|
|
||||||
return R.fail("检查方法id不能为空!");
|
|
||||||
}
|
|
||||||
if (ObjectUtil.isEmpty(checkMethod.getName())) {
|
if (ObjectUtil.isEmpty(checkMethod.getName())) {
|
||||||
return R.fail("检查方法名称不能为空!");
|
return R.fail("检查方法名称不能为空!");
|
||||||
}
|
}
|
||||||
@@ -50,9 +47,6 @@ public class CheckMethodAppServiceImpl implements ICheckMethodAppService {
|
|||||||
@Override
|
@Override
|
||||||
public R<?> updateCheckMethod(CheckMethod checkMethod) {
|
public R<?> updateCheckMethod(CheckMethod checkMethod) {
|
||||||
//1.数据校验
|
//1.数据校验
|
||||||
if (ObjectUtil.isEmpty(checkMethod.getId())) {
|
|
||||||
return R.fail("检查方法id不能为空!");
|
|
||||||
}
|
|
||||||
if (ObjectUtil.isEmpty(checkMethod.getName())) {
|
if (ObjectUtil.isEmpty(checkMethod.getName())) {
|
||||||
return R.fail("检查方法名称不能为空!");
|
return R.fail("检查方法名称不能为空!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user