Commit ce57a67e authored by jiaorz's avatar jiaorz

123

parent abc54345
......@@ -9,6 +9,7 @@ import com.xxfc.platform.vehicle.constant.ResCode.ResCode;
import com.xxfc.platform.vehicle.entity.*;
import com.xxfc.platform.vehicle.mapper.*;
import com.xxfc.platform.vehicle.pojo.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
......@@ -23,6 +24,7 @@ import org.springframework.transaction.interceptor.TransactionAspectSupport;
import java.util.*;
@Service
@Slf4j
public class VehicleActiveService {
@Autowired
......@@ -311,6 +313,9 @@ public class VehicleActiveService {
if(list != null && list.size() > 0) {
Iterator<VehicleBookRecordVo> iterator = list.iterator();
while (iterator.hasNext()) {
log.info(iterator.next().toString());
log.info("预定结束时间:" + iterator.next().getBookEndDate().getTime());
log.info("当前时间:" + new Date().getTime());
if(iterator.next().getVehicleDepartureLogVo() == null && iterator.next().getBookEndDate().getTime()- new Date().getTime() < 0) {
iterator.remove();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment