Blame view

src/main/java/com/huaheng/api/pda/controller/ContainerNumberController.java 1.74 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
51
package com.huaheng.api.pda.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.*;

import com.huaheng.api.pda.domain.ContainerNumberDomain;
import com.huaheng.api.pda.service.ContainerNumberService;
import com.huaheng.api.pda.service.ReceiptPdaByContainerDirectionService;
import com.huaheng.framework.aspectj.lang.annotation.ApiLogger;
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.ApiOperation;

/**
 * pda扫码入库
 */
@RestController
@RequestMapping("/API/WMS/v2")
public class ContainerNumberController extends BaseController {

    @Resource
    private ContainerNumberService containerNumberService;
    @Resource
    private ReceiptPdaByContainerDirectionService receiptPdaByContainerDirectionService;

    /**
     * pda扫卷号和位置 ,商片仓更新位置接口
     */
    @Log(title = "商片仓更新位置接口", action = BusinessType.INSERT)
    @PostMapping("/updateContainerNumber")
    @ApiOperation("商片仓更新位置接口")
    @ResponseBody
    @ApiLogger(apiName = "商片仓更新位置接口", from = "PDA")
    public AjaxResult updateContainerNumber(@RequestBody List<ContainerNumberDomain> numberDomains) {
        AjaxResult ajaxResult = handleMultiProcess(new MultiProcessListener() {
            @Override
            public AjaxResult doProcess() {
                AjaxResult ajaxResult = containerNumberService.updateContainerNumber(numberDomains);
                return ajaxResult;
            }
        });
        return ajaxResult;
    }

}