Blame view

src/main/java/com/huaheng/api/general/Controller/ShipmentApi.java 2.35 KB
huhai authored
1
package com.huaheng.api.general.Controller;
2
3

import com.alibaba.fastjson.JSON;
pengcheng authored
4
import com.huaheng.api.general.service.ShipmentAPIService;
5
6
7
import com.huaheng.common.utils.StringUtils;
import com.huaheng.common.utils.http.HttpUtils;
import com.huaheng.common.utils.security.ShiroUtils;
pengcheng authored
8
9
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
10
11
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
pengcheng authored
12
import com.huaheng.pc.general.company.domain.Company;
13
14
15
import com.huaheng.pc.general.company.service.ICompanyService;
import com.huaheng.pc.general.material.domain.Material;
import com.huaheng.pc.general.material.service.IMaterialService;
pengcheng authored
16
17
import com.huaheng.pc.general.warehouse.domain.Warehouse;
import com.huaheng.pc.general.warehouse.service.IWarehouseService;
18
19
20
21
22
23
import com.huaheng.pc.shipment.shipmentDetail.domain.ShipmentDetail;
import com.huaheng.pc.shipment.shipmentDetail.service.IShipmentDetailService;
import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader;
import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentModel;
import com.huaheng.pc.shipment.shipmentHeader.service.IShipmentHeaderService;
import com.huaheng.pc.system.dict.service.IDictDataService;
pengcheng authored
24
import io.swagger.annotations.Api;
25
import org.springframework.beans.factory.annotation.Autowired;
pengcheng authored
26
import org.springframework.transaction.annotation.Transactional;
27
import org.springframework.web.bind.annotation.*;
28
29
30
31

import java.util.List;

/**
32
 *  出库下发和回传接口
33
34
35
36
37
38
 *    @author huaheng
 *    @date 2018-12-18
 *
 *
 *
 */
pengcheng authored
39
40
41
@RestController
@RequestMapping("/api/shipment")
@Api(tags = {"shipment"}, description = "出库接口")
42
43
44
public class ShipmentApi extends BaseController {
pengcheng authored
45
    private ShipmentAPIService shipmentAPIService;
46
47

    //出库单下发
pengcheng authored
48
49
50
    @Log(title = "出库单下发", action = BusinessType.INSERT)
    @PostMapping("/insertShipment")
    @ResponseBody
51
    public AjaxResult insertShipment(@RequestBody ShipmentModel shipmentModel){
pengcheng authored
52
       return shipmentAPIService.insertShipment(shipmentModel);
53
54
55
56
57
    }



    //出库单回传
pengcheng authored
58
59
60
    @Log(title = "出库单回传", action = BusinessType.INSERT)
    @PostMapping("/shipmentAssign")
    @ResponseBody
61
62
    public AjaxResult shipmentAssign(String url)
    {
pengcheng authored
63
64

        return shipmentAPIService.confirmShipment(url);
65
66
67
68
    }


}