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 eaf36687..9910357b 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 @@ -34,6 +34,7 @@ where t.DEL_FLAG = '0' and t.GROUP_BUY_ID = #{groupBuyId} and t.SHIELD_FLAG = '0' + order by t.CREATED_TIME desc limit #{pageIndex},#{pageSize}) egbi left join epdc_custom_img t1 diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyInfoDao.xml b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyInfoDao.xml index 429a4062..7bbc02da 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyInfoDao.xml +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyInfoDao.xml @@ -27,6 +27,7 @@ where t.DEL_FLAG = '0' and t.SHIELD_FLAG = '0' and t.GROUP_BUY_STATUS != '10' + order by t.TOP_FLAG desc, t.TOP_TIME desc, t.GROUP_BUY_STATUS, t.CREATED_TIME desc 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' @@ -127,9 +128,9 @@ left join epdc_group_buy_sign_up t2 on t2.GROUP_BUY_ID = t.ID and t2.DEL_FLAG = '0' where t.DEL_FLAG = '0' and t.SHIELD_FLAG = '0' - and t.GROUP_BUY_STATUS != 10 and t2.USER_ID = #{userId} and t2.SIGN_UP_STATUS != 10 + order by t.GROUP_BUY_STATUS, t.CREATED_TIME desc limit #{pageIndex},#{pageSize}) egbi left join epdc_custom_img t1 @@ -170,6 +171,7 @@ t.DEL_FLAG = '0' and t.SHIELD_FLAG = '0' and t.USER_ID = #{userId} + order by t.GROUP_BUY_STATUS, t.CREATED_TIME desc limit #{pageIndex},#{pageSize})egbi left join epdc_custom_img t1