Browse Source

排序问题修改

feature/syp_points
songyunpeng 5 years ago
parent
commit
ae90043294
  1. 1
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyEvaluationDao.xml
  2. 4
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyInfoDao.xml

1
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' where t.DEL_FLAG = '0'
and t.GROUP_BUY_ID = #{groupBuyId} and t.GROUP_BUY_ID = #{groupBuyId}
and t.SHIELD_FLAG = '0' and t.SHIELD_FLAG = '0'
order by t.CREATED_TIME desc
limit #{pageIndex},#{pageSize}) egbi limit #{pageIndex},#{pageSize}) egbi
left join left join
epdc_custom_img t1 epdc_custom_img t1

4
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' where t.DEL_FLAG = '0'
and t.SHIELD_FLAG = '0' and t.SHIELD_FLAG = '0'
and t.GROUP_BUY_STATUS != '10' 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 limit #{pageIndex},#{pageSize}) egbi
left join left join
epdc_custom_img t1 on egbi.ID = t1.REFERENCE_ID and t1.IMG_TYPE = 'group_buy' and t1.DEL_FLAG = '0' 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' 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' where t.DEL_FLAG = '0'
and t.SHIELD_FLAG = '0' and t.SHIELD_FLAG = '0'
and t.GROUP_BUY_STATUS != 10
and t2.USER_ID = #{userId} and t2.USER_ID = #{userId}
and t2.SIGN_UP_STATUS != 10 and t2.SIGN_UP_STATUS != 10
order by t.GROUP_BUY_STATUS, t.CREATED_TIME desc
limit #{pageIndex},#{pageSize}) egbi limit #{pageIndex},#{pageSize}) egbi
left join left join
epdc_custom_img t1 epdc_custom_img t1
@ -170,6 +171,7 @@
t.DEL_FLAG = '0' t.DEL_FLAG = '0'
and t.SHIELD_FLAG = '0' and t.SHIELD_FLAG = '0'
and t.USER_ID = #{userId} and t.USER_ID = #{userId}
order by t.GROUP_BUY_STATUS, t.CREATED_TIME desc
limit #{pageIndex},#{pageSize})egbi limit #{pageIndex},#{pageSize})egbi
left join left join
epdc_custom_img t1 epdc_custom_img t1

Loading…
Cancel
Save