|  |  |  | 
|---|
|  |  |  | String num = ele.getAttributeValue("num") ; | 
|---|
|  |  |  | String name = ele.getAttributeValue("name") ; | 
|---|
|  |  |  | String type = ele.getAttributeValue("type") ; | 
|---|
|  |  |  | this.savePrivilege(num, name, type); | 
|---|
|  |  |  | String typeName = ele.getAttributeValue("type_name") ; | 
|---|
|  |  |  | this.savePrivilege(num, name, type,typeName); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param name 名称 | 
|---|
|  |  |  | * @param type 类型 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private void savePrivilege(String num, String name, String type) throws Exception{ | 
|---|
|  |  |  | private void savePrivilege(String num, String name, String type,String typeName) throws Exception{ | 
|---|
|  |  |  | if((num != null && !num.trim().equals("")) && | 
|---|
|  |  |  | (name != null && !name.trim().equals("")) && | 
|---|
|  |  |  | (type != null && !type.trim().equals(""))){ | 
|---|
|  |  |  | 
|---|
|  |  |  | po.num = Integer.parseInt(num) ; | 
|---|
|  |  |  | po.name = name ; | 
|---|
|  |  |  | po.type = Integer.parseInt(type) ; | 
|---|
|  |  |  | po.typeName = typeName ; | 
|---|
|  |  |  | this.privilegeDao.insertSelective(po) ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|