|
@@ -125,8 +125,9 @@ public class TbBusinessCarService extends ServiceImpl<TbBusinessCarMapper, TbBus
|
|
|
ew.eq("car_no", carNo.toUpperCase())
|
|
|
.isNotNull("real_in_time")
|
|
|
.isNull("business_id")
|
|
|
- .isNull("real_out_time");
|
|
|
- return getOne(ew);
|
|
|
+ .isNull("real_out_time").orderByDesc("id");
|
|
|
+ List<TbBusinessCar>list=list(ew);
|
|
|
+ return list.isEmpty()?null:list.get(0);
|
|
|
}
|
|
|
|
|
|
|