From 68defbe491894e01c4402922de33c39633fca091 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 29 Mar 2022 14:25:54 +0800 Subject: [PATCH] 系统名称 --- zq-erp/src/main/java/com/matrix/system/hive/service/ShoppingGoodsService.java | 51 ++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 36 insertions(+), 15 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/hive/service/ShoppingGoodsService.java b/zq-erp/src/main/java/com/matrix/system/hive/service/ShoppingGoodsService.java index 16c6ad5..62a727d 100644 --- a/zq-erp/src/main/java/com/matrix/system/hive/service/ShoppingGoodsService.java +++ b/zq-erp/src/main/java/com/matrix/system/hive/service/ShoppingGoodsService.java @@ -1,7 +1,11 @@ package com.matrix.system.hive.service; import com.matrix.core.pojo.PaginationVO; +import com.matrix.system.app.dto.ShoppingGoodsListDto; +import com.matrix.system.app.vo.ShoppingGoodsDetailVo; +import com.matrix.system.app.vo.ShoppingGoodsListVo; import com.matrix.system.hive.bean.ShoppingGoods; +import com.matrix.system.hive.dto.GoodsSealLimitDto; import com.matrix.system.hive.plugin.util.BaseServices; import java.util.Date; @@ -11,61 +15,72 @@ * @date 2016-07-30 09:54 */ public interface ShoppingGoodsService extends BaseServices<ShoppingGoods>{ + + + /** + * 检测商品销售限制 + * 1、商品是否超出最大销售量 + * 2、商品是否限购 + */ + void checkGoodsSealLimit(GoodsSealLimitDto goodsSealLimitDto); + + + /** * 新增ShoppingGoods * */ - public int add(ShoppingGoods shoppingGoods); + int add(ShoppingGoods shoppingGoods); /** * 更新ShoppingGoods * */ - public int modify(ShoppingGoods shoppingGoods); + int modify(ShoppingGoods shoppingGoods); /** * 批量删除ShoppingGoods * */ - public int remove(List<Long> list); + int remove(List<Long> list); /** * 根据id删除ShoppingGoods * */ - public int removeById(Long id); + int removeById(Long id); /** * 分页查询ShoppingGoods * */ - public List<ShoppingGoods> findInPage(ShoppingGoods shoppingGoods, PaginationVO pageVo); + List<ShoppingGoods> findInPage(ShoppingGoods shoppingGoods, PaginationVO pageVo); /** * 根据对象查询ShoppingGoods * */ - public List<ShoppingGoods> findByModel(ShoppingGoods shoppingGoods); + List<ShoppingGoods> findByModel(ShoppingGoods shoppingGoods); /** * 数据迁移专用 * @param shoppingGoods * @return */ - public List<ShoppingGoods> findByModelData(ShoppingGoods shoppingGoods); + List<ShoppingGoods> findByModelData(ShoppingGoods shoppingGoods); /** * 统计记录数ShoppingGoods * */ - public int findTotal(ShoppingGoods shoppingGoods); + int findTotal(ShoppingGoods shoppingGoods); /** * 根据id查询ShoppingGoods * */ - public ShoppingGoods findById(Long id); + ShoppingGoods findById(Long id); - public int update(Long id); + int update(Long id); @@ -74,20 +89,20 @@ * 数据迁移用 * 分页查询查询项目充值卡,去除套餐 */ - public List<ShoppingGoods> findInPageNoTaocan(ShoppingGoods shoppingGoods, PaginationVO pageVo); + List<ShoppingGoods> findInPageNoTaocan(ShoppingGoods shoppingGoods, PaginationVO pageVo); /** * 数据迁移用 * 查询查询项目充值卡,去除套餐 * 统计记录数ShoppingGoods */ - public int findTotalNoTaocan(ShoppingGoods shoppingGoods); + int findTotalNoTaocan(ShoppingGoods shoppingGoods); /** * 检测是否可以修改 * @param id * @return */ - public boolean checkIsUpdate(Long id); + boolean checkIsUpdate(Long id); /** * 查询所有 * @author xiaochonggao @@ -96,9 +111,15 @@ * @param shoppingGoods * @return */ - public List<ShoppingGoods> findAll(ShoppingGoods shoppingGoods); + List<ShoppingGoods> findAll(ShoppingGoods shoppingGoods); - public ShoppingGoods findByCode(String goodsCode); + ShoppingGoods findByCode(String goodsCode); Date calInvalidTime(ShoppingGoods shoppingGoods, Integer type, Date buyDate); + + List<ShoppingGoodsListVo> findShoppingGoodsListForApi(ShoppingGoodsListDto shoppingGoodsListDto); + + int findShoppingGoodsListTotalForApi(ShoppingGoodsListDto shoppingGoodsListDto); + + ShoppingGoodsDetailVo findApiShoppingGoodsDetailById(Long id); } \ No newline at end of file -- Gitblit v1.9.1