PickupErrorController.java
1.05 KB
package com.huaheng.api.wcs.controller;
import com.huaheng.api.wcs.service.pickupErrorHandle.PickupErrorHandleService;
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Map;
@RestController
@RequestMapping("/API/WMS/v2")
public class PickupErrorController extends BaseController {
@Resource
private PickupErrorHandleService pickupErrorHandleService;
@PostMapping("/pickupError")
@ApiOperation("取货错")
@ApiLogger(apiName = "取货错", from="WCS")
@Transactional(rollbackFor = Exception.class)
@ResponseBody
public AjaxResult pickupError(@RequestBody Map<String,String> map) {
String taskNo = map.get("taskNo");
return pickupErrorHandleService.PickupErrorHandle(taskNo);
}
}