配置界面的Cfg Id检索条件 增加范围和in的检索方式的功能修改
This commit is contained in:
@@ -88,29 +88,6 @@ public class AppCfgService extends BaseService {
|
||||
protected AsnIpCfgDao asnIpCfgDao;
|
||||
|
||||
public Page<AppPolicyCfg> findAppPolicyList(Page<AppPolicyCfg> page, AppPolicyCfg entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||
entity.setPage(page);
|
||||
List<AppPolicyCfg> list = appCfgDao.findAppPolicyList(entity);
|
||||
@@ -125,29 +102,6 @@ public class AppCfgService extends BaseService {
|
||||
|
||||
|
||||
public Page<AppIpCfg> findAppIpList(Page<AppIpCfg> page, AppIpCfg entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||
entity.setPage(page);
|
||||
List<AppIpCfg> list = appCfgDao.findAppIpList(entity);
|
||||
@@ -178,29 +132,6 @@ public class AppCfgService extends BaseService {
|
||||
}
|
||||
|
||||
public Page<AppDomainCfg> findAppDomainList(Page<AppDomainCfg> page, AppDomainCfg entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||
entity.setPage(page);
|
||||
List<AppDomainCfg> list = appCfgDao.findAppDomainList(entity);
|
||||
@@ -225,29 +156,6 @@ public class AppCfgService extends BaseService {
|
||||
|
||||
// 主题网站列表
|
||||
public Page<AppTopicDomainCfg> findAppTopicDomainList(Page<AppTopicDomainCfg> page, AppTopicDomainCfg entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||
entity.setPage(page);
|
||||
List<AppTopicDomainCfg> list = appCfgDao.findAppTopicDomainList(entity);
|
||||
@@ -272,29 +180,6 @@ public class AppCfgService extends BaseService {
|
||||
}
|
||||
|
||||
public Page<AppSslCertCfg> findAppSslList(Page<AppSslCertCfg> page, AppSslCertCfg entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||
entity.setPage(page);
|
||||
List<AppSslCertCfg> list = appCfgDao.findAppSslList(entity);
|
||||
|
||||
@@ -58,29 +58,6 @@ public class AppMultiFeatureCfgService extends BaseService {
|
||||
|
||||
//分页查询
|
||||
public Page<AppFeatureIndex> findAppFeatureIndexList(Page<AppFeatureIndex> page, AppFeatureIndex entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(), "r"));
|
||||
entity.setPage(page);
|
||||
List<AppFeatureIndex> list = appMultiFeatureCfgDao.findAppFeatureIndexList(entity);
|
||||
|
||||
@@ -59,29 +59,6 @@ public class AvCfgService extends BaseService{
|
||||
return avCfgDao.getAvSignSampleById(cfgId);
|
||||
}
|
||||
public Page<AvFileSampleCfg> getAvFileSampleList(Page<AvFileSampleCfg> page, AvFileSampleCfg entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
|
||||
@@ -72,29 +72,6 @@ public class AvContentCfgService extends BaseService{
|
||||
* @return
|
||||
*/
|
||||
public Page<CfgIndexInfo> findPage(Page<CfgIndexInfo> page, CfgIndexInfo entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"r"));
|
||||
entity.setPage(page);
|
||||
List<CfgIndexInfo> list=avContentCfgDao.findVoipList(entity);
|
||||
|
||||
@@ -64,29 +64,6 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
||||
return entity;
|
||||
}
|
||||
public Page<CfgIndexInfo> getBgpList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
|
||||
@@ -73,29 +73,6 @@ public class CachePolicyService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
|
||||
}
|
||||
|
||||
public Page<CachePolicyUserRegion> getCachePolicyUserRegionList(Page<CachePolicyUserRegion> page, CachePolicyUserRegion entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
List<CachePolicyUserRegion> list = commonPolicyDao.getCachePolicyUserRegionList(entity);
|
||||
@@ -177,29 +154,6 @@ public class CachePolicyService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
|
||||
}
|
||||
|
||||
public Page<CfgIndexInfo> getCachePolicyList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
|
||||
@@ -661,29 +661,6 @@ public class DomainService extends CrudService<DomainDao,HttpUrlCfg> {
|
||||
}
|
||||
}
|
||||
public Page<CfgIndexInfo> getDomainList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
|
||||
@@ -66,29 +66,6 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
||||
protected StringCfgDao stringCfgDao;
|
||||
|
||||
public Page<CfgIndexInfo> getFtpList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
@@ -416,29 +393,6 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
||||
}
|
||||
|
||||
public Page<FileDigestCfg> getFileDigestList(Page<FileDigestCfg> page, FileDigestCfg entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
@@ -723,29 +677,6 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
|
||||
}
|
||||
|
||||
public Page<CfgIndexInfo> getP2pList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
|
||||
@@ -101,29 +101,6 @@ public class HttpRedirectCfgService extends CrudService<WebsiteCfgDao,CfgIndexIn
|
||||
}
|
||||
|
||||
public Page<CfgIndexInfo> getHttpRedirectList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
|
||||
@@ -1001,29 +1001,6 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
||||
return msgProp;
|
||||
}
|
||||
public Page<CfgIndexInfo> getIpCfgList(Page<CfgIndexInfo> page, CfgIndexInfo entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
List<CfgIndexInfo> list = ipCfgDao.getIpCfgList(entity);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.nis.web.service.configuration;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -24,7 +23,6 @@ import com.nis.domain.maat.ToMaatResult;
|
||||
import com.nis.exceptions.MaatConvertException;
|
||||
import com.nis.util.ConfigServiceUtil;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.util.StringUtil;
|
||||
import com.nis.util.StringUtils;
|
||||
import com.nis.web.dao.configuration.IpMultiplexDao;
|
||||
import com.nis.web.security.UserUtils;
|
||||
@@ -39,29 +37,6 @@ public class IpMultiplexService extends BaseService{
|
||||
private IpMultiplexDao ipMultiplexDao;
|
||||
|
||||
public Page<IpReusePolicyCfg> findPage(Page<IpReusePolicyCfg> page, IpReusePolicyCfg entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"r"));
|
||||
entity.setPage(page);
|
||||
List<IpReusePolicyCfg> list=ipMultiplexDao.findPage(entity);
|
||||
@@ -308,29 +283,6 @@ public class IpMultiplexService extends BaseService{
|
||||
}
|
||||
|
||||
public Page<BaseIpCfg> findPageDnat(Page<BaseIpCfg> page, IpReuseDnatPolicyCfg entity) {
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
List<BaseIpCfg> list=ipMultiplexDao.findPageDnat(entity);
|
||||
|
||||
@@ -37,7 +37,6 @@ import com.nis.util.ConfigServiceUtil;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.util.FileUtils;
|
||||
import com.nis.util.JsonMapper;
|
||||
import com.nis.util.StringUtil;
|
||||
import com.nis.web.dao.configuration.AreaIpCfgDao;
|
||||
import com.nis.web.dao.configuration.MailCfgDao;
|
||||
import com.nis.web.dao.configuration.StringCfgDao;
|
||||
@@ -60,29 +59,6 @@ public class MailCfgService extends CrudService<MailCfgDao,CfgIndexInfo> {
|
||||
|
||||
|
||||
public Page<CfgIndexInfo> getMailList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
|
||||
@@ -12,7 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.SysUser;
|
||||
import com.nis.domain.configuration.AreaIpCfg;
|
||||
import com.nis.domain.configuration.BaseStringCfg;
|
||||
import com.nis.domain.configuration.CfgIndexInfo;
|
||||
@@ -166,29 +165,6 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
|
||||
return entity;
|
||||
}
|
||||
public Page<CfgIndexInfo> getWebsiteList(Page<CfgIndexInfo> page, CfgIndexInfo entity){
|
||||
//配置ID 查询条件 查询范围的处理
|
||||
String compileIdNew =entity.getCompileIdNew();
|
||||
if(!StringUtil.isEmpty(compileIdNew)){
|
||||
if(compileIdNew.indexOf("-")!=-1){//包含
|
||||
String[] split = compileIdNew.split("-");
|
||||
if(Integer.parseInt(split[0]) < Integer.parseInt(split[1])){
|
||||
entity.setCompileIdStart(Integer.parseInt(split[0]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[1]));
|
||||
}else{
|
||||
entity.setCompileIdStart(Integer.parseInt(split[1]));
|
||||
entity.setCompileIdEnd(Integer.parseInt(split[0]));
|
||||
}
|
||||
}else if(compileIdNew.indexOf(",")!=-1){
|
||||
String[] split = compileIdNew.split(",");
|
||||
List<String> idList=new ArrayList<String>();
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
idList.add(split[i]);
|
||||
}
|
||||
entity.setCompileIdNewList(idList);
|
||||
}else{
|
||||
entity.setCompileId(Integer.parseInt(compileIdNew));
|
||||
}
|
||||
}
|
||||
// 生成数据权限过滤条件(dsf为dataScopeFilter的简写,在xml中使用 ${sqlMap.dsf}调用权限SQL)
|
||||
entity.getSqlMap().put("dsf", configScopeFilter(entity.getCurrentUser(),"a"));
|
||||
entity.setPage(page);
|
||||
|
||||
Reference in New Issue
Block a user