diff --git a/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java b/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java index e6a5bef..bcce02b 100644 --- a/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java +++ b/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java @@ -13,6 +13,7 @@ import com.zcloud.service.system.ImgFilesService; import com.zcloud.util.*; import net.sf.json.JSONArray; import org.apache.commons.io.FileUtils; +import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -27,6 +28,7 @@ import org.springframework.web.servlet.ModelAndView; import java.io.File; import java.util.*; +import java.util.stream.Collectors; @Controller @RequestMapping("/operatingvehicles") @@ -215,6 +217,15 @@ public class OperatingVehiclesController extends BaseController { pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID page.setPd(pd); List varList = operatingVehiclesService.list(page); //列出Question列表 + + List info = new ArrayList<>(); + varList.stream().parallel() + .forEach(data -> { + if (!DateUtil.compareDate(data.getString("CREATTIME").substring(0, data.getString("CREATTIME").indexOf(" ")), DateUtil.getDay())) { + info.add(data); + } + }); + map.put("varList", varList); map.put("page", page); map.put("result", errInfo);