【fix】修复id字段取错问题
This commit is contained in:
parent
d3dddf87af
commit
c04b2f6b3f
|
@ -88,7 +88,7 @@ public class LYOrderRecordDomainService {
|
|||
.map(it -> lyOrderRecordExtensionFactory.createFlightOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
||||
.toList();
|
||||
orderDetailDomainService.saveFlightOrderRecordBatch(orderFlightRecordList);
|
||||
jdbcLyOrderFlightRecord.updateStatusByIds(orderFlightRecordList.stream().map(OrderFlightRecord::getId).toList());
|
||||
jdbcLyOrderFlightRecord.updateStatusByIds(lyOrderFlightRecordPageList.stream().map(LyOrderFlightRecord::getId).toList());
|
||||
count++;
|
||||
} while (count < LoopNum);
|
||||
//修改数据,将状态为null的设置为1
|
||||
|
@ -121,7 +121,7 @@ public class LYOrderRecordDomainService {
|
|||
.map(it -> lyOrderRecordExtensionFactory.createHotelOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
||||
.toList();
|
||||
orderDetailDomainService.saveHotelOrderRecordBatch(orderHotelRecordList);
|
||||
jdbcLyOrderHotelRecord.updateStatusByIds(orderHotelRecordList.stream().map(OrderHotelRecord::getId).toList());
|
||||
jdbcLyOrderHotelRecord.updateStatusByIds(lyOrderHotelRecordPageList.stream().map(LyOrderHotelRecord::getId).toList());
|
||||
count++;
|
||||
} while (count < LoopNum);
|
||||
//修改数据,将状态为null的设置为1
|
||||
|
@ -153,7 +153,7 @@ public class LYOrderRecordDomainService {
|
|||
.map(it -> lyOrderRecordExtensionFactory.createTrainOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
||||
.toList();
|
||||
orderDetailDomainService.saveTrainOrderRecordBatch(orderTrainRecordList);
|
||||
jdbcLyOrderTrainRecord.updateStatusByIds(orderTrainRecordList.stream().map(OrderTrainRecord::getId).toList());
|
||||
jdbcLyOrderTrainRecord.updateStatusByIds(lyOrderTrainRecordPageList.stream().map(LyOrderTrainRecord::getId).toList());
|
||||
count++;
|
||||
} while (count < LoopNum);
|
||||
//修改数据,将状态为null的设置为1
|
||||
|
@ -187,7 +187,7 @@ public class LYOrderRecordDomainService {
|
|||
.map(it -> lyOrderRecordExtensionFactory.createCarOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
||||
.toList();
|
||||
orderDetailDomainService.saveCarOrderRecordBatch(orderCarRecordList);
|
||||
jdbcLyOrderCarRecord.updateStatusByIds(orderCarRecordList.stream().map(OrderCarRecord::getId).toList());
|
||||
jdbcLyOrderCarRecord.updateStatusByIds(lyOrderCarRecordPageList.stream().map(LyOrderCarRecord::getId).toList());
|
||||
count++;
|
||||
} while (count < LoopNum);
|
||||
//修改数据,将状态为null的设置为1
|
||||
|
|
|
@ -26,5 +26,5 @@ public interface JdbcLyOrderCarRecord extends CrudRepository<LyOrderCarRecord, L
|
|||
|
||||
@Modifying
|
||||
@Query("UPDATE ly_order_car_record SET status = 1 WHERE id IN (:#{#ids})")
|
||||
void updateStatusByIds(@Param("ids") List<Long> ids);
|
||||
void updateStatusByIds(@Param("ids") List<Integer> ids);
|
||||
}
|
||||
|
|
|
@ -26,5 +26,5 @@ public interface JdbcLyOrderFlightRecord extends CrudRepository<LyOrderFlightRec
|
|||
|
||||
@Modifying
|
||||
@Query("UPDATE ly_order_flight_record SET status = 1 WHERE id IN (:#{#ids})")
|
||||
void updateStatusByIds(@Param("ids") List<Long> ids);
|
||||
void updateStatusByIds(@Param("ids") List<Integer> ids);
|
||||
}
|
||||
|
|
|
@ -27,5 +27,5 @@ public interface JdbcLyOrderHotelRecord extends CrudRepository<LyOrderHotelRecor
|
|||
|
||||
@Modifying
|
||||
@Query("UPDATE ly_order_hotel_record SET status = 1 WHERE id IN (:#{#ids})")
|
||||
void updateStatusByIds(@Param("ids") List<Long> ids);
|
||||
void updateStatusByIds(@Param("ids") List<Integer> ids);
|
||||
}
|
||||
|
|
|
@ -26,5 +26,5 @@ public interface JdbcLyOrderTrainRecord extends CrudRepository<LyOrderTrainRecor
|
|||
|
||||
@Modifying
|
||||
@Query("UPDATE ly_order_train_record SET status = 1 WHERE id IN (:#{#ids})")
|
||||
void updateStatusByIds(@Param("ids") List<Long> ids);
|
||||
void updateStatusByIds(@Param("ids") List<Integer> ids);
|
||||
}
|
||||
|
|
|
@ -100,9 +100,9 @@ public class ExcelTest {
|
|||
|
||||
@Test
|
||||
public void excelTest() {
|
||||
List<Long> ids=new ArrayList<>();
|
||||
ids.add(1L);
|
||||
ids.add(2L);
|
||||
List<Integer> ids=new ArrayList<>();
|
||||
ids.add(1);
|
||||
ids.add(2);
|
||||
jdbcLyOrderFlightRecord.updateStatusByIds(ids);
|
||||
jdbcLyOrderHotelRecord.updateStatusByIds(ids);
|
||||
jdbcLyOrderTrainRecord.updateStatusByIds(ids);
|
||||
|
|
Loading…
Reference in New Issue