ReceiptApi.java 1.52 KB
package com.huaheng.api.general.Controller;


import com.huaheng.api.general.service.ReceiptAPIService;
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 com.huaheng.pc.receipt.receiptHeader.domain.ReceiptModel;
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 2018-12-20
 *
 *
 *
 */

@RestController
@RequestMapping("/api/receipt")
@Api(tags = {"receipt"}, description = "入库接口")
public class ReceiptApi extends BaseController {
    @Autowired
    private ReceiptAPIService receiptAPIservice;

    //出库单下发
    @Log(title = "入库单下发", action = BusinessType.INSERT)
    @PostMapping("/insertReceipt")
    @ApiOperation("入库单下发公共接口")
    @ResponseBody
    public AjaxResult insertReceipt(@RequestBody ReceiptModel receiptModel){
        return receiptAPIservice.insertReceipt(receiptModel);
    }



    //出库单回传
    @Log(title = "入库单回传", action = BusinessType.INSERT)
    @PostMapping("/confirmReceipt")
    @ApiOperation("入库单回传公共接口")
    @ResponseBody
    public AjaxResult confirmReceipt(String url)
    {

        return receiptAPIservice.ConfirmReceipt(url);
    }
}