/** 批次总张数 */ | /** 批次总张数 */ | ||||
@Column(name = "TOTAL_COUNT") | @Column(name = "TOTAL_COUNT") | ||||
private Integer totalCount; | |||||
private String totalCount; | |||||
/** 申请状态 | /** 申请状态 | ||||
* APP-申请中 | * APP-申请中 | ||||
@Column(name = "CHANEL") | @Column(name = "CHANEL") | ||||
private String chanel; | private String chanel; | ||||
/** 厂商*/ | |||||
@Column(name = "CARD_PROVIDER") | |||||
private String cardProvider; | |||||
/** 入库时间*/ | /** 入库时间*/ | ||||
@Column(name = "INSERT_TIME") | @Column(name = "INSERT_TIME") | ||||
private LocalDateTime insertTime=LocalDateTime.now(); | private LocalDateTime insertTime=LocalDateTime.now(); |
private String cardNo; | private String cardNo; | ||||
/** 卡片厂商 */ | /** 卡片厂商 */ | ||||
@Column(name = "PROVIDER") | |||||
private String provider; | |||||
@Column(name = "CARD_PROVIDER") | |||||
private String cardProvider; | |||||
/** 卡片类型 */ | /** 卡片类型 */ | ||||
@Column(name = "CARD_TYPE") | @Column(name = "CARD_TYPE") | ||||
@Column(name = "CARD_SNR") | @Column(name = "CARD_SNR") | ||||
private String cardSnr; | private String cardSnr; | ||||
/** 发行次数 */ | |||||
@Column(name = "ISSUE_COUNT") | |||||
private Integer issueCount; | |||||
/** 渠道 */ | /** 渠道 */ | ||||
@Column(name = "CHANEL") | @Column(name = "CHANEL") | ||||
private String chanel; | private String chanel; | ||||
/** 卡片厂商代码 */ | /** 卡片厂商代码 */ | ||||
@Column(name = "PROVIDER_ID") | @Column(name = "PROVIDER_ID") | ||||
private String providerID; | |||||
private String providerId; | |||||
/** 入库时间*/ | /** 入库时间*/ | ||||
@Column(name = "INSERT_TIME") | @Column(name = "INSERT_TIME") |
/** 批次总张数 */ | /** 批次总张数 */ | ||||
@Column(name = "TOTAL_COUNT") | @Column(name = "TOTAL_COUNT") | ||||
private Integer totalCount; | |||||
private String totalCount; | |||||
/** 渠道名称 */ | /** 渠道名称 */ | ||||
@Column(name = "CHANEL") | @Column(name = "CHANEL") | ||||
private String chanel; | private String chanel; | ||||
/** 厂商 */ | |||||
@Column(name = "CARD_PROVIDER") | |||||
private String cardProvider; | |||||
/** 入库时间*/ | /** 入库时间*/ | ||||
@Column(name = "INSERT_TIME") | @Column(name = "INSERT_TIME") | ||||
private LocalDateTime insertTime=LocalDateTime.now(); | private LocalDateTime insertTime=LocalDateTime.now(); |
@Column(name = "CARD_NO") | @Column(name = "CARD_NO") | ||||
private String cardNo; | private String cardNo; | ||||
/** 卡片类型 | |||||
* 03-应急卡 | |||||
* 22-储值卡 | |||||
* 23-记账卡 | |||||
*/ | |||||
@Column(name = "CARD_TYPE") | |||||
private String cardType; | |||||
/** 卡片厂商 */ | /** 卡片厂商 */ | ||||
@Column(name = "PROVIDER") | @Column(name = "PROVIDER") | ||||
private String provider; | private String provider; | ||||
@Column(name = "CHANEL_ID") | @Column(name = "CHANEL_ID") | ||||
private String chanelId; | private String chanelId; | ||||
/** 版本号 */ | |||||
@Column(name = "VERSION") | |||||
private String version; | |||||
/** 加密类型 | /** 加密类型 | ||||
* 0-双片国密OBU | * 0-双片国密OBU | ||||
* 1-单片OBU | * 1-单片OBU |
/** 批次总张数 */ | /** 批次总张数 */ | ||||
@JsonProperty(value = "TotalCount") | @JsonProperty(value = "TotalCount") | ||||
private Integer totalCount; | |||||
private String totalCount; | |||||
/** 申请状态 */ | /** 申请状态 */ | ||||
@JsonProperty(value = "Status") | @JsonProperty(value = "Status") | ||||
/** 渠道 */ | /** 渠道 */ | ||||
@JsonProperty(value = "Chanel") | @JsonProperty(value = "Chanel") | ||||
private String chanel; | private String chanel; | ||||
/** 厂商 */ | |||||
@JsonProperty(value = "CardProvider") | |||||
private String cardProvider; | |||||
} | } |
private String cardNo; | private String cardNo; | ||||
/** 卡片厂商 */ | /** 卡片厂商 */ | ||||
@JsonProperty(value = "Provider") | |||||
private String provider; | |||||
@JsonProperty(value = "CardProvider") | |||||
private String cardProvider; | |||||
/** 卡片类型 */ | /** 卡片类型 */ | ||||
@JsonProperty(value = "CardType") | @JsonProperty(value = "CardType") | ||||
@JsonProperty(value = "CardSnr") | @JsonProperty(value = "CardSnr") | ||||
private String cardSnr; | private String cardSnr; | ||||
/** 发行次数 */ | |||||
@JsonProperty(value = "IssueCount") | |||||
private Integer issueCount; | |||||
/** 渠道 */ | /** 渠道 */ | ||||
@JsonProperty(value = "Chanel") | @JsonProperty(value = "Chanel") | ||||
private String chanel; | private String chanel; | ||||
/** 卡片厂商代码 */ | /** 卡片厂商代码 */ | ||||
@JsonProperty(value = "ProviderID") | @JsonProperty(value = "ProviderID") | ||||
private String providerID; | |||||
private String providerId; | |||||
} | } |
/** 批次总张数 */ | /** 批次总张数 */ | ||||
@JsonProperty(value = "TotalCount") | @JsonProperty(value = "TotalCount") | ||||
private Integer totalCount; | |||||
private String totalCount; | |||||
/** 渠道名称 */ | /** 渠道名称 */ | ||||
@JsonProperty(value = "Chanel") | @JsonProperty(value = "Chanel") | ||||
private String chanel; | private String chanel; | ||||
/** 厂商 */ | |||||
@JsonProperty(value = "CardProvider") | |||||
private String cardProvider; | |||||
} | } |
/** 卡片厂商代码 */ | /** 卡片厂商代码 */ | ||||
@JsonProperty(value = "ProviderID") | @JsonProperty(value = "ProviderID") | ||||
private String providerID; | |||||
private String providerId; | |||||
/** 激活日期 */ | /** 激活日期 */ | ||||
@JsonProperty(value = "ActiveDate") | @JsonProperty(value = "ActiveDate") | ||||
/** 渠道ID */ | /** 渠道ID */ | ||||
@JsonProperty(value = "ChanelId") | @JsonProperty(value = "ChanelId") | ||||
private String chanelId; | private String chanelId; | ||||
/** 版本号 */ | |||||
@JsonProperty(value = "Version") | |||||
private String version; | |||||
} | } |
@JsonProperty(value = "CardNo") | @JsonProperty(value = "CardNo") | ||||
private String cardNo; | private String cardNo; | ||||
/** 卡片类型 */ | |||||
@JsonProperty(value = "CardType") | |||||
private String cardType; | |||||
/** 卡片厂商 */ | /** 卡片厂商 */ | ||||
@JsonProperty(value = "Provider") | @JsonProperty(value = "Provider") | ||||
private String provider; | private String provider; | ||||
/** 卡片厂商代码 */ | /** 卡片厂商代码 */ | ||||
@JsonProperty(value = "ProviderID") | @JsonProperty(value = "ProviderID") | ||||
private String providerID; | |||||
private String providerId; | |||||
/** 激活日期 */ | /** 激活日期 */ | ||||
@JsonProperty(value = "ActiveDate") | @JsonProperty(value = "ActiveDate") | ||||
/** 渠道ID */ | /** 渠道ID */ | ||||
@JsonProperty(value = "ChanelId") | @JsonProperty(value = "ChanelId") | ||||
private String chanelId; | private String chanelId; | ||||
/** 版本号 */ | |||||
@JsonProperty(value = "Version") | |||||
private String version; | |||||
} | } |
/** 卡片厂商代码 */ | /** 卡片厂商代码 */ | ||||
@JsonProperty(value = "ProviderID") | @JsonProperty(value = "ProviderID") | ||||
private String providerID; | |||||
private String providerId; | |||||
/** 激活日期 */ | /** 激活日期 */ | ||||
@JsonProperty(value = "ActiveDate") | @JsonProperty(value = "ActiveDate") |
private String startSerialNo; // 起始OBU合同序列号 | private String startSerialNo; // 起始OBU合同序列号 | ||||
private String endSerialNo; // 结束OBU合同序列号 | private String endSerialNo; // 结束OBU合同序列号 | ||||
private Integer status; // 发行状态 | private Integer status; // 发行状态 | ||||
private String encryptType; // obu类型 | |||||
// private String formatTimeStart; // 格式化日期 | // private String formatTimeStart; // 格式化日期 | ||||
// private String formatTimeEnd; // 格式化日期 | // private String formatTimeEnd; // 格式化日期 | ||||
} | } | ||||
hql.append(" and status=:status", status); | hql.append(" and status=:status", status); | ||||
hql.append(" and providerID=:providerID", providerID); | hql.append(" and providerID=:providerID", providerID); | ||||
hql.append(" and encryptType=:encryptType", encryptType); | |||||
// if(hasText(formatTimeStart)) | // if(hasText(formatTimeStart)) | ||||
// hql.append(" and formatTime>=:formatTimeStart", formatTimeStart); | // hql.append(" and formatTime>=:formatTimeStart", formatTimeStart); | ||||
// if(hasText(formatTimeEnd)) | // if(hasText(formatTimeEnd)) |
private String endSerialNo; // 结束OBU合同序列号 | private String endSerialNo; // 结束OBU合同序列号 | ||||
@ApiModelProperty(value = "发行状态 0-流通中 2-一发成功") | @ApiModelProperty(value = "发行状态 0-流通中 2-一发成功") | ||||
private Integer status; // 发行状态 | private Integer status; // 发行状态 | ||||
@ApiModelProperty(value = "OBU类型") | |||||
private String encryptType; | |||||
} | } |
public Pagination page(InvwQryCardBatchPageRequestDTO request) { | public Pagination page(InvwQryCardBatchPageRequestDTO request) { | ||||
InvwQryCardBatchPageRequest req = new InvwQryCardBatchPageRequest(); | InvwQryCardBatchPageRequest req = new InvwQryCardBatchPageRequest(); | ||||
BeanUtils.copyProperties(request, req); | BeanUtils.copyProperties(request, req); | ||||
if(hasText(request.getBatchDateEnd())){ | |||||
req.setBatchDateEnd(request.getBatchDateEnd() + "235959"); | |||||
} | |||||
return invwQryCardBatchRepo.page(req); | return invwQryCardBatchRepo.page(req); | ||||
} | } | ||||
public CommExcelFileResponseDTO export(InvwQryCardBatchPageRequestDTO request) throws ManagerException { | public CommExcelFileResponseDTO export(InvwQryCardBatchPageRequestDTO request) throws ManagerException { | ||||
InvwQryCardBatchPageRequest req = new InvwQryCardBatchPageRequest(); | InvwQryCardBatchPageRequest req = new InvwQryCardBatchPageRequest(); | ||||
BeanUtils.copyProperties(request, req); | BeanUtils.copyProperties(request, req); | ||||
if(hasText(request.getBatchDateEnd())){ | |||||
req.setBatchDateEnd(request.getBatchDateEnd() + "235959"); | |||||
} | |||||
List<InvwQryCardBatch> list = invwQryCardBatchRepo.list(req); | List<InvwQryCardBatch> list = invwQryCardBatchRepo.list(req); | ||||
if (list.size() > 10000) { | if (list.size() > 10000) { | ||||
throw new ManagerException("导出数据超过10000条,请缩小范围"); | throw new ManagerException("导出数据超过10000条,请缩小范围"); |
public Pagination page(InvwQryObuBatchPageRequestDTO request) { | public Pagination page(InvwQryObuBatchPageRequestDTO request) { | ||||
InvwQryObuBatchPageRequest req = new InvwQryObuBatchPageRequest(); | InvwQryObuBatchPageRequest req = new InvwQryObuBatchPageRequest(); | ||||
BeanUtils.copyProperties(request, req); | BeanUtils.copyProperties(request, req); | ||||
if(hasText(request.getApplyDateEnd())){ | |||||
req.setApplyDateEnd(request.getApplyDateEnd() + "235959"); | |||||
} | |||||
return invwQryObuBatchRepo.page(req); | return invwQryObuBatchRepo.page(req); | ||||
} | } | ||||
public CommExcelFileResponseDTO export(InvwQryObuBatchPageRequestDTO request) throws ManagerException { | public CommExcelFileResponseDTO export(InvwQryObuBatchPageRequestDTO request) throws ManagerException { | ||||
InvwQryObuBatchPageRequest req = new InvwQryObuBatchPageRequest(); | InvwQryObuBatchPageRequest req = new InvwQryObuBatchPageRequest(); | ||||
BeanUtils.copyProperties(request, req); | BeanUtils.copyProperties(request, req); | ||||
if(hasText(request.getApplyDateEnd())){ | |||||
req.setApplyDateEnd(request.getApplyDateEnd() + "235959"); | |||||
} | |||||
List<InvwQryObuBatch> list = invwQryObuBatchRepo.list(req); | List<InvwQryObuBatch> list = invwQryObuBatchRepo.list(req); | ||||
if (list.size() > 10000) { | if (list.size() > 10000) { | ||||
throw new ManagerException("导出数据超过10000条,请缩小范围"); | throw new ManagerException("导出数据超过10000条,请缩小范围"); |
@ExcelProperty(value = "渠道") | @ExcelProperty(value = "渠道") | ||||
private String chanel; | private String chanel; | ||||
@ColumnWidth(20) | |||||
@ExcelProperty(value = "厂商") | |||||
private String cardProvider; | |||||
@ColumnWidth(20) | @ColumnWidth(20) | ||||
@ExcelProperty(value = "入库时间") | @ExcelProperty(value = "入库时间") | ||||
private LocalDateTime insertTime; | private LocalDateTime insertTime; | ||||
//申请状态 APP-申请中 ISSUEING-发行中 DONE-发行完成 PERMIT-审批完成[数据就绪] REJECT-拒绝 JUDGEING-审批中 REJNOTRDY-驳回,待修正 FAIL-失败 APPROVAL-审批通过[待预制] PRECUT-预制数据中 | //申请状态 APP-申请中 ISSUEING-发行中 DONE-发行完成 PERMIT-审批完成[数据就绪] REJECT-拒绝 JUDGEING-审批中 REJNOTRDY-驳回,待修正 FAIL-失败 APPROVAL-审批通过[待预制] PRECUT-预制数据中 | ||||
public String getStatus() { | public String getStatus() { | ||||
if (StringTools.hasText(status)) { | if (StringTools.hasText(status)) { | ||||
statusMap.forEach((k, v) -> { | |||||
if (status.equals(k)) { | |||||
status = v; | |||||
} | |||||
}); | |||||
statusMap.get(status); | |||||
} | } | ||||
return ""; | return ""; | ||||
} | } |
@ColumnWidth(20) | @ColumnWidth(20) | ||||
@ExcelProperty(value = "卡片厂商") | @ExcelProperty(value = "卡片厂商") | ||||
private String provider; | |||||
private String cardProvider; | |||||
@ColumnWidth(15) | @ColumnWidth(15) | ||||
@ExcelProperty(value = "卡片类型") | @ExcelProperty(value = "卡片类型") | ||||
@ExcelProperty(value = "卡片SNR") | @ExcelProperty(value = "卡片SNR") | ||||
private String cardSnr; | private String cardSnr; | ||||
@ColumnWidth(15) | |||||
@ExcelProperty(value = "发行次数") | |||||
private Integer issueCount; | |||||
@ColumnWidth(15) | @ColumnWidth(15) | ||||
@ExcelProperty(value = "渠道") | @ExcelProperty(value = "渠道") | ||||
private String chanel; | private String chanel; | ||||
@ColumnWidth(15) | @ColumnWidth(15) | ||||
@ExcelProperty(value = "卡片厂商代码") | @ExcelProperty(value = "卡片厂商代码") | ||||
private String providerID; | |||||
private String providerId; | |||||
@ColumnWidth(20) | @ColumnWidth(20) | ||||
@ExcelProperty(value = "入库时间") | @ExcelProperty(value = "入库时间") |
@ColumnWidth(15) | @ColumnWidth(15) | ||||
@ExcelProperty(value = "批次总张数") | @ExcelProperty(value = "批次总张数") | ||||
private String totalCount; | |||||
private Integer totalCount; | |||||
@ColumnWidth(20) | @ColumnWidth(20) | ||||
@ExcelProperty(value = "渠道名称") | @ExcelProperty(value = "渠道名称") | ||||
private String chanel; | private String chanel; | ||||
@ColumnWidth(20) | |||||
@ExcelProperty(value = "厂商") | |||||
private String cardProvider; | |||||
@ColumnWidth(20) | @ColumnWidth(20) | ||||
@ExcelProperty(value = "入库时间") | @ExcelProperty(value = "入库时间") | ||||
private LocalDateTime insertTime; | private LocalDateTime insertTime; |