From dcdb0231034810232f2542f3865666ebf72daf11 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 30 四月 2025 16:45:34 +0800 Subject: [PATCH] sf --- server/service/src/main/java/com/doumee/service/business/BaseGoodsService.java | 63 ++++++++++++++++++++++++++++++- 1 files changed, 60 insertions(+), 3 deletions(-) diff --git a/server/service/src/main/java/com/doumee/service/business/BaseGoodsService.java b/server/service/src/main/java/com/doumee/service/business/BaseGoodsService.java index 200e8cf..6119a63 100644 --- a/server/service/src/main/java/com/doumee/service/business/BaseGoodsService.java +++ b/server/service/src/main/java/com/doumee/service/business/BaseGoodsService.java @@ -3,6 +3,10 @@ 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; /** @@ -14,11 +18,11 @@ /** * 鍒涘缓 - * + * * @param baseGoods 瀹炰綋瀵硅薄 * @return Integer */ - Integer create(BaseGoods baseGoods); + Integer create(BaseGoodsCreateOrUpdateRequest baseGoods); /** * 涓婚敭鍒犻櫎 @@ -40,6 +44,31 @@ * @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); /** * 涓婚敭鏇存柊 @@ -63,6 +92,15 @@ */ BaseGoods findById(Integer id); + + /** + * 涓婚敭鏌ヨ + * + * @param id 涓婚敭 + * @return BaseGoods + */ + BaseGoodsDTO findByIdBaseGoods(Integer id); + /** * 鏉′欢鏌ヨ鍗曟潯璁板綍 * @@ -78,7 +116,7 @@ * @return List<BaseGoods> */ List<BaseGoods> findList(BaseGoods baseGoods); - + /** * 鍒嗛〉鏌ヨ * @@ -87,6 +125,16 @@ */ PageData<BaseGoods> findPage(PageWrap<BaseGoods> pageWrap); + + + /** + * 鍏徃鏌ヨ骞冲彴鍟嗗搧 + * + * @param pageWrap 鍒嗛〉瀵硅薄 + * @return PageData<BaseGoods> + */ + PageData<BaseGoods> findCompanyPage(PageWrap<BaseGoods> pageWrap); + /** * 鏉′欢缁熻 * @@ -94,4 +142,13 @@ * @return long */ long count(BaseGoods baseGoods); + + + + /** + * 浼佷笟鐢ㄦ埛鎵归噺瀵煎叆 + * @param file + * @return + */ + Integer importBaseGoodsBatch(MultipartFile file); } -- Gitblit v1.9.3