From 3d66a05e01b17a57f80a422b19fbbff92a69c080 Mon Sep 17 00:00:00 2001 From: guoyuji <guoyujie@ng.com> Date: 星期三, 19 二月 2025 16:15:03 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override --- north-glass-erp/src/main/java/com/example/erp/controller/mm/MaterialStoreController.java | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/mm/MaterialStoreController.java b/north-glass-erp/src/main/java/com/example/erp/controller/mm/MaterialStoreController.java new file mode 100644 index 0000000..92ed308 --- /dev/null +++ b/north-glass-erp/src/main/java/com/example/erp/controller/mm/MaterialStoreController.java @@ -0,0 +1,53 @@ +package com.example.erp.controller.mm; + + +import cn.dev33.satoken.annotation.SaCheckPermission; +import com.example.erp.common.Constants; +import com.example.erp.common.Result; +import com.example.erp.entity.mm.MaterialStore; +import com.example.erp.exception.ServiceException; +import com.example.erp.service.mm.MaterialStoreService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.Map; + +@RestController +@RequestMapping("/materialStore") +@Api(value="鐗╂枡controller",tags={"鐗╂枡鎿嶄綔鎺ュ彛"}) +public class MaterialStoreController { + @Autowired + MaterialStoreService materialStoreService; + + @ApiOperation("鐗╂枡鏂板鎺ュ彛") + @SaCheckPermission("createIngredients.add") + @PostMapping("/saveMaterialStore") + public Result saveMaterialStore( @RequestBody Map<String,Object> object){ + return Result.seccess(materialStoreService.saveMaterialStore(object)); + } + + @ApiOperation("鐗╂枡鏌ヨ鎺ュ彛") + @SaCheckPermission("selectIngredients.search") + @PostMapping("/getSelectMaterialStore/{pageNum}/{pageSize}") + public Result getSelectMaterialStore(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody MaterialStore materialStore){ + return Result.seccess(materialStoreService.getSelectMaterialStore(pageNum,pageSize,materialStore)); + } + + @ApiOperation("鐗╂枡鏌ヨ鎺ュ彛") + @SaCheckPermission("selectIngredients.search") + @PostMapping("/getSelectMaterialStore") + public Result getSelectMaterialStores(@RequestBody MaterialStore materialStore){ + return Result.seccess(materialStoreService.getSelectMaterialStores(materialStore)); + } + + @ApiOperation("鐗╂枡鍒犻櫎鎺ュ彛") + @SaCheckPermission("selectIngredients.delete") + @PostMapping("/deleteMaterialStore") + public Result deleteMaterialStore( @RequestBody Map<String,Object> object){ + return Result.seccess(materialStoreService.deleteMaterialStore(object)); + } + + +} -- Gitblit v1.8.0