Commit 423c6849 authored by Quxl's avatar Quxl

x

parent fc8ecdae
......@@ -125,8 +125,8 @@ public class BrandController {
@ApiOperation("热销品牌列表")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "orgNO", dataType = "String", required = true, value = "区域编号", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "compNO", dataType = "String", required = true, value = "组件编号", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "orgNo", dataType = "String", required = true, value = "区域编号", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "compNo", dataType = "String", required = true, value = "组件编号", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "index", dataType = "String", required = false, value = "第几页", defaultValue = "1"),
@ApiImplicitParam(paramType = "query", name = "limit", dataType = "String", required = false, value = "每页数量", defaultValue = "20"),
......@@ -139,8 +139,8 @@ public class BrandController {
public String getHotSaleBrands(HttpServletRequest request, HttpServletResponse response) {
List<Map<String,Object>> listMap;
Map<String,Object> params=new HashMap<>();
params.put("orgNO", request.getParameter("orgNO"));
params.put("compNO", request.getParameter("compNO"));
params.put("orgNo", request.getParameter("orgNo"));
params.put("compNo", request.getParameter("compNo"));
Page page=new Page();
page.setIndex(Long.valueOf(request.getParameter("index")==null?"1":request.getParameter("index")));
page.setLimit(Long.valueOf(request.getParameter("limit")==null?"20":request.getParameter("limit")));
......
......@@ -84,8 +84,8 @@ public class BrandServiceImpl implements BrandService {
+ "b.sBrandID, "
+ "b.sBrandName, "
+ "b.sLogoUrl ";
String orgNO=(String) map.get("orgNO");
String orgNo=(String) map.get("orgNo");
jdbcTemplate.setDialect(new SqlServerDialect());
return jdbcTemplate.limit(sql, page,orgNO);
return jdbcTemplate.limit(sql, page,orgNo);
}
}
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