|
@@ -19,19 +19,24 @@ import com.alibaba.excel.annotation.*;
|
|
|
public class TaskOrderNonTaxRecordRespVO {
|
|
public class TaskOrderNonTaxRecordRespVO {
|
|
|
|
|
|
|
|
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8583")
|
|
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8583")
|
|
|
- @ExcelProperty("ID")
|
|
|
|
|
private String id;
|
|
private String id;
|
|
|
|
|
|
|
|
|
|
+ @Schema
|
|
|
|
|
+ @ExcelProperty("开单人")
|
|
|
|
|
+ private String handledByName;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "开单日期")
|
|
|
|
|
+ @ExcelProperty("开单时间")
|
|
|
|
|
+ private LocalDateTime openDate;
|
|
|
|
|
+
|
|
|
@Schema(description = "付款人")
|
|
@Schema(description = "付款人")
|
|
|
- @ExcelProperty("付款人")
|
|
|
|
|
|
|
+ @ExcelProperty("缴费单位(个人)")
|
|
|
private String payer;
|
|
private String payer;
|
|
|
|
|
|
|
|
@Schema(description = "联系电话")
|
|
@Schema(description = "联系电话")
|
|
|
- @ExcelProperty("联系电话")
|
|
|
|
|
private String contactPhone;
|
|
private String contactPhone;
|
|
|
|
|
|
|
|
- @Schema(description = "利息人邮箱")
|
|
|
|
|
- @ExcelProperty("利息人邮箱")
|
|
|
|
|
|
|
+ @Schema(description = "联系人邮箱")
|
|
|
private String email;
|
|
private String email;
|
|
|
|
|
|
|
|
@Schema(description = "缴费金额")
|
|
@Schema(description = "缴费金额")
|
|
@@ -43,139 +48,183 @@ public class TaskOrderNonTaxRecordRespVO {
|
|
|
private BigDecimal actualAmount;
|
|
private BigDecimal actualAmount;
|
|
|
|
|
|
|
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
- @ExcelProperty("创建时间")
|
|
|
|
|
private LocalDateTime createTime;
|
|
private LocalDateTime createTime;
|
|
|
|
|
|
|
|
@Schema(description = "备注", example = "随便")
|
|
@Schema(description = "备注", example = "随便")
|
|
|
- @ExcelProperty("备注")
|
|
|
|
|
private String remark;
|
|
private String remark;
|
|
|
|
|
|
|
|
@Schema(description = "付款账号", example = "3225")
|
|
@Schema(description = "付款账号", example = "3225")
|
|
|
- @ExcelProperty("付款账号")
|
|
|
|
|
private String payAccount;
|
|
private String payAccount;
|
|
|
|
|
|
|
|
@Schema(description = "付款银行")
|
|
@Schema(description = "付款银行")
|
|
|
- @ExcelProperty("付款银行")
|
|
|
|
|
private String payBank;
|
|
private String payBank;
|
|
|
|
|
|
|
|
@Schema(description = "收款人")
|
|
@Schema(description = "收款人")
|
|
|
- @ExcelProperty("收款人")
|
|
|
|
|
private String recipient;
|
|
private String recipient;
|
|
|
|
|
|
|
|
@Schema(description = "收款银行")
|
|
@Schema(description = "收款银行")
|
|
|
- @ExcelProperty("收款银行")
|
|
|
|
|
private String recipientBank;
|
|
private String recipientBank;
|
|
|
|
|
|
|
|
@Schema(description = "收款账号", example = "21056")
|
|
@Schema(description = "收款账号", example = "21056")
|
|
|
- @ExcelProperty("收款账号")
|
|
|
|
|
private String recipientAccount;
|
|
private String recipientAccount;
|
|
|
|
|
|
|
|
@Schema(description = "截止日期")
|
|
@Schema(description = "截止日期")
|
|
|
- @ExcelProperty("截止日期")
|
|
|
|
|
private LocalDate deadline;
|
|
private LocalDate deadline;
|
|
|
|
|
|
|
|
@Schema(description = "经办人")
|
|
@Schema(description = "经办人")
|
|
|
- @ExcelProperty("经办人")
|
|
|
|
|
private String handledBy;
|
|
private String handledBy;
|
|
|
|
|
|
|
|
- @Schema(description = "开单日期")
|
|
|
|
|
- @ExcelProperty("开单日期")
|
|
|
|
|
- private LocalDateTime openDate;
|
|
|
|
|
-
|
|
|
|
|
@Schema(description = "审核状态 100 待审核 200 审核通过 300 已拒绝", example = "1")
|
|
@Schema(description = "审核状态 100 待审核 200 审核通过 300 已拒绝", example = "1")
|
|
|
- @ExcelProperty("审核状态 100 待审核 200 审核通过 300 已拒绝")
|
|
|
|
|
private Integer status;
|
|
private Integer status;
|
|
|
|
|
|
|
|
@Schema(description = "付款状态 100 待缴费 200 已缴费 300 已作废", example = "2")
|
|
@Schema(description = "付款状态 100 待缴费 200 已缴费 300 已作废", example = "2")
|
|
|
- @ExcelProperty("付款状态 100 待缴费 200 已缴费 300 已作废")
|
|
|
|
|
private Integer payStatus;
|
|
private Integer payStatus;
|
|
|
|
|
|
|
|
|
|
+ @Schema(description = "付款状态名称")
|
|
|
|
|
+ @ExcelProperty("付款状态")
|
|
|
|
|
+ private String payStatusName;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 设置付款状态时,自动更新付款状态名称
|
|
|
|
|
+ */
|
|
|
|
|
+ public void setPayStatus(Integer payStatus) {
|
|
|
|
|
+ this.payStatus = payStatus;
|
|
|
|
|
+ this.payStatusName = getPayStatusNameByValue(payStatus);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 根据付款状态值获取对应的中文名称
|
|
|
|
|
+ */
|
|
|
|
|
+ private String getPayStatusNameByValue(Integer payStatus) {
|
|
|
|
|
+ if (payStatus == null) {
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+ switch (payStatus) {
|
|
|
|
|
+ case 100:
|
|
|
|
|
+ return "待缴费";
|
|
|
|
|
+ case 200:
|
|
|
|
|
+ return "已缴费";
|
|
|
|
|
+ case 300:
|
|
|
|
|
+ return "已作废";
|
|
|
|
|
+ default:
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Schema(description = "缴费通知书")
|
|
@Schema(description = "缴费通知书")
|
|
|
@ExcelProperty("缴费通知书")
|
|
@ExcelProperty("缴费通知书")
|
|
|
private String paymentInstructionNo;
|
|
private String paymentInstructionNo;
|
|
|
|
|
|
|
|
|
|
+ @Schema(description = "任务单号列表")
|
|
|
|
|
+ private List<String> orderNos;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "任务单号(导出用)")
|
|
|
|
|
+ @ExcelProperty("任务单号")
|
|
|
|
|
+ private String orderNosStr;
|
|
|
|
|
+
|
|
|
@Schema(description = "部门", example = "25182")
|
|
@Schema(description = "部门", example = "25182")
|
|
|
- @ExcelProperty("部门")
|
|
|
|
|
private String deptId;
|
|
private String deptId;
|
|
|
|
|
|
|
|
@Schema(description = "付款日期")
|
|
@Schema(description = "付款日期")
|
|
|
- @ExcelProperty("付款日期")
|
|
|
|
|
private LocalDateTime payDate;
|
|
private LocalDateTime payDate;
|
|
|
|
|
|
|
|
@Schema(description = "票据编号")
|
|
@Schema(description = "票据编号")
|
|
|
- @ExcelProperty("票据编号")
|
|
|
|
|
private String billNumber;
|
|
private String billNumber;
|
|
|
|
|
|
|
|
@Schema(description = "缴费通知书")
|
|
@Schema(description = "缴费通知书")
|
|
|
- @ExcelProperty("缴费通知书")
|
|
|
|
|
private String paymentInstruction;
|
|
private String paymentInstruction;
|
|
|
|
|
|
|
|
@Schema(description = "流程id", example = "5700")
|
|
@Schema(description = "流程id", example = "5700")
|
|
|
- @ExcelProperty("流程id")
|
|
|
|
|
private String processInstanceId;
|
|
private String processInstanceId;
|
|
|
|
|
|
|
|
@Schema(description = "检验日期")
|
|
@Schema(description = "检验日期")
|
|
|
- @ExcelProperty("检验日期")
|
|
|
|
|
private LocalDate checkDate;
|
|
private LocalDate checkDate;
|
|
|
|
|
|
|
|
@Schema(description = "单位名称", example = "张三")
|
|
@Schema(description = "单位名称", example = "张三")
|
|
|
- @ExcelProperty("单位名称")
|
|
|
|
|
private String unitName;
|
|
private String unitName;
|
|
|
|
|
|
|
|
@Schema(description = "使用单位名称", example = "张三")
|
|
@Schema(description = "使用单位名称", example = "张三")
|
|
|
- @ExcelProperty("使用单位名称")
|
|
|
|
|
private String useUnitName;
|
|
private String useUnitName;
|
|
|
|
|
|
|
|
@Schema(description = "设备类型 200锅炉 300管道", example = "1")
|
|
@Schema(description = "设备类型 200锅炉 300管道", example = "1")
|
|
|
- @ExcelProperty("设备类型 200锅炉 300管道")
|
|
|
|
|
private Integer equipMainType;
|
|
private Integer equipMainType;
|
|
|
|
|
|
|
|
|
|
+ @Schema(description = "设备类型名称")
|
|
|
|
|
+ @ExcelProperty("设备类型")
|
|
|
|
|
+ private String equipMainTypeName;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 设置设备类型时,自动更新设备类型名称
|
|
|
|
|
+ */
|
|
|
|
|
+ public void setEquipMainType(Integer equipMainType) {
|
|
|
|
|
+ this.equipMainType = equipMainType;
|
|
|
|
|
+ this.equipMainTypeName = getEquipMainTypeNameByValue(equipMainType);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 根据设备类型值获取对应的中文名称
|
|
|
|
|
+ */
|
|
|
|
|
+ private String getEquipMainTypeNameByValue(Integer equipMainType) {
|
|
|
|
|
+ if (equipMainType == null) {
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+ switch (equipMainType) {
|
|
|
|
|
+ case 200:
|
|
|
|
|
+ return "锅炉";
|
|
|
|
|
+ case 300:
|
|
|
|
|
+ return "压力管道";
|
|
|
|
|
+ default:
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Schema(description = "付款截止日期")
|
|
@Schema(description = "付款截止日期")
|
|
|
- @ExcelProperty("付款截止日期")
|
|
|
|
|
private LocalDate payDeadline;
|
|
private LocalDate payDeadline;
|
|
|
|
|
|
|
|
@Schema(description = "报告接收电话")
|
|
@Schema(description = "报告接收电话")
|
|
|
- @ExcelProperty("报告接收电话")
|
|
|
|
|
private String recipientPhone;
|
|
private String recipientPhone;
|
|
|
|
|
|
|
|
@Schema(description = "委托单位名称")
|
|
@Schema(description = "委托单位名称")
|
|
|
- @ExcelProperty("委托单位名称")
|
|
|
|
|
private String clientUnit;
|
|
private String clientUnit;
|
|
|
|
|
|
|
|
@Schema(description = "委托单位编码")
|
|
@Schema(description = "委托单位编码")
|
|
|
- @ExcelProperty("委托单位编码")
|
|
|
|
|
private String clientUnitCode;
|
|
private String clientUnitCode;
|
|
|
|
|
|
|
|
@Schema(description = "收费项目编码")
|
|
@Schema(description = "收费项目编码")
|
|
|
- @ExcelProperty("收费项目编码")
|
|
|
|
|
private String chargeItemCode;
|
|
private String chargeItemCode;
|
|
|
|
|
|
|
|
@Schema(description = "收费项目名称", example = "王五")
|
|
@Schema(description = "收费项目名称", example = "王五")
|
|
|
- @ExcelProperty("收费项目名称")
|
|
|
|
|
private String chargeItemName;
|
|
private String chargeItemName;
|
|
|
|
|
|
|
|
@Schema(description = "数量")
|
|
@Schema(description = "数量")
|
|
|
- @ExcelProperty("数量")
|
|
|
|
|
private Integer num;
|
|
private Integer num;
|
|
|
|
|
|
|
|
@Schema(description = "收费标准")
|
|
@Schema(description = "收费标准")
|
|
|
- @ExcelProperty("收费标准")
|
|
|
|
|
private String pricing;
|
|
private String pricing;
|
|
|
|
|
|
|
|
@Schema(description = "缴费通知书", example = "https://www.iocoder.cn")
|
|
@Schema(description = "缴费通知书", example = "https://www.iocoder.cn")
|
|
|
- @ExcelProperty("缴费通知书")
|
|
|
|
|
private String impUrl;
|
|
private String impUrl;
|
|
|
|
|
|
|
|
@Schema(description = "缴费通知书PDF文件URL", example = "https://www.iocoder.cn")
|
|
@Schema(description = "缴费通知书PDF文件URL", example = "https://www.iocoder.cn")
|
|
|
- @ExcelProperty("缴费通知书PDF文件URL")
|
|
|
|
|
private String noticePdfUrl;
|
|
private String noticePdfUrl;
|
|
|
|
|
|
|
|
- @Schema
|
|
|
|
|
- @ExcelProperty("开单人")
|
|
|
|
|
- private String handledByName;
|
|
|
|
|
-
|
|
|
|
|
- @ExcelProperty("缴费状态")
|
|
|
|
|
- private String payStatusName;
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 设置任务单号列表时,自动更新任务单号字符串(用于导出)
|
|
|
|
|
+ */
|
|
|
|
|
+ public void setOrderNos(List<String> orderNos) {
|
|
|
|
|
+ this.orderNos = orderNos;
|
|
|
|
|
+ this.orderNosStr = convertListToString(orderNos);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 将 List 转换为逗号分隔的字符串
|
|
|
|
|
+ */
|
|
|
|
|
+ private String convertListToString(List<String> list) {
|
|
|
|
|
+ if (list == null || list.isEmpty()) {
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+ return String.join(",", list);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
@Schema(description = "部门名称")
|
|
@Schema(description = "部门名称")
|
|
|
private DeptRespDTO dept;
|
|
private DeptRespDTO dept;
|
|
@@ -195,12 +244,24 @@ public class TaskOrderNonTaxRecordRespVO {
|
|
|
@Schema(description = "设备数量")
|
|
@Schema(description = "设备数量")
|
|
|
private Long equipNum;
|
|
private Long equipNum;
|
|
|
|
|
|
|
|
- @Schema(description = "任务单号列表")
|
|
|
|
|
- private List<String> orderNos;
|
|
|
|
|
-
|
|
|
|
|
@Schema(description = "电子报告接收人邮箱")
|
|
@Schema(description = "电子报告接收人邮箱")
|
|
|
private String recipientEmail;
|
|
private String recipientEmail;
|
|
|
|
|
|
|
|
private String orderId;
|
|
private String orderId;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 设置付款状态时,自动更新付款状态名称
|
|
|
|
|
+ */
|
|
|
|
|
+ public void setCreatorUser(AdminUserRespDTO userRespDTO) {
|
|
|
|
|
+ this.creatorUser = userRespDTO;
|
|
|
|
|
+ this.handledByName = getHandledByName(userRespDTO);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private String getHandledByName(AdminUserRespDTO userRespDTO) {
|
|
|
|
|
+ if (userRespDTO != null) {
|
|
|
|
|
+ return userRespDTO.getNickname();
|
|
|
|
|
+ }
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|