| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | @RestController |
| | | @RequestMapping({"/erp","/cloudwms"}) |
| | | @Api("ERP接口对接") |
| | | @Slf4j |
| | | public class WmsErpController { |
| | | |
| | | @Autowired |
| | |
| | | if (Objects.isNull(params)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | log.info("新增/修改单据,请求参数: {}", JSONObject.toJSONString(params)); |
| | | return wmsErpService.addOrUpdateOrder(params); |
| | | } |
| | | |
| | |
| | | if (paramsList == null || paramsList.isEmpty()) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | log.info("新增/修改单据,请求参数: {}", JSONArray.toJSONString(paramsList)); |
| | | return wmsErpService.addOrUpdateOrders(paramsList); |
| | | } |
| | | |