From ec342886d711266b00cc711ef09ab2b4eb941691 Mon Sep 17 00:00:00 2001 From: Burce Date: Sat, 31 Aug 2019 18:02:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E6=B3=A8=E5=88=B8->=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxCouponActionLogServiceImpl.java | 2 ++ .../src/main/resources/mapper/WxCouponActionLogMapper.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java index 0ad214d14..d927af7c9 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java @@ -6,6 +6,7 @@ import java.util.*; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.iformall.common.ErrorCode; +import com.iformall.domain.po.BaseEntity; import com.iformall.domain.po.WxCouponActionLog; import com.iformall.domain.vo.WxCouponActionLogVo; import com.iformall.exception.MallinkException; @@ -79,6 +80,7 @@ public class WxCouponActionLogServiceImpl implements WxCouponActionLogService { if (CollectionUtils.isEmpty(params) || Objects.isNull(channelType)) { throw new MallinkException(ErrorCode.SYS_PARAMETER_ERROR); } + params.put("sortColumns", BaseEntity.SortField.CreateTime_DESC) ; return PageHelper.startPage(pageNum, pageSize).doSelectPageInfo(() -> wxCouponActionLogMapper.getActionLog(params)); } diff --git a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml index bf1821efb..7f05f5790 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml @@ -237,6 +237,7 @@ AND cal.create_time < #{endDate} + order by ${sortColumns}