From 15e31c6e6550f9e8bf6fb1df5ca5ad4cc726b64f Mon Sep 17 00:00:00 2001 From: XiaoRuby <3114200645@qq.com> Date: 星期六, 26 八月 2023 13:30:13 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- standard-server/src/main/java/com/yuanchu/limslaboratory/service/ProductService.java | 43 +++++++++++++++++++++++++++++++++++-------- 1 files changed, 35 insertions(+), 8 deletions(-) diff --git a/standard-server/src/main/java/com/yuanchu/limslaboratory/service/ProductService.java b/standard-server/src/main/java/com/yuanchu/limslaboratory/service/ProductService.java index 9264254..a81e74a 100644 --- a/standard-server/src/main/java/com/yuanchu/limslaboratory/service/ProductService.java +++ b/standard-server/src/main/java/com/yuanchu/limslaboratory/service/ProductService.java @@ -16,19 +16,46 @@ * @since 2023-07-17 */ public interface ProductService extends IService<Product> { + void deleteProductInformation(List<Integer> SpecificationsId); - /*閫氳繃鐗╂枡id鑾峰彇鐗╂枡淇″強涓嬪睘鐨勯」鐩垪琛�*/ - List<Product> selectProductByMaterialId(int materialId); + /** + * 灞曠ず璇ュ瀷鍙蜂笅鐨勬楠岄」鐩姹�-->閫夋嫨鐗堟湰 + * @param specificationsId + * @return + */ + List<Integer> chooseVersion(Integer specificationsId); - Integer addProductInformation(Product product); - List<Map<String, Object>> getListProductInformation(String materialId); + /** + * 灞曠ず璇ュ瀷鍙蜂笅鐨勬楠岄」鐩姹� + * @param specificationsId + * @return + */ + List<Map<String,Object>> pageProductInformation(Integer specificationsId,Integer version); - Map<String, Object> getProductInformation(Integer productId); + /** + * 濉啓鏍囧噯鍊间笌鍐呮帶鍊�,榧犳爣绉诲紑淇濆瓨 + * @param id + * @param required + * @param internal + * @return + */ + Integer write(Integer id, String required, String internal); - Integer deleteProductInformation(Integer productId); + void deleteList(String ids); - void MaterialIdDeleteProduct(List<String> deleteMaterialId); + /** + * 娣诲姞鍚屼竴涓瀷鍙风殑鍏朵粬鐗堟湰 + * @param specificationsId + * @return + */ + Integer addVersion(Integer specificationsId); - Integer updateMaterialInformation(Product product); + + /** + * 鏌ヨ璇ュ瀷鍙蜂笅鐨勬墍鏈夎瘯楠岄」鐩�(鐖剁被) + * @param modelId + * @return + */ + List<Map<String,Object>> chooseProject(Integer modelId); } -- Gitblit v1.9.3