|
@@ -59,7 +59,8 @@
|
|
|
cd.scrap_completion_time scrapCompletionTime,
|
|
|
qd.describe_content describeContent,
|
|
|
qd.describe_handle_desc describeHandleDesc,
|
|
|
- sa.admin_name adminName
|
|
|
+ sa.admin_name adminName,
|
|
|
+ cd.detect_is_whetherLess detectIsWhetherLess
|
|
|
from tb_rst_complaint_detect cd
|
|
|
LEFT JOIN tb_rst_cm_question_describe qd on cd.customer_id = qd.customer_id
|
|
|
LEFT JOIN tb_rst_product_info pi ON cd.product_id = pi.product_id
|
|
@@ -168,7 +169,8 @@
|
|
|
cd.scrap_completion_time scrapCompletionTime,
|
|
|
qd.describe_content describeContent,
|
|
|
qd.describe_handle_desc describeHandleDesc,
|
|
|
- sa.admin_name adminName
|
|
|
+ sa.admin_name adminName,
|
|
|
+ cd.detect_is_whetherLess detectIsWhetherLess
|
|
|
from tb_rst_complaint_detect cd
|
|
|
LEFT JOIN tb_rst_product_info pi ON cd.product_id = pi.product_id
|
|
|
LEFT JOIN tb_rst_cm_question_describe qd on cd.customer_id = qd.customer_id
|
|
@@ -301,7 +303,7 @@
|
|
|
and cd.detect_state = 22
|
|
|
</if>
|
|
|
<if test="state != null and state == 4">
|
|
|
- and cd.detect_state in(33,37)
|
|
|
+ and cd.detect_state in(33,37) and detect_placeorder = 1
|
|
|
</if>
|
|
|
<if test="state != null and state == 5">
|
|
|
and cd.detect_state = 20
|
|
@@ -312,6 +314,9 @@
|
|
|
<if test="maintenanceResults != null and maintenanceResults != ''">
|
|
|
and cd.maintenance_results = #{maintenanceResults}
|
|
|
</if>
|
|
|
+ <if test="detectIsWhetherLess != null and detectIsWhetherLess != ''">
|
|
|
+ and cd.detect_is_whetherLess = #{detectIsWhetherLess}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
GROUP BY cd.detect_id
|
|
|
ORDER BY cd.detect_create_time DESC
|
|
@@ -407,7 +412,7 @@
|
|
|
<if test="detectPlaceorder != null and detectPlaceorder != ''" >
|
|
|
detect_placeorder = #{detectPlaceorder,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="salesOrderId != null and salesOrderId != ''" >
|
|
|
+ <if test="salesOrderId != null" >
|
|
|
sales_orderId = #{salesOrderId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="detectCompletionTime != null and detectCompletionTime != ''" >
|
|
@@ -420,7 +425,10 @@
|
|
|
renovation_completion_time = #{renovationCompletionTime},
|
|
|
</if>
|
|
|
<if test="scrapCompletionTime != null and scrapCompletionTime != ''" >
|
|
|
- scrap_completion_time = #{scrapCompletionTime}
|
|
|
+ scrap_completion_time = #{scrapCompletionTime},
|
|
|
+ </if>
|
|
|
+ <if test="detectIsWhetherLess != null and detectIsWhetherLess != ''">
|
|
|
+ detect_is_whetherLess = #{detectIsWhetherLess}
|
|
|
</if>
|
|
|
</set>
|
|
|
where
|
|
@@ -459,7 +467,8 @@
|
|
|
detect_is_refurbishing,
|
|
|
maintenance_results,
|
|
|
detect_number,
|
|
|
- maintenance_cut_time
|
|
|
+ maintenance_cut_time,
|
|
|
+ detect_is_whetherLess
|
|
|
)
|
|
|
values
|
|
|
(
|
|
@@ -492,7 +501,8 @@
|
|
|
#{detectIsRefurbishing},
|
|
|
#{maintenanceResults},
|
|
|
#{detectNumber},
|
|
|
- #{maintenanceCutTime}
|
|
|
+ #{maintenanceCutTime},
|
|
|
+ #{detectIsWhetherLess}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -737,7 +747,7 @@
|
|
|
LEFT JOIN tb_rst_address_district ad on ad.district_id = cs.signclosed_addr_area
|
|
|
WHERE
|
|
|
cd.customer_id = #{customerId}
|
|
|
- AND detect_state in (32,36,37) AND maintenance_results = 1 AND detect_placeorder = 1
|
|
|
+ AND detect_state in (32,33,36,37) AND detect_placeorder = 1
|
|
|
</select>
|
|
|
|
|
|
|