【update】route_order添加actual_order_no不为null判断
This commit is contained in:
parent
ed0b9beffc
commit
a3fc44e83e
|
@ -54,9 +54,10 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
|
|||
|
||||
@Override
|
||||
public Page<ItineraryPageDto> itineraryPageQueryByDto(ItineraryPageQuery dto) {
|
||||
String query = "SELECT * FROM route_order " +
|
||||
"WHERE route_id IN (:routeIds) " +
|
||||
"AND (:actualOrderNo IS NULL OR actual_order_no = :actualOrderNo ) ";
|
||||
String query = "SELECT * FROM route_order "
|
||||
+ "WHERE route_id IN (:routeIds) "
|
||||
+ "AND (:actualOrderNo IS NULL OR actual_order_no = :actualOrderNo ) "
|
||||
+ "AND actual_order_no IS NOT NULL ";
|
||||
|
||||
if (!dto.getUserIds().isEmpty()) {
|
||||
query+="AND user_id IN (:userIds)";
|
||||
|
|
Loading…
Reference in New Issue