Aslee преди 3 години
родител
ревизия
22cfef4bb6

+ 1 - 1
src/main/java/com/caimei/modules/hehe/dao/CmHeheFloorProductDao.java

@@ -18,7 +18,7 @@ public interface CmHeheFloorProductDao extends CrudDao<CmHeheFloorProduct> {
 
     void updateSort(@Param("sort") String sort,@Param("id") String id);
 
-    List<Integer> findFloorProductId();
+    List<Integer> findFloorProductId(Integer floorId);
 
     List<Product> findAllProduct(Product product);
 }

+ 1 - 1
src/main/java/com/caimei/modules/hehe/service/CmHeheFloorProductService.java

@@ -68,7 +68,7 @@ public class CmHeheFloorProductService extends CrudService<CmHeheFloorProductDao
 	}
 
 	public Page<Product> findProductPage(Page<Product> productPage, Product product) {
-		List<Integer> ids = cmHeheFloorProductDao.findFloorProductId();
+		List<Integer> ids = cmHeheFloorProductDao.findFloorProductId(product.getFloorId());
 		product.setIds(ids);
 		product.setPage(productPage);
 		List<Product> productList = cmHeheFloorProductDao.findAllProduct(product);

+ 1 - 1
src/main/resources/mappings/modules/hehe/CmHeheFloorProductMapper.xml

@@ -85,7 +85,7 @@
 		</choose>
 	</select>
 	<select id="findFloorProductId" resultType="java.lang.Integer">
-		select productId from cm_hehe_floor_product
+		select productId from cm_hehe_floor_product where floorId = #{floorId}
 	</select>
 	<select id="findAllProduct" resultType="com.caimei.modules.product.entity.Product">
 		select hp.id as productID,p.mainImage,p.name,s.name as shopName

+ 0 - 1
src/main/webapp/WEB-INF/views/modules/hehe/cmHeheFloorProductList.jsp

@@ -126,7 +126,6 @@
 
 	//批量保存排序
 	function batchSaveSort() {
-		debugger
 		var items = new Array();
 		var $items = $('.check-item');
 		$items.each(function(){