Browse Source

获取负责人管理巴列表

anderx 3 years ago
parent
commit
c8d24e0452

+ 11 - 0
src/main/java/com/goafanti/ambSystem/controller/AmbApiController.java

@@ -119,4 +119,15 @@ public class AmbApiController extends CertifyApiController {
 		return res;
 	}
 
+	/**
+	 * 下拉把列表
+	 * @return
+	 */
+	@RequestMapping(value="/getMyambDtails",method = RequestMethod.GET)
+	public Result getMyambDtails( ){
+		Result res =new Result();
+		res.data(ambService.getMyambDtails());
+		return res;
+	}
+
 }

+ 1 - 1
src/main/java/com/goafanti/ambSystem/service/AmbService.java

@@ -29,5 +29,5 @@ public interface AmbService {
     Object detailsAmb(InputAmb in);
 
 
-
+    Object getMyambDtails();
 }

+ 6 - 6
src/main/java/com/goafanti/ambSystem/service/Impl/AmbServiceImpl.java

@@ -2,7 +2,6 @@ package com.goafanti.ambSystem.service.Impl;
 
 import com.goafanti.ambSystem.bo.AmbAll;
 import com.goafanti.ambSystem.bo.InputAmb;
-import com.goafanti.ambSystem.bo.InputAmbInvest;
 import com.goafanti.ambSystem.bo.OutAmb;
 import com.goafanti.ambSystem.service.AmbService;
 import com.goafanti.common.dao.AdminMapper;
@@ -11,8 +10,6 @@ import com.goafanti.common.dao.AmbInvestMapper;
 import com.goafanti.common.dao.AmbSystemMapper;
 import com.goafanti.common.error.BusinessException;
 import com.goafanti.common.model.Admin;
-import com.goafanti.common.model.AmbInvest;
-import com.goafanti.common.model.AmbInvestLog;
 import com.goafanti.common.model.AmbSystem;
 import com.goafanti.common.utils.StringUtils;
 import com.goafanti.core.mybatis.BaseMybatisDao;
@@ -21,9 +18,7 @@ import com.goafanti.core.shiro.token.TokenManager;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
 
-import java.math.BigDecimal;
 import java.util.*;
 
 @Service
@@ -181,6 +176,7 @@ public class AmbServiceImpl extends BaseMybatisDao<AmbSystemMapper> implements A
 
 
 
+
     private void pushLvl(AmbAll a , List<AmbAll> list) {
         if (a.getLvl()<7){
             List<AmbAll> all=new ArrayList<>();
@@ -216,6 +212,10 @@ public class AmbServiceImpl extends BaseMybatisDao<AmbSystemMapper> implements A
         return str;
     }
 
-
+    @Override
+    public Object getMyambDtails() {
+        List<AmbSystem> ambSystems = ambSystemMapper.selectByParameter(new AmbSystem(TokenManager.getAdminId()));
+        return ambSystems;
+    }
 
 }

+ 1 - 0
src/main/java/com/goafanti/core/shiro/token/TokenManager.java

@@ -2,6 +2,7 @@ package com.goafanti.core.shiro.token;
 
 import java.util.UUID;
 
+import com.goafanti.common.model.AmbSystem;
 import org.apache.shiro.SecurityUtils;
 import org.apache.shiro.session.Session;