数字过滤
This commit is contained in:
parent
f595b2dd68
commit
be81b0bc16
|
|
@ -7,6 +7,7 @@ import java.util.Map;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
import com.ifish.entity.*;
|
import com.ifish.entity.*;
|
||||||
|
import org.apache.commons.lang3.math.NumberUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -238,8 +239,10 @@ public class FactoryAction {
|
||||||
this.adminService.deviceAuthorizeNew(ip,factoryList.getFactoryCode(),deviceIds);
|
this.adminService.deviceAuthorizeNew(ip,factoryList.getFactoryCode(),deviceIds);
|
||||||
}
|
}
|
||||||
for (String dId : deviceIds) {
|
for (String dId : deviceIds) {
|
||||||
int id = Integer.parseInt(dId);
|
if (NumberUtils.isDigits(dId)) {
|
||||||
this.adminService.deviceFenpeiSingleNew(ip,factoryList.getFactoryCode(),id,brandCode,createCode);
|
int id = Integer.parseInt(dId);
|
||||||
|
this.adminService.deviceFenpeiSingleNew(ip,factoryList.getFactoryCode(),id,brandCode,createCode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue