代码生成 后端支持 between

This commit is contained in:
疯狂的狮子li
2020-12-18 17:46:05 +08:00
parent 817da5bc04
commit 805c79506b
2 changed files with 11 additions and 10 deletions

View File

@ -10,6 +10,7 @@ import ${packageName}.domain.${ClassName};
import ${packageName}.service.I${ClassName}Service;
import java.util.List;
import java.util.Map;
/**
* ${functionName}Service业务层处理
@ -101,6 +102,10 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
}
#end
#elseif($queryType == "BETWEEN")
Map<String, Object> params = ${className}.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"));
}
#end
#end
#end