Browse Source

Merge remote-tracking branch 'origin/feature-toMysql-0920' into feature-toMysql-0920

wangdy 8 years ago
parent
commit
4bc0f86b5f

+ 2 - 1
src/main/java/com/uas/platform/b2c/common/account/model/ErpB2cLog.java

@@ -63,7 +63,8 @@ public class ErpB2cLog extends BufferedLogable implements Serializable {
 	/**
 	 * 具体内容
 	 */
-	@Column(name = "log_message")
+	@Lob
+	@Column(name = "log_message", columnDefinition = "TEXT")
 	private String message;
 
 	/**

+ 2 - 1
src/main/java/com/uas/platform/b2c/common/account/model/TradeLog.java

@@ -78,7 +78,8 @@ public class TradeLog extends BufferedLogable implements Serializable {
 	 * 2、状态变更时,记录其状态变更以及受影响的单据编号
 	 * 3、启动异常流程时,记录异常单据的
 	 */
-	@Column(name = "log_change_log",length = 4000)
+	@Lob
+	@Column(name = "log_change_log", columnDefinition = "TEXT")
 	private String changeLog;
 
 	public enum VoucherOperation {

+ 2 - 1
src/main/java/com/uas/platform/b2c/external/erp/product/model/OperationInfo.java

@@ -83,7 +83,8 @@ public class OperationInfo implements Serializable {
     /**
      * 备注信息
      */
-    @Column(name = "sm_operationremark", length = 4000)
+    @Lob
+    @Column(name = "sm_operationremark", columnDefinition = "TEXT")
     private String operationRemark;
 
     /**

+ 2 - 2
src/main/java/com/uas/platform/b2c/fa/payment/model/BankTransfer.java

@@ -21,7 +21,7 @@ public class BankTransfer {
 	/**
 	 * 收款方银行信息
 	 */
-	@Column(name = "banktf_re", length = 4000)
+	@Column(name = "banktf_re", columnDefinition = "TEXT")
 	private String jsonReceive;
 
 	/**
@@ -63,7 +63,7 @@ public class BankTransfer {
 	/**
 	 * 付款方银行信息
 	 */
-	@Column(name = "banktf_pa", length = 4000)
+	@Column(name = "banktf_pa", columnDefinition = "TEXT")
 	private String jsonPament;
 
 	/**

+ 3 - 3
src/main/java/com/uas/platform/b2c/fa/payment/model/Payment.java

@@ -52,7 +52,7 @@ public class Payment {
      *  付款总金额
      */
     @Column(name = "pay_total_amount")
-    private double totalAmount;
+    private Double totalAmount;
 
     /**
      *  付款时间
@@ -114,11 +114,11 @@ public class Payment {
         this.createtime = createtime;
     }
 
-    public double getTotalAmount() {
+    public Double getTotalAmount() {
         return totalAmount;
     }
 
-    public void setTotalAmount(double totalAmount) {
+    public void setTotalAmount(Double totalAmount) {
         this.totalAmount = totalAmount;
     }
 

+ 2 - 2
src/main/java/com/uas/platform/b2c/logistics/model/DistributionRule.java

@@ -97,7 +97,7 @@ public class DistributionRule {
 	/**
 	 * 分段运费(JSON串)
 	 */
-	@Column(name = "rule_qtyFare")
+	@Column(name = "rule_qtyFare", columnDefinition = "TEXT")
 	private String qtyFare;
 
 	/**
@@ -115,7 +115,7 @@ public class DistributionRule {
 	/**
 	 * 分段地区(JSON串)
 	 */
-	@Column(name = "rule_qtyArea")
+	@Column(name = "rule_qtyArea", columnDefinition = "TEXT")
 	private String qtyArea;
 
 	/**

+ 3 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/model/Product.java

@@ -14,7 +14,9 @@ import java.util.Set;
  *
  */
 @Entity
-@Table(name = "products")
+@Table(name = "products", indexes = {@Index(name = "products_code_index", columnList = "pr_code"),
+@Index(name = "products_enuu_index", columnList = "pr_enuu"),
+@Index(name = "products_enuu_code_index", columnList = "pr_code, pr_enuu", unique = true)})
 @Logger
 //@Cacheable
 //@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "com.uas.platform.b2b.model.Product")

+ 3 - 3
src/main/java/com/uas/platform/b2c/prod/product/brand/modal/Brand.java

@@ -13,7 +13,7 @@ import java.util.Date;
  * @version  2016年3月11日上午9:30:00 suntg 创建
  */
 @Entity
-@Table(name = "product$brand")
+@Table(name = "product$brand", indexes = { @Index(name = "product$brand_inital", columnList = "br_inital"), @Index(name = "product$brand_namecn_uni", columnList = "br_name_cn", unique = true), @Index(name = "product$brand_nameen_uni", columnList = "br_name_en", unique = true)})
 public class Brand implements Serializable {
 
 	/**
@@ -38,13 +38,13 @@ public class Brand implements Serializable {
 	/**
 	 * 品牌中文名称
 	 */
-	@Column(name = "br_name_cn")
+	@Column(name = "br_name_cn", unique = true)
 	private String nameCn;
 
 	/**
 	 * 品牌英文名称
 	 */
-	@Column(name = "br_name_en")
+	@Column(name = "br_name_en", unique = true)
 	private String nameEn;
 
 	/**

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/product/component/modal/Component.java

@@ -19,7 +19,7 @@ import java.util.Set;
  * @version  2016年3月11日上午10:24:29 suntg 创建
  */
 @Entity
-@Table(name = "product$component")
+@Table(name = "product$component", indexes = { @Index(name = "BRID_CODE_UNIQUE", columnList = "cmp_code,cmp_brid", unique = true), @Index(name = "PRODUCT$COMPONENT_CODE", columnList = "cmp_code")})
 public class Component implements Serializable {
 
 	/**

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/product/component/modal/ComponentCrawl.java

@@ -13,7 +13,7 @@ import java.util.Set;
  * @version  2016年10月27日上午10:18:16 wangyc 创建
  */
 @Entity
-@Table(name = "product$component_crawl")
+@Table(name = "product$component_crawl", indexes = { @Index(name = "PRODUCT$COMPONENT_CRAWL_TASK", columnList = "cc_task")})
 public class ComponentCrawl implements Serializable {
 
 	private static final long serialVersionUID = 1L;

+ 5 - 5
src/main/java/com/uas/platform/b2c/prod/product/component/modal/ComponentVersion.java

@@ -39,7 +39,7 @@ public class ComponentVersion implements Serializable {
 	/**
 	 * 标准器件唯一标识符UUID
 	 */
-	@Column(name = "cmp_uuid", unique = true)
+	@Column(name = "cmp_uuid")
 	private String uuid;
 
 	/**
@@ -70,7 +70,7 @@ public class ComponentVersion implements Serializable {
 	 * 创建人对应的Json字符串
 	 */
 	@Lob
-	@Column(name = "cmp_defineuserJson")
+	@Column(name = "cmp_defineuserJson", length = 2000)
 	private String defineuserJson;
 
 	/**
@@ -83,7 +83,7 @@ public class ComponentVersion implements Serializable {
 	 * 最近更新人对应的Json字符串
 	 */
 	@Lob
-	@Column(name = "cmp_modifyuserJson")
+	@Column(name = "cmp_modifyuserJson", length = 2000)
 	private String modifyuserJson;
 
 	/**
@@ -121,7 +121,7 @@ public class ComponentVersion implements Serializable {
 	 * 详细描述
 	 */
 	@Lob
-	@Column(name = "cmp_description")
+	@Column(name = "cmp_description", columnDefinition = "TEXT")
 	private String description;
 
 	/**
@@ -148,7 +148,7 @@ public class ComponentVersion implements Serializable {
 	 * 为了前端解析展示的便利,将$scope.properties转换成字符串保存下来,这样直接在前端解析后便可以使用统一的数据格式&样式等
 	 */
 	@Lob
-	@Column(name = "properties_json")
+	@Column(name = "properties_json", columnDefinition = "LONGBLOB")
 	private String propertiesJson;
 
 	public Long getId() {

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/product/property/model/PropertyValue.java

@@ -9,7 +9,7 @@ import javax.persistence.*;
  * @version  2016年3月11日下午2:24:29 suntg 创建
  */
 @Entity
-@Table(name = "product$propertyvalue")
+@Table(name = "product$propertyvalue", indexes = { @Index(name = "PROPERTYVALUE_P_CMP_INDEX", columnList = "pv_componentid,pv_propertyid"), @Index(name = "PROPERTYVALUE_CMPID_INDEX", columnList = "pv_componentid"), @Index(name = "PROPERTYVALUE_VALUE_INDEX", columnList = "pv_value")})
 public class PropertyValue {
 
 	/**

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/product/property/model/PropertyValueSubmit.java

@@ -64,7 +64,7 @@ public class PropertyValueSubmit implements Serializable {
 	/**
 	 * 属性值
 	 */
-	@Column(name = "ps_value")
+	@Column(name = "ps_value", length = 500)
 	private String stringValue;
 
 	/**

+ 32 - 33
src/main/java/com/uas/platform/b2c/trade/order/model/Order.java

@@ -147,37 +147,37 @@ public class Order extends Document implements Serializable {
 	/**
 	 * 使用的配送规则
 	 */
-	@Column(name = "or_rule", length = 2000)
+	@Column(name = "or_rule", columnDefinition = "TEXT")
 	private String jsonRule;
 
 	/**
 	 * 拆单之前的配送规则列表
 	 */
-	@Column(name = "or_rules", length = 4000)
+	@Column(name = "or_rules", columnDefinition = "TEXT")
 	private String jsonMoreRule;
 
 	/**
 	 * 自提点信息
 	 */
-	@Column(name = "or_take_self", length = 2000)
+	@Column(name = "or_take_self", columnDefinition = "TEXT")
 	private String jsonTakeSelf;
 
 	/**
 	 * 拆单之前的自提点信息
 	 */
-	@Column(name = "or_take_selfs", length = 4000)
+	@Column(name = "or_take_selfs", columnDefinition = "TEXT")
 	private String jsonMoreTake;
 
 	/**
 	 * 收货地址 这里使用json字符串的形式将收货地址整个存起来
 	 */
-	@Column(name = "or_addr", length = 2000)
+	@Column(name = "or_addr", columnDefinition = "TEXT")
 	private String jsonAddress;
 
 	/**
 	 * 发货地址 这里使用json字符串的形式将收货地址整个存起来
 	 */
-	@Column(name = "in_sd_addr", length = 2000)
+	@Column(name = "in_sd_addr", columnDefinition = "TEXT")
 	private String jsonSdAddress;
 
     /**
@@ -217,24 +217,6 @@ public class Order extends Document implements Serializable {
 	private Long invoiceid;
 
 
-	/**
-	 * Gets invoiceid.
-	 *
-	 * @return the invoiceid
-	 */
-	public Long getInvoiceid() {
-		return invoiceid;
-	}
-
-	/**
-	 * Sets invoiceid.
-	 *
-	 * @param invoiceid the invoiceid
-	 */
-	public void setInvoiceid(Long invoiceid) {
-		this.invoiceid = invoiceid;
-	}
-
 	/**
 	 * 发票抬头
 	 */
@@ -244,7 +226,7 @@ public class Order extends Document implements Serializable {
 	/**
 	 * 发票的地址
 	 */
-	@Column(name = "or_invoice_address", length = 2000)
+	@Column(name = "or_invoice_address", columnDefinition = "TEXT")
 	private String invoiceAddress;
 
 	/**
@@ -275,13 +257,13 @@ public class Order extends Document implements Serializable {
 	/**
 	 * 付款方账户信息
 	 */
-	@Column(name = "or_buyaccount")
+	@Column(name = "or_buyaccount", columnDefinition = "TEXT")
 	private String buyaccount;
 
 	/**
 	 * 收款方信息
 	 */
-	@Column(name = "or_selleraccount")
+	@Column(name = "or_selleraccount", columnDefinition = "TEXT")
 	private String selleraccount;
 
 	/**
@@ -311,7 +293,7 @@ public class Order extends Document implements Serializable {
 	/**
 	 * 失效原因
 	 */
-	@Column(name = "or_unavailablereason")
+	@Column(name = "or_unavailablereason", length = 255)
 	private String unavailableReason;
 
 	/**
@@ -331,7 +313,7 @@ public class Order extends Document implements Serializable {
 	/**
 	 * 审核不通过的原因
 	 */
-	@Column(name = "or_auditpayfailreason")
+	@Column(name = "or_auditpayfailreason", length = 255)
 	private String auditPayFailReason;
 
 	/**
@@ -367,19 +349,19 @@ public class Order extends Document implements Serializable {
 	/**
 	 * 币别
 	 */
-	@Column(name = "or_currency")
+	@Column(name = "or_currency", length = 50)
 	private String currency;
 
 	/**
 	 * 状态变更记录 List<StatusHistory> -> Json
 	 */
-	@Column(name = "or_statushistory", length = 4000)
+	@Column(name = "or_statushistory", columnDefinition = "TEXT")
 	private String statushistory;
 
 	/**
 	 * 转的发货单流水号
 	 */
-	@Column(name = "in_id")
+	@Column(name = "in_id", length = 50)
 	private String inid;
 
 	/**
@@ -1459,7 +1441,7 @@ public class Order extends Document implements Serializable {
 	 *
 	 * @param uu the uu
 	 */
-/*
+	/*
 	 * 确认状态下的供应商拒绝
 	 */
 	public void setStatusComfirmDisagree(Long uu) {
@@ -2736,6 +2718,23 @@ public class Order extends Document implements Serializable {
 		return this;
 	}
 
+	/**
+	 * Gets invoiceid.
+	 *
+	 * @return the invoiceid
+	 */
+	public Long getInvoiceid() {
+		return invoiceid;
+	}
+
+	/**
+	 * Sets invoiceid.
+	 *
+	 * @param invoiceid the invoiceid
+	 */
+	public void setInvoiceid(Long invoiceid) {
+		this.invoiceid = invoiceid;
+	}
 	/**
 	 * Gets dissociative.
 	 *

+ 2 - 2
src/main/java/com/uas/platform/b2c/trade/order/model/Purchase.java

@@ -198,7 +198,7 @@ public class Purchase extends Document implements Serializable {
 	/**
 	 * 状态变更记录 List<StatusHistory> -> Json
 	 */
-	@Column(name = "pu_statushistory", length = 4000)
+	@Column(name = "pu_statushistory", columnDefinition = "TEXT")
 	private String statushistory;
 
 	/**
@@ -450,7 +450,7 @@ public class Purchase extends Document implements Serializable {
 	/**
 	 * 交易备注
 	 */
-	@Column(name = "pu_remark", length = 4000)
+	@Column(name = "pu_remark", columnDefinition = "TEXT")
 	private String purchaseRemark;
 
 	/**