InStandingTaskController.java
1.37 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
package com.huaheng.api.wcs.controller;
import com.huaheng.api.wcs.domain.InStandingTaskDomain;
import com.huaheng.api.wcs.service.InStandingTaskHandle.InStandingTaskService;
import com.huaheng.common.exception.service.ServiceException;
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
import com.huaheng.framework.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("/API/WMS/v2")
@Api(tags = {"换站任务"}, value = "task")
public class InStandingTaskController {
@Resource
InStandingTaskService inStandingTaskService;
@Log(title = "任务下发至立库", action = BusinessType.INSERT)
@PostMapping("/InStandingTask")
@ApiOperation("换站任务")
@ResponseBody
@ApiLogger(apiName = "换站任务", from = "ERP")
public AjaxResult WisJobSend(@RequestBody InStandingTaskDomain InStandingTaskDomain) {
//1是正常
//2是紧急出库
if (InStandingTaskDomain.getWeight()==0)
{
return AjaxResult.error("重量错误");
}
return inStandingTaskService.instanding(InStandingTaskDomain);
}
}