修复缓存策略配置、IP分组管理、DNS分组管理导出黑屏bug
This commit is contained in:
@@ -259,10 +259,12 @@
|
|||||||
, s.name as creator_name
|
, s.name as creator_name
|
||||||
,e.name as editor_name
|
,e.name as editor_name
|
||||||
</trim>
|
</trim>
|
||||||
FROM policy_group_info r
|
FROM
|
||||||
|
policy_group_info r
|
||||||
left join sys_user s on r.creator_id=s.id
|
left join sys_user s on r.creator_id=s.id
|
||||||
left join sys_user e on r.editor_id=e.id
|
left join sys_user e on r.editor_id=e.id
|
||||||
where r.CFG_ID in (${ids})
|
WHERE
|
||||||
|
r.group_id IN (${ids})
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
<result column="user_region3" property="userRegion3" jdbcType="VARCHAR" />
|
<result column="user_region3" property="userRegion3" jdbcType="VARCHAR" />
|
||||||
<result column="user_region4" property="userRegion4" jdbcType="VARCHAR" />
|
<result column="user_region4" property="userRegion4" jdbcType="VARCHAR" />
|
||||||
<result column="user_region5" property="userRegion5" jdbcType="VARCHAR" />
|
<result column="user_region5" property="userRegion5" jdbcType="VARCHAR" />
|
||||||
<result column="source_compile_id" property="sourceCompileId" jdbcType="INTEGER" />
|
<!-- <result column="source_compile_id" property="sourceCompileId" jdbcType="INTEGER" /> -->
|
||||||
<result column="cancel_request_id" property="cancelRequestId" jdbcType="INTEGER" />
|
<result column="cancel_request_id" property="cancelRequestId" jdbcType="INTEGER" />
|
||||||
<result column="do_blacklist" property="doBlackList" jdbcType="INTEGER" />
|
<result column="do_blacklist" property="doBlackList" jdbcType="INTEGER" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ public class CachePolicyService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
|
|||||||
entity.setPage(page);
|
entity.setPage(page);
|
||||||
List<CachePolicyUserRegion> list = commonPolicyDao.getCachePolicyUserRegionList(entity);
|
List<CachePolicyUserRegion> list = commonPolicyDao.getCachePolicyUserRegionList(entity);
|
||||||
for (CachePolicyUserRegion c : list) {
|
for (CachePolicyUserRegion c : list) {
|
||||||
|
if(!StringUtil.isBlank(c.getUserRegion1())) { // action为缓存白名单时 userRegion1 为null
|
||||||
JSONObject jsonObject=JSONObject.fromObject(c.getUserRegion1());
|
JSONObject jsonObject=JSONObject.fromObject(c.getUserRegion1());
|
||||||
CachePolicyUserRegion stu=(CachePolicyUserRegion)JSONObject.toBean(jsonObject, CachePolicyUserRegion.class);
|
CachePolicyUserRegion stu=(CachePolicyUserRegion)JSONObject.toBean(jsonObject, CachePolicyUserRegion.class);
|
||||||
c.setCache_cookied_cont(stu.getCache_cookied_cont());
|
c.setCache_cookied_cont(stu.getCache_cookied_cont());
|
||||||
@@ -101,6 +102,8 @@ public class CachePolicyService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
@@ -109,6 +112,7 @@ public class CachePolicyService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
|
|||||||
public List<CachePolicyUserRegion> getCachePolicyByUserRegionList(String ids){
|
public List<CachePolicyUserRegion> getCachePolicyByUserRegionList(String ids){
|
||||||
List<CachePolicyUserRegion> list = commonPolicyDao.getCachePolicyByUserRegionList(ids);
|
List<CachePolicyUserRegion> list = commonPolicyDao.getCachePolicyByUserRegionList(ids);
|
||||||
for (CachePolicyUserRegion c : list) {
|
for (CachePolicyUserRegion c : list) {
|
||||||
|
if(!StringUtil.isBlank(c.getUserRegion1())) { // action为缓存白名单时 userRegion1 为null
|
||||||
JSONObject jsonObject=JSONObject.fromObject(c.getUserRegion1());
|
JSONObject jsonObject=JSONObject.fromObject(c.getUserRegion1());
|
||||||
CachePolicyUserRegion stu=(CachePolicyUserRegion)JSONObject.toBean(jsonObject, CachePolicyUserRegion.class);
|
CachePolicyUserRegion stu=(CachePolicyUserRegion)JSONObject.toBean(jsonObject, CachePolicyUserRegion.class);
|
||||||
c.setCache_cookied_cont(stu.getCache_cookied_cont());
|
c.setCache_cookied_cont(stu.getCache_cookied_cont());
|
||||||
@@ -133,6 +137,7 @@ public class CachePolicyService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user