|
@@ -6,13 +6,11 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
-import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
-import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
|
|
-
|
|
|
|
@Schema(description = "管理后台 - CRM 合同 Response VO")
|
|
@Schema(description = "管理后台 - CRM 合同 Response VO")
|
|
@Data
|
|
@Data
|
|
@ExcelIgnoreUnannotated
|
|
@ExcelIgnoreUnannotated
|
|
@@ -26,6 +24,10 @@ public class CrmContractRespVO {
|
|
@ExcelProperty("合同名称")
|
|
@ExcelProperty("合同名称")
|
|
private String name;
|
|
private String name;
|
|
|
|
|
|
|
|
+ @Schema(description = "合同编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20230101")
|
|
|
|
+ @ExcelProperty("合同编号")
|
|
|
|
+ private String no;
|
|
|
|
+
|
|
@Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18336")
|
|
@Schema(description = "客户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18336")
|
|
@ExcelProperty("客户编号")
|
|
@ExcelProperty("客户编号")
|
|
private Long customerId;
|
|
private Long customerId;
|
|
@@ -40,72 +42,70 @@ public class CrmContractRespVO {
|
|
@ExcelProperty("商机名称")
|
|
@ExcelProperty("商机名称")
|
|
private String businessName;
|
|
private String businessName;
|
|
|
|
|
|
|
|
+ @Schema(description = "最后跟进时间")
|
|
|
|
+ @ExcelProperty("最后跟进时间")
|
|
|
|
+ private LocalDateTime contactLastTime;
|
|
|
|
+
|
|
|
|
+ @Schema(description = "负责人的用户编号", example = "25682")
|
|
|
|
+ @ExcelProperty("负责人的用户编号")
|
|
|
|
+ private Long ownerUserId;
|
|
|
|
+ @Schema(description = "负责人名字", example = "25682")
|
|
|
|
+ @ExcelProperty("负责人名字")
|
|
|
|
+ private String ownerUserName;
|
|
|
|
+ @Schema(description = "负责人部门")
|
|
|
|
+ @ExcelProperty("负责人部门")
|
|
|
|
+ private String ownerUserDeptName;
|
|
|
|
+
|
|
@Schema(description = "工作流编号", example = "1043")
|
|
@Schema(description = "工作流编号", example = "1043")
|
|
@ExcelProperty("工作流编号")
|
|
@ExcelProperty("工作流编号")
|
|
private Long processInstanceId;
|
|
private Long processInstanceId;
|
|
|
|
|
|
|
|
+ @Schema(description = "审批状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
|
|
|
|
+ @ExcelProperty("审批状态")
|
|
|
|
+ private Integer auditStatus;
|
|
|
|
+
|
|
@Schema(description = "下单日期", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@Schema(description = "下单日期", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@ExcelProperty("下单日期")
|
|
@ExcelProperty("下单日期")
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
private LocalDateTime orderDate;
|
|
private LocalDateTime orderDate;
|
|
|
|
|
|
- @Schema(description = "负责人的用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17144")
|
|
|
|
- @ExcelProperty("负责人的用户编号")
|
|
|
|
- private Long ownerUserId;
|
|
|
|
-
|
|
|
|
- // TODO @芋艿:未来应该支持自动生成;
|
|
|
|
- @Schema(description = "合同编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20230101")
|
|
|
|
- @ExcelProperty("合同编号")
|
|
|
|
- private String no;
|
|
|
|
-
|
|
|
|
@Schema(description = "开始时间")
|
|
@Schema(description = "开始时间")
|
|
@ExcelProperty("开始时间")
|
|
@ExcelProperty("开始时间")
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
private LocalDateTime startTime;
|
|
private LocalDateTime startTime;
|
|
|
|
|
|
@Schema(description = "结束时间")
|
|
@Schema(description = "结束时间")
|
|
@ExcelProperty("结束时间")
|
|
@ExcelProperty("结束时间")
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
private LocalDateTime endTime;
|
|
private LocalDateTime endTime;
|
|
|
|
|
|
- @Schema(description = "合同金额", example = "5617")
|
|
|
|
- @ExcelProperty("合同金额")
|
|
|
|
- private Integer price;
|
|
|
|
|
|
+ @Schema(description = "产品总金额", example = "19510")
|
|
|
|
+ @ExcelProperty("产品总金额")
|
|
|
|
+ private BigDecimal totalProductPrice;
|
|
|
|
|
|
@Schema(description = "整单折扣")
|
|
@Schema(description = "整单折扣")
|
|
@ExcelProperty("整单折扣")
|
|
@ExcelProperty("整单折扣")
|
|
- private Integer discountPercent;
|
|
|
|
|
|
+ private BigDecimal discountPercent;
|
|
|
|
|
|
- @Schema(description = "产品总金额", example = "19510")
|
|
|
|
- @ExcelProperty("产品总金额")
|
|
|
|
- private Integer productPrice;
|
|
|
|
|
|
+ @Schema(description = "合同金额", example = "5617")
|
|
|
|
+ @ExcelProperty("合同金额")
|
|
|
|
+ private BigDecimal totalPrice;
|
|
|
|
|
|
- @Schema(description = "联系人编号", example = "18546")
|
|
|
|
- @ExcelProperty("联系人编号")
|
|
|
|
- private Long contactId;
|
|
|
|
- @Schema(description = "联系人编号", example = "18546")
|
|
|
|
- @ExcelProperty("联系人编号")
|
|
|
|
- private String contactName;
|
|
|
|
|
|
+ @Schema(description = "客户签约人编号", example = "18546")
|
|
|
|
+ private Long signContactId;
|
|
|
|
+ @Schema(description = "客户签约人", example = "小豆")
|
|
|
|
+ @ExcelProperty("客户签约人")
|
|
|
|
+ private String signContactName;
|
|
|
|
|
|
@Schema(description = "公司签约人", example = "14036")
|
|
@Schema(description = "公司签约人", example = "14036")
|
|
- @ExcelProperty("公司签约人")
|
|
|
|
private Long signUserId;
|
|
private Long signUserId;
|
|
- @Schema(description = "公司签约人", example = "14036")
|
|
|
|
|
|
+ @Schema(description = "公司签约人", example = "小明")
|
|
@ExcelProperty("公司签约人")
|
|
@ExcelProperty("公司签约人")
|
|
private String signUserName;
|
|
private String signUserName;
|
|
|
|
|
|
- @Schema(description = "最后跟进时间")
|
|
|
|
- @ExcelProperty("最后跟进时间")
|
|
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
- private LocalDateTime contactLastTime;
|
|
|
|
-
|
|
|
|
@Schema(description = "备注", example = "你猜")
|
|
@Schema(description = "备注", example = "你猜")
|
|
@ExcelProperty("备注")
|
|
@ExcelProperty("备注")
|
|
private String remark;
|
|
private String remark;
|
|
|
|
|
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@ExcelProperty("创建时间")
|
|
@ExcelProperty("创建时间")
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
private LocalDateTime createTime;
|
|
private LocalDateTime createTime;
|
|
|
|
|
|
@Schema(description = "创建人", example = "25682")
|
|
@Schema(description = "创建人", example = "25682")
|
|
@@ -118,19 +118,10 @@ public class CrmContractRespVO {
|
|
|
|
|
|
@Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@ExcelProperty("更新时间")
|
|
@ExcelProperty("更新时间")
|
|
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
private LocalDateTime updateTime;
|
|
private LocalDateTime updateTime;
|
|
|
|
|
|
- @Schema(description = "负责人", example = "test")
|
|
|
|
- @ExcelProperty("负责人")
|
|
|
|
- private String ownerUserName;
|
|
|
|
-
|
|
|
|
- @Schema(description = "审批状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
|
|
|
|
- @ExcelProperty("审批状态")
|
|
|
|
- private Integer auditStatus;
|
|
|
|
-
|
|
|
|
@Schema(description = "产品列表")
|
|
@Schema(description = "产品列表")
|
|
- private List<Item> items;
|
|
|
|
|
|
+ private List<Item> products;
|
|
|
|
|
|
@Schema(description = "产品列表")
|
|
@Schema(description = "产品列表")
|
|
@Data
|
|
@Data
|
|
@@ -138,26 +129,29 @@ public class CrmContractRespVO {
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
public static class Item {
|
|
public static class Item {
|
|
|
|
|
|
- @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20529")
|
|
|
|
|
|
+ @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "888")
|
|
private Long id;
|
|
private Long id;
|
|
|
|
|
|
- @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是产品")
|
|
|
|
- private String name;
|
|
|
|
-
|
|
|
|
- @Schema(description = "产品编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "N881")
|
|
|
|
- private String no;
|
|
|
|
|
|
+ @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20529")
|
|
|
|
+ private Long productId;
|
|
|
|
+ @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
|
|
|
+ private String productName;
|
|
|
|
+ @Schema(description = "产品条码", requiredMode = Schema.RequiredMode.REQUIRED, example = "20529")
|
|
|
|
+ private String productNo;
|
|
|
|
+ @Schema(description = "产品单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
|
|
|
+ private Integer productUnit;
|
|
|
|
|
|
- @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
|
|
|
- private Integer unit;
|
|
|
|
|
|
+ @Schema(description = "产品单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "123.00")
|
|
|
|
+ private BigDecimal productPrice;
|
|
|
|
|
|
- @Schema(description = "价格,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
|
|
|
|
- private Integer price;
|
|
|
|
|
|
+ @Schema(description = "合同价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "123.00")
|
|
|
|
+ private BigDecimal businessPrice;
|
|
|
|
|
|
- @Schema(description = "产品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "20")
|
|
|
|
- private Integer count;
|
|
|
|
|
|
+ @Schema(description = "产品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "8911")
|
|
|
|
+ private BigDecimal count;
|
|
|
|
|
|
- @Schema(description = "产品折扣", example = "99")
|
|
|
|
- private Integer discountPercent;
|
|
|
|
|
|
+ @Schema(description = "总计价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "123.00")
|
|
|
|
+ private BigDecimal totalPrice;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|