|
1
2
3
4
5
6
7
8
9
10
|
package com.huaheng.api.general.controller;
import com.huaheng.api.general.domain.Receipt;
import com.huaheng.api.general.domain.ShipmentDomain;
import com.huaheng.api.general.domain.TaskDomain;
import com.huaheng.api.general.service.ShipmentApiService;
import com.huaheng.api.general.service.TaskApiService;
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
|
|
11
|
import com.huaheng.framework.web.controller.BaseController;
|
|
12
13
14
15
16
17
18
19
20
21
22
|
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/taskApi")
@Api(tags = {"出库单接口"}, value = "出库单接口shipment")
|
|
23
|
public class TaskApiController extends BaseController{
|
|
24
25
26
27
28
29
30
31
32
33
34
|
@Resource
private TaskApiService taskApiService;
/**
* 根据任务id获取任务完成情况
*/
@Log(title = "根据任务id获取任务完成情况", action = BusinessType.INSERT)
@PostMapping("/taskInfo")
@ApiOperation("根据任务id获取任务完成情况")
@ResponseBody
|
|
35
|
// @ApiLogger(apiName = "获取任务完成情况", from="ERP")
|
|
36
37
|
public AjaxResult taskInfo(@RequestBody String taskNo)
{
|
|
38
39
40
41
42
43
44
|
AjaxResult ajaxResult = handleMultiProcess(new BaseController.MultiProcessListener() {
@Override
public AjaxResult doProcess() {
AjaxResult ajaxResult = taskApiService.taskInfo(taskNo);
return ajaxResult;
}
});
|
|
45
46
47
48
49
50
51
|
return ajaxResult;
}
}
|