Kaynağa Gözat

供应商资源库接口,enUU不传值时,设置为测试企业UU防止查询不到数据。

dongbw 8 yıl önce
ebeveyn
işleme
93cc78f730

+ 5 - 1
src/main/java/com/uas/platform/b2b/service/impl/VendorsServiceImpl.java

@@ -317,7 +317,11 @@ public class VendorsServiceImpl implements VendorService {
 	public com.uas.account.support.Page<VendorRecommend> getVendorRecommend(Long enUU, String productMatchCondition, String enterpriseMatchCondition, int page, int size) {
 		long start = System.currentTimeMillis();
 //		final Long enUU = SystemSession.getUser().getEnterprise().getUu();
-		if (StringUtils.isEmpty(productMatchCondition)) {
+        if (null == enUU) {
+            // 设置测试企业 - 优软测试二
+            enUU = 10030994L;
+        }
+        if (StringUtils.isEmpty(productMatchCondition)) {
 			productMatchCondition = " 1=1 ";
 		}
 		if (StringUtils.isEmpty(enterpriseMatchCondition)) {