Blame view

src/main/java/com/huaheng/api/wcs/controller/TaskInfoController.java 1.2 KB
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
    public AjaxResult info(@RequestBody WcsTask wcsTask) {
肖超群 authored
28
        AjaxResult ajaxResult = handleMultiProcess("info", new MultiProcessListener() {
29
30
31
32
33
34
35
            @Override
            public AjaxResult doProcess() {
                AjaxResult ajaxResult =taskInfoService.taskInfo(wcsTask.getTaskNo(), wcsTask.getWarehouseCode(), wcsTask.getArea());
                return ajaxResult;
            }
        });
        return ajaxResult;
mahuandong authored
36
37
    }
}