| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public void updateSort(Integer moveType, Long id) throws HelpClassException {
|
| | | public void updateSort(Integer moveType, Long id, SystemEnum system) throws HelpClassException {
|
| | |
|
| | | if (id == null || moveType == null) {
|
| | | throw new HelpClassException(1, "传递参数不能为空");
|
| | |
| | | throw new HelpClassException(1, "更新数据已不存在");
|
| | | }
|
| | |
|
| | | HelpClass changeObjct = helpClassMapper.getChangeOrder(moveType, helpClass.getSort());
|
| | | HelpClass changeObjct = helpClassMapper.getChangeOrder(moveType, helpClass.getSort(),system);
|
| | |
|
| | | if (changeObjct == null) {
|
| | | throw new HelpClassException(1, "已经是最边缘位置");
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public List<HelpClass> query(int start, int count, String key, Integer state)
|
| | | public List<HelpClass> query(int start, int count, String key, Integer state, SystemEnum system)
|
| | | throws HelpClassException {
|
| | | return helpClassMapper.listQuery(start, count, key, state);
|
| | | return helpClassMapper.listQuery(start, count, key, state,system);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long countQuery(String key, Integer state) {
|
| | | return helpClassMapper.countQuery(key, state);
|
| | | public long countQuery(String key, Integer state, SystemEnum system) {
|
| | | return helpClassMapper.countQuery(key, state,system);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<HelpClass> getClassByState(Integer state) throws HelpClassException {
|
| | | return helpClassMapper.getClassByState(state);
|
| | | public List<HelpClass> getClassByState(Integer state, SystemEnum system) throws HelpClassException {
|
| | | return helpClassMapper.getClassByState(state,system);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<HelpClass> getProvidedClass() throws HelpClassException {
|
| | | return helpClassMapper.getProvidedClass();
|
| | | public List<HelpClass> getProvidedClass(SystemEnum system) throws HelpClassException {
|
| | | return helpClassMapper.getProvidedClass(system);
|
| | | }
|
| | |
|
| | |
|