mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 02:39:19 +08:00
feat: 订单状态表新增颜色字段
- 新增 sql/ec_design.sql 表设计文档
- ec_order_status 表新增 color 字段
- 后端 PO/DTO/VO 同步新增 color 字段
- 前端表单支持颜色选择(预设12色+自定义输入)
- 前端列表页状态名称显示颜色标签
⚠️ 数据库需执行 ALTER TABLE 语句
This commit is contained in:
+6
@@ -25,6 +25,12 @@ public class CreateOrderStatusDTO {
|
||||
@Schema(description = "状态描述", example = "订单已创建,等待商家发货")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 状态颜色(十六进制,如 #1890ff)
|
||||
*/
|
||||
@Schema(description = "状态颜色", example = "#1890ff")
|
||||
private String color;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
|
||||
+6
@@ -25,6 +25,12 @@ public class UpdateOrderStatusDTO {
|
||||
@Schema(description = "状态描述", example = "订单已创建,等待商家发货")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 状态颜色(十六进制,如 #1890ff)
|
||||
*/
|
||||
@Schema(description = "状态颜色", example = "#1890ff")
|
||||
private String color;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
|
||||
+6
@@ -38,6 +38,12 @@ public class OrderStatusPO {
|
||||
@TableField("description")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 状态颜色(十六进制,如 #1890ff)
|
||||
*/
|
||||
@TableField("color")
|
||||
private String color;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
|
||||
+6
@@ -36,6 +36,12 @@ public class OrderStatusVO {
|
||||
@Schema(description = "状态描述", example = "订单已创建,等待商家发货")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 状态颜色(十六进制,如 #1890ff)
|
||||
*/
|
||||
@Schema(description = "状态颜色", example = "#1890ff")
|
||||
private String color;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user