Blame view

src/main/java/com/huaheng/api/wcs/controller/OverrideHandle.java 1.65 KB
pengcheng authored
1
2
package com.huaheng.api.wcs.controller;
周鸿 authored
3
4
5
6
import javax.annotation.Resource;

import org.springframework.web.bind.annotation.*;
pengcheng authored
7
import com.huaheng.api.wcs.domain.TaskFinishDomain;
pengcheng authored
8
import com.huaheng.api.wcs.service.overrideHandle.OverrideHandleService;
周峰 authored
9
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
pengcheng authored
10
11
12
13
14
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
15
import io.swagger.annotations.ApiOperation;
pengcheng authored
16
周鸿 authored
17
18
/**
 * 重入处理接口
pengcheng authored
19
20
21
22
23
24
 * wcswms传递数据
 * @author ricard
 * @date   2019/10/11
 */

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

    @Resource
    private OverrideHandleService overrideHandleService;
31
32
    /**
     * 任务未执行完,toLocationCodewms任务表获取,redirectionLocationCode没用到,是wms分配库位,重入多次每次都锁定库位
周鸿 authored
33
     * @param  taskFinishDomain
34
35
     * @return
     */
pengcheng authored
36
    @Log(title = "wcs重入处理", action = BusinessType.INSERT)
37
    @PostMapping("/reenterHandle")
pengcheng authored
38
39
    @ApiOperation("wcs重入处理")
    @ResponseBody
周鸿 authored
40
    @ApiLogger(apiName = "wcs重入处理", from = "WCS")
41
    public AjaxResult reenterHandle(@RequestBody TaskFinishDomain taskFinishDomain) {
42
43
44
45
46
47
48
        AjaxResult ajaxResult = handleMultiProcess(new BaseController.MultiProcessListener() {
            @Override
            public AjaxResult doProcess() {
                return overrideHandleService.OverrideHandle(taskFinishDomain);
            }
        });
        return ajaxResult;
pengcheng authored
49
50
51
    }

}