From e07d16ede8529e15d380094e9ab69c096baa8265 Mon Sep 17 00:00:00 2001 From: songyunpeng Date: Fri, 25 Dec 2020 18:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E8=B4=AD=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3Bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/groupBuy/GroupBuyEvaluationDao.xml | 33 +++-- .../mapper/groupBuy/GroupBuyInfoDao.xml | 121 ++++++++++-------- 2 files changed, 86 insertions(+), 68 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyEvaluationDao.xml b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyEvaluationDao.xml index 8f06b38d..eaf36687 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyEvaluationDao.xml +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyEvaluationDao.xml @@ -23,23 +23,22 @@ - select t.ID, - t.GROUP_BUY_TITLE, - t.GROUP_BUY_STATUS, - t.CREATED_TIME as groupBuyPublishTime, - t.TOP_FLAG, - t1.IMG_URL - from epdc_group_buy_info t - left join - epdc_custom_img t1 on t.ID = t1.REFERENCE_ID and t1.IMG_TYPE = 'group_buy' and t1.DEL_FLAG = '0' - where t.ID in (select ID from ( select ID from epdc_group_buy_info where DEL_FLAG = '0' - and SHIELD_FLAG = '0' - and GROUP_BUY_STATUS != '10' - LIMIT #{pageIndex},#{pageSize})a) - order by t.TOP_FLAG desc,t.TOP_TIME desc, t.GROUP_BUY_STATUS, t.CREATED_TIME desc,t1.IMG_URL + select egbi.ID, egbi.GROUP_BUY_TITLE, egbi.GROUP_BUY_STATUS, egbi.groupBuyPublishTime, egbi.TOP_FLAG,t1.IMG_URL + from ( + select t.ID, + t.GROUP_BUY_TITLE, + t.GROUP_BUY_STATUS, + t.CREATED_TIME as groupBuyPublishTime, + t.TOP_FLAG, + t.TOP_TIME, + t.CREATED_TIME + from epdc_group_buy_info t + where t.DEL_FLAG = '0' + and t.SHIELD_FLAG = '0' + and t.GROUP_BUY_STATUS != '10' + limit #{pageIndex},#{pageSize}) egbi + left join + epdc_custom_img t1 on egbi.ID = t1.REFERENCE_ID and t1.IMG_TYPE = 'group_buy' and t1.DEL_FLAG = '0' + order by egbi.TOP_FLAG desc, egbi.TOP_TIME desc, egbi.GROUP_BUY_STATUS, egbi.CREATED_TIME desc, t1.IMG_URL @@ -103,26 +106,35 @@ @@ -137,25 +149,32 @@