Commit dd22da1f authored by libin's avatar libin

会员 * 优惠券

parent cd8251db
...@@ -21,10 +21,7 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -21,10 +21,7 @@ import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example; import tk.mybatis.mapper.entity.Example;
import java.time.Instant; import java.time.Instant;
import java.util.ArrayList; import java.util.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -188,6 +185,7 @@ public class BaseUserMemberExportBiz extends BaseBiz<BaseUserMemberExportMapper, ...@@ -188,6 +185,7 @@ public class BaseUserMemberExportBiz extends BaseBiz<BaseUserMemberExportMapper,
BeanUtils.copyProperties(userMemberExportDTO,baseUserMemberExportVo); BeanUtils.copyProperties(userMemberExportDTO,baseUserMemberExportVo);
baseUserMemberExportVos.add(baseUserMemberExportVo); baseUserMemberExportVos.add(baseUserMemberExportVo);
} }
baseUserMemberExportVos.sort(Comparator.comparing(BaseUserMemberExportVo::getCrtTime).reversed());
baseUserMemberExportVoPageDataVO.setData(baseUserMemberExportVos); baseUserMemberExportVoPageDataVO.setData(baseUserMemberExportVos);
baseUserMemberExportVoPageDataVO.setPageNum(baseUserMemberExportDataDTOS.getPageNum()); baseUserMemberExportVoPageDataVO.setPageNum(baseUserMemberExportDataDTOS.getPageNum());
baseUserMemberExportVoPageDataVO.setPageSize(baseUserMemberExportDataDTOS.getPageSize()); baseUserMemberExportVoPageDataVO.setPageSize(baseUserMemberExportDataDTOS.getPageSize());
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</if> </if>
<if test="endTime != null and startTime == null"> <if test="endTime != null and startTime == null">
and <![CDATA[ `crt_time` <= #{startTime}]]> and <![CDATA[ `crt_time` <= #{startTime}]]>
</if> </if> order by `crt_time` DESC
</select> </select>
<update id="updateUserMemberExportDataStatusById"> <update id="updateUserMemberExportDataStatusById">
......
package com.xxfc.platform.activity.dto;
import com.github.wxiaoqi.security.common.vo.PageParam;
import lombok.Data;
/**
* @author libin
* @version 1.0
* @description
* @data 2019/7/23 10:41
*/
@Data
public class CouponFindDTO extends PageParam {
private String title;
private Integer type;
}
package com.xxfc.platform.activity.vo;
import lombok.Data;
/**
* @author libin
* @version 1.0
* @description
* @data 2019/7/23 10:55
*/
@Data
public class CouponPagVo {
}
package com.xxfc.platform.activity.rest.admin;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.activity.biz.CouponBiz;
import com.xxfc.platform.activity.dto.CouponFindDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author libin
* @version 1.0
* @description
* @data 2019/7/23 10:39
*/
@RestController
@RequestMapping("/admin/coupon")
public class CouponAdminController {
@Autowired
private CouponBiz couponBiz;
@GetMapping("/page")
public ObjectRestResponse listCouponWithPage(CouponFindDTO couponFindDTO){
return ObjectRestResponse.succ();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment