Merge branch 'master' into docker_package
This commit is contained in:
commit
7884d2dcc4
|
@ -225,6 +225,9 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
wrapper.in(true, "del_flag", 0, 5);
|
wrapper.in(true, "del_flag", 0, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (params.containsKey("infoList")) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
wrapper.orderByAsc("del_flag").orderByDesc("create_date");
|
wrapper.orderByAsc("del_flag").orderByDesc("create_date");
|
||||||
return wrapper;
|
return wrapper;
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,7 +168,7 @@ public class SysUserController {
|
||||||
@ApiImplicitParam(name = "username", value = "用户名", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "username", value = "用户名", paramType = "query", dataType = "String")
|
||||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||||
List<SysUserDTO> list = sysUserService.list(params);
|
List<SysUserDTO> list = sysUserService.list(params);
|
||||||
|
params.put("export", true);
|
||||||
ExcelUtils.exportExcelToTarget(response, null, "用户管理", list, SysUserExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, "用户管理", list, SysUserExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,9 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
|
||||||
if (roleDTO != null) {
|
if (roleDTO != null) {
|
||||||
params.put("role_id", roleDTO.getId());
|
params.put("role_id", roleDTO.getId());
|
||||||
}
|
}
|
||||||
|
if (params.containsKey("export")) { // 导出特殊处理
|
||||||
|
params.remove("role_id");
|
||||||
|
}
|
||||||
List<SysUserEntity> entityList = baseDao.getList(params);
|
List<SysUserEntity> entityList = baseDao.getList(params);
|
||||||
|
|
||||||
return ConvertUtils.sourceToTarget(entityList, SysUserDTO.class);
|
return ConvertUtils.sourceToTarget(entityList, SysUserDTO.class);
|
||||||
|
|
Loading…
Reference in New Issue