|
@@ -196,7 +196,7 @@
|
|
AND a.product_id = #{productId}
|
|
AND a.product_id = #{productId}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
- <select id="getByProductId" resultType="com.diagbot.entity.wrapper.OpendProductWrapper">
|
|
|
|
|
|
+ <select id="getByProductId" resultType="com.diagbot.dto.OpendProductDTO">
|
|
SELECT a.*,b.time order_time from diag_opened_products a
|
|
SELECT a.*,b.time order_time from diag_opened_products a
|
|
LEFT JOIN diag_product_order b ON a.order_id =b.id
|
|
LEFT JOIN diag_product_order b ON a.order_id =b.id
|
|
WHERE product_id =#{opend.productId} AND a.is_deleted='N'
|
|
WHERE product_id =#{opend.productId} AND a.is_deleted='N'
|