Blame view

src/main/java/com/huaheng/api/wcs/controller/TaskFinishController.java 1.36 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.taskFinish.TaskFinishService;
周峰 authored
5
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
pengcheng authored
6
7
8
9
10
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;
11
12
13
14
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
pengcheng authored
15
16
17

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

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

    @Resource
    private TaskFinishService taskFinishService;

    @Log(title = "wcs任务完成", action = BusinessType.INSERT)
mahuandong authored
34
    @PostMapping("/complete")
pengcheng authored
35
    @ApiOperation("wcs任务完成")
36
37
    @ApiLogger(apiName = "任务完成", from = "WCS")
    public AjaxResult complete(@RequestBody TaskFinishDomain taskFinishDomain) {
38
        return taskFinishService.completeTaskByWCS(taskFinishDomain);
pengcheng authored
39
40
41
    }

}