Blame view

src/main/java/com/huaheng/api/wcs/controller/OverrideHandle.java 1.72 KB
pengcheng authored
1
2
package com.huaheng.api.wcs.controller;
pengcheng authored
3
import com.huaheng.api.wcs.domain.TaskFinishDomain;
pengcheng authored
4
import com.huaheng.api.wcs.service.overrideHandle.OverrideHandleService;
周峰 authored
5
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
pengcheng authored
6
7
8
9
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;
10
import com.huaheng.pc.receipt.reservation.domain.Reservation;
pengcheng authored
11
12
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
13
import io.swagger.annotations.ApiParam;
pengcheng authored
14
15
16
17
18
19
20
21
22
23
24
25
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**重入处理接口
 * wcswms传递数据
 * @author ricard
 * @date   2019/10/11
 *
 */

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

    @Resource
    private OverrideHandleService overrideHandleService;
32
33
34
35
36
    /**
     * 任务未执行完,toLocationCodewms任务表获取,redirectionLocationCode没用到,是wms分配库位,重入多次每次都锁定库位
     * @param taskFinishDomain
     * @return
     */
pengcheng authored
37
    @Log(title = "wcs重入处理", action = BusinessType.INSERT)
38
    @PostMapping("/reenterHandle")
pengcheng authored
39
40
    @ApiOperation("wcs重入处理")
    @ResponseBody
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
    }

}