Blame view

src/main/java/com/huaheng/api/wcs/controller/EmptyOutHandle.java 1.64 KB
pengcheng authored
1
2
package com.huaheng.api.wcs.controller;
周鸿 authored
3
4
5
6
7
8
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.*;
pengcheng authored
9
import com.huaheng.api.wcs.service.emptyOutHandle.EmptyOutHandleService;
周峰 authored
10
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
pengcheng authored
11
12
13
14
15
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
周鸿 authored
16
import io.swagger.annotations.ApiOperation;
pengcheng authored
17
周鸿 authored
18
19
/**
 * 空出处理接口
pengcheng authored
20
21
22
23
24
25
 * wcswms传递数据
 * @author ricard
 * @date   2019/10/11
 */

@RestController
mahuandong authored
26
@RequestMapping("/API/WMS/v2")
pengcheng authored
27
28
29
30
31
public class EmptyOutHandle extends BaseController {

    @Resource
    private EmptyOutHandleService emptyOutHandleService;
32
33
    /**
     * 出库时,wcs去库位请求,库位没托盘,导致空出,空出的任务,可以完成任务
周鸿 authored
34
     * @param  map
35
36
     * @return
     */
pengcheng authored
37
    @Log(title = "wcs空出处理", action = BusinessType.INSERT)
游杰 authored
38
    @PostMapping("/emptyOutHandle")
pengcheng authored
39
40
    @ApiOperation("wcs空出处理")
    @ResponseBody
周鸿 authored
41
42
    @ApiLogger(apiName = "wcs空出处理", from = "WCS")
    public AjaxResult emptyOutHandle(@RequestBody Map<String, String> map) {
43
44
45
46
        AjaxResult ajaxResult = handleMultiProcess(new BaseController.MultiProcessListener() {
            @Override
            public AjaxResult doProcess() {
                String taskNo = map.get("taskNo");
pengcheng authored
47
                AjaxResult ajaxResult = emptyOutHandleService.emptyOutHandle(taskNo);
48
49
50
                return ajaxResult;
            }
        });
pengcheng authored
51
52
53
54
        return ajaxResult;
    }

}