数据库更换

This commit is contained in:
Qi 2025-08-20 20:19:26 +08:00
parent 24787ab9a6
commit 35cabe42af
3 changed files with 8 additions and 169 deletions

View File

@ -1,161 +0,0 @@
package org.jeecg.modules.oroqen.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description:
* @Author: jeecg-boot
* @Date: 2025-01-08
* @Version: V1.0
*/
@Data
@TableName("oroqen_product")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "产品")
public class OroqenProduct implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description = "主键")
private String id;
/**产品名称*/
@Excel(name = "产品名称", width = 15)
@Schema(description = "产品名称")
private String productName;
/**产品编码*/
@Excel(name = "产品编码", width = 15)
@Schema(description = "产品编码")
private String productCode;
/**分类ID*/
@Excel(name = "分类ID", width = 15)
@Schema(description = "分类ID")
private String categoryId;
/**价格*/
@Excel(name = "价格", width = 15)
@Schema(description = "价格")
private BigDecimal price;
/**库存*/
@Excel(name = "库存", width = 15)
@Schema(description = "库存")
private Integer stock;
/**主图*/
@Excel(name = "主图", width = 15)
@Schema(description = "主图")
private String mainImage;
/**产品图片(多张,逗号分隔)*/
@Excel(name = "产品图片", width = 15)
@Schema(description = "产品图片(多张,逗号分隔)")
private String images;
/**产品视频URL*/
@Excel(name = "产品视频URL", width = 15)
@Schema(description = "产品视频URL")
private String productVideo;
/**产品描述*/
@Excel(name = "产品描述", width = 15)
@Schema(description = "产品描述")
private String description;
/**文化故事*/
@Excel(name = "文化故事", width = 15)
@Schema(description = "文化故事")
private String culturalStory;
/**工匠信息*/
@Excel(name = "工匠信息", width = 15)
@Schema(description = "工匠信息")
private String craftsmanInfo;
/**材质*/
@Excel(name = "材质", width = 15)
@Schema(description = "材质")
private String material;
/**规格*/
@Excel(name = "规格", width = 15)
@Schema(description = "规格")
private String specifications;
/**重量(克)*/
@Excel(name = "重量(克)", width = 15)
@Schema(description = "重量(克)")
private Integer weight;
/**尺寸*/
@Excel(name = "尺寸", width = 15)
@Schema(description = "尺寸")
private String dimensions;
/**标签(多个,逗号分隔)*/
@Excel(name = "标签", width = 15)
@Schema(description = "标签(多个,逗号分隔)")
private String tags;
/**是否推荐(0-否,1-是)*/
@Excel(name = "是否推荐", width = 15)
@Schema(description = "是否推荐(0-否,1-是)")
private Integer isFeatured;
/**是否热销(0-否,1-是)*/
@Excel(name = "是否热销", width = 15)
@Schema(description = "是否热销(0-否,1-是)")
private Integer isHot;
/**销量*/
@Excel(name = "销量", width = 15)
@Schema(description = "销量")
private Integer salesCount;
/**排序*/
@Excel(name = "排序", width = 15)
@Schema(description = "排序")
private Integer sortOrder;
/**状态(0-下架,1-上架)*/
@Excel(name = "状态", width = 15)
@Schema(description = "状态(0-下架,1-上架)")
private Integer status;
/**创建人*/
@Schema(description = "创建人")
private String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "创建日期")
private Date createTime;
/**更新人*/
@Schema(description = "更新人")
private String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "更新日期")
private Date updateTime;
}

View File

@ -1,5 +1,5 @@
server:
port: 8080
port: 10002
undertow:
decode-url: true # 启用URL解码
# max-http-post-size: 10MB # 平替 tomcat server.tomcat.max-swallow-siz undertow该值默认为-1
@ -150,9 +150,9 @@ spring:
slow-sql-millis: 5000
datasource:
master:
url: jdbc:mysql://localhost:3306/Oroqen?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
url: jdbc:mysql://116.62.245.34:3306/oroqen?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root
password: 123456
password: e531fc3ca462bd0c
driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置
#multi-datasource1:

View File

@ -1,5 +1,5 @@
server:
port: 8080
port: 10002
undertow:
decode-url: true # 启用URL解码
worker-threads: 16
@ -145,9 +145,9 @@ spring:
slow-sql-millis: 5000
datasource:
master:
url: jdbc:mysql://localhost:3306/Oroqen?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
url: jdbc:mysql://116.62.245.34:3306/oroqen?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root
password: 123456
password: e531fc3ca462bd0c
driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置
#multi-datasource1:
@ -211,8 +211,8 @@ jeecg:
uploadType: alioss
# 前端访问地址
domainUrl:
pc: http://localhost:3100
app: http://localhost:8051
pc: http://116.62.245.34:3100
app: http://116.62.245.34:8051
path:
#文件上传根目录 设置
upload: /opt/jeecg-boot/upload