|
@@ -91,10 +91,10 @@ public class CooperatorProductController {
|
|
JSONObject req = JSON.parseObject(json);
|
|
JSONObject req = JSON.parseObject(json);
|
|
int pageNum = req.getIntValue("pageNum");
|
|
int pageNum = req.getIntValue("pageNum");
|
|
int pageSize = req.getIntValue("pageSize");
|
|
int pageSize = req.getIntValue("pageSize");
|
|
- Long modelNo = req.getLongValue("modelNo");
|
|
|
|
|
|
+ Long modelId = req.getLongValue("modelId");
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
JSONObject resJson=new JSONObject();
|
|
JSONObject resJson=new JSONObject();
|
|
- List<CooperatorProduct> list=CooperatorProductService.getCooperatorByModel(modelNo);
|
|
|
|
|
|
+ List<CooperatorProduct> list=CooperatorProductService.getCooperatorByModel(modelId);
|
|
PageInfo pageInfo=new PageInfo(list);
|
|
PageInfo pageInfo=new PageInfo(list);
|
|
resJson.put("cooperator_Product_List",pageInfo);
|
|
resJson.put("cooperator_Product_List",pageInfo);
|
|
return Result.success("ok",resJson);
|
|
return Result.success("ok",resJson);
|