Blame view

src/main/java/com/huaheng/api/wcs/controller/TaskFinishController.java 1.33 KB
pengcheng authored
1
2
package com.huaheng.api.wcs.controller;
pengcheng authored
3
import com.huaheng.api.wcs.domain.TaskFinishDomain;
pengcheng authored
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import com.huaheng.api.wcs.service.taskFinish.TaskFinishService;
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;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**任务完成
 * wcswms传递数据
 * @author ricard
 * @date   2019/10/11
 *
 */

@RestController
mahuandong authored
22
@RequestMapping("/API/WMS/v2")
游杰 authored
23
public class TaskFinishController extends BaseController {
pengcheng authored
24
25
26
27
28

    @Resource
    private TaskFinishService taskFinishService;

    @Log(title = "wcs任务完成", action = BusinessType.INSERT)
mahuandong authored
29
    @PostMapping("/complete")
pengcheng authored
30
31
    @ApiOperation("wcs任务完成")
    @ResponseBody
32
    public AjaxResult complete(@RequestBody TaskFinishDomain taskFinishDomain)
pengcheng authored
33
    {
34
35
36
37
38
39
40
        AjaxResult ajaxResult = handleMultiProcess(new MultiProcessListener() {
            @Override
            public AjaxResult doProcess() {
                AjaxResult ajaxResult = taskFinishService.completeTaskByWCS(taskFinishDomain);
                return ajaxResult;
            }
        });
pengcheng authored
41
        return ajaxResult;
42
pengcheng authored
43
44
45
    }

}