| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.moral.common.bean.PageBean; |
| | |
| | | private RoleMenuMapper roleMenuMapper; |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void addOrModify(RoleMenu roleMenu) { |
| | | try { |
| | | if (roleMenu.getId() != null) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void deleteByIds(Integer... ids) { |
| | | if (ids != null && ids.length > 0) { |
| | | if (ids.length == 1) { |
| | |
| | | example.or().andIn("id", Arrays.asList(ids)); |
| | | roleMenuMapper.deleteByExample(example); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |