@@ -478,6 +478,11 @@ public class SysRoleController {
// Step.1 组装查询条件
// QueryWrapper<SysRole> queryWrapper = QueryGenerator.initQueryWrapper(sysRole, request.getParameterMap());
String ids = request.getParameter("ids");
+ if (ids.length() > 2) {
+ ids = ids.substring(1, ids.length() - 1);
+ } else {
+ ids = null;
+ }
//Step.2 AutoPoi 导出Excel
ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
List<SysRole> pageList = sysRoleService.listExport(sysRole,ids);
@@ -58,7 +58,7 @@
app_base_info sa ON r.app_id = sa.id
WHERE 1=1
<if test="ids!=null">
- AND r.id in (#{ids})
+ AND r.id in (${ids})
</if>
<if test="role.appId!=null">
AND r.app_id = #{role.appId}
@@ -114,7 +114,7 @@ const { prefixCls, tableContext, onImportXls, onExportXls } = useListPage({
exportConfig: {
name: '角色列表',
url: ()=>{
- const ids = encodeURIComponent(JSON.stringify(selectedRowKeys))
+ const ids = encodeURIComponent(JSON.stringify(selectedRowKeys.value))
return `${getExportUrl}?ids=${ids}`;
},