1.policy_group_info表sql
2.表名修改命名规范 3.serviceGroupId赋值
This commit is contained in:
@@ -108,6 +108,15 @@ public class PolicyGroupInfoService extends BaseService{
|
||||
// }
|
||||
|
||||
}
|
||||
}else if(11==entity.getGroupType()||12==entity.getGroupType()) {
|
||||
int serviceGroupId=0;
|
||||
List<Integer> groupIds= ConfigServiceUtil.getId(2,1);
|
||||
if(groupIds.size()>0) {
|
||||
serviceGroupId=groupIds.get(0).intValue();
|
||||
}else {
|
||||
throw new MaatConvertException("Get asn group id failed");
|
||||
}
|
||||
entity.setServiceGroupId(serviceGroupId);
|
||||
}
|
||||
policyGroupInfoDao.insert(entity);
|
||||
//修改
|
||||
|
||||
Reference in New Issue
Block a user