bug--unique关键字修复

This commit is contained in:
taozi
2020-06-04 18:30:30 +08:00
parent 02d28a324b
commit 8afb2b52b6
4 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ public interface YxStoreProductReplyMapper extends BaseMapper<YxStoreProductRepl
"A.merchant_reply_time as merchantReplyTime,A.pics as pictures,A.add_time as addTime," +
"B.nickname,B.avatar,C.cart_info as cartInfo" +
" from yx_store_product_reply A left join yx_user B " +
"on A.uid = B.uid left join yx_store_order_cart_info C on A.unique = C.unique" +
"on A.uid = B.uid left join yx_store_order_cart_info C on A.`unique` = C.`unique`" +
" where A.product_id=#{productId} and A.is_del=0 and A.reply_type='product' " +
"order by A.add_time DESC limit 1")
YxStoreProductReplyQueryVo getReply(int productId);
@ -39,7 +39,7 @@ public interface YxStoreProductReplyMapper extends BaseMapper<YxStoreProductRepl
"A.merchant_reply_time as merchantReplyTime,A.pics as pictures,A.add_time as addTime," +
"B.nickname,B.avatar,C.cart_info as cartInfo" +
" from yx_store_product_reply A left join yx_user B " +
"on A.uid = B.uid left join yx_store_order_cart_info C on A.unique = C.unique" +
"on A.uid = B.uid left join yx_store_order_cart_info C on A.`unique` = C.`unique`" +
" where A.product_id=#{productId} and A.is_del=0 and A.reply_type='product' " +
"<if test='type == 1'>and A.product_score = 5</if>" +
"<if test='type == 2'>and A.product_score &lt; 5 and A.product_score &gt; 2</if>" +

View File

@ -4,7 +4,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, oid, cart_id, product_id, cart_info, unique
id, oid, cart_id, product_id, cart_info, `unique`
</sql>
<select id="getYxStoreOrderCartInfoById" resultType="co.yixiang.modules.order.web.vo.YxStoreOrderCartInfoQueryVo">

View File

@ -4,7 +4,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, product_id, suk, stock, sales, price, image, unique, cost
id, product_id, suk, stock, sales, price, image, `unique`, cost
</sql>
<select id="getYxStoreProductAttrValueById" resultType="co.yixiang.modules.shop.web.vo.YxStoreProductAttrValueQueryVo">

View File

@ -4,7 +4,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, uid, oid, unique, product_id, reply_type, product_score, service_score, comment, pics, add_time, merchant_reply_content, merchant_reply_time, is_del, is_reply
id, uid, oid, `unique`, product_id, reply_type, product_score, service_score, comment, pics, add_time, merchant_reply_content, merchant_reply_time, is_del, is_reply
</sql>
<select id="getYxStoreProductReplyById" resultType="co.yixiang.modules.shop.web.vo.YxStoreProductReplyQueryVo">