Browse Source

Merge remote-tracking branch 'origin/dev-mysql' into dev-mysql

suntg 8 years ago
parent
commit
b45a32fc4f

+ 11 - 1
src/main/java/com/uas/platform/b2c/core/config/MicroServicesConf.java

@@ -28,6 +28,12 @@ public class MicroServicesConf {
 	@Value("#{sys.floorMicroServiceIp ?: '10.10.0.30'}")
 	@Value("#{sys.floorMicroServiceIp ?: '10.10.0.30'}")
 	private String floorMicroServiceIp;
 	private String floorMicroServiceIp;
 
 
+	/**
+	 * profile
+	 */
+	@Value("#{sys.profile}")
+	private String profile;
+
 	/**
 	/**
 	 * 轮播
 	 * 轮播
 	 */
 	 */
@@ -71,7 +77,11 @@ public class MicroServicesConf {
 	}
 	}
 
 
 	public String getRequestUrlForNews(String requestUrl) {
 	public String getRequestUrlForNews(String requestUrl) {
-		return String.format("http://%s%s", this.newsMicroServiceIp, requestUrl);
+		if ("prod".equals(profile)){
+			return String.format("http://%s%s", this.newsMicroServiceIp, requestUrl);
+		}else {
+			return String.format("http://%s:%d%s", this.microServiceIp, 20210, requestUrl);
+		}
 	}
 	}
 
 
 	public String getRequestUrlForFloor(int port, String requestUrl) {
 	public String getRequestUrlForFloor(int port, String requestUrl) {

+ 15 - 0
src/main/java/com/uas/platform/b2c/prod/commodity/model/Goods.java

@@ -475,6 +475,13 @@ public class Goods implements Serializable {
 	@Column(name= "go_perqty")
 	@Column(name= "go_perqty")
 	private Double perQty;
 	private Double perQty;
 
 
+	/**
+	 * 商品的点击次数
+	 */
+	@Column(name = "go_visit_count")
+	private Long visitCount;
+
+
 	@Transient
 	@Transient
 	private String selfSale;
 	private String selfSale;
 
 
@@ -522,6 +529,14 @@ public class Goods implements Serializable {
 		this.id = id;
 		this.id = id;
 	}
 	}
 
 
+	public Long getVisitCount() {
+		return visitCount;
+	}
+
+	public void setVisitCount(Long visitCount) {
+		this.visitCount = visitCount;
+	}
+
 	public String getUuid() {
 	public String getUuid() {
 		return uuid;
 		return uuid;
 	}
 	}

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

@@ -151,6 +151,18 @@ public class Brand implements Serializable {
 	@Column(name = "br_weight")
 	@Column(name = "br_weight")
 	private Double weight;
 	private Double weight;
 
 
+	/**
+	 * 品牌的点击次数
+	 */
+	@Column(name = "br_visit_count")
+	private Long visitCount;
+
+	/**
+	 * 品牌的搜索次数
+	 */
+	@Column(name = "br_search_count")
+	private Long searchCount;
+
 	public Long getId() {
 	public Long getId() {
 		return id;
 		return id;
 	}
 	}
@@ -319,6 +331,22 @@ public class Brand implements Serializable {
 		this.inital = inital;
 		this.inital = inital;
 	}
 	}
 
 
+	public Long getVisitCount() {
+		return visitCount;
+	}
+
+	public void setVisitCount(Long visitCount) {
+		this.visitCount = visitCount;
+	}
+
+	public Long getSearchCount() {
+		return searchCount;
+	}
+
+	public void setSearchCount(Long searchCount) {
+		this.searchCount = searchCount;
+	}
+
 	public Brand() {
 	public Brand() {
 
 
 	}
 	}

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

@@ -301,6 +301,18 @@ public class Component implements Serializable {
 	@Column(name = "cmp_inastockqty")
 	@Column(name = "cmp_inastockqty")
 	private Double inactionStockQty;
 	private Double inactionStockQty;
 
 
+	/**
+	 * 器件的点击次数
+	 */
+	@Column(name = "cmp_visit_count")
+	private Long visitCount;
+
+	/**
+	 * 器件的搜索次数
+	 */
+	@Column(name = "cmp_search_count")
+	private Long searchCount;
+
 	/**
 	/**
 	 * 废料数量
 	 * 废料数量
 	 */
 	 */
@@ -315,6 +327,22 @@ public class Component implements Serializable {
 		this.id = id;
 		this.id = id;
 	}
 	}
 
 
+	public Long getVisitCount() {
+		return visitCount;
+	}
+
+	public void setVisitCount(Long visitCount) {
+		this.visitCount = visitCount;
+	}
+
+	public Long getSearchCount() {
+		return searchCount;
+	}
+
+	public void setSearchCount(Long searchCount) {
+		this.searchCount = searchCount;
+	}
+
 	public String getUuid() {
 	public String getUuid() {
 		return uuid;
 		return uuid;
 	}
 	}

+ 28 - 0
src/main/java/com/uas/platform/b2c/prod/product/kind/model/Kind.java

@@ -91,6 +91,18 @@ public class Kind implements Serializable {
 	@Column(name = "ki_cmpsuffix")
 	@Column(name = "ki_cmpsuffix")
 	private Long componentsuffix;
 	private Long componentsuffix;
 
 
+	/**
+	 * 类目的点击次数
+	 */
+	@Column(name = "ki_visit_count")
+	private Long visitCount;
+
+	/**
+	 * 类目的搜索次数
+	 */
+	@Column(name = "ki_search_count")
+	private Long searchCount;
+
 	/**
 	/**
 	 * 包含的属性
 	 * 包含的属性
 	 */
 	 */
@@ -232,6 +244,22 @@ public class Kind implements Serializable {
 		this.componentsuffix = componentsuffix;
 		this.componentsuffix = componentsuffix;
 	}
 	}
 
 
+	public Long getVisitCount() {
+		return visitCount;
+	}
+
+	public void setVisitCount(Long visitCount) {
+		this.visitCount = visitCount;
+	}
+
+	public Long getSearchCount() {
+		return searchCount;
+	}
+
+	public void setSearchCount(Long searchCount) {
+		this.searchCount = searchCount;
+	}
+
 	/*
 	/*
 	 * public KindUas converUas(Kind kind){ KindUas uas = new KindUas();
 	 * public KindUas converUas(Kind kind){ KindUas uas = new KindUas();
 	 * uas.setComponentPrefix(kind.getComponentPrefix());
 	 * uas.setComponentPrefix(kind.getComponentPrefix());

+ 3 - 1
src/main/webapp/resources/css/common.css

@@ -939,4 +939,6 @@ input::-webkit-outer-spin-button,
 input::-webkit-inner-spin-button {
 input::-webkit-inner-spin-button {
 	-webkit-appearance: none !important;
 	-webkit-appearance: none !important;
 	margin: 0;
 	margin: 0;
-}
+}
+/*去除textarea默认右下角可自由放大样式*/
+textarea{resize:none}