|
|
@@ -1,5 +1,6 @@
|
|
|
package org.dromara.system.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
import org.dromara.common.core.utils.DateUtils;
|
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
|
@@ -19,6 +20,7 @@ import org.dromara.system.mapper.TblCarScheduleMapper;
|
|
|
import org.dromara.system.service.ITblCarScheduleService;
|
|
|
|
|
|
import java.util.*;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
import static jt809.handle.JT809Packet0x1202Handle.convertToPinyin;
|
|
|
|
|
|
@@ -93,6 +95,22 @@ public class TblCarScheduleServiceImpl implements ITblCarScheduleService {
|
|
|
lqw.like(StringUtils.isNotBlank(bo.getCarNum()), TblCarSchedule::getCarNum, bo.getCarNum());
|
|
|
lqw.eq(bo.getScheduleDate() != null, TblCarSchedule::getScheduleDate, bo.getScheduleDate());
|
|
|
if(bo.getParams()!=null && bo.getParams().keySet().size()>0){
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ try{
|
|
|
+ if(bo.getParams().get("cars")!=null&& StrUtil.isNotEmpty(bo.getParams().get("cars").toString())){
|
|
|
+ String cars = Arrays.stream(bo.getParams().get("cars").toString().split(",")).map(deptId->{return StrUtil.format("'{}'",deptId); }).collect(Collectors.joining(","));
|
|
|
+ lqw.apply(StringUtils.format("car_num in ({})",cars));
|
|
|
+ }
|
|
|
+ }catch (Exception e){}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(bo.getParams().get("station")!=null){
|
|
|
+ lqw.like(bo.getParams().get("station")!=null, TblCarSchedule::getPathInfo, bo.getParams().get("station"));
|
|
|
+ }
|
|
|
if(bo.getParams().get("station")!=null){
|
|
|
lqw.like(bo.getParams().get("station")!=null, TblCarSchedule::getPathInfo, bo.getParams().get("station"));
|
|
|
}
|
|
|
@@ -123,6 +141,8 @@ public class TblCarScheduleServiceImpl implements ITblCarScheduleService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
lqw.orderBy(true,true,TblCarSchedule::getScheduleDate);
|
|
|
return lqw;
|