whycxzp
2025-03-18 d60979e98c6492b562e38bfe6f7925a3809892fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.dto.WmsPalletDto;
import com.whyc.service.WmsService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RestController
@Api(tags = "WMS接口")
@RequestMapping("wms")
public class InterfaceWmsController {
 
    @Autowired
    private WmsService service;
 
    /**
     * 获取所有库位数据
     * API:/api/Wms_material/get_all
     * @return
     */
    @GetMapping("getMaterialList")
    public Response getMaterialList(){
 
        return service.getMaterialList();
    }
 
    /**
     * 下发任务
     * API:/api/Wms_pallet/WmsOutTask
     * TODO 疑问点: 任务如果是出库, 那么出库的库位是哪个? 接口参数都没有指明
     */
    @PostMapping("sendTask")
    public Response sendTask(@RequestBody WmsPalletDto palletDto){
 
        return service.sendTask(palletDto);
    }
 
    /**
     * 任务状态上报接口
     * TODO 待现场确认含义 API名称    上层系统提供
     */
 
 
    /**
     * 获取所有库位数据
     * API:/api/wms_location/get_all
     */
    @GetMapping("getLocationList")
    public Response getLocationList(){
 
        return service.getLocationList();
    }
 
 
}