Blame view

src/main/java/com/huaheng/api/U8/controller/ICSBasicDataApi.java 3.72 KB
pengcheng authored
1
2
3
4
5
6
7
8
9
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;
10
import io.swagger.annotations.ApiOperation;
pengcheng authored
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@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
28
    private MaterialAPIService ICSInventoryService;
pengcheng authored
29
30
31
32
33
34
35
36
37
38
39
40

    @Autowired
    private UserAPIService icsPersonApiService;

    @Autowired
    private SupplierAPIService icsVendorService;

    @Autowired
    private WarehouseAPIService icsWarehouseService;

    @Log(title = "计量单位添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSComputationUnit")
41
    @ApiOperation("ICS计量单位添加接口")
pengcheng authored
42
43
44
45
46
47
48
49
50
    @ResponseBody
    public AjaxResult ICSComputationUnit(@RequestBody ICScomputationUnitModel icsComputationUnit)
    {
        AjaxResult ajaxResult = computationUnitApiService.ICSUnit(icsComputationUnit);
        return ajaxResult;
    }

    @Log(title = "客户档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSCustomer")
51
    @ApiOperation("ICS客户档案添加接口")
pengcheng authored
52
53
54
55
56
57
58
59
60
    @ResponseBody
    public AjaxResult ICSCustomer(@RequestBody ICSCustomerModel icsCustomer)
    {
        AjaxResult ajaxResult = customerService.ICSCustomer(icsCustomer);
        return ajaxResult;
    }

    @Log(title = "部门档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSDepartment")
61
    @ApiOperation("ICS部门档案添加接口")
pengcheng authored
62
63
64
65
66
67
68
    @ResponseBody
    public AjaxResult ICSDepartment(@RequestBody ICSDepartmentModel icsDepartment)
    {
        AjaxResult ajaxResult = icsDepartmentService.ICSDepartment(icsDepartment);
        return ajaxResult;
    }
69
    @Log(title = "物料添加", operating = "物料添加",action = BusinessType.INSERT)
pengcheng authored
70
    @PostMapping("/GetICSInventory")
71
    @ApiOperation("ICS物料添加接口")
pengcheng authored
72
    @ResponseBody
73
    public AjaxResult ICSInventory(@RequestBody ICSMaterialModel iCSInventory)
pengcheng authored
74
75
76
77
78
79
80
    {
        AjaxResult ajaxResult = ICSInventoryService.ICSInventory(iCSInventory);
        return ajaxResult;
    }

    @Log(title = "人员档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSPerson")
81
    @ApiOperation("ICS人员档案添加接口")
pengcheng authored
82
83
84
85
86
87
88
89
90
    @ResponseBody
    public AjaxResult ICSPerson(@RequestBody ICSPersonModel icsPerson)
    {
        AjaxResult ajaxResult = icsPersonApiService.ICSPerson(icsPerson);
        return ajaxResult;
    }

    @Log(title = "供应商档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSVendor")
91
    @ApiOperation("ICS供应商档案添加接口")
pengcheng authored
92
93
94
95
96
97
98
99
    @ResponseBody
    public AjaxResult ICSVendor(@RequestBody ICSVendorModel icsVendor){
        AjaxResult ajaxResult = icsVendorService.ICSVendor(icsVendor);
        return ajaxResult;
    }

    @Log(title = "仓库档案添加", action = BusinessType.INSERT)
    @PostMapping("/GetICSWarehouse")
100
    @ApiOperation("ICS仓库档案添加接口")
pengcheng authored
101
102
103
104
105
106
    @ResponseBody
    public AjaxResult ICSWarehouse(@RequestBody ICSWarehouseModel icsWarehouse){
        AjaxResult ajaxResult = icsWarehouseService.ICSWarehouse(icsWarehouse);
        return ajaxResult;
    }
}