diff --git a/src/main/java/com/chint/domain/service/order_record/LYOrderRecordDomainService.java b/src/main/java/com/chint/domain/service/order_record/LYOrderRecordDomainService.java index aa0f18f1..02bb7754 100644 --- a/src/main/java/com/chint/domain/service/order_record/LYOrderRecordDomainService.java +++ b/src/main/java/com/chint/domain/service/order_record/LYOrderRecordDomainService.java @@ -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 diff --git a/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderCarRecord.java b/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderCarRecord.java index 9b270e89..c18dedf8 100644 --- a/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderCarRecord.java +++ b/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderCarRecord.java @@ -26,5 +26,5 @@ public interface JdbcLyOrderCarRecord extends CrudRepository ids); + void updateStatusByIds(@Param("ids") List ids); } diff --git a/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderFlightRecord.java b/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderFlightRecord.java index bf468bb7..f5e7094f 100644 --- a/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderFlightRecord.java +++ b/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderFlightRecord.java @@ -26,5 +26,5 @@ public interface JdbcLyOrderFlightRecord extends CrudRepository ids); + void updateStatusByIds(@Param("ids") List ids); } diff --git a/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderHotelRecord.java b/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderHotelRecord.java index 37099670..688851d1 100644 --- a/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderHotelRecord.java +++ b/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderHotelRecord.java @@ -27,5 +27,5 @@ public interface JdbcLyOrderHotelRecord extends CrudRepository ids); + void updateStatusByIds(@Param("ids") List ids); } diff --git a/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderTrainRecord.java b/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderTrainRecord.java index a2c16c53..e3668f6b 100644 --- a/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderTrainRecord.java +++ b/src/main/java/com/chint/infrastructure/repository/jdbc/JdbcLyOrderTrainRecord.java @@ -26,5 +26,5 @@ public interface JdbcLyOrderTrainRecord extends CrudRepository ids); + void updateStatusByIds(@Param("ids") List ids); } diff --git a/src/test/java/com/chint/ExcelTest.java b/src/test/java/com/chint/ExcelTest.java index 2d0dd0ab..8cc74af8 100644 --- a/src/test/java/com/chint/ExcelTest.java +++ b/src/test/java/com/chint/ExcelTest.java @@ -100,9 +100,9 @@ public class ExcelTest { @Test public void excelTest() { - List ids=new ArrayList<>(); - ids.add(1L); - ids.add(2L); + List ids=new ArrayList<>(); + ids.add(1); + ids.add(2); jdbcLyOrderFlightRecord.updateStatusByIds(ids); jdbcLyOrderHotelRecord.updateStatusByIds(ids); jdbcLyOrderTrainRecord.updateStatusByIds(ids);