package com.panzhihua.service_community.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.panzhihua.service_community.model.dos.ConvenientProductSpecificationDO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * @title: ConvenientProductSpecificationDAO * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 * @description: 便民服务产品分类DAO * @author: hans * @date: 2021/09/21 21:56 */ @Mapper public interface ConvenientProductSpecificationDAO extends BaseMapper { /** * 批量插入产品规格 * @param productSpecificationDOList * @return */ int batchInsert(@Param("productSpecificationDOList") List productSpecificationDOList); /** * 删除传入ID以外的关联 * @param notNeedDelIds * @param productId * @return */ int deleteLoseRelationSpecifications(@Param("notNeedDelIds") List notNeedDelIds, @Param("productId") Long productId); /** * 通过产品ID删除相关规格 * @param needDelProductIds * @return */ int batchDeleteByProductIds(@Param("needDelProductIds") List needDelProductIds); }