Stream限速配置导入模板增加'丢包率'属性,修正APP策略配置导入并下发isValid为0(无效)bug

This commit is contained in:
zhangwenqing
2019-03-29 15:12:28 +08:00
parent 5e1095f2bb
commit 91d93e7840
6 changed files with 37 additions and 4 deletions

View File

@@ -2344,7 +2344,8 @@ public abstract class BaseService {
try{
batchSqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false);
for(int index = 0; index < appPolicyCfgs.size();index++){
AppPolicyCfg _cfg = appPolicyCfgs.get(index);
AppPolicyCfg _cfg = new AppPolicyCfg();
BeanUtils.copyProperties(appPolicyCfgs.get(index), _cfg);
((AppCfgDao) batchSqlSession.getMapper(AppCfgDao.class)).insertAppPolicyCfgForBatch(_cfg);
}