| | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/8/19 |
| | | * @description: 同步盘点单据 |
| | | * @description: 收货通知单同步 |
| | | * @version 1.0 |
| | | */ |
| | | @ApiOperation("同步单据") |
| | | @OperationLog("单据同步") |
| | | @PostMapping("/sync/checks") |
| | | public R syncCheckResult(@RequestBody SyncOrderParams syncOrders) { |
| | | if (Objects.isNull(syncOrders)) { |
| | | public R syncCheckResult(@RequestBody List<SyncOrderParams> syncOrders) { |
| | | if (Objects.isNull(syncOrders) || syncOrders.isEmpty()) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return receiveMsgService.syncCheckOrder(syncOrders, getLoginUserId()); |
| | |
| | | @ApiOperation("单据修改") |
| | | @OperationLog("单据修改") |
| | | @PostMapping("/sync/orders/update") |
| | | public R syncOrderUpdate(@RequestBody SyncOrderParams orders) { |
| | | if (Objects.isNull(orders)) { |
| | | public R syncOrderUpdate(@RequestBody List<SyncOrderParams> orders) { |
| | | if (Objects.isNull(orders) || orders.isEmpty()) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | return receiveMsgService.syncOrderUpdate(orders); |
| | | // return receiveMsgService.syncOrderUpdate(orders); |
| | | return receiveMsgService.syncCheckOrder(orders, getLoginUserId()); |
| | | } |
| | | |
| | | |