| | |
| | | int markInbound(@org.apache.ibatis.annotations.Param("id") Long id, @org.apache.ibatis.annotations.Param("eventId") Long eventId, |
| | | @org.apache.ibatis.annotations.Param("deviceCode") String deviceCode, @org.apache.ibatis.annotations.Param("lineCode") String lineCode); |
| | | |
| | | /** 批次整批入库时批量标记其下未入库袋码(幂等),保持袋码与库存状态一致 */ |
| | | @Update("UPDATE mes_pro_bag_code SET inbound_time = NOW(), inbound_event_id = #{eventId}, inbound_line_code = #{lineCode}, update_time = NOW() " |
| | | + "WHERE deleted = 0 AND inbound_event_id IS NULL AND batch_id = #{batchId}") |
| | | int markInboundByBatchId(@Param("batchId") Long batchId, @Param("eventId") Long eventId, |
| | | @Param("lineCode") String lineCode); |
| | | |
| | | /** 整托入库时批量标记托盘下未入库袋码(幂等) */ |
| | | @Update("UPDATE mes_pro_bag_code SET inbound_time = NOW(), inbound_event_id = #{eventId}, inbound_line_code = #{lineCode}, update_time = NOW() " |
| | | + "WHERE deleted = 0 AND inbound_event_id IS NULL AND pallet_id = #{palletId}") |
| | | int markInboundByPalletId(@Param("palletId") Long palletId, @Param("eventId") Long eventId, |
| | | @Param("lineCode") String lineCode); |
| | | |
| | | /** |
| | | * 更新袋码质检状态(种子质检合格/不合格时记录该袋结果) |
| | | * |
| | | * @param id 袋码编号 |
| | | * @param qcStatus 质检状态(见 MesProBagCodeQcStatusEnum) |
| | | */ |
| | | default void updateQcStatus(Long id, Integer qcStatus) { |
| | | update(null, new LambdaUpdateWrapper<MesProBagCodeDO>() |
| | | .eq(MesProBagCodeDO::getId, id) |
| | | .set(MesProBagCodeDO::getQcStatus, qcStatus)); |
| | | } |
| | | |
| | | default List<MesProBagCodeDO> selectListByUuid(String uuid) { |
| | | return selectList(MesProBagCodeDO::getUuid, uuid); |
| | | } |