Commit 32b68a63 authored by Quxl's avatar Quxl

x

parent ca7aebb6
...@@ -28,7 +28,7 @@ public class BrandServiceImpl implements BrandService { ...@@ -28,7 +28,7 @@ public class BrandServiceImpl implements BrandService {
@Override @Override
public List<Map<String,Object>> listBanner(Map<String,Object> params, Page page){ public List<Map<String,Object>> listBanner(Map<String,Object> params, Page page){
String orgNO = params.get("orgNO")+""; 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) " + " where CONVERT(varchar(100), dStartTime, 23) <= CONVERT(varchar(100),getdate(), 23) "
+ " AND CONVERT(varchar(100), dEndTime, 23) >= CONVERT(varchar(100),getdate(), 23) " + " AND CONVERT(varchar(100), dEndTime, 23) >= CONVERT(varchar(100),getdate(), 23) "
+ " AND nTag&1=0 "; + " AND nTag&1=0 ";
...@@ -44,10 +44,10 @@ public class BrandServiceImpl implements BrandService { ...@@ -44,10 +44,10 @@ public class BrandServiceImpl implements BrandService {
@Override @Override
public List<Map<String, Object>> getBrandList(Map<String, Object> map) { public List<Map<String, Object>> getBrandList(Map<String, Object> map) {
String sql="SELECT " String sql="SELECT "
+ "PinyinCode = b.sPinyinCode," + "b.sPinyinCode,"
+ "BrandNO = acg.sBrandID, " + "b.sBrandID, "
+ "BrandName = b.sBrandName," + "b.sBrandName,"
+ "ImgPath = b.sLogoUrl " + "b.sLogoUrl "
+ "FROM " + "FROM "
+ "tAgentContractGoods acg, " + "tAgentContractGoods acg, "
+ "tBrand b " + "tBrand b "
...@@ -69,10 +69,10 @@ public class BrandServiceImpl implements BrandService { ...@@ -69,10 +69,10 @@ public class BrandServiceImpl implements BrandService {
@Override @Override
public List<Map<String, Object>> getHotSaleBrands(Map<String, Object> map, Page page) { public List<Map<String, Object>> getHotSaleBrands(Map<String, Object> map, Page page) {
String sql="SELECT " String sql="SELECT "
+ "BrandNO = b.sBrandID, " + "b.sBrandID, "
+ "BrandName = b.sBrandName, " + "b.sBrandName, "
+ "ImgPath = b.sLogoUrl, " + "b.sLogoUrl, "
+ "SaleQty = sum(a.nSaleQty) " + "nSaleQty = sum(a.nSaleQty) "
+ "FROM tAgentGoodsDailyOnline a " + "FROM tAgentGoodsDailyOnline a "
+ "JOIN tGoods g ON a.nGoodsID = g.nGoodsID " + "JOIN tGoods g ON a.nGoodsID = g.nGoodsID "
+ "JOIN tBrand b ON g.sBrandID = b.sBrandID " + "JOIN tBrand b ON g.sBrandID = b.sBrandID "
......
...@@ -69,7 +69,7 @@ public class CategoryServiceImpl implements CategoryService { ...@@ -69,7 +69,7 @@ public class CategoryServiceImpl implements CategoryService {
if(level == null) { if(level == null) {
level = jdbcTemplate.queryForInt("select GoodsCategoryLevel = isnull((select Convert(int,sValue1) from tSystemCtrl where sCode = 'GoodsCategoryLevel'),0)"); 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); List<Map<String,Object>> list3=jdbcTemplate.queryForList(three, orgNO, scopeTypeID, level);
return list3; 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