소스 검색

【供应商资源】供应商列表增加是否存在待售物料标识

dongbw 7 년 전
부모
커밋
b0cec05f95

+ 28 - 0
src/main/java/com/uas/platform/b2c/common/account/model/Enterprise.java

@@ -177,6 +177,18 @@ public class Enterprise implements Serializable {
 	@Column(name = "en_validcode")
 	private Short enValidCode;
 
+	/**
+	 * 行业
+	 */
+	@Column(name = "en_profession")
+	private String profession;
+
+	/**
+	 * 经营范围
+	 */
+	@Column(name = "en_tags")
+	private String tags;
+
 
 	@Transient
 	private Integer receiptStatus;
@@ -452,6 +464,22 @@ public class Enterprise implements Serializable {
 		this.enBussinessCodeImage = enBussinessCodeImage;
 	}
 
+	public String getProfession() {
+		return profession;
+	}
+
+	public void setProfession(String profession) {
+		this.profession = profession;
+	}
+
+	public String getTags() {
+		return tags;
+	}
+
+	public void setTags(String tags) {
+		this.tags = tags;
+	}
+
 	/**
 	 * saas用户
 	 * 

+ 1 - 1
src/main/java/com/uas/platform/b2c/trade/vendor/service/impl/VendorIntroductionServiceImpl.java

@@ -114,7 +114,7 @@ public class VendorIntroductionServiceImpl implements VendorIntroductionService
 		// 查询企业是否开店语句
 		// 查找非供应商的卖当前商品的企业UU
 		String vendorIntroductionUusSql = "select s.*, ( select 1 from store$info where st_enuu = enUU) isStore, " +
-                "(select 1 from v$product$private where ifnull(pr_b2cenabled, 1) = 1 and pr_enuu = enUU) hasProduct from ("
+                "(select 1 from v$product$private where ifnull(pr_b2cenabled, 1) = 1 and pr_issale = 1 and pr_enuu = enUU limit 0,1) hasProduct from ("
 				+ enterpriseSql + rownumSql;
 //		String vendorIntroductionUusSql = "select s.*,( " + prodInfoSql + ") productInfo, (" + storeSql +
 //				") isStore from (select t.*,rownum as r1 from (" + enterpriseSql + rownumSql;