Pārlūkot izejas kodu

增加:用户分组combo

master
郑根木 pirms 2 gadiem
vecāks
revīzija
1e688178bc
2 mainītis faili ar 54 papildinājumiem un 0 dzēšanām
  1. +23
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/userGroup/UserGroupComboHandler.java
  2. +31
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/userGroup/UserGroupService.java

+ 23
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/userGroup/UserGroupComboHandler.java Parādīt failu

@@ -0,0 +1,23 @@
package cc.smtweb.system.bpm.web.sys.user.userGroup;

import cc.smtweb.framework.core.db.vo.ModelTable;
import cc.smtweb.framework.core.mvc.service.DefaultComboHandler;
import cc.smtweb.framework.core.util.CommUtil;
import cc.smtweb.system.bpm.web.design.db.ModelProjectCache;

import java.util.List;
import java.util.Set;

/**
* Created by Akmm at 2022/3/22 19:25
*/
public class UserGroupComboHandler extends DefaultComboHandler<ModelTable> {
public UserGroupComboHandler() {
super(UserGroup.ENTITY_NAME);
}

@Override
protected void buildCondition(StringBuilder sql, List<Object> args) {
super.buildCondition(sql, args);
}
}

+ 31
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/userGroup/UserGroupService.java Parādīt failu

@@ -0,0 +1,31 @@
package cc.smtweb.system.bpm.web.sys.user.userGroup;

import cc.smtweb.framework.core.annotation.SwService;
import cc.smtweb.framework.core.mvc.service.AbstractHandler;
import cc.smtweb.system.bpm.web.engine.dynPage.DynPageService;
import cc.smtweb.system.bpm.web.sys.user.menu.MenuHandler;

/**
* Created by zhenggm at 2022-08-03 17:21:52
* 页面【[用户分组]的服务类
*/
@SwService
public class UserGroupService extends DynPageService {
//public final static String TYPE_DEMO = "demo";
@Override
protected AbstractHandler createHandler(String type) {
switch (type) {
case TYPE_COMBO:
return new UserGroupComboHandler();
}
return super.createHandler(type);
}

/* demo
//自定义
public R demo(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_DEMO, handler -> ((DemoHandler)handler).demo());
}
*/

}

Notiek ielāde…
Atcelt
Saglabāt