소스 검색

fix bug77

Danj0rr 11 달 전
부모
커밋
a48228ffcf

+ 2 - 2
src/main/java/com/kexun/controller/CooperatorProductController.java

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

+ 1 - 1
src/main/java/com/kexun/mapper/CooperatorProductMapper.java

@@ -24,7 +24,7 @@ public interface CooperatorProductMapper extends BaseMapper<CooperatorProduct> {
 
     List<CooperatorProduct> selectCoopProduct(String info);
 
-    List<CooperatorProduct> getCooperatorByModelQuery(@Param("modelNo") Long modelNo);
+    List<CooperatorProduct> getCooperatorByModelQuery(@Param("modelId") Long modelId);
 
     List<CooperatorProduct> getProductByProductNumQuery(@Param("productNum") String productNum);
 

+ 1 - 1
src/main/java/com/kexun/service/CooperatorProductService.java

@@ -22,7 +22,7 @@ public interface CooperatorProductService extends IService<CooperatorProduct> {
 
     List<CooperatorProduct> selectCoopProduct(String info);
 
-    List<CooperatorProduct> getCooperatorByModel(Long modelNo);
+    List<CooperatorProduct> getCooperatorByModel(Long modelId);
 
     List<CooperatorProduct> getProductByProductNum(String productNum);
 

+ 2 - 2
src/main/java/com/kexun/service/impl/CooperatorProductServiceImpl.java

@@ -64,8 +64,8 @@ public class CooperatorProductServiceImpl extends ServiceImpl<CooperatorProductM
     }
 
     @Override
-    public List<CooperatorProduct> getCooperatorByModel(Long modelNo){
-        return cooperatorProductMapper.getCooperatorByModelQuery(modelNo);
+    public List<CooperatorProduct> getCooperatorByModel(Long modelId){
+        return cooperatorProductMapper.getCooperatorByModelQuery(modelId);
     }
 
     @Override

+ 1 - 1
src/main/resources/mapper/CooperatorProductMapper.xml

@@ -120,7 +120,7 @@
 
     <select id="getCooperatorByModelQuery" resultType="com.kexun.entity.CooperatorProduct">
        SELECT * FROM prd_product
-        WHERE model_id=#{modelNo}
+        WHERE model_id=#{modelId}
     </select>
 
     <select id="getProductByProductNumQuery" resultType="com.kexun.entity.CooperatorProduct">