|  |  | 
 |  |  |      * @return 影响记录数量 | 
 |  |  |      */ | 
 |  |  |     @Transactional | 
 |  |  |     public int save(BaUser po){ | 
 |  |  |         return this.dao.putin(po) ; | 
 |  |  |     public Long save(BaUser po){ | 
 |  |  |         //return this.dao.putin(po) ; | 
 |  |  |         this.dao.putin(po) ; | 
 |  |  |         return po.getId(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |      * @return 插入用户与角色关联记录数量 | 
 |  |  |      */ | 
 |  |  |     public int setRoles(Long userId, String[] roleIds) { | 
 |  |  |         this.urDao.deleteByUserId(userId); | 
 |  |  |  | 
 |  |  |         int count = 0; | 
 |  |  |         if (roleIds != null && roleIds.length > 0) { | 
 |  |  |             this.urDao.deleteByUserId(userId); | 
 |  |  |             for (String roleId : roleIds) { | 
 |  |  |                 count += this.urDao.insertSelective(new BaUserRole(userId, Long.parseLong(roleId))); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         return count; | 
 |  |  |         return 1; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** |