コード例 #1
0
 @Override
 @Transactional
 @Secured({"ROLE_SAVE"})
 @LogWrite(modelName = "角色修改", option = "update")
 public int updateByPrimaryKey(Role record) {
   return roleMapper.updateByPrimaryKey(record);
 }
コード例 #2
0
 @Override
 @Transactional
 @Secured({"ROLE_SAVE"})
 @LogWrite(modelName = "角色保存", option = "save")
 public int insertSelective(Role record) {
   return roleMapper.insertSelective(record);
 }
コード例 #3
0
 @Override
 @Transactional
 @Secured({"ROLE_DEL"})
 @LogWrite(modelName = "角色删除", option = "delete")
 public int deleteByPrimaryKey(Long id) {
   return roleMapper.deleteByPrimaryKey(id);
 }
コード例 #4
0
 @Override
 @Secured({"ROLE_LIST"})
 public List<Role> selectListPage(List<String> roleNames, PageInfo pageInfo) {
   return roleMapper.selectListPage(roleNames, pageInfo);
 }
コード例 #5
0
 @Override
 public Role selectByPrimaryKey(Long id) {
   return roleMapper.selectByPrimaryKey(id);
 }