wangxiaoming 5 gadi atpakaļ
vecāks
revīzija
44a1ba3507

+ 8 - 8
watero-rst-service/src/main/java/com/iamberry/rst/service/fm/mapper/detectStatisticMapper.xml

@@ -96,14 +96,14 @@
 
     <select id="getDetectList" resultType="DetectStatistics" parameterType="DetectionConfig" >
         SELECT
-        t.detect_id,
-        IF(t.detect_production = '','未知',ifnull(t.detect_production,'未知')) AS detect_production,
-        t.detect_create_time,
-        cdc.config_id,
-        COUNT(cdc.config_id) AS configNumber,
-        cdc.config_detect_content,
-        cdc.config_type
-        FROM tb_rst_complaint_detect t
+            t.detect_id,
+            COUNT(DISTINCT t.detect_id) AS configNumber,
+            IF(t.detect_production = '','未知',ifnull(t.detect_production,'未知')) AS detect_production,
+            t.detect_create_time,
+            cdc.config_id,
+            cdc.config_detect_content,
+            cdc.config_type
+            FROM tb_rst_complaint_detect t
         LEFT JOIN tb_rst_complaint_detection_item cdi ON t.detect_id = cdi.detect_id
         LEFT JOIN tb_rst_complaint_detection_config cdc ON cdi.item_config_id = cdc.config_id
         <where>

+ 6 - 3
watero-rst-web/src/main/webapp/WEB-INF/views/cm/inspection/detect_statistics.ftl

@@ -31,6 +31,9 @@
         </style>
 	</head>
 	<body>
+        <div class="input-box" style="height: 45px;" class="dataTableStatis">
+            <label class="form-label col-2 col-sm-2 huanhang" style="text-align: right;margin: 10px 0px;font-weight: bold;font-size: 23px;">本月故障机器</label>
+        </div>
     	<div id="main" style="width: 1400px;height:500px;"></div>
 
 
@@ -161,14 +164,14 @@
                         }
                         var option = {
                             title : {
-                                text: '本月故障机器',
+                                text: '',
                                 subtext: ''
                             },
                             tooltip : {
                                 trigger: 'axis'
                             },
                             legend: {
-                                data:['返厂日期']
+                                data:['故障机器数量']
                             },
                             toolbox: {
                                 show : true,
@@ -192,7 +195,7 @@
                                 }
                             ],
                             series : {
-                                name:'返厂日期',
+                                name:'故障机器数量',
                                 type:'bar',
                                 data:newNumArray
 //								barWidth : 10%,

+ 1 - 1
watero-rst-web/src/main/webapp/WEB-INF/views/dm/financialReceipt/order_desc.ftl

@@ -348,7 +348,7 @@
      */
     function selectOrder(type) {
         isAddOrderType=type;
-        layer_show("搜索订单",url_path + "/admin/financial_receipt/to_select_order?salesStatus="+1,"1300","550");
+        layer_show("搜索订单",url_path + "/admin/financial_receipt/to_select_order?salesStatus="+1,"1200","550");
     }
     
     function showSelectOrder(orderIds) {