diff --git a/productionboard/src/main/java/com/productionboard/controller/StorageController.java b/productionboard/src/main/java/com/productionboard/controller/StorageController.java index 65bc498..762246d 100644 --- a/productionboard/src/main/java/com/productionboard/controller/StorageController.java +++ b/productionboard/src/main/java/com/productionboard/controller/StorageController.java @@ -1,8 +1,10 @@ package com.productionboard.controller; import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; /** @@ -15,9 +17,27 @@ import org.springframework.web.bind.annotation.ResponseBody; public class StorageController { private String prefix = "storage/index"; + /** + * 0:南线、1:北线 + * @author WenJY + * @date 2022-06-10 17:36 + * @param id + * @param mmap + * @return java.lang.String + */ @GetMapping() - public String index() + public String index(@RequestParam("id") int id, ModelMap mmap) { + switch (id) { + case 0: + mmap.put("positionId",0); + break; + case 1: + mmap.put("positionId",1); + break; + default: + break; + } return prefix; } @@ -74,4 +94,30 @@ public class StorageController { return info; } + + /** + * 库存统计 + * @param ids + * @return + */ + @GetMapping("/getStoreStatistics") + @ResponseBody + public String getStoreStatistics(String ids){ + + return null; + } + + /** + * 参数 + * @author WenJY + * @date 2022-06-10 17:39 + * @param ids + * @return java.lang.String + */ + @GetMapping("/getStoreStatistics") + @ResponseBody + public String getParamJson(String ids){ + + return null; + } } diff --git a/productionboard/target/classes/com/productionboard/controller/StorageController.class b/productionboard/target/classes/com/productionboard/controller/StorageController.class new file mode 100644 index 0000000..9db6972 Binary files /dev/null and b/productionboard/target/classes/com/productionboard/controller/StorageController.class differ