提交 62f54eed 编写于 作者: 一子三木's avatar 一子三木

1 Modify judgment order(调整顺序,先判断是否存在)

2 before delete check entity exist
上级 759d9976
......@@ -306,7 +306,7 @@ public class UdfFuncService extends BaseService{
//check exist
UdfFunc udfFunc = udfFuncMapper.selectById(id);
if (udfFunc == null) {
putMsg(result, Status.RESOURCE_NOT_EXIST);
putMsg(result, Status.UDF_FUNCTION_NOT_EXIST);
return result;
}
udfFuncMapper.deleteById(id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册