123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- package com.xy.dto;
- import com.alibaba.excel.annotation.ExcelProperty;
- import com.alibaba.excel.annotation.format.NumberFormat;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.xy.annotate.DictFormat;
- import com.xy.consts.DictConsts;
- import com.xy.convert.CustomFenToYuanConverter;
- import com.xy.convert.DictConvert;
- import com.xy.utils.PageBean;
- import io.swagger.annotations.ApiModelProperty;
- import lombok.Data;
- import lombok.experimental.Accessors;
- import java.time.LocalDateTime;
- import java.util.List;
- /**
- * <p>
- * 设备计费历史表
- * </p>
- *
- * @author lijin
- * @since 2023-04-14
- */
- public class DeviceChargingHistoryDto {
- @Data
- @Accessors(chain = true)
- public static class MySpendPageVO {
- @ApiModelProperty(value = "id")
- private Long id;
- @ApiModelProperty(value = "商户id")
- private Long mercId;
- @ApiModelProperty(value = "订单id")
- private String orderId;
- @ApiModelProperty(value = "设备id")
- private Long deviceId;
- @ApiModelProperty(value = "续费金额")
- private Integer chargingMoney;
- @ApiModelProperty(value = "佣金")
- private Integer agentMoney;
- @ApiModelProperty(value = "续费数量")
- private Integer chargingSize;
- @ApiModelProperty(value = "续费方式")
- private Integer chargingType;
- @ApiModelProperty(value = "状态")
- private Integer status;
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value = "创建时间")
- private LocalDateTime createTime;
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value = "更新时间")
- private LocalDateTime updateTime;
- @ApiModelProperty(value = "备注")
- private String note;
- @ApiModelProperty(value = "附件")
- private String files;
- @ApiModelProperty(value = "商户名称")
- private String mercName;
- @ApiModelProperty(value = "过期时间")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime timeout;
- @ApiModelProperty(value = "过期状态说明")
- private String timeoutStatus;
- }
- @Data
- @Accessors(chain = true)
- public static class PageVo {
- @ApiModelProperty(value = "id")
- private Long id;
- @ApiModelProperty(value = "商户id")
- private Long mercId;
- @ApiModelProperty(value = "订单id")
- private String orderId;
- @ApiModelProperty(value = "设备id")
- private Long deviceId;
- @ApiModelProperty(value = "续费金额")
- private Integer chargingMoney;
- @ApiModelProperty(value = "佣金")
- private Integer agentMoney;
- @ApiModelProperty(value = "续费数量")
- private Integer chargingSize;
- @ApiModelProperty(value = "续费方式")
- private Integer chargingType;
- @ApiModelProperty(value = "状态")
- private Integer status;
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value = "创建时间")
- private LocalDateTime createTime;
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value = "更新时间")
- private LocalDateTime updateTime;
- @ApiModelProperty(value = "备注")
- private String note;
- @ApiModelProperty(value = "附件")
- private String files;
- @ApiModelProperty(value = "商户名称")
- private String mercName;
- @ApiModelProperty(value = "过期时间")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime timeout;
- @ApiModelProperty(value = "过期状态说明")
- private String timeoutStatus;
- }
- @Data
- @Accessors(chain = true)
- public static class PageExcelVo {
- @ExcelProperty("商户名称")
- @ApiModelProperty(value = "商户名称")
- private String mercName;
- @ExcelProperty("缴费单号")
- @ApiModelProperty(value = "缴费单号")
- private String orderId;
- @ExcelProperty("设备编号")
- @ApiModelProperty(value = "设备编号")
- private Long deviceId;
- @ExcelProperty(value = "实缴金额", converter = CustomFenToYuanConverter.class)
- @NumberFormat("#0.00")
- @ApiModelProperty(value = "续费金额")
- private Integer chargingMoney;
- @ApiModelProperty(value = "佣金")
- @ExcelProperty(value = "佣金", converter = CustomFenToYuanConverter.class)
- @NumberFormat("#0.00")
- private Integer agentMoney;
- @ExcelProperty("续费数量(年)")
- @ApiModelProperty(value = "续费数量")
- private Integer chargingSize;
- @ExcelProperty(value = "续费方式", converter = DictConvert.class)
- @DictFormat(DictConsts.ORDER_MERC_MANAGE_PAY_TYPE)
- @ApiModelProperty(value = "续费方式")
- private Integer chargingType;
- @ExcelProperty("缴费时间")
- @ApiModelProperty(value = "创建时间")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime createTime;
- @ExcelProperty("过期时间")
- @ApiModelProperty(value = "过期时间")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime timeout;
- @ExcelProperty("状态说明")
- @ApiModelProperty(value = "过期状态说明")
- private String timeoutStatus;
- }
- @Data
- @Accessors(chain = true)
- public static class SpendPageExcelVo {
- @ExcelProperty("商户名称")
- @ApiModelProperty(value = "商户名称")
- private String mercName;
- @ExcelProperty("缴费单号")
- @ApiModelProperty(value = "缴费单号")
- private String orderId;
- @ExcelProperty("设备编号")
- @ApiModelProperty(value = "设备编号")
- private Long deviceId;
- @ExcelProperty(value = "实缴金额", converter = CustomFenToYuanConverter.class)
- @NumberFormat("#0.00")
- @ApiModelProperty(value = "续费金额")
- private Integer chargingMoney;
- @ExcelProperty("续费数量(年)")
- @ApiModelProperty(value = "续费数量")
- private Integer chargingSize;
- @ExcelProperty(value = "续费方式", converter = DictConvert.class)
- @DictFormat(DictConsts.ORDER_MERC_MANAGE_PAY_TYPE)
- @ApiModelProperty(value = "续费方式")
- private Integer chargingType;
- @ExcelProperty("缴费时间")
- @ApiModelProperty(value = "创建时间")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime createTime;
- @ExcelProperty("过期时间")
- @ApiModelProperty(value = "过期时间")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime timeout;
- @ExcelProperty("状态说明")
- @ApiModelProperty(value = "过期状态说明")
- private String timeoutStatus;
- }
- @Data
- @Accessors(chain = true)
- public static class Vo {
- @ApiModelProperty(value = "id")
- private Long id;
- @ApiModelProperty(value = "商户id")
- private Long mercId;
- @ApiModelProperty(value = "订单id")
- private String orderId;
- @ApiModelProperty(value = "设备id")
- private Long deviceId;
- @ApiModelProperty(value = "续费金额")
- private Integer chargingMoney;
- @ApiModelProperty(value = "续费数量")
- private Integer chargingSize;
- @ApiModelProperty(value = "续费方式")
- private Integer chargingType;
- @ApiModelProperty(value = "状态")
- private Integer status;
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value = "创建时间")
- private LocalDateTime createTime;
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value = "更新时间")
- private LocalDateTime updateTime;
- @ApiModelProperty(value = "备注")
- private String note;
- @ApiModelProperty(value = "商户名称")
- private String mercName;
- @ApiModelProperty(value = "附件")
- private String files;
- @ApiModelProperty(value = "余额抵扣")
- private Integer balanceMone;
- }
- @Data
- @Accessors(chain = true)
- public static class Page extends Vo {
- @ApiModelProperty("分页对象")
- private PageBean page;
- @ApiModelProperty(value = "创建时间-起")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime beginCreateTime;
- @ApiModelProperty(value = "创建时间-始")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime endCreateTime;
- }
- @Data
- @Accessors(chain = true)
- public static class PageByTopMerc {
- @ApiModelProperty("分页对象")
- private PageBean page;
- @ApiModelProperty("是否导出当前页")
- private Boolean exportPage = true;
- @ApiModelProperty(value = "创建时间-起")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime beginCreateTime;
- @ApiModelProperty(value = "创建时间-始")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime endCreateTime;
- @ApiModelProperty(value = "id")
- private Long id;
- @ApiModelProperty(value = "商户id")
- private Long curMercId;
- @ApiModelProperty(value = "指定商户id")
- private Long chooseMercId;
- @ApiModelProperty(value = "订单id")
- private String orderId;
- @ApiModelProperty(value = "设备id")
- private Long deviceId;
- @ApiModelProperty(value = "续费金额")
- private Integer chargingMoney;
- @ApiModelProperty(value = "续费数量")
- private Integer chargingSize;
- @ApiModelProperty(value = "续费方式")
- private Integer chargingType;
- @ApiModelProperty(value = "状态")
- private Integer status;
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value = "创建时间")
- private LocalDateTime createTime;
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @ApiModelProperty(value = "更新时间")
- private LocalDateTime updateTime;
- @ApiModelProperty(value = "备注")
- private String note;
- @ApiModelProperty(value = "附件")
- private String files;
- @ApiModelProperty(value = "商户名称")
- private String mercName;
- // size -1 不分页
- public PageBean getPage() {
- if (!this.exportPage) {
- this.page.setSize(-1L);
- }
- return page;
- }
- }
- @Data
- @Accessors(chain = true)
- public static class MoonCount {
- @ApiModelProperty(value = "商户id")
- private List<Long> mercIds;
- @ApiModelProperty(value = "统计时间-起 yyyy-MM")
- private String beginDate;
- @ApiModelProperty(value = "统计时间-始 yyyy-MM")
- private String endDate;
- }
- @Data
- @Accessors(chain = true)
- public static class MoonCountVo {
- @ApiModelProperty(value = "统计时间 yyyy-MM")
- private String date;
- @ApiModelProperty(value = "商户id")
- private Long mercId;
- @ApiModelProperty(value = "商户名称")
- private String mercName;
- @ApiModelProperty(value = "设备数")
- private Integer deviceSize;
- @ApiModelProperty(value = "续费金额")
- private Integer chargingMoney;
- }
- @Data
- @Accessors(chain = true)
- public static class MoonCountPage {
- @ApiModelProperty(value = "分页对象")
- private PageBean page;
- @ApiModelProperty(value = "商户id")
- private List<Long> mercIds;
- @ApiModelProperty(value = "统计时间-起 yyyy-MM-dd")
- private String beginDate;
- @ApiModelProperty(value = "统计时间-始 yyyy-MM-dd")
- private String endDate;
- }
- }
|