From e46db188efe1fb54f7617426bd6cef6deb076009 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期五, 21 三月 2025 15:35:22 +0800 Subject: [PATCH] 充电桩bug修改 --- ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/SiteServiceImpl.java | 100 +++++++++++++++++++++++++------------------------- 1 files changed, 50 insertions(+), 50 deletions(-) diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/SiteServiceImpl.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/SiteServiceImpl.java index 7d58d32..3f991b8 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/SiteServiceImpl.java +++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/SiteServiceImpl.java @@ -280,56 +280,56 @@ if(null == site.getSort()){ return AjaxResult.error("排序不能为空"); } - if(StringUtils.isEmpty(site.getAreaCodeCountryside())){ - return AjaxResult.error("充换电站所在县以下行政区划代码不能为空"); - } - if(null == site.getStationClassification()){ - return AjaxResult.error("请选择站点分类"); - } - if(null == site.getGeneralApplicationType()){ - return AjaxResult.error("请选择通用类型"); - } - if(null == site.getParkType()){ - return AjaxResult.error("请选择停车费类型"); - } - if(null == site.getRoundTheClock()){ - return AjaxResult.error("请选择是否7*24h营业"); - } - if (site.getStationClassification()!=1&& (!org.springframework.util.StringUtils.hasLength(site.getSwapMatchCars()))){ - return AjaxResult.error("服务车型描述不能为空"); - } - if(null == site.getElectricityType()){ - return AjaxResult.error("请选择电费类型"); - } - if(null == site.getBusinessExpandType()){ - return AjaxResult.error("请选择报装类型"); - } - if(null == site.getCapacity()){ - return AjaxResult.error("报装电源容量不能为空"); - } - if(null == site.getRatedPower()){ - return AjaxResult.error("站点额定总功率不能为空"); - } - if(StringUtils.isEmpty(site.getOfficialRunTime())){ - return AjaxResult.error("请选择正式投运时间"); - } - if(null == site.getPeriodFee()){ - return AjaxResult.error("请选择峰谷时分"); - } - if(null == site.getVideoMonitor()){ - return AjaxResult.error("请选择视频监控配套情况"); - } - if(StringUtils.isEmpty(site.getEquipmentOwnerName())){ - return AjaxResult.error("设备所属方名称不能为空"); - } - if(null == site.getSupplyType()){ - return AjaxResult.error("请选择供电类型"); - } - if(site.getSupplyType()==1){ - if (StringUtils.isEmpty(site.getResidentNo())){ - return AjaxResult.error("供电局用户编号不能为空"); - } - } +// if(StringUtils.isEmpty(site.getAreaCodeCountryside())){ +// return AjaxResult.error("充换电站所在县以下行政区划代码不能为空"); +// } +// if(null == site.getStationClassification()){ +// return AjaxResult.error("请选择站点分类"); +// } +// if(null == site.getGeneralApplicationType()){ +// return AjaxResult.error("请选择通用类型"); +// } +// if(null == site.getParkType()){ +// return AjaxResult.error("请选择停车费类型"); +// } +// if(null == site.getRoundTheClock()){ +// return AjaxResult.error("请选择是否7*24h营业"); +// } +// if (site.getStationClassification()!=1&& (!org.springframework.util.StringUtils.hasLength(site.getSwapMatchCars()))){ +// return AjaxResult.error("服务车型描述不能为空"); +// } +// if(null == site.getElectricityType()){ +// return AjaxResult.error("请选择电费类型"); +// } +// if(null == site.getBusinessExpandType()){ +// return AjaxResult.error("请选择报装类型"); +// } +// if(null == site.getCapacity()){ +// return AjaxResult.error("报装电源容量不能为空"); +// } +// if(null == site.getRatedPower()){ +// return AjaxResult.error("站点额定总功率不能为空"); +// } +// if(StringUtils.isEmpty(site.getOfficialRunTime())){ +// return AjaxResult.error("请选择正式投运时间"); +// } +// if(null == site.getPeriodFee()){ +// return AjaxResult.error("请选择峰谷时分"); +// } +// if(null == site.getVideoMonitor()){ +// return AjaxResult.error("请选择视频监控配套情况"); +// } +// if(StringUtils.isEmpty(site.getEquipmentOwnerName())){ +// return AjaxResult.error("设备所属方名称不能为空"); +// } +// if(null == site.getSupplyType()){ +// return AjaxResult.error("请选择供电类型"); +// } +// if(site.getSupplyType()==1){ +// if (StringUtils.isEmpty(site.getResidentNo())){ +// return AjaxResult.error("供电局用户编号不能为空"); +// } +// } return AjaxResult.success(); } -- Gitblit v1.7.1