|
1
2
3
4
5
|
package com.huaheng.api.general.controller;
import com.huaheng.api.general.domain.CycCountDomain;
import com.huaheng.api.general.service.CycleCountService;
|
|
6
|
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
|
|
7
8
9
10
11
|
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;
|
|
12
13
14
15
|
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
|
|
16
17
18
19
20
|
import javax.annotation.Resource;
@RestController
@RequestMapping("/api/cycleCountApi")
|
|
21
|
@Api(tags = {"盘点单接口"}, value = "盘点单接口cycleCount")
|
|
22
|
public class CycleCountApiController {
|
|
23
24
25
26
27
28
29
30
31
32
|
@Resource
private CycleCountService cycleCountService;
/**
* 同步盘点单
*/
@Log(title = "盘点单添加", action = BusinessType.INSERT)
@PostMapping("/adjust")
@ApiOperation("盘点单添加公共接口")
|
|
33
34
35
|
@ApiLogger(apiName = "添加盘点单", from = "ERP")
public AjaxResult cycleCount(@RequestBody CycCountDomain cycCountDomain) {
return cycleCountService.insertCycleCount(cycCountDomain);
|
|
36
37
38
|
}
}
|