Blame view

src/main/java/com/huaheng/api/wcs/controller/ReleaseNoticeController.java 2.06 KB
1
2
3
package com.huaheng.api.wcs.controller;
tongzhonghao authored
4
import com.huaheng.api.wcs.service.releaseNotice.ReleaseNoticeService;
5
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
tongzhonghao authored
6
import com.huaheng.framework.web.controller.BaseController;
7
8
9
10
11
12
13
14
15
16
import com.huaheng.framework.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 铜箔仓 二楼出库时不能有入库任务堵
 * 放行通知
tongzhonghao authored
17
 * 2023314 :所有入库口都都通用。
18
19
20
21
 */

@RestController
@RequestMapping("/API/WMS/v2")
tongzhonghao authored
22
public class ReleaseNoticeController extends BaseController {
23
24

    @Resource
tongzhonghao authored
25
    private ReleaseNoticeService releaseNoticeService;
26
27
28
29
30
31

    @PostMapping("/releasedNotice")
    @ApiOperation("放行通知")
    @ApiLogger(apiName = "放行通知", from="WCS")
    @ResponseBody
    public AjaxResult releasedNotice(@RequestBody Map<String,String> map) {
tongzhonghao authored
32
33
34
        String area = map.get("area");
        String port = map.get("port");
tongzhonghao authored
35
36
37
38
39
40
41
42
43
        String barcode = map.get("barcode");
        AjaxResult ajaxResult = handleMultiProcess(new MultiProcessListener() {
            @Override
            public AjaxResult doProcess() {
                AjaxResult ajaxResult = releaseNoticeService.releasedNotice(area,port,barcode);
                return ajaxResult;
            }
        });
        return ajaxResult;
44
45
    }
46
47
48
49
50
    /**
     * 解锁站台 通知下发 assignTask
     * @param map
     * @return
     */
tongzhonghao authored
51
    @PostMapping("/noticeAssign")
52
53
    @ApiOperation("解锁站台")
    @ApiLogger(apiName = "解锁站台", from="WCS")
tongzhonghao authored
54
55
56
    @ResponseBody
    public AjaxResult noticeAssign(@RequestBody Map<String,String> map) {
        String taskId = map.get("TaskNo");
tongzhonghao authored
57
58
59
60
61
62
63
64
        AjaxResult ajaxResult = handleMultiProcess(new MultiProcessListener() {
            @Override
            public AjaxResult doProcess() {
                AjaxResult ajaxResult = releaseNoticeService.noticeAssign(taskId);
                return ajaxResult;
            }
        });
        return ajaxResult;
tongzhonghao authored
65
    }
66
}