| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.vincent.rsf.framework.common.Cools; |
| | | import com.vincent.rsf.framework.common.R; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.api.controller.erp.params.ReportDataParam; |
| | |
| | | .setItemCode(orderItem.getMatnrCode()) |
| | | .setEditUser(nickName) |
| | | .setEditDate(order.getUpdateTime()) |
| | | .setGoodsNO(fields.get("crushNo")) |
| | | // .setGoodsNO(fields.get("crushNo")) |
| | | .setMemoDtl(order.getMemo()); |
| | | |
| | | if (order.getWkType().equals(OrderWorkType.ORDER_WORK_TYPE_DONE_IN.type)) { |
| | |
| | | * @param type |
| | | * @return |
| | | * @author Ryan |
| | | * @description 添加历史单据 |
| | | * @description 添加历史单据,产上报ERP |
| | | * @time 2025/6/16 08:56 |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | |
| | | for (WkOrder order : wkOrders) { |
| | | try { |
| | | if (Cools.isEmpty(order.getReportOnce())){ |
| | | log.error(order.getCode() + ",单据上传次数为空,置为0!!"); |
| | | order.setReportOnce(0); |
| | | } |
| | | //上报次数限定 |
| | | if (order.getReportOnce() < 4 ) { |
| | | //上报已完成订单至ERP、MES等三方系统 |