Commit 18144407 authored by trumansdo's avatar trumansdo
Browse files

应用codestyle


千万千万要用vscode打开前端项目,或者关闭eslint,移除它
Signed-off-by: default avatartrumansdo <1012243881@qq.com>
parent 9b3d96a6
...@@ -44,11 +44,8 @@ public class FunctionController { ...@@ -44,11 +44,8 @@ public class FunctionController {
private final Log log = LogFactory.getLog(this.getClass()); private final Log log = LogFactory.getLog(this.getClass());
private static final String MODEL = "/admin/function"; private static final String MODEL = "/admin/function";
@Autowired @Autowired CorePlatformService platformService;
CorePlatformService platformService; @Autowired private FunctionConsoleService functionConsoleService;
@Autowired
private FunctionConsoleService functionConsoleService;
/*页面*/ /*页面*/
...@@ -66,6 +63,7 @@ public class FunctionController { ...@@ -66,6 +63,7 @@ public class FunctionController {
ModelAndView view = new ModelAndView("/admin/function/add.html"); ModelAndView view = new ModelAndView("/admin/function/add.html");
return view; return view;
} }
@GetMapping(MODEL + "/edit.do") @GetMapping(MODEL + "/edit.do")
@Function("function.edit") @Function("function.edit")
public ModelAndView edit(Integer id) { public ModelAndView edit(Integer id) {
...@@ -80,14 +78,15 @@ public class FunctionController { ...@@ -80,14 +78,15 @@ public class FunctionController {
@RequestMapping(MODEL + "/add.json") @RequestMapping(MODEL + "/add.json")
@Function("function.add") @Function("function.add")
@ResponseBody @ResponseBody
public JsonResult<CoreFunction> addFunction(@Validated(ValidateConfig.ADD.class) CoreFunction function) { public JsonResult<CoreFunction> addFunction(
@Validated(ValidateConfig.ADD.class) CoreFunction function) {
String code = function.getCode(); String code = function.getCode();
CoreFunction dbFunction = functionConsoleService.getFunction(code); CoreFunction dbFunction = functionConsoleService.getFunction(code);
if(dbFunction!=null){ if (dbFunction != null) {
throw new FormFieldException(CoreFunction.class.getName(),"code","已经存在"); throw new FormFieldException(CoreFunction.class.getName(), "code", "已经存在");
} }
if(function.getParentId()==null){ if (function.getParentId() == null) {
function.setParentId(0l); function.setParentId(0l);
} }
function.setCreateTime(new Date()); function.setCreateTime(new Date());
...@@ -95,20 +94,20 @@ public class FunctionController { ...@@ -95,20 +94,20 @@ public class FunctionController {
return JsonResult.success(function); return JsonResult.success(function);
} }
@RequestMapping(MODEL + "/update.json") @RequestMapping(MODEL + "/update.json")
@Function("function.update") @Function("function.update")
@ResponseBody @ResponseBody
public JsonResult<?> updateFunction(@Validated(ValidateConfig.UPDATE.class) CoreFunction function) { public JsonResult<?> updateFunction(
@Validated(ValidateConfig.UPDATE.class) CoreFunction function) {
CoreFunction dbFunction = functionConsoleService.getFunction(function.getCode()); CoreFunction dbFunction = functionConsoleService.getFunction(function.getCode());
if(dbFunction!=null&&!dbFunction.getId().equals(function.getId())){ if (dbFunction != null && !dbFunction.getId().equals(function.getId())) {
throw new FormFieldException(CoreFunction.class.getName(),"code","已经存在"); throw new FormFieldException(CoreFunction.class.getName(), "code", "已经存在");
} }
if(function.getParentId()==null){ if (function.getParentId() == null) {
function.setParentId(0l); function.setParentId(0l);
} }
// function.setCreateTime(dbFunction.getCreateTime()); // function.setCreateTime(dbFunction.getCreateTime());
functionConsoleService.updateFunction(function); functionConsoleService.updateFunction(function);
return JsonResult.success(); return JsonResult.success();
} }
...@@ -119,31 +118,29 @@ public class FunctionController { ...@@ -119,31 +118,29 @@ public class FunctionController {
public JsonResult<CoreFunction> getFunction(Long id) { public JsonResult<CoreFunction> getFunction(Long id) {
CoreFunction function = functionConsoleService.getFunction(id); CoreFunction function = functionConsoleService.getFunction(id);
if (function.hasParent()){ if (function.hasParent()) {
CoreFunction parent = functionConsoleService.getFunction(function.getParentId()); CoreFunction parent = functionConsoleService.getFunction(function.getParentId());
function.set("parentName",parent.getName()); function.set("parentName", parent.getName());
}else { } else {
function.set("parentName",""); function.set("parentName", "");
} }
functionConsoleService.queryEntityAfter(function); functionConsoleService.queryEntityAfter(function);
return JsonResult.success(function); return JsonResult.success(function);
} }
@RequestMapping(MODEL + "/delete.json") @RequestMapping(MODEL + "/delete.json")
@Function("function.delete") @Function("function.delete")
@ResponseBody @ResponseBody
public JsonResult deleteFunction(Long id) { public JsonResult deleteFunction(Long id) {
CoreFunction fun = functionConsoleService.queryById(id); CoreFunction fun = functionConsoleService.queryById(id);
if (fun == null) { if (fun == null) {
throw new PlatformException("删除失败,没有找到Function "+id+"!"); throw new PlatformException("删除失败,没有找到Function " + id + "!");
} }
//删除功能和所有子功能 // 删除功能和所有子功能
functionConsoleService.deleteFunction(id); functionConsoleService.deleteFunction(id);
return new JsonResult().success(); return new JsonResult().success();
} }
/** /**
* 字典列表 分页 * 字典列表 分页
* *
...@@ -158,19 +155,17 @@ public class FunctionController { ...@@ -158,19 +155,17 @@ public class FunctionController {
PageQuery page = condtion.getPageQuery(); PageQuery page = condtion.getPageQuery();
functionConsoleService.queryByCondtion(page); functionConsoleService.queryByCondtion(page);
return JsonResult.success(page); return JsonResult.success(page);
} }
@PostMapping(MODEL + "/list/condition.json") @PostMapping(MODEL + "/list/condition.json")
@Function("function.query") @Function("function.query")
@ResponseBody @ResponseBody
public JsonResult<List<Map<String, Object>>> listCondtion() { public JsonResult<List<Map<String, Object>>> listCondtion() {
List<Map<String, Object>> list = AnnotationUtil.getInstance().getAnnotations(Query.class, FunctionQuery.class); List<Map<String, Object>> list =
AnnotationUtil.getInstance().getAnnotations(Query.class, FunctionQuery.class);
return JsonResult.success(list); return JsonResult.success(list);
} }
private List<Long> findChildFunctionIds(Long funtionId) { private List<Long> findChildFunctionIds(Long funtionId) {
FunctionItem funItem = platformService.buildFunction().findChild(funtionId); FunctionItem funItem = platformService.buildFunction().findChild(funtionId);
...@@ -179,9 +174,6 @@ public class FunctionController { ...@@ -179,9 +174,6 @@ public class FunctionController {
return children; return children;
} }
@RequestMapping(MODEL + "/batchDel.json") @RequestMapping(MODEL + "/batchDel.json")
@Function("function.delete") @Function("function.delete")
@ResponseBody @ResponseBody
...@@ -189,27 +181,24 @@ public class FunctionController { ...@@ -189,27 +181,24 @@ public class FunctionController {
List<Long> dels = ConvertUtil.str2longs(ids); List<Long> dels = ConvertUtil.str2longs(ids);
functionConsoleService.batchDeleteFunction(dels); functionConsoleService.batchDeleteFunction(dels);
return new JsonResult().success(); return new JsonResult().success();
} }
@PostMapping(MODEL + "/tree.json") @PostMapping(MODEL + "/tree.json")
@Function("function.query") @Function("function.query")
@ResponseBody @ResponseBody
public JsonResult<List<FunctionNodeView> > tree() { public JsonResult<List<FunctionNodeView>> tree() {
FunctionItem root = this.platformService.buildFunction(); FunctionItem root = this.platformService.buildFunction();
List<FunctionNodeView> tree = buildFunctionTree(root); List<FunctionNodeView> tree = buildFunctionTree(root);
return JsonResult.success(tree); return JsonResult.success(tree);
} }
private List<FunctionNodeView> buildFunctionTree(FunctionItem node) {
private List<FunctionNodeView> buildFunctionTree(FunctionItem node){
List<FunctionItem> list = node.getChildren(); List<FunctionItem> list = node.getChildren();
if(list.size()==0){ if (list.size() == 0) {
return Collections.EMPTY_LIST; return Collections.EMPTY_LIST;
} }
List<FunctionNodeView> views = new ArrayList<FunctionNodeView>(list.size()); List<FunctionNodeView> views = new ArrayList<FunctionNodeView>(list.size());
for(FunctionItem item :list){ for (FunctionItem item : list) {
FunctionNodeView view = new FunctionNodeView(); FunctionNodeView view = new FunctionNodeView();
view.setCode(item.getData().getCode()); view.setCode(item.getData().getCode());
view.setName(item.getData().getName()); view.setName(item.getData().getName());
...@@ -221,7 +210,4 @@ public class FunctionController { ...@@ -221,7 +210,4 @@ public class FunctionController {
} }
return views; return views;
} }
} }
...@@ -28,22 +28,16 @@ import com.ibeetl.admin.core.util.AnnotationUtil; ...@@ -28,22 +28,16 @@ import com.ibeetl.admin.core.util.AnnotationUtil;
import com.ibeetl.admin.core.util.ConvertUtil; import com.ibeetl.admin.core.util.ConvertUtil;
import com.ibeetl.admin.core.web.JsonResult; import com.ibeetl.admin.core.web.JsonResult;
/** /** @author lijiazhi */
* @author lijiazhi
*/
@Controller @Controller
public class MenuController { public class MenuController {
private static final String MODEL = "/admin/menu"; private static final String MODEL = "/admin/menu";
private final Log log = LogFactory.getLog(this.getClass()); private final Log log = LogFactory.getLog(this.getClass());
@Autowired MenuConsoleService menuService;
@Autowired @Autowired CorePlatformService platformService;
MenuConsoleService menuService;
@Autowired
CorePlatformService platformService;
/*页面*/ /*页面*/
...@@ -61,6 +55,7 @@ public class MenuController { ...@@ -61,6 +55,7 @@ public class MenuController {
ModelAndView view = new ModelAndView("/admin/menu/add.html"); ModelAndView view = new ModelAndView("/admin/menu/add.html");
return view; return view;
} }
@GetMapping(MODEL + "/edit.do") @GetMapping(MODEL + "/edit.do")
@Function("menu.edit") @Function("menu.edit")
public ModelAndView edit(Integer id) { public ModelAndView edit(Integer id) {
...@@ -74,6 +69,7 @@ public class MenuController { ...@@ -74,6 +69,7 @@ public class MenuController {
/** /**
* 查询 * 查询
*
* @param menu * @param menu
* @return * @return
*/ */
...@@ -81,11 +77,11 @@ public class MenuController { ...@@ -81,11 +77,11 @@ public class MenuController {
@Function("menu.query") @Function("menu.query")
@ResponseBody @ResponseBody
public JsonResult condition() { public JsonResult condition() {
List<Map<String, Object>> list = AnnotationUtil.getInstance().getAnnotations(Query.class, MenuQuery.class); List<Map<String, Object>> list =
AnnotationUtil.getInstance().getAnnotations(Query.class, MenuQuery.class);
return JsonResult.success(list); return JsonResult.success(list);
} }
@PostMapping(MODEL + "/list.json") @PostMapping(MODEL + "/list.json")
@Function("menu.query") @Function("menu.query")
@ResponseBody @ResponseBody
...@@ -95,9 +91,9 @@ public class MenuController { ...@@ -95,9 +91,9 @@ public class MenuController {
return JsonResult.success(page); return JsonResult.success(page);
} }
/** /**
* 添加 * 添加
*
* @param menu * @param menu
* @return * @return
*/ */
...@@ -112,6 +108,7 @@ public class MenuController { ...@@ -112,6 +108,7 @@ public class MenuController {
/** /**
* 更新 * 更新
*
* @param fun * @param fun
* @return * @return
*/ */
...@@ -125,6 +122,7 @@ public class MenuController { ...@@ -125,6 +122,7 @@ public class MenuController {
/** /**
* 根据id查询菜单信息 * 根据id查询菜单信息
*
* @param id 菜单Id * @param id 菜单Id
* @return * @return
*/ */
...@@ -142,6 +140,7 @@ public class MenuController { ...@@ -142,6 +140,7 @@ public class MenuController {
/** /**
* 删除 * 删除
*
* @param id 菜单id * @param id 菜单id
* @return * @return
*/ */
...@@ -155,6 +154,7 @@ public class MenuController { ...@@ -155,6 +154,7 @@ public class MenuController {
/** /**
* 批量删除 * 批量删除
*
* @param ids 菜单id集合 * @param ids 菜单id集合
* @return * @return
*/ */
...@@ -166,10 +166,4 @@ public class MenuController { ...@@ -166,10 +166,4 @@ public class MenuController {
menuService.batchDeleteMenuId(dels); menuService.batchDeleteMenuId(dels);
return new JsonResult().success(); return new JsonResult().success();
} }
} }
...@@ -33,6 +33,7 @@ import com.ibeetl.admin.core.web.JsonResult; ...@@ -33,6 +33,7 @@ import com.ibeetl.admin.core.web.JsonResult;
/** /**
* 描述: 组织机构 controller * 描述: 组织机构 controller
*
* @author : xiandafu * @author : xiandafu
*/ */
@Controller @Controller
...@@ -40,16 +41,11 @@ public class OrgConsoleController { ...@@ -40,16 +41,11 @@ public class OrgConsoleController {
private final Log log = LogFactory.getLog(this.getClass()); private final Log log = LogFactory.getLog(this.getClass());
private static final String MODEL = "/admin/org"; private static final String MODEL = "/admin/org";
@Autowired @Autowired private OrgConsoleService orgConsoleService;
private OrgConsoleService orgConsoleService;
@Autowired
UserConsoleService userConsoleService;
@Autowired
CorePlatformService platformService;
@Autowired UserConsoleService userConsoleService;
@Autowired CorePlatformService platformService;
/*页面*/ /*页面*/
...@@ -70,19 +66,19 @@ public class OrgConsoleController { ...@@ -70,19 +66,19 @@ public class OrgConsoleController {
return view; return view;
} }
@GetMapping(MODEL + "/user/list.do") @GetMapping(MODEL + "/user/list.do")
@Function("org.query") @Function("org.query")
public ModelAndView getUsers(Long orgId) { public ModelAndView getUsers(Long orgId) {
ModelAndView view = new ModelAndView("/admin/org/orgUser.html"); ModelAndView view = new ModelAndView("/admin/org/orgUser.html");
CoreOrg org = orgConsoleService.queryById(orgId); CoreOrg org = orgConsoleService.queryById(orgId);
view.addObject("org", org); view.addObject("org", org);
view.addObject("search",OrgUserQuery.class.getName()); view.addObject("search", OrgUserQuery.class.getName());
return view; return view;
} }
/** /**
* 组织机构列表 分页 * 组织机构列表 分页
*
* @param condtion 查询条件 * @param condtion 查询条件
* @return * @return
*/ */
...@@ -97,28 +93,31 @@ public class OrgConsoleController { ...@@ -97,28 +93,31 @@ public class OrgConsoleController {
/** /**
* 获取列表查询条件 * 获取列表查询条件
*
* @return * @return
*/ */
@PostMapping(MODEL + "/list/condition.json") @PostMapping(MODEL + "/list/condition.json")
@Function("org.query") @Function("org.query")
@ResponseBody @ResponseBody
public JsonResult<List<Map<String, Object>>> listCondtion() { public JsonResult<List<Map<String, Object>>> listCondtion() {
List<Map<String, Object>> list = AnnotationUtil.getInstance().getAnnotations(Query.class, OrgQuery.class); List<Map<String, Object>> list =
AnnotationUtil.getInstance().getAnnotations(Query.class, OrgQuery.class);
return JsonResult.success(list); return JsonResult.success(list);
} }
/** /**
* 保存数据 * 保存数据
*
* @param org * @param org
* @return * @return
*/ */
@PostMapping(MODEL + "/save.json") @PostMapping(MODEL + "/save.json")
@Function("org.save") @Function("org.save")
@ResponseBody @ResponseBody
public JsonResult<Long> save(@Validated(ValidateConfig.ADD.class) CoreOrg org, BindingResult result) { public JsonResult<Long> save(
@Validated(ValidateConfig.ADD.class) CoreOrg org, BindingResult result) {
if (result.hasErrors()) { if (result.hasErrors()) {
return JsonResult.failMessage(result.toString()); return JsonResult.failMessage(result.toString());
} }
org.setCreateTime(new Date()); org.setCreateTime(new Date());
...@@ -127,9 +126,9 @@ public class OrgConsoleController { ...@@ -127,9 +126,9 @@ public class OrgConsoleController {
return JsonResult.success(org.getId()); return JsonResult.success(org.getId());
} }
/** /**
* 更新数据 * 更新数据
*
* @param org * @param org
* @return * @return
*/ */
...@@ -146,12 +145,9 @@ public class OrgConsoleController { ...@@ -146,12 +145,9 @@ public class OrgConsoleController {
} }
} }
/** /**
* 删除组织机构 * 删除组织机构
*
* @param ids 组织id,多个用“,”隔开 * @param ids 组织id,多个用“,”隔开
* @return * @return
*/ */
...@@ -168,7 +164,6 @@ public class OrgConsoleController { ...@@ -168,7 +164,6 @@ public class OrgConsoleController {
return new JsonResult().success(); return new JsonResult().success();
} }
@PostMapping(MODEL + "/user/list.json") @PostMapping(MODEL + "/user/list.json")
@Function("org.query") @Function("org.query")
@ResponseBody @ResponseBody
...@@ -177,5 +172,4 @@ public class OrgConsoleController { ...@@ -177,5 +172,4 @@ public class OrgConsoleController {
orgConsoleService.queryUserByCondition(page); orgConsoleService.queryUserByCondition(page);
return JsonResult.success(page); return JsonResult.success(page);
} }
} }
...@@ -35,26 +35,20 @@ import com.ibeetl.admin.core.util.ConvertUtil; ...@@ -35,26 +35,20 @@ import com.ibeetl.admin.core.util.ConvertUtil;
import com.ibeetl.admin.core.util.ValidateConfig; import com.ibeetl.admin.core.util.ValidateConfig;
import com.ibeetl.admin.core.web.JsonResult; import com.ibeetl.admin.core.web.JsonResult;
/** /** 角色 */
* 角色
*/
@Controller @Controller
public class RoleConsoleController { public class RoleConsoleController {
private final Log log = LogFactory.getLog(this.getClass()); private final Log log = LogFactory.getLog(this.getClass());
private static final String MODEL = "/admin/role"; private static final String MODEL = "/admin/role";
@Autowired @Autowired private RoleConsoleService roleConsoleService;
private RoleConsoleService roleConsoleService;
@Autowired @Autowired private FunctionConsoleService functionConsoleService;
private FunctionConsoleService functionConsoleService;
@Autowired @Autowired CorePlatformService platformService;
CorePlatformService platformService;
@Autowired @Autowired private OrgConsoleService orgConsoleService;
private OrgConsoleService orgConsoleService;
/* 页面 */ /* 页面 */
...@@ -98,6 +92,7 @@ public class RoleConsoleController { ...@@ -98,6 +92,7 @@ public class RoleConsoleController {
ModelAndView view = new ModelAndView("/admin/role/function.html"); ModelAndView view = new ModelAndView("/admin/role/function.html");
return view; return view;
} }
@GetMapping(MODEL + "/data.do") @GetMapping(MODEL + "/data.do")
@Function("role.function.query") @Function("role.function.query")
public ModelAndView data() { public ModelAndView data() {
...@@ -137,7 +132,8 @@ public class RoleConsoleController { ...@@ -137,7 +132,8 @@ public class RoleConsoleController {
@Function("role.query") @Function("role.query")
@ResponseBody @ResponseBody
public JsonResult<List<Map<String, Object>>> listCondtion() { public JsonResult<List<Map<String, Object>>> listCondtion() {
List<Map<String, Object>> list = AnnotationUtil.getInstance().getAnnotations(Query.class, RoleQuery.class); List<Map<String, Object>> list =
AnnotationUtil.getInstance().getAnnotations(Query.class, RoleQuery.class);
return JsonResult.success(list); return JsonResult.success(list);
} }
...@@ -170,7 +166,6 @@ public class RoleConsoleController { ...@@ -170,7 +166,6 @@ public class RoleConsoleController {
@PostMapping(MODEL + "/update.json") @PostMapping(MODEL + "/update.json")
@Function("role.edit") @Function("role.edit")
@ResponseBody @ResponseBody
public JsonResult<String> update(@Validated(ValidateConfig.UPDATE.class) CoreRole role) { public JsonResult<String> update(@Validated(ValidateConfig.UPDATE.class) CoreRole role) {
boolean success = roleConsoleService.update(role); boolean success = roleConsoleService.update(role);
...@@ -200,8 +195,7 @@ public class RoleConsoleController { ...@@ -200,8 +195,7 @@ public class RoleConsoleController {
/** /**
* (批量)删除 * (批量)删除
* *
* @param ids * @param ids 角色id
* 角色id
* @return * @return
*/ */
@PostMapping(MODEL + "/delete.json") @PostMapping(MODEL + "/delete.json")
...@@ -220,8 +214,7 @@ public class RoleConsoleController { ...@@ -220,8 +214,7 @@ public class RoleConsoleController {
/** /**
* 查询角色下授权用户列表 * 查询角色下授权用户列表
* *
* @param queryCondtion * @param queryCondtion 查询条件
* 查询条件
* @return * @return
*/ */
@PostMapping(MODEL + "/user/list.json") @PostMapping(MODEL + "/user/list.json")
...@@ -289,14 +282,14 @@ public class RoleConsoleController { ...@@ -289,14 +282,14 @@ public class RoleConsoleController {
List<Long> delIds = new ArrayList<Long>(); List<Long> delIds = new ArrayList<Long>();
List<Long> dbs = functionConsoleService.getFunctionByRole(roleId); List<Long> dbs = functionConsoleService.getFunctionByRole(roleId);
Iterator<Long> it = all.iterator(); Iterator<Long> it = all.iterator();
for(Long id:all) { for (Long id : all) {
if(!dbs.contains(id)) { if (!dbs.contains(id)) {
addIds.add(id); addIds.add(id);
} }
} }
for(Long id:dbs) { for (Long id : dbs) {
if(!all.contains(id)) { if (!all.contains(id)) {
delIds.add(id); delIds.add(id);
} }
} }
...@@ -307,7 +300,7 @@ public class RoleConsoleController { ...@@ -307,7 +300,7 @@ public class RoleConsoleController {
@PostMapping(MODEL + "/function/updateDataAccess.json") @PostMapping(MODEL + "/function/updateDataAccess.json")
@Function("role.function.updateDataAccess") @Function("role.function.updateDataAccess")
@ResponseBody @ResponseBody
public JsonResult updateFunctionDataAccess(Long roleId,Long fnId,Integer accessType) { public JsonResult updateFunctionDataAccess(Long roleId, Long fnId, Integer accessType) {
RoleDataAccessFunction data = new RoleDataAccessFunction(); RoleDataAccessFunction data = new RoleDataAccessFunction();
data.setRoleId(roleId); data.setRoleId(roleId);
data.setId(fnId); data.setId(fnId);
...@@ -325,5 +318,4 @@ public class RoleConsoleController { ...@@ -325,5 +318,4 @@ public class RoleConsoleController {
view.addObject("list", list); view.addObject("list", list);
return view; return view;
} }
} }
...@@ -55,21 +55,13 @@ public class UserConsoleController { ...@@ -55,21 +55,13 @@ public class UserConsoleController {
private final Log log = LogFactory.getLog(this.getClass()); private final Log log = LogFactory.getLog(this.getClass());
private static final String MODEL = "/admin/user"; private static final String MODEL = "/admin/user";
@Autowired @Autowired UserConsoleService userConsoleService;
UserConsoleService userConsoleService;
@Autowired
CorePlatformService platformService;
@Autowired
RoleConsoleService roleConsoleService;
@Autowired
OrgConsoleService orgConsoleService;
@Autowired
FileService fileService;
@Autowired CorePlatformService platformService;
@Autowired RoleConsoleService roleConsoleService;
@Autowired OrgConsoleService orgConsoleService;
@Autowired FileService fileService;
/* 页面 */ /* 页面 */
...@@ -183,7 +175,8 @@ public class UserConsoleController { ...@@ -183,7 +175,8 @@ public class UserConsoleController {
@Function("user.query") @Function("user.query")
@ResponseBody @ResponseBody
public JsonResult<List<Map<String, Object>>> indexCondtion() { public JsonResult<List<Map<String, Object>>> indexCondtion() {
List<Map<String, Object>> list = AnnotationUtil.getInstance().getAnnotations(Query.class, UserQuery.class); List<Map<String, Object>> list =
AnnotationUtil.getInstance().getAnnotations(Query.class, UserQuery.class);
return JsonResult.success(list); return JsonResult.success(list);
} }
...@@ -200,7 +193,6 @@ public class UserConsoleController { ...@@ -200,7 +193,6 @@ public class UserConsoleController {
this.platformService.restUserSession(user.getCode()); this.platformService.restUserSession(user.getCode());
} }
return JsonResult.success(); return JsonResult.success();
} }
/** /**
...@@ -216,7 +208,6 @@ public class UserConsoleController { ...@@ -216,7 +208,6 @@ public class UserConsoleController {
List<Long> enables = ConvertUtil.str2longs(ids); List<Long> enables = ConvertUtil.str2longs(ids);
userConsoleService.batchUpdateUserState(enables, GeneralStateEnum.ENABLE); userConsoleService.batchUpdateUserState(enables, GeneralStateEnum.ENABLE);
return JsonResult.success(); return JsonResult.success();
} }
/** /**
...@@ -260,7 +251,6 @@ public class UserConsoleController { ...@@ -260,7 +251,6 @@ public class UserConsoleController {
this.userConsoleService.saveUserRole(userRole); this.userConsoleService.saveUserRole(userRole);
this.platformService.clearFunctionCache(); this.platformService.clearFunctionCache();
return JsonResult.success(userRole.getId()); return JsonResult.success(userRole.getId());
} }
/** /**
...@@ -279,19 +269,19 @@ public class UserConsoleController { ...@@ -279,19 +269,19 @@ public class UserConsoleController {
return JsonResult.success(); return JsonResult.success();
} }
@PostMapping(MODEL + "/excel/export.json") @PostMapping(MODEL + "/excel/export.json")
@Function("user.export") @Function("user.export")
@ResponseBody @ResponseBody
public JsonResult<String> export(HttpServletResponse response, UserQuery condtion) { public JsonResult<String> export(HttpServletResponse response, UserQuery condtion) {
String excelTemplate = "excelTemplates/admin/user/user_collection_template.xls"; String excelTemplate = "excelTemplates/admin/user/user_collection_template.xls";
PageQuery<CoreUser> page = condtion.getPageQuery(); PageQuery<CoreUser> page = condtion.getPageQuery();
//取出全部符合条件的 // 取出全部符合条件的
page.setPageSize(Integer.MAX_VALUE); page.setPageSize(Integer.MAX_VALUE);
page.setPageNumber(1); page.setPageNumber(1);
page.setTotalRow(Integer.MAX_VALUE); page.setTotalRow(Integer.MAX_VALUE);
List<UserExcelExportData> users = userConsoleService.queryExcel(page); List<UserExcelExportData> users = userConsoleService.queryExcel(page);
try (InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(excelTemplate)) { try (InputStream is =
Thread.currentThread().getContextClassLoader().getResourceAsStream(excelTemplate)) {
if (is == null) { if (is == null) {
throw new PlatformException("模板资源不存在:" + excelTemplate); throw new PlatformException("模板资源不存在:" + excelTemplate);
} }
...@@ -300,13 +290,10 @@ public class UserConsoleController { ...@@ -300,13 +290,10 @@ public class UserConsoleController {
Context context = new Context(); Context context = new Context();
context.putVar("users", users); context.putVar("users", users);
JxlsHelper.getInstance().processTemplate(is, os, context); JxlsHelper.getInstance().processTemplate(is, os, context);
//下载参考FileSystemContorller // 下载参考FileSystemContorller
return JsonResult.success(item.getPath()); return JsonResult.success(item.getPath());
} catch (IOException e) { } catch (IOException e) {
throw new PlatformException(e.getMessage()); throw new PlatformException(e.getMessage());
} }
} }
} }
...@@ -4,8 +4,8 @@ import com.ibeetl.admin.core.entity.CoreDict; ...@@ -4,8 +4,8 @@ import com.ibeetl.admin.core.entity.CoreDict;
/** /**
* 字典数据导入,参考 dict_mapping.xml * 字典数据导入,参考 dict_mapping.xml
* @author xiandafu
* *
* @author xiandafu
*/ */
public class DictExcelImportData extends CoreDict { public class DictExcelImportData extends CoreDict {
private Integer excelId; private Integer excelId;
...@@ -26,6 +26,4 @@ public class DictExcelImportData extends CoreDict { ...@@ -26,6 +26,4 @@ public class DictExcelImportData extends CoreDict {
public void setParentExcelId(Integer parentExcelId) { public void setParentExcelId(Integer parentExcelId) {
this.parentExcelId = parentExcelId; this.parentExcelId = parentExcelId;
} }
} }
...@@ -21,5 +21,4 @@ public class RoleDataAccessFunction extends CoreFunction { ...@@ -21,5 +21,4 @@ public class RoleDataAccessFunction extends CoreFunction {
public void setRoleId(Long roleId) { public void setRoleId(Long roleId) {
this.roleId = roleId; this.roleId = roleId;
} }
} }
...@@ -7,8 +7,8 @@ import com.ibeetl.admin.core.annotation.Dict; ...@@ -7,8 +7,8 @@ import com.ibeetl.admin.core.annotation.Dict;
/** /**
* excel导出需要的模板数据 * excel导出需要的模板数据
* @author xiandafu
* *
* @author xiandafu
*/ */
public class UserExcelExportData { public class UserExcelExportData {
protected Long id; protected Long id;
...@@ -18,47 +18,60 @@ public class UserExcelExportData { ...@@ -18,47 +18,60 @@ public class UserExcelExportData {
private String password; private String password;
private String stateText; private String stateText;
private String jobType1Text; private String jobType1Text;
public String getCode() { public String getCode() {
return code; return code;
} }
public void setCode(String code) { public void setCode(String code) {
this.code = code; this.code = code;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getOrgText() { public String getOrgText() {
return orgText; return orgText;
} }
public void setOrgText(String orgText) { public void setOrgText(String orgText) {
this.orgText = orgText; this.orgText = orgText;
} }
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }
public String getStateText() { public String getStateText() {
return stateText; return stateText;
} }
public void setStateText(String stateText) { public void setStateText(String stateText) {
this.stateText = stateText; this.stateText = stateText;
} }
public String getJobType1Text() { public String getJobType1Text() {
return jobType1Text; return jobType1Text;
} }
public void setJobType1Text(String jobType1Text) { public void setJobType1Text(String jobType1Text) {
this.jobType1Text = jobType1Text; this.jobType1Text = jobType1Text;
} }
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
} }
...@@ -8,32 +8,36 @@ import com.ibeetl.admin.core.annotation.Query; ...@@ -8,32 +8,36 @@ import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool; import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
/** /** 审计查询条件 */
* 审计查询条件
*/
public class AuditQuery extends PageParam { public class AuditQuery extends PageParam {
@Query(name = "功能名称", display = true,fuzzy=true) @Query(name = "功能名称", display = true, fuzzy = true)
private String functionName; private String functionName;
@Query(name = "功能编号", display = true,fuzzy=true)
@Query(name = "功能编号", display = true, fuzzy = true)
private String functionCode; private String functionCode;
@Query(name = "用户名称", display = true,fuzzy=true)
@Query(name = "用户名称", display = true, fuzzy = true)
private String userName; private String userName;
@Query(name="创建日期",display=true,type=Query.TYPE_DATE_BETWEEN) @Query(name = "创建日期", display = true, type = Query.TYPE_DATE_BETWEEN)
private String createDateRange; private String createDateRange;
private Date createDateMin; private Date createDateMin;
private Date createDateMax; private Date createDateMax;
public String getFunctionCode() { public String getFunctionCode() {
return functionCode; return functionCode;
} }
public void setFunctionCode(String functionCode) { public void setFunctionCode(String functionCode) {
this.functionCode = functionCode; this.functionCode = functionCode;
} }
public String getUserName() { public String getUserName() {
return userName; return userName;
} }
public void setUserName(String userName) { public void setUserName(String userName) {
this.userName = userName; this.userName = userName;
} }
...@@ -41,35 +45,38 @@ public class AuditQuery extends PageParam { ...@@ -41,35 +45,38 @@ public class AuditQuery extends PageParam {
public String getCreateDateRange() { public String getCreateDateRange() {
return createDateRange; return createDateRange;
} }
public void setCreateDateRange(String createDateRange) { public void setCreateDateRange(String createDateRange) {
this.createDateRange = createDateRange; this.createDateRange = createDateRange;
if(StringUtils.isEmpty(createDateRange)) { if (StringUtils.isEmpty(createDateRange)) {
return ; return;
} }
Date[] ds = Tool.parseDataRange(createDateRange); Date[] ds = Tool.parseDataRange(createDateRange);
this.createDateMin=ds[0]; this.createDateMin = ds[0];
this.createDateMax =ds[1]; this.createDateMax = ds[1];
} }
public Date getCreateDateMin() { public Date getCreateDateMin() {
return createDateMin; return createDateMin;
} }
public void setCreateDateMin(Date createDateMin) { public void setCreateDateMin(Date createDateMin) {
this.createDateMin = createDateMin; this.createDateMin = createDateMin;
} }
public Date getCreateDateMax() { public Date getCreateDateMax() {
return createDateMax; return createDateMax;
} }
public void setCreateDateMax(Date createDateMax) { public void setCreateDateMax(Date createDateMax) {
this.createDateMax = createDateMax; this.createDateMax = createDateMax;
} }
public String getFunctionName() { public String getFunctionName() {
return functionName; return functionName;
} }
public void setFunctionName(String functionName) { public void setFunctionName(String functionName) {
this.functionName = functionName; this.functionName = functionName;
} }
} }
...@@ -4,17 +4,16 @@ import com.ibeetl.admin.core.annotation.Query; ...@@ -4,17 +4,16 @@ import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType; import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date; import java.util.Date;
/** /** CmsBlog查询 */
*CmsBlog查询
*/
public class CmsBlogQuery extends PageParam { public class CmsBlogQuery extends PageParam {
@Query(name = "id", display = true) @Query(name = "id", display = true)
private Integer id; private Integer id;
public Integer getId(){
public Integer getId() {
return id; return id;
} }
public void setId(Integer id ){
public void setId(Integer id) {
this.id = id; this.id = id;
} }
} }
...@@ -4,41 +4,49 @@ import com.ibeetl.admin.core.annotation.Query; ...@@ -4,41 +4,49 @@ import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType; import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date; import java.util.Date;
/** /** CoreDict查询 */
*CoreDict查询
*/
public class CoreDictQuery extends PageParam { public class CoreDictQuery extends PageParam {
@Query(name = "字典值", display = true) @Query(name = "字典值", display = true)
private String value; private String value;
@Query(name = "字典名称", display = true) @Query(name = "字典名称", display = true)
private String name; private String name;
@Query(name = "字典类型名称", display = true) @Query(name = "字典类型名称", display = true)
private String typeName; private String typeName;
@Query(name = "父字典", display = true) @Query(name = "父字典", display = true)
private String parent; private String parent;
public String getValue(){
public String getValue() {
return value; return value;
} }
public void setValue(String value ){
public void setValue(String value) {
this.value = value; this.value = value;
} }
public String getName(){
public String getName() {
return name; return name;
} }
public void setName(String name ){
public void setName(String name) {
this.name = name; this.name = name;
} }
public String getTypeName(){
public String getTypeName() {
return typeName; return typeName;
} }
public void setTypeName(String typeName ){
public void setTypeName(String typeName) {
this.typeName = typeName; this.typeName = typeName;
} }
public String getParent(){
public String getParent() {
return parent; return parent;
} }
public void setParent(String parent ){
public void setParent(String parent) {
this.parent = parent; this.parent = parent;
} }
} }
...@@ -3,33 +3,38 @@ package com.ibeetl.admin.console.web.query; ...@@ -3,33 +3,38 @@ package com.ibeetl.admin.console.web.query;
import com.ibeetl.admin.core.annotation.Query; import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType; import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
/** /** 功能查询 */
*功能查询
*/
public class CoreFunctionQuery extends PageParam { public class CoreFunctionQuery extends PageParam {
@Query(name = "名称", display = true) @Query(name = "名称", display = true)
private String name; private String name;
@Query(name = "访问路径", display = true) @Query(name = "访问路径", display = true)
private String accessUrl; private String accessUrl;
@Query(name = "功能点类型", display = true) @Query(name = "功能点类型", display = true)
private String type; private String type;
public String getName(){
public String getName() {
return name; return name;
} }
public void setName(String name ){
public void setName(String name) {
this.name = name; this.name = name;
} }
public String getAccessUrl(){
public String getAccessUrl() {
return accessUrl; return accessUrl;
} }
public void setAccessUrl(String accessUrl ){
public void setAccessUrl(String accessUrl) {
this.accessUrl = accessUrl; this.accessUrl = accessUrl;
} }
public String getType(){
public String getType() {
return type; return type;
} }
public void setType(String type ){
public void setType(String type) {
this.type = type; this.type = type;
} }
} }
...@@ -5,64 +5,70 @@ import java.util.List; ...@@ -5,64 +5,70 @@ import java.util.List;
import com.ibeetl.admin.core.annotation.Query; import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
/** /** 功能表单查询条件 */
* 功能表单查询条件
*/
public class FunctionQuery extends PageParam { public class FunctionQuery extends PageParam {
@Query(name = "代码", display = true,fuzzy=true) @Query(name = "代码", display = true, fuzzy = true)
private String code; private String code;
@Query(name = "名称", display = true,fuzzy=true)
@Query(name = "名称", display = true, fuzzy = true)
private String name; private String name;
@Query(name = "访问地址",fuzzy=true)
@Query(name = "访问地址", fuzzy = true)
private String accessUrl; private String accessUrl;
@Query(name="上一级功能",display=true,type=Query.TYPE_CONTROL,control="fun") @Query(name = "上一级功能", display = true, type = Query.TYPE_CONTROL, control = "fun")
private Long parentFunctionId; private Long parentFunctionId;
private Long functionId; private Long functionId;
//查询子类 // 查询子类
private List<Long> functionIds; private List<Long> functionIds;
public String getCode() { public String getCode() {
return code; return code;
} }
public void setCode(String code) { public void setCode(String code) {
this.code = code; this.code = code;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getAccessUrl() { public String getAccessUrl() {
return accessUrl; return accessUrl;
} }
public void setAccessUrl(String accessUrl) { public void setAccessUrl(String accessUrl) {
this.accessUrl = accessUrl; this.accessUrl = accessUrl;
} }
public List<Long> getFunctionIds() { public List<Long> getFunctionIds() {
return functionIds; return functionIds;
} }
public void setFunctionIds(List<Long> functionIds) { public void setFunctionIds(List<Long> functionIds) {
this.functionIds = functionIds; this.functionIds = functionIds;
} }
public Long getFunctionId() { public Long getFunctionId() {
return functionId; return functionId;
} }
public void setFunctionId(Long functionId) { public void setFunctionId(Long functionId) {
this.functionId = functionId; this.functionId = functionId;
} }
public Long getParentFunctionId() { public Long getParentFunctionId() {
return parentFunctionId; return parentFunctionId;
} }
public void setParentFunctionId(Long parentFunctionId) { public void setParentFunctionId(Long parentFunctionId) {
this.parentFunctionId = parentFunctionId; this.parentFunctionId = parentFunctionId;
} }
} }
...@@ -3,47 +3,50 @@ package com.ibeetl.admin.console.web.query; ...@@ -3,47 +3,50 @@ package com.ibeetl.admin.console.web.query;
import com.ibeetl.admin.core.annotation.Query; import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
/** /** 菜单查询条件 */
* 菜单查询条件
*/
public class MenuQuery extends PageParam { public class MenuQuery extends PageParam {
@Query(name = "代码", display = true,fuzzy=true) @Query(name = "代码", display = true, fuzzy = true)
private String code; private String code;
@Query(name = "名称", display = true,fuzzy=true)
@Query(name = "名称", display = true, fuzzy = true)
private String name; private String name;
@Query(name = "菜单入口地址", display = true,fuzzy=true) @Query(name = "菜单入口地址", display = true, fuzzy = true)
private String url; private String url;
@Query(name="上一级菜单",display=true,type=Query.TYPE_CONTROL,control="menu") @Query(name = "上一级菜单", display = true, type = Query.TYPE_CONTROL, control = "menu")
private Long parentMenuId; private Long parentMenuId;
public String getCode() { public String getCode() {
return code; return code;
} }
public void setCode(String code) { public void setCode(String code) {
this.code = code; this.code = code;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getUrl() { public String getUrl() {
return url; return url;
} }
public void setUrl(String url) { public void setUrl(String url) {
this.url = url; this.url = url;
} }
public Long getParentMenuId() { public Long getParentMenuId() {
return parentMenuId; return parentMenuId;
} }
public void setParentMenuId(Long parentMenuId) { public void setParentMenuId(Long parentMenuId) {
this.parentMenuId = parentMenuId; this.parentMenuId = parentMenuId;
} }
} }
...@@ -4,18 +4,19 @@ import com.ibeetl.admin.core.annotation.Query; ...@@ -4,18 +4,19 @@ import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType; import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
/** /** 字典表单查询条件 */
* 字典表单查询条件
*/
public class OrgQuery extends PageParam { public class OrgQuery extends PageParam {
@Query(name = "机构编号", display = true) @Query(name = "机构编号", display = true)
private String code; private String code;
@Query(name = "机构名称", display = true) @Query(name = "机构名称", display = true)
private String name; private String name;
@Query(name="机构类型",display=true,type=Query.TYPE_DICT,dict=CoreDictType.ORG_TYPE)
@Query(name = "机构类型", display = true, type = Query.TYPE_DICT, dict = CoreDictType.ORG_TYPE)
private String type; private String type;
@Query(name="上一级机构",display=true,type=Query.TYPE_CONTROL,control="org")
@Query(name = "上一级机构", display = true, type = Query.TYPE_CONTROL, control = "org")
private String parentOrgId; private String parentOrgId;
public String getCode() { public String getCode() {
...@@ -49,5 +50,4 @@ public class OrgQuery extends PageParam { ...@@ -49,5 +50,4 @@ public class OrgQuery extends PageParam {
public void setParentOrgId(String parentOrgId) { public void setParentOrgId(String parentOrgId) {
this.parentOrgId = parentOrgId; this.parentOrgId = parentOrgId;
} }
} }
...@@ -4,11 +4,9 @@ import java.util.List; ...@@ -4,11 +4,9 @@ import java.util.List;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
/** /** 描述: 带有组织树相关的查询 */
* 描述: 带有组织树相关的查询
*/
public class OrgTreeQuery extends PageParam { public class OrgTreeQuery extends PageParam {
protected Long orgId; //组织id protected Long orgId; // 组织id
protected List<Long> orgIds; protected List<Long> orgIds;
public Long getOrgId() { public Long getOrgId() {
......
...@@ -9,63 +9,68 @@ import com.ibeetl.admin.core.web.query.PageParam; ...@@ -9,63 +9,68 @@ import com.ibeetl.admin.core.web.query.PageParam;
public class OrgUserQuery extends PageParam { public class OrgUserQuery extends PageParam {
@Query(name="账号",display=true,fuzzy=true) @Query(name = "账号", display = true, fuzzy = true)
private String code ; private String code;
@Query(name="名称",display=true,fuzzy=true)
private String name ;
@Query(name="状态",display=true,type=Query.TYPE_DICT,dict=CoreDictType.USER_STATE) @Query(name = "名称", display = true, fuzzy = true)
private String name;
@Query(name = "状态", display = true, type = Query.TYPE_DICT, dict = CoreDictType.USER_STATE)
private String state; private String state;
@Query(name="职务",display=true,type=Query.TYPE_DICT,dict="job_type",group="job_type") @Query(name = "职务", display = true, type = Query.TYPE_DICT, dict = "job_type", group = "job_type")
private String jobType0; private String jobType0;
@Query(name="职务明细",display=true,type=Query.TYPE_DICT,dict="",group="job_type") @Query(name = "职务明细", display = true, type = Query.TYPE_DICT, dict = "", group = "job_type")
private String jobType1; private String jobType1;
private Long orgId; private Long orgId;
public String getCode() { public String getCode() {
return code; return code;
} }
public void setCode(String code) { public void setCode(String code) {
this.code = code; this.code = code;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Long getOrgId() { public Long getOrgId() {
return orgId; return orgId;
} }
public void setOrgId(Long orgId) { public void setOrgId(Long orgId) {
this.orgId = orgId; this.orgId = orgId;
} }
public String getState() { public String getState() {
return state; return state;
} }
public void setState(String state) { public void setState(String state) {
this.state = state; this.state = state;
} }
public String getJobType0() { public String getJobType0() {
return jobType0; return jobType0;
} }
public void setJobType0(String jobType0) { public void setJobType0(String jobType0) {
this.jobType0 = jobType0; this.jobType0 = jobType0;
} }
public String getJobType1() { public String getJobType1() {
return jobType1; return jobType1;
} }
public void setJobType1(String jobType1) { public void setJobType1(String jobType1) {
this.jobType1 = jobType1; this.jobType1 = jobType1;
} }
} }
...@@ -4,18 +4,16 @@ import com.ibeetl.admin.core.annotation.Query; ...@@ -4,18 +4,16 @@ import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType; import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
/** /** 描述: 角色查询条件 */
* 描述: 角色查询条件
*
*/
public class RoleQuery extends PageParam { public class RoleQuery extends PageParam {
@Query(name = "编码", display = true) @Query(name = "编码", display = true)
private String code; private String code;
@Query(name = "名称", display = true) @Query(name = "名称", display = true)
private String name; private String name;
@Query(name = "业务角色类型", type = Query.TYPE_DICT,dict=CoreDictType.ROLE_TYPE)
private String type;
@Query(name = "业务角色类型", type = Query.TYPE_DICT, dict = CoreDictType.ROLE_TYPE)
private String type;
public String getCode() { public String getCode() {
return code; return code;
...@@ -40,8 +38,4 @@ public class RoleQuery extends PageParam { ...@@ -40,8 +38,4 @@ public class RoleQuery extends PageParam {
public void setType(String type) { public void setType(String type) {
this.type = type; this.type = type;
} }
} }
...@@ -4,12 +4,11 @@ import com.ibeetl.admin.core.annotation.Query; ...@@ -4,12 +4,11 @@ import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType; import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam; import com.ibeetl.admin.core.web.query.PageParam;
/** /** 描述: 角色李的用户列表 */
* 描述: 角色李的用户列表
*/
public class RoleUserQuery extends PageParam { public class RoleUserQuery extends PageParam {
@Query(name = "编码", display = true) @Query(name = "编码", display = true)
private String userCode; private String userCode;
@Query(name = "名称", display = true) @Query(name = "名称", display = true)
private String userName; private String userName;
...@@ -38,9 +37,4 @@ public class RoleUserQuery extends PageParam { ...@@ -38,9 +37,4 @@ public class RoleUserQuery extends PageParam {
public void setRoleId(Long roleId) { public void setRoleId(Long roleId) {
this.roleId = roleId; this.roleId = roleId;
} }
} }
...@@ -11,99 +11,113 @@ import com.ibeetl.admin.core.web.query.PageParam; ...@@ -11,99 +11,113 @@ import com.ibeetl.admin.core.web.query.PageParam;
public class UserQuery extends PageParam { public class UserQuery extends PageParam {
@Query(name="账号",display=true,fuzzy=true) @Query(name = "账号", display = true, fuzzy = true)
private String code ; private String code;
@Query(name="名称",display=true,fuzzy=true)
private String name ; @Query(name = "名称", display = true, fuzzy = true)
@Query(name="部门",display=true,type=Query.TYPE_CONTROL,control="org") private String name;
@Query(name = "部门", display = true, type = Query.TYPE_CONTROL, control = "org")
private Long orgId; private Long orgId;
@Query(name="状态",display=true,type=Query.TYPE_DICT,dict=CoreDictType.USER_STATE) @Query(name = "状态", display = true, type = Query.TYPE_DICT, dict = CoreDictType.USER_STATE)
private String state; private String state;
@Query(name="职务",display=true,type=Query.TYPE_DICT,dict="job_type",group="job_type") @Query(name = "职务", display = true, type = Query.TYPE_DICT, dict = "job_type", group = "job_type")
private String jobType0; private String jobType0;
@Query(name="职务明细",display=true,type=Query.TYPE_DICT,dict="",group="job_type") @Query(name = "职务明细", display = true, type = Query.TYPE_DICT, dict = "", group = "job_type")
private String jobType1; private String jobType1;
@Query(name = "创建日期", display = true, type = Query.TYPE_DATE_BETWEEN)
@Query(name="创建日期",display=true,type=Query.TYPE_DATE_BETWEEN)
private String createDateRange; private String createDateRange;
private Date createDateMin; private Date createDateMin;
private Date createDateMax; private Date createDateMax;
public String getCode() { public String getCode() {
return code; return code;
} }
public void setCode(String code) { public void setCode(String code) {
this.code = code; this.code = code;
} }
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Long getOrgId() { public Long getOrgId() {
return orgId; return orgId;
} }
public void setOrgId(Long orgId) { public void setOrgId(Long orgId) {
this.orgId = orgId; this.orgId = orgId;
} }
public String getState() { public String getState() {
return state; return state;
} }
public void setState(String state) { public void setState(String state) {
this.state = state; this.state = state;
} }
public String getJobType0() { public String getJobType0() {
return jobType0; return jobType0;
} }
public void setJobType0(String jobType0) { public void setJobType0(String jobType0) {
this.jobType0 = jobType0; this.jobType0 = jobType0;
} }
public String getJobType1() { public String getJobType1() {
return jobType1; return jobType1;
} }
public void setJobType1(String jobType1) { public void setJobType1(String jobType1) {
this.jobType1 = jobType1; this.jobType1 = jobType1;
} }
public String getCreateDateRange() { public String getCreateDateRange() {
return createDateRange; return createDateRange;
} }
public void setCreateDateRange(String createDateRange) { public void setCreateDateRange(String createDateRange) {
this.createDateRange = createDateRange; this.createDateRange = createDateRange;
if(StringUtils.isEmpty(createDateRange)) { if (StringUtils.isEmpty(createDateRange)) {
return ; return;
} }
Date[] ds = Tool.parseDataRange(createDateRange); Date[] ds = Tool.parseDataRange(createDateRange);
this.createDateMin=ds[0]; this.createDateMin = ds[0];
this.createDateMax =ds[1]; this.createDateMax = ds[1];
} }
public Date getCreateDateMin() { public Date getCreateDateMin() {
return createDateMin; return createDateMin;
} }
public void setCreateDateMin(Date createDateMin) { public void setCreateDateMin(Date createDateMin) {
this.createDateMin = createDateMin; this.createDateMin = createDateMin;
} }
public Date getCreateDateMax() { public Date getCreateDateMax() {
return createDateMax; return createDateMax;
} }
public void setCreateDateMax(Date createDateMax) { public void setCreateDateMax(Date createDateMax) {
this.createDateMax = createDateMax; this.createDateMax = createDateMax;
} }
// public String getJobSubType() { // public String getJobSubType() {
// return jobSubType; // return jobSubType;
// } // }
// public void setJobSubType(String jobSubType) { // public void setJobSubType(String jobSubType) {
// this.jobSubType = jobSubType; // this.jobSubType = jobSubType;
// } // }
// //
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment