| | |
| | | package com.lf.server.service.data; |
| | | |
| | | import com.lf.server.entity.data.DirEntity; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.mapper.data.DirMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | DirMapper dirMapper; |
| | | |
| | | @Override |
| | | public Integer insertDir(DirEntity dirEntity) { |
| | | return dirMapper.insertDir(dirEntity); |
| | | public Integer insert(DirEntity dirEntity) { |
| | | return dirMapper.insert(dirEntity); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertDirs(List<DirEntity> dirEntity) { |
| | | return dirMapper.insertDirs(dirEntity); |
| | | public Integer inserts(List<DirEntity> dirEntity) { |
| | | return dirMapper.inserts(dirEntity); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateDir(DirEntity dirEntity) { |
| | | return dirMapper.updateDir(dirEntity); |
| | | public Integer update(DirEntity dirEntity) { |
| | | return dirMapper.update(dirEntity); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateDirs(List<DirEntity> dirEntity) { |
| | | return dirMapper.updateDirs(dirEntity); |
| | | public Integer updates(List<DirEntity> dirEntity) { |
| | | return dirMapper.updates(dirEntity); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public DirEntity selectByCode(String code) { |
| | | return dirMapper.selectByCode(code); |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectDirAll() { |
| | | return dirMapper.selectDirAll(); |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectDirRecursive() { |
| | | return dirMapper.selectDirRecursive(); |
| | | public List<DirEntity> selectDirRoot() { |
| | | return dirMapper.selectDirRoot(); |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectProject(String name) { |
| | | name = StringHelper.getLikeUpperStr(name); |
| | | |
| | | return dirMapper.selectProject(name); |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectRecursiveById(Integer id) { |
| | | return dirMapper.selectRecursiveById(id); |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectDirsForPrj() { |
| | | return dirMapper.selectDirsForPrj(); |
| | | } |
| | | } |