【update】行程单查询修改
This commit is contained in:
parent
34c40ce2e6
commit
37630ab65c
|
@ -13,7 +13,7 @@ public class ItineraryPageQuery extends BaseQuery {
|
|||
private String applicant="";// 申请人
|
||||
private String actualOrderNo=""; //申请单号
|
||||
private List<String> userIds=new ArrayList<>();
|
||||
private List<Long> routeIds;
|
||||
private List<Long> routeIds=new ArrayList<>();
|
||||
|
||||
|
||||
public String getActualOrderNo() {
|
||||
|
|
|
@ -46,8 +46,11 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
|
|||
@Override
|
||||
public Page<ItineraryPageDto> itineraryPageQueryByDto(ItineraryPageQuery dto) {
|
||||
String query = "SELECT * FROM route_order "
|
||||
+ "WHERE route_id IN (:routeIds) "
|
||||
+ "AND actual_order_no IS NOT NULL ";
|
||||
+ "WHERE actual_order_no IS NOT NULL ";
|
||||
|
||||
if (!dto.getRouteIds().isEmpty()) {
|
||||
query+="AND route_id IN (:routeIds) ";
|
||||
}
|
||||
|
||||
if (!dto.getUserIds().isEmpty()) {
|
||||
query+="AND user_id IN (:userIds) ";
|
||||
|
|
Loading…
Reference in New Issue