|
@@ -47,7 +47,7 @@ public interface SecondGoodsMapper extends BaseMapper<SecondGoods> {
|
|
|
* @param queryWrapper 查询条件
|
|
|
* @return 屏蔽的商品列表
|
|
|
*/
|
|
|
- @Select("SELECT sg.* " +
|
|
|
+ @Select("SELECT sg.* , ss.id as shieldId " +
|
|
|
"FROM second_goods sg " +
|
|
|
"INNER JOIN second_shield ss ON " +
|
|
|
"(sg.id = ss.shield_id AND ss.shield_type = 1) "+
|
|
@@ -124,7 +124,7 @@ public interface SecondGoodsMapper extends BaseMapper<SecondGoods> {
|
|
|
"sgc1.category_name as categoryOneName, " +
|
|
|
"sgc2.category_name as categoryTwoName " +
|
|
|
"FROM second_goods sg " +
|
|
|
- "LEFT JOIN life_collect lc ON sg.id = lc.goods_id " +
|
|
|
+ "LEFT JOIN life_collect lc ON sg.id = lc.business_id " +
|
|
|
"LEFT JOIN second_goods_category sgc1 " +
|
|
|
"on sg.category_one_id = sgc1.id " +
|
|
|
"LEFT JOIN second_goods_category sgc2 " +
|
|
@@ -261,8 +261,8 @@ public interface SecondGoodsMapper extends BaseMapper<SecondGoods> {
|
|
|
" str.transaction_latitude_longitude, " +
|
|
|
" str.transaction_location, " +
|
|
|
" str.transaction_amount, " +
|
|
|
- " str.buyer_signin, " +
|
|
|
- " str.seller_signin, " +
|
|
|
+ " str.buyer_sign_in, " +
|
|
|
+ " str.seller_sign_in, " +
|
|
|
" str.buyer_transaction_status, " +
|
|
|
" str.seller_transaction_status, " +
|
|
|
" str.trade_status, " +
|