|  |  |  | 
|---|
|  |  |  | package com.vincent.rsf.openApi.controller; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.vincent.rsf.framework.common.R; | 
|---|
|  |  |  | 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.entity.params.ErpOpParams; | 
|---|
|  |  |  | import com.vincent.rsf.openApi.entity.params.ReportParams; | 
|---|
|  |  |  | import com.vincent.rsf.openApi.service.WmsErpService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | 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.RequestMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  | import java.util.Objects; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping("/erp") | 
|---|
|  |  |  | @Api("ERP接口对接") | 
|---|
|  |  |  | public class WmsErpController { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("订单信息上报") | 
|---|
|  |  |  | @PostMapping("/report/order") | 
|---|
|  |  |  | public CommonResponse reportOrders(@RequestBody ReportParams params) { | 
|---|
|  |  |  | if (Objects.isNull(params)) { | 
|---|
|  |  |  | throw new CoolException("参数不能为空!!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return wmsErpService.reportOrders(params); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("盘点差异修改") | 
|---|
|  |  |  | @PostMapping("/report/check") | 
|---|
|  |  |  | public CommonResponse reportCheck(@RequestBody Map<String, Object> params) { | 
|---|
|  |  |  | return wmsErpService.reportCheck(params); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|