feat:生成售后代码
This commit is contained in:
1 parent
2923cd72ae
commit
f911239fb5
19 files changed
+729
-2
No files matched your search
+8
@@ -0,0 +1,8 @@
|
||||
package com.bsd.pjcloud.hard.api.dto.order;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.order.HardAfterSaleEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardAfterSaleDto extends HardAfterSaleEntity {
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.bsd.pjcloud.hard.api.dto.order;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.order.HardAfterSaleLogEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardAfterSaleLogDto extends HardAfterSaleLogEntity {
|
||||
}
|
||||
+174
@@ -0,0 +1,174 @@
|
||||
package com.bsd.pjcloud.hard.api.entity.order;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import com.bsd.pjcloud.common.core.util.TenantTable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 售后订单
|
||||
*
|
||||
* @author dzc
|
||||
* @date 2025-01-07 17:23:08
|
||||
*/
|
||||
@Data
|
||||
@TenantTable
|
||||
@TableName("hard_after_sale")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "售后订单")
|
||||
public class HardAfterSaleEntity extends Model<HardAfterSaleEntity> {
|
||||
|
||||
/**
|
||||
* 售后编号
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(description="售后编号")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 售后单号
|
||||
*/
|
||||
@Schema(description="售后单号")
|
||||
private String no;
|
||||
|
||||
/**
|
||||
* 售后类型
|
||||
*/
|
||||
@Schema(description="售后类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 售后状态
|
||||
*/
|
||||
@Schema(description="售后状态")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 售后方式
|
||||
*/
|
||||
@Schema(description="售后方式")
|
||||
private String way;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@Schema(description="用户id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 申请原因
|
||||
*/
|
||||
@Schema(description="申请原因")
|
||||
private String applyReason;
|
||||
|
||||
/**
|
||||
* 补充描述
|
||||
*/
|
||||
@Schema(description="补充描述")
|
||||
private String applyDescription;
|
||||
|
||||
/**
|
||||
* 补充凭证图片
|
||||
*/
|
||||
@Schema(description="补充凭证图片")
|
||||
private String applyPicUrls;
|
||||
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
@Schema(description="订单编号")
|
||||
private Long orderId;
|
||||
|
||||
/**
|
||||
* 订单流水号
|
||||
*/
|
||||
@Schema(description="订单流水号")
|
||||
private String orderNo;
|
||||
|
||||
/**
|
||||
* 审批时间
|
||||
*/
|
||||
@Schema(description="审批时间")
|
||||
private LocalDateTime auditTime;
|
||||
|
||||
/**
|
||||
* 审批人
|
||||
*/
|
||||
@Schema(description="审批人")
|
||||
private Long auditUserId;
|
||||
|
||||
/**
|
||||
* 审批备注
|
||||
*/
|
||||
@Schema(description="审批备注")
|
||||
private String auditReason;
|
||||
|
||||
/**
|
||||
* 退款金额,单位:分
|
||||
*/
|
||||
@Schema(description="退款金额,单位:分")
|
||||
private Integer refundPrice;
|
||||
|
||||
/**
|
||||
* 支付退款编号
|
||||
*/
|
||||
@Schema(description="支付退款编号")
|
||||
private Long payRefundId;
|
||||
|
||||
/**
|
||||
* 退款时间
|
||||
*/
|
||||
@Schema(description="退款时间")
|
||||
private LocalDateTime refundTime;
|
||||
|
||||
/**
|
||||
* 退货时间
|
||||
*/
|
||||
@Schema(description="退货时间")
|
||||
private LocalDateTime deliveryTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="创建人")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description="修改人")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description="修改时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 删除标记
|
||||
*/
|
||||
@TableLogic
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="删除标记")
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@Schema(description="租户ID")
|
||||
private Long tenantId;
|
||||
}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
package com.bsd.pjcloud.hard.api.entity.order;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import com.bsd.pjcloud.common.core.util.TenantTable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 售后订单日志
|
||||
*
|
||||
* @author dzc
|
||||
* @date 2025-01-07 17:23:25
|
||||
*/
|
||||
@Data
|
||||
@TenantTable
|
||||
@TableName("hard_after_sale_log")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "售后订单日志")
|
||||
public class HardAfterSaleLogEntity extends Model<HardAfterSaleLogEntity> {
|
||||
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(description="编号")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户编号
|
||||
*/
|
||||
@Schema(description="用户编号")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 售后编号
|
||||
*/
|
||||
@Schema(description="售后编号")
|
||||
private Long afterSaleId;
|
||||
|
||||
/**
|
||||
* 售后状态(之前)
|
||||
*/
|
||||
@Schema(description="售后状态(之前)")
|
||||
private String beforeStatus;
|
||||
|
||||
/**
|
||||
* 售后状态(之后)
|
||||
*/
|
||||
@Schema(description="售后状态(之后)")
|
||||
private String afterStatus;
|
||||
|
||||
/**
|
||||
* 操作类型
|
||||
*/
|
||||
@Schema(description="操作类型")
|
||||
private String operateType;
|
||||
|
||||
/**
|
||||
* 操作明细
|
||||
*/
|
||||
@Schema(description="操作明细")
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="创建人")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description="修改人")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@Schema(description="修改时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 删除标记
|
||||
*/
|
||||
@TableLogic
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@Schema(description="删除标记")
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@Schema(description="租户ID")
|
||||
private Long tenantId;
|
||||
}
|
||||
+1
-1
@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@TenantTable
|
||||
@TableName("hardware_order")
|
||||
@TableName("hard_order")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "订单表")
|
||||
public class HardOrderEntity extends Model<HardOrderEntity> {
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.bsd.pjcloud.hard.api.vo.order;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.order.HardAfterSaleLogEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardAfterSaleLogVo extends HardAfterSaleLogEntity {
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.bsd.pjcloud.hard.api.vo.order;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.order.HardAfterSaleEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardAfterSaleVo extends HardAfterSaleEntity {
|
||||
}
|
||||
Reference in new issue
Block a user