Commit 32b68a63 authored by Quxl's avatar Quxl

x

parent ca7aebb6
......@@ -28,7 +28,7 @@ public class BrandServiceImpl implements BrandService {
@Override
public List<Map<String,Object>> listBanner(Map<String,Object> params, Page page){
String orgNO = params.get("orgNO")+"";
String sql = "select nItem BannerID, nIdx Idx, sTitle Title, sLinkType LinkType, sLinkPath LinkUrl, sImagePath ImgPath from tBanner"
String sql = "select nItem, nIdx, sTitle, sLinkType, sLinkPath, sImagePath from tBanner"
+ " where CONVERT(varchar(100), dStartTime, 23) <= CONVERT(varchar(100),getdate(), 23) "
+ " AND CONVERT(varchar(100), dEndTime, 23) >= CONVERT(varchar(100),getdate(), 23) "
+ " AND nTag&1=0 ";
......@@ -44,10 +44,10 @@ public class BrandServiceImpl implements BrandService {
@Override
public List<Map<String, Object>> getBrandList(Map<String, Object> map) {
String sql="SELECT "
+ "PinyinCode = b.sPinyinCode,"
+ "BrandNO = acg.sBrandID, "
+ "BrandName = b.sBrandName,"
+ "ImgPath = b.sLogoUrl "
+ "b.sPinyinCode,"
+ "b.sBrandID, "
+ "b.sBrandName,"
+ "b.sLogoUrl "
+ "FROM "
+ "tAgentContractGoods acg, "
+ "tBrand b "
......@@ -69,10 +69,10 @@ public class BrandServiceImpl implements BrandService {
@Override
public List<Map<String, Object>> getHotSaleBrands(Map<String, Object> map, Page page) {
String sql="SELECT "
+ "BrandNO = b.sBrandID, "
+ "BrandName = b.sBrandName, "
+ "ImgPath = b.sLogoUrl, "
+ "SaleQty = sum(a.nSaleQty) "
+ "b.sBrandID, "
+ "b.sBrandName, "
+ "b.sLogoUrl, "
+ "nSaleQty = sum(a.nSaleQty) "
+ "FROM tAgentGoodsDailyOnline a "
+ "JOIN tGoods g ON a.nGoodsID = g.nGoodsID "
+ "JOIN tBrand b ON g.sBrandID = b.sBrandID "
......
......@@ -69,7 +69,7 @@ public class CategoryServiceImpl implements CategoryService {
if(level == null) {
level = jdbcTemplate.queryForInt("select GoodsCategoryLevel = isnull((select Convert(int,sValue1) from tSystemCtrl where sCode = 'GoodsCategoryLevel'),0)");
}
String three="select categoryID=sCategoryNO,categoryName=sCategoryDesc,parentID=sUpCategoryNO from tOrgCategory where sOrgNO=? and sScopeTypeID=? and nCategoryLevel= ?";
String three="select sCategoryNO,sCategoryDesc,sUpCategoryNO from tOrgCategory where sOrgNO=? and sScopeTypeID=? and nCategoryLevel= ?";
List<Map<String,Object>> list3=jdbcTemplate.queryForList(three, orgNO, scopeTypeID, level);
return list3;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment