فهرست منبع

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

wangyc 8 سال پیش
والد
کامیت
9d4bf67c4e

+ 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")

+ 4 - 11
src/main/java/com/uas/platform/b2c/prod/store/model/StoreApply.java

@@ -6,14 +6,7 @@ import com.uas.platform.b2c.core.utils.JacksonUtils;
 import org.springframework.util.CollectionUtils;
 import org.springframework.util.StringUtils;
 
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.EnumType;
-import javax.persistence.Enumerated;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Id;
-import javax.persistence.Table;
-import javax.persistence.Transient;
+import javax.persistence.*;
 import java.util.Collections;
 import java.util.Date;
 import java.util.List;
@@ -142,7 +135,7 @@ public class StoreApply {
 	 * 公司信息JSON字符串
 	 */
 	@JsonIgnore
-	@Column(name = "apply_store_enterprise", length = 2000)
+	@Column(name = "apply_store_enterprise", length = 2000,columnDefinition="TEXT")
 	private String enterpriseJson;
 
 	/**
@@ -154,7 +147,7 @@ public class StoreApply {
 	@Column(name = "apply_en_type")
 	private String enType;
 
-	@Column(name = "apply_en_qualification", length = 4000)
+	@Column(name = "apply_en_qualification", length = 4000,columnDefinition="TEXT")
 	private String enQualification;
 
 	//----------------------------------------------------- 资质信息
@@ -163,7 +156,7 @@ public class StoreApply {
 	 * 资质信息JSON
 	 */
 	@JsonIgnore
-	@Column(name = "apply_qualifications", length = 4000)
+	@Column(name = "apply_qualifications", length = 4000,columnDefinition="TEXT")
 	private String qualificationsJson;
 
 	/**

+ 2 - 2
src/main/java/com/uas/platform/b2c/prod/store/model/StoreIn.java

@@ -123,7 +123,7 @@ public class StoreIn implements Serializable {
 	 * 企业信息JSON
 	 */
 	@JsonIgnore
-	@Column(name = "st_en_json", length = 2000)
+	@Column(name = "st_en_json", length = 2000 ,columnDefinition="TEXT")
 	private String enterpriseJson;
 
 	/**
@@ -141,7 +141,7 @@ public class StoreIn implements Serializable {
 	/**
 	 * 企业资质信息
 	 */
-	@Column(name = "st_en_qualification", length = 4000)
+	@Column(name = "st_en_qualification" ,columnDefinition="TEXT")
 	private String enQualification;
 
 	/**

+ 3 - 13
src/main/java/com/uas/platform/b2c/prod/store/model/StoreViolations.java

@@ -6,17 +6,7 @@ import com.uas.platform.b2c.core.utils.JacksonUtils;
 import com.uas.platform.b2c.prod.store.utils.StoreBusinessUtils;
 import org.springframework.util.StringUtils;
 
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.EnumType;
-import javax.persistence.Enumerated;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.OneToOne;
-import javax.persistence.Table;
-import javax.persistence.Transient;
+import javax.persistence.*;
 import java.util.Collections;
 import java.util.Date;
 import java.util.List;
@@ -99,7 +89,7 @@ public class StoreViolations {
 	 * 违规处置证据信息
 	 */
 	@JsonIgnore
-	@Column(name = "vi_dis_proof_json", length = 2000)
+	@Column(name = "vi_dis_proof_json", length = 2000,columnDefinition="TEXT")
 	private String disposeProofJson;
 
 	/**
@@ -135,7 +125,7 @@ public class StoreViolations {
 	 * 卖家申述具体说明证据信息
 	 */
 	@JsonIgnore
-	@Column(name = "vi_comp_proof_json", length = 2000)
+	@Column(name = "vi_comp_proof_json", length = 2000,columnDefinition="TEXT")
 	private String complaintProofJson;
 
 	/**

+ 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;
 
 	/**