From 5e1670170c18cf31b8491e0609bf0178c29227f2 Mon Sep 17 00:00:00 2001
From: 6c <420680616@qq.com>
Date: 星期五, 31 十月 2025 09:32:00 +0800
Subject: [PATCH] Merge branch 'dev' of http://nonxin.cn:8090/r/product/product-server-report/V2.0.0 into dev

---
 src/main/java/com/product/server/report/service/ChartPropertyConfigService.java |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/product/server/report/service/ChartPropertyConfigService.java b/src/main/java/com/product/server/report/service/ChartPropertyConfigService.java
index 8e7a529..e5ac258 100644
--- a/src/main/java/com/product/server/report/service/ChartPropertyConfigService.java
+++ b/src/main/java/com/product/server/report/service/ChartPropertyConfigService.java
@@ -114,8 +114,10 @@
                 //鍐嶆坊鍔犳暟鎹�
                 if(!BaseUtil.dataTableIsEmpty(attributeDataTable)){
                     for (int j = 0; j < attributeDataTable.getRows(); j++) {
-                       FieldSetEntity fieldSetEntity = attributeDataTable.getFieldSetEntity(j);
+                        FieldSetEntity fieldSetEntity = attributeDataTable.getFieldSetEntity(j);
                         fieldSetEntity.setValue("report_config_uuid", subChartsUuid);
+                        fieldSetEntity.setValue("`grouping`", fieldSetEntity.getString("grouping"));
+                        fieldSetEntity.remove("grouping");
                         String report_type_attr_value = fieldSetEntity.getString("report_type_attr_value");
                         if(!BaseUtil.strIsNull(report_type_attr_value) && report_type_attr_value.contains("{#") && report_type_attr_value.contains("#}")){
                             String field_name = report_type_attr_value.replace("{#", "").replace("#}", "");
@@ -242,7 +244,7 @@
                     jsonObject.put("children", newArray);
                     String reportConfigUuid = object.getString("report_config_uuid");
                     String reportTypeAttr = object.getString("report_type_attr");
-                    DataTableEntity dataTableEntity = baseDao.listTable(CmnConst.PRODUCT_SYS_REPORT_CONFIG_ATTRIBUTE, " report_type_attr = ? AND report_config_uuid = ? and  grouping != 1 ", new String[]{reportTypeAttr, reportConfigUuid});
+                    DataTableEntity dataTableEntity = baseDao.listTable(CmnConst.PRODUCT_SYS_REPORT_CONFIG_ATTRIBUTE, " report_type_attr = ? AND report_config_uuid = ? and  `grouping` != 1 ", new String[]{reportTypeAttr, reportConfigUuid});
                     for (int j = 0; j < dataTableEntity.getRows(); j++) {
                         JSONObject groupNew = JSONObject.parseObject(group.toJSONString());
                         String key = dataTableEntity.getString(j, "grouping");
@@ -296,11 +298,11 @@
      */
     public DataTableEntity getEChartsElementList(String uuid)throws BaseException{
         StringBuffer sql = new StringBuffer();
-        sql.append(" SELECT a.uuid auuid,a.detail adetail,a.attribute_name aname,a.subordinateElementType asubordinateElementType,a.prompt_name,a.default_value, ")
-                .append(" b.uuid buuid,b.detail bdetail,b.attribute_name bname,b.subordinateElementType bsubordinateElementType, ")
-                .append(" c.uuid cuuid,c.detail cdetail,c.attribute_name cname,c.subordinateElementType csubordinateElementType, ")
-                .append(" d.uuid duuid,d.detail ddetail,d.attribute_name dname,d.subordinateElementType dsubordinateElementType, ")
-                .append(" e.uuid euuid,e.detail edetail,e.attribute_name ename,e.subordinateElementType esubordinateElementType, ")
+        sql.append(" SELECT a.uuid auuid,a.detail adetail,a.attribute_name aname,a.subordinateElementType asubordinateElementType,a.is_commonly ais_commonly,a.prompt_name,a.default_value, ")
+                .append(" b.uuid buuid,b.detail bdetail,b.attribute_name bname,b.subordinateElementType bsubordinateElementType,b.is_commonly bis_commonly, ")
+                .append(" c.uuid cuuid,c.detail cdetail,c.attribute_name cname,c.subordinateElementType csubordinateElementType,c.is_commonly cis_commonly, ")
+                .append(" d.uuid duuid,d.detail ddetail,d.attribute_name dname,d.subordinateElementType dsubordinateElementType,d.is_commonly dis_commonly, ")
+                .append(" e.uuid euuid,e.detail edetail,e.attribute_name ename,e.subordinateElementType esubordinateElementType,e.is_commonly eis_commonly, ")
                 .append(" f.uuid fuuid,f.detail fdetail,f.attribute_name fname,f.subordinateElementType fsubordinateElementType FROM ")
                 .append("product_sys_report_type_attribute a LEFT JOIN ")
                 .append("product_sys_report_type_attribute b on a.parentAttributeUuid = b.uuid LEFT JOIN ")
@@ -361,11 +363,14 @@
         String uuid = fieldSetEntity.getString(parameter[paramIndex]+"uuid");
         //鍏冪礌瀛愬厓绱犵被鍨�
         String subType = fieldSetEntity.getString(parameter[paramIndex]+"subordinateElementType");
+        // 鏄惁甯哥敤
+        String isCommonly = fieldSetEntity.getString(parameter[paramIndex]+"is_commonly");
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("value",name);
         jsonObject.put("label",detail);
         jsonObject.put("uuid",uuid);
         jsonObject.put("subordinateElementType",subType);
+        jsonObject.put("isCommonly", isCommonly);
         jsonObject.put("config_properties",fieldSetEntity.getString("config_properties"));
         paramIndex++;
         if(paramIndex < parameter.length) {

--
Gitblit v1.9.2