|
|
@@ -9,6 +9,7 @@ import cc.smtweb.framework.core.db.DbEngine; |
|
|
|
import cc.smtweb.framework.core.session.UserSession; |
|
|
|
import cc.smtweb.framework.core.util.CommUtil; |
|
|
|
import cc.smtweb.system.bpm.util.TreeDataUtil; |
|
|
|
import cc.smtweb.system.bpm.web.design.db.ModelProjectCache; |
|
|
|
import cc.smtweb.system.bpm.web.design.form.ModelForm; |
|
|
|
import cc.smtweb.system.bpm.web.design.form.ModelFormCache; |
|
|
|
|
|
|
@@ -21,8 +22,8 @@ public class PreviewMenuTreeService { |
|
|
|
private DbEngine dbEngine; |
|
|
|
|
|
|
|
public R treeAll(@SwParam("module") String module, UserSession us) { |
|
|
|
// long prj_id = StringUtils.isNotEmpty(module) ? Long.parseLong(module) : 0L; |
|
|
|
List<ModelForm> listForm = new ArrayList<>(ModelFormCache.getInstance().getAll()); |
|
|
|
String prj_id = ModelProjectCache.getInstance().getIdByModule(module); |
|
|
|
List<ModelForm> listForm = new ArrayList<>(ModelFormCache.getInstance().getFormsByPrj(Long.parseLong(prj_id))); |
|
|
|
listForm.sort((o1, o2) -> CommUtil.chineseCompare(o1.getTitle(), o2.getTitle())); |
|
|
|
if (listForm.isEmpty()) throw new BizException("此项目无页面设计!"); |
|
|
|
|
|
|
|