|
@@ -1,11 +1,11 @@
|
|
|
package ${packageName}.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import ${packageName}.bo.${ClassName}AddBo;
|
|
|
import ${packageName}.bo.${ClassName}QueryBo;
|
|
|
import ${packageName}.bo.${ClassName}EditBo;
|
|
@@ -47,13 +47,13 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
|
|
|
#set($mpMethod=$column.queryType.toLowerCase())
|
|
|
#if($queryType != 'BETWEEN')
|
|
|
#if($javaType == 'String')
|
|
|
-#set($condition='StringUtils.isNotBlank(bo.get'+$AttrName+'())')
|
|
|
+#set($condition='StrUtil.isNotBlank(bo.get'+$AttrName+'())')
|
|
|
#else
|
|
|
#set($condition='bo.get'+$AttrName+'() != null')
|
|
|
#end
|
|
|
lqw.$mpMethod($condition, ${ClassName}::get$AttrName, bo.get$AttrName());
|
|
|
#else
|
|
|
- Map<String, Object> params = ${className}.getParams();
|
|
|
+ Map<String, Object> params = bo.getParams();
|
|
|
if (params.get("begin$AttrName") != null && params.get("end$AttrName") != null) {
|
|
|
lqw.between(${ClassName}::get$AttrName ,params.get("begin$AttrName"), params.get("end$AttrName"));
|
|
|
}
|