| | |
| | | import com.vincent.rsf.server.manager.enums.OrderWorkType; |
| | | import com.vincent.rsf.server.manager.enums.POExceStatus; |
| | | import com.vincent.rsf.server.manager.service.*; |
| | | import com.vincent.rsf.server.manager.service.impl.TransferOrderServiceImpl; |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import com.vincent.rsf.server.system.service.UserService; |
| | | import com.vincent.rsf.server.system.service.impl.UserServiceImpl; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | * @description |
| | | * @create 2025/3/19 19:07 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class AsnOrderLogSchedule { |
| | | |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void moveOrderToLog(List<WkOrder> wkOrders, String type) { |
| | | //上报已完成订单至ERP、MES等三方系统 |
| | | reportOrders(wkOrders); |
| | | try { |
| | | reportOrders(wkOrders); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage()); |
| | | } |
| | | // |
| | | Set<Long> longSet = wkOrders.stream().map(WkOrder::getId).collect(Collectors.toSet()); |
| | | List<WkOrderItem> orderItems = asnOrderItemService.list(new LambdaQueryWrapper<WkOrderItem>() |