Blame view

src/main/java/com/huaheng/api/general/controller/ShipmentApi.java 1.2 KB
pengcheng authored
1
2
3
4
5
package com.huaheng.api.general.controller;


import com.huaheng.api.general.domain.ShipmentDomain;
import com.huaheng.api.general.service.ShipmentApiService;
周峰 authored
6
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
pengcheng authored
7
8
9
10
11
12
13
14
15
16
17
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/shipmentApi")
xqs authored
18
@Api(tags = {"出库单接口"}, value = "出库单接口shipment")
pengcheng authored
19
20
21
22
23
24
25
26
27
28
29
30
public class ShipmentApi {

    @Resource
    private ShipmentApiService shipmentApiService;

    /**
     * 同步出库单
     */
    @Log(title = "出库单添加", action = BusinessType.INSERT)
    @PostMapping("/shipment")
    @ApiOperation("出库单添加公共接口")
    @ResponseBody
周峰 authored
31
    @ApiLogger(apiName = "添加出库单", from="ERP")
pengcheng authored
32
33
34
35
36
37
    public AjaxResult Shipment(@RequestBody ShipmentDomain shipmentDomain)
    {
        AjaxResult ajaxResult = shipmentApiService.shipment(shipmentDomain);
        return ajaxResult;
    }
}