|
@@ -59,7 +59,6 @@ public class VendorIntroductionServiceImpl implements VendorIntroductionService
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public Page<VendorIntroduction> getVendorIntroduction(int page, int size, String keyword, String field) {
|
|
public Page<VendorIntroduction> getVendorIntroduction(int page, int size, String keyword, String field) {
|
|
|
- long start = System.currentTimeMillis();
|
|
|
|
|
String enterpriseCondition = " 1=1 ";
|
|
String enterpriseCondition = " 1=1 ";
|
|
|
String productCondition = "";
|
|
String productCondition = "";
|
|
|
// 拼接查询条件
|
|
// 拼接查询条件
|
|
@@ -99,7 +98,6 @@ public class VendorIntroductionServiceImpl implements VendorIntroductionService
|
|
|
} else {
|
|
} else {
|
|
|
vendorIntroductions = getEnterpriseWithoutProductCondition(enUU, enterpriseCondition, page, size);
|
|
vendorIntroductions = getEnterpriseWithoutProductCondition(enUU, enterpriseCondition, page, size);
|
|
|
}
|
|
}
|
|
|
- System.out.println("查找完企业UU" + (System.currentTimeMillis() - start));
|
|
|
|
|
return new Page<VendorIntroduction>(page, size, vendorIntroductions, total);
|
|
return new Page<VendorIntroduction>(page, size, vendorIntroductions, total);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -170,7 +168,6 @@ public class VendorIntroductionServiceImpl implements VendorIntroductionService
|
|
|
vendorIntroductionUusSql.append(",(select count(1) from ( select pr_enuu from v$product$private where ").append(productCondition)
|
|
vendorIntroductionUusSql.append(",(select count(1) from ( select pr_enuu from v$product$private where ").append(productCondition)
|
|
|
.append(" and ifnull(pr_b2cenabled, 1) = 1 and pr_pbranden is not null and pr_pcmpcode is not null) p1 where pr_enuu = enUU) prodCounts");
|
|
.append(" and ifnull(pr_b2cenabled, 1) = 1 and pr_pbranden is not null and pr_pcmpcode is not null) p1 where pr_enuu = enUU) prodCounts");
|
|
|
vendorIntroductionUusSql.append(" from (").append(enterpriseSql).append(rownumSql);
|
|
vendorIntroductionUusSql.append(" from (").append(enterpriseSql).append(rownumSql);
|
|
|
- System.out.println("ens:" + vendorIntroductionUusSql);
|
|
|
|
|
return commonDao.query(vendorIntroductionUusSql.toString(), VendorIntroduction.class);
|
|
return commonDao.query(vendorIntroductionUusSql.toString(), VendorIntroduction.class);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -217,7 +214,6 @@ public class VendorIntroductionServiceImpl implements VendorIntroductionService
|
|
|
enCountSql.append("right join ( select pr_enuu from v$product$private where ").append(productCondition).append(") p on pr_enuu = en_uu");
|
|
enCountSql.append("right join ( select pr_enuu from v$product$private where ").append(productCondition).append(") p on pr_enuu = en_uu");
|
|
|
}
|
|
}
|
|
|
enCountSql.append(" group by en_uu )a");
|
|
enCountSql.append(" group by en_uu )a");
|
|
|
- System.out.println("en_count:" + enCountSql.toString());
|
|
|
|
|
return commonDao.queryForObject(enCountSql.toString(), Integer.class);
|
|
return commonDao.queryForObject(enCountSql.toString(), Integer.class);
|
|
|
}
|
|
}
|
|
|
|
|
|