123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- package com.ruoyi.web.controller.plugin;
- import com.ruoyi.ccb.service.ForeignHttpService;
- import com.ruoyi.common.core.controller.BaseController;
- import lombok.AllArgsConstructor;
- import org.springframework.beans.factory.annotation.Autowired;
- 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.RestController;
- import java.util.Map;
- /**
- * WMS仓库接⼝
- */
- @AllArgsConstructor
- @RestController
- @RequestMapping("/api/open/wareHouse")
- public class WareHouseController extends BaseController {
- @Autowired
- private ForeignHttpService foreignHttpService;
- /**
- * 获取仓库详细信息
- */
- @GetMapping("/getWareHouseInfo")
- public Map<String, Object> getWareHouseInfo(@RequestParam(value = "wareHouseId") String wareHouseId){
- return foreignHttpService.getWareHouseInfo(wareHouseId);
- }
- /**
- * 获取最新库存数据
- */
- @GetMapping("/getStorageInfo")
- public Map<String, Object> getStorageInfo(@RequestParam(value = "wareHouseId") String wareHouseId){
- return foreignHttpService.getStorageInfo(wareHouseId);
- }
- /**
- * 库存吞吐趋势信息
- */
- @GetMapping("/getStorageTrend")
- public Map<String, Object> getStorageTrend(@RequestParam(value = "wareHouseId") String wareHouseId,
- @RequestParam(value = "startTime",required = false) String startTime,
- @RequestParam(value = "endTime",required = false) String endTime){
- return foreignHttpService.getStorageTrend(wareHouseId, startTime, endTime);
- }
- /**
- * 货物保管信息
- */
- @GetMapping("/getCargoInfo")
- public Map<String, Object> getCargoInfo(@RequestParam(value = "wareHouseId") String wareHouseId,
- @RequestParam(value = "startTime",required = false) String startTime,
- @RequestParam(value = "endTime",required = false) String endTime) {
- return foreignHttpService.getCargoInfo(wareHouseId, startTime, endTime);
- }
- /**
- * 仓库保管趋势
- */
- @GetMapping("/getCargoInfoTrend")
- public Map<String, Object> getCargoInfoTrend(@RequestParam(value = "wareHouseId") String wareHouseId,
- @RequestParam(value = "startTime",required = false) String startTime,
- @RequestParam(value = "endTime",required = false) String endTime){
- return foreignHttpService.getCargoInfoTrend(wareHouseId, startTime, endTime);
- }
- /**
- * 获取货物品类top值
- */
- @GetMapping("/getStorageTop")
- public Map<String, Object> getStorageTop(@RequestParam(value = "wareHouseId") String wareHouseId,
- @RequestParam(value = "countType") Integer countType,
- @RequestParam(value = "topCnt") Integer topCnt){
- return foreignHttpService.getStorageTop(wareHouseId, countType, topCnt);
- }
- /**
- * 获取货主仓库top值
- */
- @GetMapping("/getGoodsTop")
- public Map<String, Object> getGoodsTop(@RequestParam(value = "wareHouseId") String wareHouseId,
- @RequestParam(value = "countType") Integer countType,
- @RequestParam(value = "topCnt") Integer topCnt){
- return foreignHttpService.getGoodsTop(wareHouseId, countType, topCnt);
- }
- /**
- * 过户交易信息获取
- */
- @GetMapping("/getTransferInfo")
- public Map<String, Object> getTransferInfo(@RequestParam(value = "wareHouseId") String wareHouseId,
- @RequestParam(value = "startTime",required = false) String startTime,
- @RequestParam(value = "endTime",required = false) String endTime){
- return foreignHttpService.getTransferInfo(wareHouseId, startTime, startTime);
- }
- /**
- * 最新的作业统计
- */
- @GetMapping("/getWorkInfo")
- public Map<String, Object> getWorkInfo(@RequestParam(value = "wareHouseId") String wareHouseId){
- return foreignHttpService.getWorkInfo(wareHouseId);
- }
- /**
- * 作业统计趋势数据
- */
- @GetMapping("/getWorkTrend")
- public Map<String, Object> getWorkTrend(@RequestParam(value = "wareHouseId") String wareHouseId,
- @RequestParam(value = "startTime",required = false) String startTime,
- @RequestParam(value = "endTime",required = false) String endTime){
- return foreignHttpService.getWorkTrend(wareHouseId, startTime, startTime);
- }
- }
|