CyclecountApi.java 1.13 KB
package com.huaheng.api.general.Controller;

import com.huaheng.api.general.service.CyclecountAPIService;
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.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 *  盘点差异接口 接口层
 *    @author huaheng
 *    @date 2019-1-8
 *
 *
 */

@RestController
@RequestMapping("/api/cyclecount")
@Api(tags = {"cyclecount"}, description = "盘点差异接口")
public class CyclecountApi extends BaseController {

    @Autowired
    private CyclecountAPIService cyclecountAPIService;

    //出库单下发
    @Log(title = "盘点差异上传", action = BusinessType.INSERT)
    @PostMapping("/confirm")
    @ApiOperation("盘点差异上传公共接口")
    @ResponseBody
    public AjaxResult confirm(String url) {
        return cyclecountAPIService.confirm(url);
    }

}