From dc5be7d38446f70e6ff86df311119c32b41fe7f8 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 28 十一月 2020 16:37:05 +0800
Subject: [PATCH] 大淘客搜索接口升级

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/help/HelpClassServiceImpl.java |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/help/HelpClassServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/help/HelpClassServiceImpl.java
index 24dafdd..d32114c 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/help/HelpClassServiceImpl.java
+++ b/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);
 	}
 	
 	

--
Gitblit v1.8.0