Commit 305840d1 authored by zhangyong's avatar zhangyong

1

parent 672e70b2
...@@ -11,6 +11,7 @@ import org.springframework.stereotype.Service; ...@@ -11,6 +11,7 @@ import org.springframework.stereotype.Service;
import com.egolm.common.jdbc.JdbcTemplate; import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.common.jdbc.Page; import com.egolm.common.jdbc.Page;
import com.egolm.common.jdbc.dialect.SqlServerDialect;
import com.egolm.shop.service.BrandService; import com.egolm.shop.service.BrandService;
@Service @Service
public class BrandServiceImpl implements BrandService { public class BrandServiceImpl implements BrandService {
...@@ -28,8 +29,9 @@ public class BrandServiceImpl implements BrandService { ...@@ -28,8 +29,9 @@ public class BrandServiceImpl implements BrandService {
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 where sOrgList like '%" + orgNO + "%'"; String sql = "select nItem BannerID, nIdx Idx, sTitle Title, sLinkType LinkType, sLinkPath LinkUrl, sImagePath ImgPath from tBanner where sOrgList like '%" + orgNO + "%'";
return jdbcTemplate.queryForList(sql); // return jdbcTemplate.queryForList(sql);
//return jdbcTemplate.limit(sql, page); jdbcTemplate.setDialect(new SqlServerDialect());
return jdbcTemplate.limit(sql, page);
} }
@Override @Override
......
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