lin 4 роки тому
батько
коміт
178e19359a

+ 3 - 2
smart-city-platform/src/main/java/com/bz/smart_city/service/impl/assistant/InstallManagerServiceImpl.java

@@ -990,8 +990,9 @@ public class InstallManagerServiceImpl implements InstallManagerService, Initial
 	 * @return
 	 */
 	protected boolean validateDeviceNoUnique(Long deviceId, String deviceNo, Integer mode) {
-		//Device existed = findDeviceByDeviceNo(deviceNo);
-
+        if(StringUtils.equals("",deviceNo)){
+            return true;
+        }
 		if(mode == 1) {
 			if(deviceMapper.findByDeviceNoUnique(null,deviceNo)>0)
 				throw new ServiceException(ResultStatus.DEVICE_NO_IS_EXISTED);