| | |
| | | package com.vincent.rsf.schedule.manager.schedules; |
| | | package com.vincent.rsf.schedule.schedules; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/10/28 |
| | | * @description: 定时触发rsf-open-api上报ERP |
| | | * @version 1.0 |
| | | */ |
| | | @Scheduled(cron = "0/30 * * * * ? ") |
| | | public void reportToErp() { |
| | | try { |
| | | reportMsgService.triggerErpReport(); |
| | | } catch (Exception e) { |
| | | log.error("触发ERP上报失败", e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/10/28 |
| | | * @description: 上传已完成订单至ERP平台(新链路,Order格式) |
| | | * @version 1.0 |
| | | */ |
| | |
| | | |
| | | try { |
| | | R reported = reportMsgService.uploadReportOrdersNew(orderData); |
| | | if (reported.get("code").equals("200")) { |
| | | if (reported.get("code").equals(200)) { |
| | | order.setNtyStatus(OrderReportStatus.ORDER_REPORT_STATUS_ALL.val); |
| | | asnOrderService.updateById(order); |
| | | } |