|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.ibeetl.admin.core.service;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
|
import cn.hutool.core.util.ArrayUtil;
|
|
|
|
|
import cn.hutool.core.util.ReUtil;
|
|
|
|
|
import com.ibeetl.admin.core.util.PlatformException;
|
|
|
|
@ -255,7 +254,10 @@ public class CoreBaseService<T> extends CoreBaseAnnotationParser {
|
|
|
|
|
stringObjectMap.forEach(tLambdaQuery::andEq);
|
|
|
|
|
log.debug("生成的SQL预览 {}", tLambdaQuery.getSql());
|
|
|
|
|
|
|
|
|
|
Assert.notEmpty(tLambdaQuery.getParams(), "删除条件不能为空!");
|
|
|
|
|
// 如果没有查询条件,则直接返回
|
|
|
|
|
if(tLambdaQuery.getParams().isEmpty()) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// 执行删除
|
|
|
|
|
return tLambdaQuery.delete() > 0;
|
|
|
|
|
}
|
|
|
|
|