|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.dao.business.model.BaseGoods; | 
|---|
|  |  |  | import com.doumee.dao.business.model.dto.BaseGoodsCreateOrUpdateRequest; | 
|---|
|  |  |  | import com.doumee.dao.business.model.dto.BaseGoodsDTO; | 
|---|
|  |  |  | import org.springframework.web.multipart.MultipartFile; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 创建 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param baseGoods 实体对象 | 
|---|
|  |  |  | * @return Integer | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Integer create(BaseGoods baseGoods); | 
|---|
|  |  |  | Integer create(BaseGoodsCreateOrUpdateRequest baseGoods); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键删除 | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param ids 主键集 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void deleteByIdInBatch(List<Integer> ids); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键更新 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param baseGoods 实体对象 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void update(BaseGoodsCreateOrUpdateRequest baseGoods); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键上下架 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param idList 实体对象 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void updateStatusByIds(BaseGoods param); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键上下架 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param id 实体对象 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | void updateStatusById(Integer id,Integer status); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键更新 | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | BaseGoods findById(Integer id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键查询 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param id 主键 | 
|---|
|  |  |  | * @return BaseGoods | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | BaseGoodsDTO findByIdBaseGoods(Integer id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 条件查询单条记录 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return List<BaseGoods> | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<BaseGoods> findList(BaseGoods baseGoods); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 分页查询 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | PageData<BaseGoods> findPage(PageWrap<BaseGoods> pageWrap); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 公司查询平台商品 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param pageWrap 分页对象 | 
|---|
|  |  |  | * @return PageData<BaseGoods> | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | PageData<BaseGoods> findCompanyPage(PageWrap<BaseGoods> pageWrap); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 条件统计 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return long | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | long count(BaseGoods baseGoods); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 企业用户批量导入 | 
|---|
|  |  |  | * @param file | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Integer importBaseGoodsBatch(MultipartFile file); | 
|---|
|  |  |  | } | 
|---|