ICSBasicDataApi.java
3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package com.huaheng.api.U8.controller;
import com.huaheng.api.U8.Service.*;
import com.huaheng.api.U8.domain.*;
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.*;
import java.util.List;
@RestController
@RequestMapping("/api/icsBasicData")
@Api(tags = {"icsBasicData"}, description = "ICS基本数据接口")
public class ICSBasicDataApi extends BaseController {
    @Autowired
    private  ComputationUnitApiService computationUnitApiService;
    @Autowired
    private CustomerAPIService customerService;
    @Autowired
    private DeptAPIService icsDepartmentService;
    @Autowired
    private MaterialAPIService ICSInventoryService;
    @Autowired
    private UserAPIService icsPersonApiService;
    @Autowired
    private SupplierAPIService icsVendorService;
    @Autowired
    private WarehouseAPIService icsWarehouseService;
    @Log(title = "计量单位添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSComputationUnit")
    @ApiOperation("ICS计量单位添加接口")
    @ResponseBody
    public AjaxResult ICSComputationUnit(@RequestBody ICScomputationUnitModel icsComputationUnit)
    {
        AjaxResult ajaxResult = computationUnitApiService.ICSUnit(icsComputationUnit);
        return ajaxResult;
    }
    @Log(title = "客户档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSCustomer")
    @ApiOperation("ICS客户档案添加接口")
    @ResponseBody
    public AjaxResult ICSCustomer(@RequestBody ICSCustomerModel icsCustomer)
    {
        AjaxResult ajaxResult = customerService.ICSCustomer(icsCustomer);
        return ajaxResult;
    }
    @Log(title = "部门档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSDepartment")
    @ApiOperation("ICS部门档案添加接口")
    @ResponseBody
    public AjaxResult ICSDepartment(@RequestBody ICSDepartmentModel icsDepartment)
    {
        AjaxResult ajaxResult = icsDepartmentService.ICSDepartment(icsDepartment);
        return ajaxResult;
    }
    @Log(title = "物料添加", operating = "物料添加",action = BusinessType.INSERT)
    @PostMapping("/GetICSInventory")
    @ApiOperation("ICS物料添加接口")
    @ResponseBody
    public AjaxResult ICSInventory(@RequestBody List<ICSMaterialModel> iCSInventorys)
    {
        AjaxResult ajaxResult = ICSInventoryService.ICSInventory(iCSInventorys);
        return ajaxResult;
    }
    @Log(title = "人员档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSPerson")
    @ApiOperation("ICS人员档案添加接口")
    @ResponseBody
    public AjaxResult ICSPerson(@RequestBody ICSPersonModel icsPerson)
    {
        AjaxResult ajaxResult = icsPersonApiService.ICSPerson(icsPerson);
        return ajaxResult;
    }
    @Log(title = "供应商档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSVendor")
    @ApiOperation("ICS供应商档案添加接口")
    @ResponseBody
    public AjaxResult ICSVendor(@RequestBody ICSVendorModel icsVendor){
        AjaxResult ajaxResult = icsVendorService.ICSVendor(icsVendor);
        return ajaxResult;
    }
//    @Log(title = "仓库档案添加", action = BusinessType.INSERT)
//    @PostMapping("/GetICSWarehouse")
//    @ApiOperation("ICS仓库档案添加接口")
//    @ResponseBody
//    public AjaxResult ICSWarehouse(@RequestBody ICSWarehouseModel icsWarehouse){
//        AjaxResult ajaxResult = icsWarehouseService.ICSWarehouse(icsWarehouse);
//        return ajaxResult;
//    }
}