mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 多bo合并 使用分组校验 生成bo代码
This commit is contained in:
@ -132,9 +132,7 @@ public class VelocityUtils
|
||||
List<String> templates = new ArrayList<String>();
|
||||
templates.add("vm/java/domain.java.vm");
|
||||
templates.add("vm/java/vo.java.vm");
|
||||
templates.add("vm/java/queryBo.java.vm");
|
||||
templates.add("vm/java/addBo.java.vm");
|
||||
templates.add("vm/java/editBo.java.vm");
|
||||
templates.add("vm/java/bo.java.vm");
|
||||
templates.add("vm/java/mapper.java.vm");
|
||||
templates.add("vm/java/service.java.vm");
|
||||
templates.add("vm/java/serviceImpl.java.vm");
|
||||
@ -184,20 +182,12 @@ public class VelocityUtils
|
||||
}
|
||||
if (template.contains("vo.java.vm"))
|
||||
{
|
||||
fileName = StrUtil.format("{}/vo/{}Vo.java", javaPath, className);
|
||||
}
|
||||
if (template.contains("queryBo.java.vm"))
|
||||
{
|
||||
fileName = StrUtil.format("{}/bo/{}QueryBo.java", javaPath, className);
|
||||
}
|
||||
if (template.contains("addBo.java.vm"))
|
||||
{
|
||||
fileName = StrUtil.format("{}/bo/{}AddBo.java", javaPath, className);
|
||||
}
|
||||
if (template.contains("editBo.java.vm"))
|
||||
{
|
||||
fileName = StrUtil.format("{}/bo/{}EditBo.java", javaPath, className);
|
||||
fileName = StrUtil.format("{}/domain/vo/{}Vo.java", javaPath, className);
|
||||
}
|
||||
if (template.contains("bo.java.vm"))
|
||||
{
|
||||
fileName = StrUtil.format("{}/domain/bo/{}Bo.java", javaPath, className);
|
||||
}
|
||||
if (template.contains("sub-domain.java.vm") && StrUtil.equals(GenConstants.TPL_SUB, genTable.getTplCategory()))
|
||||
{
|
||||
fileName = StrUtil.format("{}/domain/{}.java", javaPath, genTable.getSubTable().getClassName());
|
||||
|
Reference in New Issue
Block a user