定时任务-综合销售情况表-添加部分字段的排序-修改问题

This commit is contained in:
king
2026-04-21 14:20:27 +08:00
parent 2ef29cee27
commit b26810e792

View File

@@ -2,6 +2,7 @@
package com.lideeyunji.core.framework.enhance.example.report.xtsy;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.ListUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
@@ -52,7 +53,7 @@ public class ZhxsqkPlugin implements ReportAroundAdvicePlugin {
if (params.containsKey("goodsName")) {
throw new lideeYunJiException("在选择维度时,“产品名称”不能有值!");
}
if(params.containsKey("column") && !groupFieldList.contains(params.get("column").toString())){
if(params.containsKey("column") && ListUtil.toList("stdGoodsName", "customName", "salerName").contains(params.get("column").toString()) && !groupFieldList.contains(params.get("column").toString())){
params.remove("column");
params.remove("order");
}