|
|
@@ -174,7 +174,17 @@ public class CodeBuildHandler extends AbstractHandler { |
|
|
|
private void buildJavaService(long pageId) { |
|
|
|
ModelForm form = ModelFormCache.getInstance().get(pageId); |
|
|
|
String sName = form.getService(); |
|
|
|
if (StringUtils.isEmpty(sName)) throw new BizException("页面设置未定义服务名!" + form.getTitle()); |
|
|
|
if (StringUtils.isEmpty(sName)) { |
|
|
|
//模块名称 |
|
|
|
form = ModelFormCache.getInstance().get(form.getParent()); |
|
|
|
if(form == null){ |
|
|
|
throw new BizException("页面设置未定义服务名!" + form.getTitle()); |
|
|
|
} |
|
|
|
sName = form.getService(); |
|
|
|
if(StringUtils.isEmpty(sName)){ |
|
|
|
throw new BizException("模块设置未定义服务名!" + form.getTitle()); |
|
|
|
} |
|
|
|
} |
|
|
|
sName = CodeGenUtil.toUpperHump(sName); |
|
|
|
|
|
|
|
SwMap model = new SwMap(); |
|
|
|