TaskInfoController.java
959 Bytes
package com.huaheng.api.wcs.controller;
import com.huaheng.api.wcs.domain.WcsTask;
import com.huaheng.api.wcs.service.taskCancel.TaskCancelService;
import com.huaheng.api.wcs.service.taskInfo.TaskInfoService;
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
* Created by Enzo Cotter on 2019/12/6.
*/
@RestController
@RequestMapping("/API/WMS/v2")
public class TaskInfoController extends BaseController {
@Resource
private TaskInfoService taskInfoService;
@ResponseBody
@PostMapping("/info")
@ApiLogger(apiName = "取消任务", from="WCS")
public AjaxResult info(@RequestBody WcsTask wcsTask) {
return taskInfoService.taskInfo(wcsTask.getTaskNo(), wcsTask.getWarehouseCode(), wcsTask.getArea());
}
}