Commit 52828e25 authored by jiaorz's avatar jiaorz

123

parent ec770b7e
package com.xxfc.platform.uccn.rest;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.uccn.biz.RandomListBiz;
import com.xxfc.platform.uccn.dto.RandomListDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/random/list")
public class RandomListController {
@Autowired
RandomListBiz randomListBiz;
@GetMapping("/get")
public ObjectRestResponse getRandomList(RandomListDto randomListDto) {
if(randomListDto == null) {
return ObjectRestResponse.paramIsEmpty();
}
return randomListBiz.getRandomList(randomListDto.getType(), randomListDto.getNumber(), randomListDto.getLocation());
}
}
...@@ -311,7 +311,7 @@ public class VehicleActiveService { ...@@ -311,7 +311,7 @@ public class VehicleActiveService {
if(list != null && list.size() > 0) { if(list != null && list.size() > 0) {
Iterator<VehicleBookRecordVo> iterator = list.iterator(); Iterator<VehicleBookRecordVo> iterator = list.iterator();
while (iterator.hasNext()) { while (iterator.hasNext()) {
if(iterator.next().getVehicleDepartureLogVo() == null && iterator.next().getBookEndDate().after(new Date())) { if(iterator.next().getVehicleDepartureLogVo() == null && iterator.next().getBookEndDate().before(new Date())) {
iterator.remove(); 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