| | |
| | | |
| | | 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.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; |
| | |
| | | |
| | | @RestController |
| | | @RequestMapping("/erp") |
| | | @Api("ERP接口对接") |
| | | public class WmsErpController { |
| | | |
| | | @Autowired |
| | |
| | | } |
| | | return wmsErpService.orderDel(params); |
| | | } |
| | | |
| | | @ApiOperation("基础物料信息更新") |
| | | @PostMapping("/mat/sync/auth/v1") |
| | | public CommonResponse syncMatnrs(@RequestBody ErpMatnrParms parms) { |
| | | if (Objects.isNull(parms)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return wmsErpService.syncMatnrs(parms); |
| | | } |
| | | |
| | | } |