TaskApiController.java 1.7 KB
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;
import com.huaheng.framework.web.controller.BaseController;
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")
public class TaskApiController extends BaseController{

    @Resource
    private TaskApiService taskApiService;

    /**
     * 根据任务id获取任务完成情况
     */
    @Log(title = "根据任务id获取任务完成情况", action = BusinessType.INSERT)
    @PostMapping("/taskInfo")
    @ApiOperation("根据任务id获取任务完成情况")
    @ResponseBody
//    @ApiLogger(apiName = "获取任务完成情况", from="ERP")
    public AjaxResult taskInfo(@RequestBody String taskNo)
    {
        AjaxResult ajaxResult = handleMultiProcess("taskInfo", new BaseController.MultiProcessListener() {
            @Override
            public AjaxResult doProcess() {
                AjaxResult ajaxResult = taskApiService.taskInfo(taskNo);
                return ajaxResult;
            }
        });
        return ajaxResult;
    }




}