|
@@ -96,14 +96,14 @@
|
|
|
|
|
|
<select id="getDetectList" resultType="DetectStatistics" parameterType="DetectionConfig" >
|
|
<select id="getDetectList" resultType="DetectStatistics" parameterType="DetectionConfig" >
|
|
SELECT
|
|
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_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
|
|
LEFT JOIN tb_rst_complaint_detection_config cdc ON cdi.item_config_id = cdc.config_id
|
|
<where>
|
|
<where>
|