瀏覽代碼

质量监控分析报表

wangliang 9 月之前
父節點
當前提交
d8fb9e04d3

+ 2 - 13
sop-business/src/main/java/com/qmth/sop/business/bean/report/QualityAnalyseReportBean.java

@@ -63,9 +63,6 @@ public class QualityAnalyseReportBean implements Serializable {
     @ApiModelProperty(value = "问题原因")
     QualityProblemReasonEnum reason;
 
-    @ApiModelProperty(value = "问题原因str")
-    String reasonStr;
-
     @ApiModelProperty(value = "问题原因总数")
     Integer reasonSum;
 
@@ -79,7 +76,7 @@ public class QualityAnalyseReportBean implements Serializable {
     public QualityAnalyseReportBean(QualityProblemReasonEnum qualityProblemReasonEnum) {
         this.setNull();
         this.setReason(qualityProblemReasonEnum);
-        this.setReasonStr(this.getReason().getTitle());
+        this.setName(this.getReason().getTitle());
         this.setReasonSum(0);
         this.setReasonRate(new BigDecimal(0));
     }
@@ -124,7 +121,7 @@ public class QualityAnalyseReportBean implements Serializable {
     }
 
     public String getName() {
-        return name;
+        return Objects.nonNull(reason) ? reason.getTitle() : name;
     }
 
     public void setName(String name) {
@@ -226,12 +223,4 @@ public class QualityAnalyseReportBean implements Serializable {
     public void setInfluenceDegreeD(Integer influenceDegreeD) {
         this.influenceDegreeD = influenceDegreeD;
     }
-
-    public String getReasonStr() {
-        return Objects.nonNull(reason) ? reason.getTitle() : reasonStr;
-    }
-
-    public void setReasonStr(String reasonStr) {
-        this.reasonStr = reasonStr;
-    }
 }

+ 15 - 1
sop-business/src/main/resources/db/log/wangliang_update_log.sql

@@ -464,4 +464,18 @@ WHERE id=1091;
 DELETE FROM sys_privilege
 WHERE id=1092;
 DELETE FROM sys_privilege
-WHERE id=1093;
+WHERE id=1093;
+
+-- 2024-09-24
+UPDATE sys_privilege
+SET name='质量监控分析', url='qualityAnalyse', `type`='MENU', parent_id=1100, `sequence`=6, property=NULL, related='1113,1114,1115', enable=1, default_auth=0, front_display=1
+WHERE id=1106;
+INSERT INTO sys_privilege
+(id, name, url, `type`, parent_id, `sequence`, property, related, enable, default_auth, front_display)
+VALUES(1113, '大区质量问题统计', '/api/admin/quality/analyse/area_manager/report', 'URL', 1106, 1, 'AUTH', NULL, 1, 1, 1);
+INSERT INTO sys_privilege
+(id, name, url, `type`, parent_id, `sequence`, property, related, enable, default_auth, front_display)
+VALUES(1114, '人力商质量问题统计', '/api/admin/quality/analyse/human_supplier/report', 'URL', 1106, 1, 'AUTH', NULL, 1, 1, 1);
+INSERT INTO sys_privilege
+(id, name, url, `type`, parent_id, `sequence`, property, related, enable, default_auth, front_display)
+VALUES(1115, '质量问题原因分类', '/api/admin/quality/analyse/type/report', 'URL', 1106, 1, 'AUTH', NULL, 1, 1, 1);