From ecf5896b75066f0cfd029b7b01fc2c50c3cba7a9 Mon Sep 17 00:00:00 2001 From: yuyang Date: Thu, 8 Sep 2022 21:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9D=A1=E4=BB=B6=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../XhpcPileRegularInspectServiceImpl.java | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcPileRegularInspectServiceImpl.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcPileRegularInspectServiceImpl.java index 6d6e355c..820c27a0 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcPileRegularInspectServiceImpl.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcPileRegularInspectServiceImpl.java @@ -43,6 +43,66 @@ public class XhpcPileRegularInspectServiceImpl extends BaseService implements IX if(tenantId==null || "".equals(tenantId)){ return AjaxResult.error(500, "请重新登录"); } + + if(xhpcPileRegularInspect.getVersionNumberTime()==null || "".equals(xhpcPileRegularInspect.getVersionNumberTime())){ + return AjaxResult.error(500, "版本号检查时间必填"); + } + if(xhpcPileRegularInspect.getTimingPriceTime()==null || "".equals(xhpcPileRegularInspect.getTimingPriceTime())){ + return AjaxResult.error(500, "校时校价时间必填"); + } + if(xhpcPileRegularInspect.getRateTime()==null || "".equals(xhpcPileRegularInspect.getRateTime())){ + return AjaxResult.error(500, "费率时间必填"); + } + if(xhpcPileRegularInspect.getCopyingAdministratorTime()==null || "".equals(xhpcPileRegularInspect.getCopyingAdministratorTime())){ + return AjaxResult.error(500, "定期抄发给管理员时间必填"); + } + try{ + String[] split = xhpcPileRegularInspect.getVersionNumberTime().split(","); + for (int i = 0; i 24){ + return AjaxResult.error(500, "版本号检查时间格式不对"); + } + } + }catch (Exception e){ + return AjaxResult.error(500, "版本号检查时间格式不对"); + } + try{ + String[] split = xhpcPileRegularInspect.getTimingPriceTime().split(","); + for (int i = 0; i 24){ + return AjaxResult.error(500, "校时校价时格式不对"); + } + } + }catch (Exception e){ + return AjaxResult.error(500, "校时校价时格式不对"); + } + + try{ + String[] split = xhpcPileRegularInspect.getRateTime().split(","); + for (int i = 0; i 24){ + return AjaxResult.error(500, "定期抄发给管理员时间格式不对"); + } + } + }catch (Exception e){ + return AjaxResult.error(500, "定期抄发给管理员时间格式不对"); + } + + try{ + String[] split = xhpcPileRegularInspect.getCopyingAdministratorTime().split(","); + for (int i = 0; i 24){ + return AjaxResult.error(500, "费率式不对"); + } + } + }catch (Exception e){ + return AjaxResult.error(500, "费率格式不对"); + } + if(xhpcPileRegularInspect.getPileRegularInspectId()==null){ Map map = xhpcPileRegularInspectMapper.getPileRegularInspectTenantId(tenantId);