Blame view

src/main/java/com/huaheng/api/wcs/controller/TaskInfoController.java 959 Bytes
mahuandong authored
1
2
package com.huaheng.api.wcs.controller;
3
import com.huaheng.api.wcs.domain.WcsTask;
mahuandong authored
4
import com.huaheng.api.wcs.service.taskCancel.TaskCancelService;
5
import com.huaheng.api.wcs.service.taskInfo.TaskInfoService;
周峰 authored
6
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
mahuandong authored
7
8
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
9
import org.springframework.web.bind.annotation.*;
mahuandong authored
10
11
12
13
14
15
16

import javax.annotation.Resource;

/**
 * Created by Enzo Cotter on 2019/12/6.
 */
@RestController
17
@RequestMapping("/API/WMS/v2")
mahuandong authored
18
19
20
public class TaskInfoController extends BaseController {

    @Resource
21
    private TaskInfoService taskInfoService;
mahuandong authored
22
23
24
25
    @ResponseBody
    @PostMapping("/info")
周峰 authored
26
    @ApiLogger(apiName = "取消任务", from="WCS")
27
28
    public AjaxResult info(@RequestBody WcsTask wcsTask) {
        return taskInfoService.taskInfo(wcsTask.getTaskNo(), wcsTask.getWarehouseCode(), wcsTask.getArea());
mahuandong authored
29
30
    }
}