diff --git a/src/main/java/com/zcloud/controller/beidou/BeidouController.java b/src/main/java/com/zcloud/controller/beidou/BeidouController.java index d33a155..3a6e4ed 100644 --- a/src/main/java/com/zcloud/controller/beidou/BeidouController.java +++ b/src/main/java/com/zcloud/controller/beidou/BeidouController.java @@ -319,6 +319,7 @@ public class BeidouController extends BaseController { if (!StringUtils.isEmpty(pd.getString("TRAFFIC_TYPE")) && pd.getString("TRAFFIC_TYPE").equals("1")) { // 营运车辆 List operatingList = operatingVehiclesService.operationVehicleList(pd.getString("CORPINFO_ID")); + operatingList = operatingList.stream().filter(data -> StringUtils.equals(data.getString("ISASSIGNED"), "0")).collect(Collectors.toList()); page.setPd(pd); List compassList = beidouService.list(page); diff --git a/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java b/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java index eb3ad5a..7e66e93 100644 --- a/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java +++ b/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java @@ -30,6 +30,7 @@ import org.springframework.web.servlet.ModelAndView; import java.io.File; import java.util.*; +import java.util.function.Predicate; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; diff --git a/src/main/java/com/zcloud/controller/system/AppVersionManagerController.java b/src/main/java/com/zcloud/controller/system/AppVersionManagerController.java index 1d25abe..3d8aa68 100644 --- a/src/main/java/com/zcloud/controller/system/AppVersionManagerController.java +++ b/src/main/java/com/zcloud/controller/system/AppVersionManagerController.java @@ -6,6 +6,7 @@ import com.zcloud.entity.PageData; import com.zcloud.service.system.VersionManagerService; import com.zcloud.util.*; import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.apache.shiro.util.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @@ -164,6 +165,9 @@ public class AppVersionManagerController extends BaseController { PageData pd = new PageData(); pd = this.getPageData(); List varList = versionmanagerService.listAll(pd); //列出VersionManager列表 + if(CollectionUtils.isEmpty(varList)) { + varList.add(new PageData()); + } map.put("pd", varList.get(0)); map.put("result", errInfo); return map; diff --git a/src/main/java/com/zcloud/service/system/impl/UsersServiceImpl.java b/src/main/java/com/zcloud/service/system/impl/UsersServiceImpl.java index c85fcdd..f7a5e96 100644 --- a/src/main/java/com/zcloud/service/system/impl/UsersServiceImpl.java +++ b/src/main/java/com/zcloud/service/system/impl/UsersServiceImpl.java @@ -1349,7 +1349,7 @@ public class UsersServiceImpl implements UsersService { try { FaceUtil.compareFace(pd.getString("USERAVATARURL"), pd.getString("USERAVATARURL")); } catch (Exception e) { - throw new Exception("人脸图像不符合要求,请重新上传"); + return ReturnMap.ok("1"); } } /*if (!IdcardUtils.validateCard(pd.getString("USER_ID_CARD"))) { diff --git a/src/main/resources/mybatis/datasource/check/CheckRecordMapper.xml b/src/main/resources/mybatis/datasource/check/CheckRecordMapper.xml index 71072c1..dd16ce5 100644 --- a/src/main/resources/mybatis/datasource/check/CheckRecordMapper.xml +++ b/src/main/resources/mybatis/datasource/check/CheckRecordMapper.xml @@ -210,7 +210,6 @@ order by IFNULL( f.CHECK_TIME, f.PERIODEND ) desc