XnInventoryTransferController.java
1.52 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
package com.huaheng.mobile.receipt;
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.inventory.inventoryDetail.service.InventoryDetailService;
import com.huaheng.pc.receipt.receiptDetail.service.ReceiptDetailService;
import com.huaheng.pc.receipt.receiptHeader.service.ReceiptHeaderService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
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;
/**
* PDA存转虚拟库存移到真实库
* 复用pc端service层接口,在controll层串联业务逻辑
*/
@RestController
@RequestMapping("/mobile/receipt/xnInventoryTransfer")
public class XnInventoryTransferController {
public static final String RECEIPT_TYPE = "XNT";
@Autowired
private ReceiptHeaderService receiptHeaderService;
@Autowired
private ReceiptDetailService receiptDetailService;
@Autowired
private InventoryDetailService inventoryDetailService;
@Autowired
private XnTransServices xnTransServices;
@ApiOperation("移动端逐件收货保存")
@ApiLogger(from = "PDA", apiName = "PDA转移虚拟库存")
@PostMapping
public AjaxResult save(@RequestBody XnTransBean bean) throws Exception {
return xnTransServices.trans(bean);
}
}