GeneralApi.java
1.61 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
package com.huaheng.api.U8.controller;
import com.huaheng.api.U8.domain.ICSInventoryModel;
import com.huaheng.api.U8.domain.ICSWarehouseModel;
import com.huaheng.api.U8.service.GeneralService;
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 org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/api/material")
@Api(tags = {"Material"}, description = "物料接口")
public class GeneralApi extends BaseController {
@Autowired
private GeneralService generalService;
/**
* 同步物料
*/
// @RequiresPermissions("api:ICSInventory")
@Log(title = "物料添加", action = BusinessType.INSERT)
@PostMapping("/ICSInventory")
@ResponseBody
public AjaxResult ICSInventory(@RequestBody ICSInventoryModel iCSInventory)
{
AjaxResult ajaxResult = generalService.ICSInventory(iCSInventory);
return ajaxResult;
}
/**
* 同步仓库和货主
*/
// @RequiresPermissions("api:ICSWarehouse")
@Log(title = "物料添加", action = BusinessType.INSERT)
@PostMapping("/ICSWarehouse")
@ResponseBody
public AjaxResult ICSWarehouse(@RequestBody ICSWarehouseModel iCSWarehouse)
{
AjaxResult ajaxResult = generalService.ICSWarehouse(iCSWarehouse);
return ajaxResult;
}
}