admin
2020-07-29 c338aa60df58bee9f4c25afedf94fe6930a119c1
fanli/src/main/java/com/yeshi/fanli/service/impl/help/HelpClassServiceImpl.java
@@ -12,6 +12,7 @@
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;
@@ -174,7 +175,7 @@
   
   
   @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, "传递参数不能为空");
@@ -185,7 +186,7 @@
         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, "已经是最边缘位置");
@@ -237,24 +238,24 @@
   
   
   @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);
   }