【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())))
|
.map(it -> lyOrderRecordExtensionFactory.createFlightOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
||||||
.toList();
|
.toList();
|
||||||
orderDetailDomainService.saveFlightOrderRecordBatch(orderFlightRecordList);
|
orderDetailDomainService.saveFlightOrderRecordBatch(orderFlightRecordList);
|
||||||
jdbcLyOrderFlightRecord.updateStatusByIds(orderFlightRecordList.stream().map(OrderFlightRecord::getId).toList());
|
jdbcLyOrderFlightRecord.updateStatusByIds(lyOrderFlightRecordPageList.stream().map(LyOrderFlightRecord::getId).toList());
|
||||||
count++;
|
count++;
|
||||||
} while (count < LoopNum);
|
} while (count < LoopNum);
|
||||||
//修改数据,将状态为null的设置为1
|
//修改数据,将状态为null的设置为1
|
||||||
|
@ -121,7 +121,7 @@ public class LYOrderRecordDomainService {
|
||||||
.map(it -> lyOrderRecordExtensionFactory.createHotelOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
.map(it -> lyOrderRecordExtensionFactory.createHotelOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
||||||
.toList();
|
.toList();
|
||||||
orderDetailDomainService.saveHotelOrderRecordBatch(orderHotelRecordList);
|
orderDetailDomainService.saveHotelOrderRecordBatch(orderHotelRecordList);
|
||||||
jdbcLyOrderHotelRecord.updateStatusByIds(orderHotelRecordList.stream().map(OrderHotelRecord::getId).toList());
|
jdbcLyOrderHotelRecord.updateStatusByIds(lyOrderHotelRecordPageList.stream().map(LyOrderHotelRecord::getId).toList());
|
||||||
count++;
|
count++;
|
||||||
} while (count < LoopNum);
|
} while (count < LoopNum);
|
||||||
//修改数据,将状态为null的设置为1
|
//修改数据,将状态为null的设置为1
|
||||||
|
@ -153,7 +153,7 @@ public class LYOrderRecordDomainService {
|
||||||
.map(it -> lyOrderRecordExtensionFactory.createTrainOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
.map(it -> lyOrderRecordExtensionFactory.createTrainOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
||||||
.toList();
|
.toList();
|
||||||
orderDetailDomainService.saveTrainOrderRecordBatch(orderTrainRecordList);
|
orderDetailDomainService.saveTrainOrderRecordBatch(orderTrainRecordList);
|
||||||
jdbcLyOrderTrainRecord.updateStatusByIds(orderTrainRecordList.stream().map(OrderTrainRecord::getId).toList());
|
jdbcLyOrderTrainRecord.updateStatusByIds(lyOrderTrainRecordPageList.stream().map(LyOrderTrainRecord::getId).toList());
|
||||||
count++;
|
count++;
|
||||||
} while (count < LoopNum);
|
} while (count < LoopNum);
|
||||||
//修改数据,将状态为null的设置为1
|
//修改数据,将状态为null的设置为1
|
||||||
|
@ -187,7 +187,7 @@ public class LYOrderRecordDomainService {
|
||||||
.map(it -> lyOrderRecordExtensionFactory.createCarOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
.map(it -> lyOrderRecordExtensionFactory.createCarOrderRecord(it, collect.get(it.getOutApplayOrderNo())))
|
||||||
.toList();
|
.toList();
|
||||||
orderDetailDomainService.saveCarOrderRecordBatch(orderCarRecordList);
|
orderDetailDomainService.saveCarOrderRecordBatch(orderCarRecordList);
|
||||||
jdbcLyOrderCarRecord.updateStatusByIds(orderCarRecordList.stream().map(OrderCarRecord::getId).toList());
|
jdbcLyOrderCarRecord.updateStatusByIds(lyOrderCarRecordPageList.stream().map(LyOrderCarRecord::getId).toList());
|
||||||
count++;
|
count++;
|
||||||
} while (count < LoopNum);
|
} while (count < LoopNum);
|
||||||
//修改数据,将状态为null的设置为1
|
//修改数据,将状态为null的设置为1
|
||||||
|
|
|
@ -26,5 +26,5 @@ public interface JdbcLyOrderCarRecord extends CrudRepository<LyOrderCarRecord, L
|
||||||
|
|
||||||
@Modifying
|
@Modifying
|
||||||
@Query("UPDATE ly_order_car_record SET status = 1 WHERE id IN (:#{#ids})")
|
@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
|
@Modifying
|
||||||
@Query("UPDATE ly_order_flight_record SET status = 1 WHERE id IN (:#{#ids})")
|
@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
|
@Modifying
|
||||||
@Query("UPDATE ly_order_hotel_record SET status = 1 WHERE id IN (:#{#ids})")
|
@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
|
@Modifying
|
||||||
@Query("UPDATE ly_order_train_record SET status = 1 WHERE id IN (:#{#ids})")
|
@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
|
@Test
|
||||||
public void excelTest() {
|
public void excelTest() {
|
||||||
List<Long> ids=new ArrayList<>();
|
List<Integer> ids=new ArrayList<>();
|
||||||
ids.add(1L);
|
ids.add(1);
|
||||||
ids.add(2L);
|
ids.add(2);
|
||||||
jdbcLyOrderFlightRecord.updateStatusByIds(ids);
|
jdbcLyOrderFlightRecord.updateStatusByIds(ids);
|
||||||
jdbcLyOrderHotelRecord.updateStatusByIds(ids);
|
jdbcLyOrderHotelRecord.updateStatusByIds(ids);
|
||||||
jdbcLyOrderTrainRecord.updateStatusByIds(ids);
|
jdbcLyOrderTrainRecord.updateStatusByIds(ids);
|
||||||
|
|
Loading…
Reference in New Issue