WcsStackingController.java
1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.huaheng.api.wcs.controller;
import com.huaheng.api.wcs.service.wcsInteract.WcsStackingService;
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
import com.huaheng.framework.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
*
* wcs码垛接口
* @author xcq
*/
@RestController
@RequestMapping("/API/WMS/v2")
public class WcsStackingController {
@Resource
private WcsStackingService wcsStackingService;
@PostMapping("/cartonsWhetherRelease")
@ApiOperation(value="是否放行", notes="是否放行", httpMethod = "POST")
@ResponseBody
@ApiLogger(apiName = "是否放行", from="WCS")
public AjaxResult cartonsWhetherRelease(@RequestBody String barcode){
return wcsStackingService.cartonsWhetherRelease(barcode);
}
@PostMapping("/stackingDestination")
@ApiOperation(value="码垛去向", notes="码垛去向", httpMethod = "POST")
@ResponseBody
@ApiLogger(apiName = "码垛去向", from="WCS")
public AjaxResult stackingDestination(@RequestBody String barcode){
return wcsStackingService.stackingDestinationService(barcode);
}
@PostMapping("/manipulatorStackingPort")
@ApiOperation(value="机械手码垛接口", notes="机械手码垛接口", httpMethod = "POST")
@ResponseBody
@ApiLogger(apiName = "机械手码垛接口", from="WCS")
public AjaxResult manipulatorStackingPort(@RequestBody String barcode){
return wcsStackingService.manipulatorStackingPort(barcode);
}
@PostMapping("/manipulatorStackingResult")
@ApiOperation(value="机械手码垛结果", notes="机械手码垛结果", httpMethod = "POST")
@ResponseBody
@ApiLogger(apiName = "机械手码垛结果", from="WCS")
public AjaxResult manipulatorStackingResult(@RequestBody String json){
return wcsStackingService.manipulatorStackingResult(json);
}
}