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