cl
4 天以前 926cc0fd4fad17ae02814387ced7e0a88b042a2b
打印格式
1个文件已修改
6 ■■■■■ 已修改文件
rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java
@@ -1,4 +1,6 @@
package com.vincent.rsf.openApi.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.vincent.rsf.framework.exception.CoolException;
import com.vincent.rsf.openApi.entity.dto.CommonResponse;
import com.vincent.rsf.openApi.entity.params.ErpMatnrParms;
@@ -7,6 +9,7 @@
import com.vincent.rsf.openApi.service.WmsErpService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -20,6 +23,7 @@
@RestController
@RequestMapping({"/erp","/cloudwms"})
@Api("ERP接口对接")
@Slf4j
public class WmsErpController {
    @Autowired
@@ -52,6 +56,7 @@
        if (Objects.isNull(params)) {
            throw new CoolException("参数不能为空!!");
        }
        log.info("新增/修改单据,请求参数: {}", JSONObject.toJSONString(params));
        return wmsErpService.addOrUpdateOrder(params);
    }
@@ -64,6 +69,7 @@
        if (paramsList == null || paramsList.isEmpty()) {
            throw new CoolException("参数不能为空!!");
        }
        log.info("新增/修改单据,请求参数: {}", JSONArray.toJSONString(paramsList));
        return wmsErpService.addOrUpdateOrders(paramsList);
    }