BUG优化

dev
xiepeng 2024-04-30 17:54:04 +08:00
parent 7d88371eb2
commit aaceba5f07
1 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import com.zcloud.service.system.ImgFilesService;
import com.zcloud.util.*; import com.zcloud.util.*;
import net.sf.json.JSONArray; import net.sf.json.JSONArray;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -27,6 +28,7 @@ import org.springframework.web.servlet.ModelAndView;
import java.io.File; import java.io.File;
import java.util.*; import java.util.*;
import java.util.stream.Collectors;
@Controller @Controller
@RequestMapping("/operatingvehicles") @RequestMapping("/operatingvehicles")
@ -215,6 +217,15 @@ public class OperatingVehiclesController extends BaseController {
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
page.setPd(pd); page.setPd(pd);
List<PageData> varList = operatingVehiclesService.list(page); //列出Question列表 List<PageData> varList = operatingVehiclesService.list(page); //列出Question列表
List<PageData> 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("varList", varList);
map.put("page", page); map.put("page", page);
map.put("result", errInfo); map.put("result", errInfo);