提交 96d49a09 编写于 作者: 一子三木's avatar 一子三木

remove delete check exist

上级 62f54eed
......@@ -303,12 +303,7 @@ public class UdfFuncService extends BaseService{
@Transactional(rollbackFor = Exception.class)
public Result delete(int id) {
Result result = new Result();
//check exist
UdfFunc udfFunc = udfFuncMapper.selectById(id);
if (udfFunc == null) {
putMsg(result, Status.UDF_FUNCTION_NOT_EXIST);
return result;
}
udfFuncMapper.deleteById(id);
udfUserMapper.deleteByUdfFuncId(id);
putMsg(result, Status.SUCCESS);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册