@@ -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);
}
@@ -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);
@@ -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 id="findAllProduct" resultType="com.caimei.modules.product.entity.Product">
select hp.id as productID,p.mainImage,p.name,s.name as shopName
@@ -126,7 +126,6 @@
//批量保存排序
function batchSaveSort() {
- debugger
var items = new Array();
var $items = $('.check-item');
$items.each(function(){