Jelajahi Sumber

增加img/isShow属性

xiewenjie 3 tahun lalu
induk
melakukan
f4b1536a04

+ 1 - 1
sxz-application/src/main/resources/application-dev.properties

@@ -17,7 +17,7 @@ spring.servlet.multipart.max-file-size=500MB
 spring.servlet.multipart.max-request-size=500MB
 spring.servlet.multipart.enabled=true
 spring.mvc.async.request-timeout=600000
-spring.web.static-locations=classpath:/META-INF/resources/,classpath:/data/, classpath:/static/, file:${server.file.location}
+spring.web.resources.static-locations=classpath:/META-INF/resources/,classpath:/data/, classpath:/static/, file:${server.file.location}
 #数据库配置
 spring.datasource.url=jdbc:mysql://192.168.0.47:3306/change_clothes_x?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
 spring.datasource.username=root

+ 1 - 1
sxz-application/src/main/resources/application-devuat.properties

@@ -17,7 +17,7 @@ spring.servlet.multipart.max-file-size=500MB
 spring.servlet.multipart.max-request-size=500MB
 spring.servlet.multipart.enabled=true
 spring.mvc.async.request-timeout=600000
-spring.web.static-locations=classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, file:${server.file.location},file:${upload.file.location}
+spring.web.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, file:${server.file.location},file:${upload.file.location}
 #数据库配置
 spring.datasource.url=jdbc:mysql://192.168.0.47:3306/change_clothes_x?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
 spring.datasource.username=root

+ 1 - 1
sxz-application/src/main/resources/application-prod.properties

@@ -17,7 +17,7 @@ spring.servlet.multipart.max-file-size=500MB
 spring.servlet.multipart.max-request-size=500MB
 spring.servlet.multipart.enabled=true
 spring.mvc.async.request-timeout=600000
-spring.web.static-locations=classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, file:${server.file.location},file:${upload.file.location}
+spring.web.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, file:${server.file.location},file:${upload.file.location}
 #数据库配置
 spring.datasource.url=jdbc:mysql://localhost:3306/change_clothes?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
 spring.datasource.username=root

+ 1 - 1
sxz-application/src/main/resources/application-uat.properties

@@ -17,7 +17,7 @@ spring.servlet.multipart.max-file-size=500MB
 spring.servlet.multipart.max-request-size=500MB
 spring.servlet.multipart.enabled=true
 spring.mvc.async.request-timeout=600000
-spring.web.static-locations=classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, file:${server.file.location},file:${upload.file.location}
+spring.web.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, file:${server.file.location},file:${upload.file.location}
 #数据库配置
 spring.datasource.url=jdbc:mysql://192.168.0.47:3306/change_clothes?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
 spring.datasource.username=root

+ 11 - 4
sxz-modules/src/main/java/com/fdkk/sxz/entity/RenovationPartsEntity.java

@@ -9,15 +9,22 @@ import lombok.Data;
  * Created by Hb_zzZ on 2020/8/11.
  */
 @Data
-@TableName( "tb_renovation_parts")
+@TableName("tb_renovation_parts")
 public class RenovationPartsEntity extends BaseEntity {
 
-    @TableField( "name")
+    @TableField("name")
     private String name;
 
-    @TableField( "type")
+    @TableField("type")
     private String type;
 
-    @TableField( "description")
+    @TableField("description")
     private String description;
+
+    @TableField("img")
+    private String img;
+    
+    //0不显示,1显示
+    @TableField("is_show")
+    private Integer isShow;
 }