| | |
| | | import com.gs.xky.dto.XkyDetail; |
| | | import com.gs.xky.entity.DeliveryNotice; |
| | | import com.gs.xky.entity.DeliveryNoticeDetail; |
| | | import com.gs.xky.entity.MesInvItemArn; |
| | | import com.gs.xky.mapper.DeliveryNoticeMapper; |
| | | import com.gs.xky.service.DeliveryNoticeDetailService; |
| | | import com.gs.xky.service.DeliveryNoticeService; |
| | | import com.gs.xky.service.MesInvItemArnService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | implements DeliveryNoticeService { |
| | | |
| | | private final DeliveryNoticeDetailService detailService; |
| | | |
| | | private final MesInvItemArnService invItemArnService; |
| | | |
| | | |
| | | @Override |
| | |
| | | public void callPdaReceiptBtn(String inStr, String result) { |
| | | baseMapper.callPdaReceiptBtn(inStr, result); |
| | | } |
| | | |
| | | @Override |
| | | public Integer processMesInvItemArnStatus(String factory, String company, String userCode, Long id) { |
| | | Integer poResult = 1; |
| | | String poText = ""; |
| | | |
| | | // 调用存储过程 |
| | | baseMapper.callPrcMesInvItemArnStatus22(factory, company, userCode, id, poResult, poText); |
| | | |
| | | // 返回结果 |
| | | return poResult; |
| | | } |
| | | |
| | | // |
| | | |
| | | |
| | | |
| | | @Override |
| | | public void processMesInvItemArnStatusAsync(List<MesInvItemArn> itemArnMinus) { |
| | | // 遍历每个 itemArn |
| | | itemArnMinus.forEach(itemArn -> { |
| | | try { |
| | | // 处理每个 itemArn |
| | | processMesInvItemArnStatus("1000", "1000", "PL017", itemArn.getId()); |
| | | } catch (Exception e) { |
| | | // 处理异常,例如记录日志 |
| | | System.err.println("Error processing itemArn: " + itemArn.getId()); |
| | | e.printStackTrace(); |
| | | } |
| | | }); |
| | | } |
| | | } |