parent
a454ef415f
commit
2890af6311
@ -0,0 +1,38 @@
|
||||
package cn.iocoder.mall.order.application.controller.admins;
|
||||
|
||||
import cn.iocoder.common.framework.vo.CommonResult;
|
||||
import cn.iocoder.mall.order.api.OrderReturnService;
|
||||
import cn.iocoder.mall.order.api.bo.OrderReturnListBO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderReturnQueryDTO;
|
||||
import cn.iocoder.mall.order.application.convert.OrderReturnConvert;
|
||||
import cn.iocoder.mall.order.application.po.admin.OrderReturnQueryPO;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.apache.dubbo.config.annotation.Reference;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 订单退货
|
||||
*
|
||||
* @author Sin
|
||||
* @time 2019-05-06 21:31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("admins/order_return")
|
||||
@Api("订单退货(admins api)")
|
||||
public class AdminOrderReturnController {
|
||||
|
||||
@Autowired
|
||||
@Reference(validation = "true")
|
||||
private OrderReturnService orderReturnService;
|
||||
|
||||
@GetMapping("list")
|
||||
public CommonResult<OrderReturnListBO> list(@Validated OrderReturnQueryPO queryPO) {
|
||||
OrderReturnQueryDTO queryDTO = OrderReturnConvert.INSTANCE.convert(queryPO);
|
||||
return orderReturnService.orderReturnList(queryDTO);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package cn.iocoder.mall.order.application.po.admin;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 订单退货 查询 po
|
||||
*
|
||||
* @author Sin
|
||||
* @time 2019-05-06 21:36
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderReturnQueryPO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
* 订单id
|
||||
*/
|
||||
private Integer orderId;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
private Integer orderNo;
|
||||
/**
|
||||
* 创建时间 - 开始
|
||||
*/
|
||||
private Date startCreateTime;
|
||||
/**
|
||||
* 创建时间 - 结束
|
||||
*/
|
||||
private Date endCreateTime;
|
||||
|
||||
///
|
||||
/// 分页信息
|
||||
|
||||
/**
|
||||
* 分页 index
|
||||
*/
|
||||
@NotNull
|
||||
private Integer index;
|
||||
/**
|
||||
* 分页大小
|
||||
*/
|
||||
@NotNull
|
||||
private Integer pageSize;
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package cn.iocoder.mall.order.api.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 订单退货 查询 po
|
||||
*
|
||||
* @author Sin
|
||||
* @time 2019-05-06 21:36
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderReturnQueryDTO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
* 订单id
|
||||
*/
|
||||
private Integer orderId;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
private Integer orderNo;
|
||||
/**
|
||||
* 创建时间 - 开始
|
||||
*/
|
||||
private Date startCreateTime;
|
||||
/**
|
||||
* 创建时间 - 结束
|
||||
*/
|
||||
private Date endCreateTime;
|
||||
|
||||
///
|
||||
/// 分页信息
|
||||
|
||||
/**
|
||||
* 分页 index
|
||||
*/
|
||||
private Integer index;
|
||||
/**
|
||||
* 分页大小
|
||||
*/
|
||||
private Integer pageSize;
|
||||
}
|
||||
Loading…
Reference in new issue