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}