Explorar o código

mysql数据类型调整(视图主键)

wangdy %!s(int64=8) %!d(string=hai) anos
pai
achega
e64fb5f136

+ 3 - 3
src/main/java/com/uas/platform/b2c/prod/product/component/modal/ComponentGoods.java

@@ -32,7 +32,7 @@ public class ComponentGoods implements Serializable {
 	 */
 	@Id
 	@Column(name = "id", unique = true, nullable = false, insertable = false, updatable = false)
-	private String id;
+	private Long id;
 
 	/**
 	 * product$component的主键
@@ -289,11 +289,11 @@ public class ComponentGoods implements Serializable {
 	@Column(name = "go_storename")
 	private String storeName;
 
-	public String getId() {
+	public Long getId() {
 		return id;
 	}
 
-	public void setId(String id) {
+	public void setId(Long id) {
 		this.id = id;
 	}