XnInventoryTransferController.java 1.52 KB
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);
    }
}