Blame view

src/main/java/com/huaheng/api/wcs/controller/TaskFinishController.java 1.52 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
import com.huaheng.api.wcs.domain.WcsTask;
import com.huaheng.api.wcs.service.taskFinish.TaskFinishService;
周峰 authored
6
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
pengcheng authored
7
8
9
10
11
12
13
14
15
16
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.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
易文鹏 authored
17
18
/**
 * 任务完成
pengcheng authored
19
20
 * wcswms传递数据
 *
易文鹏 authored
21
22
 * @author ricard
 * @date 2019/10/11
pengcheng authored
23
24
25
 */

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

    @Resource
    private TaskFinishService taskFinishService;

    @Log(title = "wcs任务完成", action = BusinessType.INSERT)
mahuandong authored
33
    @PostMapping("/complete")
pengcheng authored
34
    @ApiOperation("wcs任务完成")
易文鹏 authored
35
    @ApiLogger(apiName = "wcs任务完成", from = "WCS")
pengcheng authored
36
    @ResponseBody
易文鹏 authored
37
38
39
40
41
42
43
44
    public AjaxResult complete(@RequestBody TaskFinishDomain taskFinishDomain) {
        AjaxResult ajaxResult = handleMultiProcess(new MultiProcessListener() {
            @Override
            public AjaxResult doProcess() {
                AjaxResult ajaxResult = taskFinishService.completeTaskByWCS(taskFinishDomain);
                return ajaxResult;
            }
        });
pengcheng authored
45
46
47
48
        return ajaxResult;
    }

}