|
|
@@ -200,11 +200,39 @@
|
|
|
FROM tz_prod_comm a
|
|
|
LEFT JOIN tz_user b on a.user_id=b.user_id
|
|
|
WHERE a.user_id=#{userId}
|
|
|
- ORDER BY a.rec_time desc,prod_comm_id desc
|
|
|
+ ORDER BY a.rec_time desc,a.prod_comm_id desc
|
|
|
</select>
|
|
|
|
|
|
<select id="getShopName" resultType="string">
|
|
|
SELECT shop_name FROM tz_shop_detail WHERE shop_id =(SELECT shop_id FROM tz_order WHERE order_number=#{orderNumber})
|
|
|
</select>
|
|
|
|
|
|
+ <select id="backendCommList" resultMap="BaseResultMap">
|
|
|
+ SELECT b.nick_name,b.pic avatar,a.*
|
|
|
+ FROM tz_prod_comm a
|
|
|
+ LEFT JOIN tz_user b on a.user_id=b.user_id
|
|
|
+ LEFT JOIN tz_order c on a.order_number =c.order_number
|
|
|
+ <where>
|
|
|
+ <if test="po.score != null">
|
|
|
+ and a.score=#{po.score}
|
|
|
+ </if>
|
|
|
+ <if test="po.score != null">
|
|
|
+ and a.status=#{po.status}
|
|
|
+ </if>
|
|
|
+ <if test="po.replySts != null">
|
|
|
+ and a.reply_sts=#{po.replySts}
|
|
|
+ </if>
|
|
|
+ <if test="po.shopId != null">
|
|
|
+ and c.shop_id=#{po.shopId}
|
|
|
+ </if>
|
|
|
+ <if test="po.startTime != null and po.startTime != ''">
|
|
|
+ AND a.rec_time >= str_to_date(#{po.startTime},'%Y-%m-%d %H:%i:%s')
|
|
|
+ </if>
|
|
|
+ <if test="po.endTime != null and po.endTime != ''">
|
|
|
+ AND a.rec_time <= str_to_date(#{po.endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ ORDER BY a.rec_time desc,a.prod_comm_id desc
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|