|
@@ -15,6 +15,7 @@ import com.mooctest.crowd.site.data.vo.AgencyVO;
|
|
|
import com.mooctest.crowd.site.data.vo.EvolutionAgencyVO;
|
|
import com.mooctest.crowd.site.data.vo.EvolutionAgencyVO;
|
|
|
import com.mooctest.crowd.site.data.vo.SearchConditionVO;
|
|
import com.mooctest.crowd.site.data.vo.SearchConditionVO;
|
|
|
import com.mooctest.crowd.site.service.AgencyService;
|
|
import com.mooctest.crowd.site.service.AgencyService;
|
|
|
|
|
+import com.mooctest.crowd.site.service.ResidentAgencyService;
|
|
|
import com.mooctest.crowd.site.util.DataUtils;
|
|
import com.mooctest.crowd.site.util.DataUtils;
|
|
|
import lombok.extern.java.Log;
|
|
import lombok.extern.java.Log;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -39,6 +40,8 @@ public class AgencyController extends BaseSearchController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private AgencyService agencyService;
|
|
private AgencyService agencyService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ResidentAgencyService residentAgencyService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 绿色通道:未登录情况直接录入认证信息,生成用户和评测机构信息
|
|
* 绿色通道:未登录情况直接录入认证信息,生成用户和评测机构信息
|
|
@@ -148,7 +151,7 @@ public class AgencyController extends BaseSearchController {
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/agency/list/more", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/agency/list/more", method = RequestMethod.GET)
|
|
|
- public ResponseVO getMoreAgencyList(@RequestBody SearchConditionVO searchConditionVO) {
|
|
|
|
|
|
|
+ public ResponseVO getMoreAgencyList(@RequestBody SearchConditionVO searchConditionVO){
|
|
|
Pageable pageable = this.getPageable(searchConditionVO);
|
|
Pageable pageable = this.getPageable(searchConditionVO);
|
|
|
List<EvolutionAgencyVO> list = agencyService.findMoreAgencyVO();
|
|
List<EvolutionAgencyVO> list = agencyService.findMoreAgencyVO();
|
|
|
Page<EvolutionAgencyVO> page = DataUtils.listToPage(list, pageable);
|
|
Page<EvolutionAgencyVO> page = DataUtils.listToPage(list, pageable);
|
|
@@ -156,8 +159,19 @@ public class AgencyController extends BaseSearchController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @RequestMapping(value = "resident/agency/more",method = RequestMethod.GET)
|
|
|
|
|
+ public ResponseVO getMoreResidentList(@RequestBody SearchConditionVO searchConditionVO){
|
|
|
|
|
+ Pageable pageable=this.getPageable(searchConditionVO);
|
|
|
|
|
+ return new ResponseVO(ServerCode.SUCCESS,residentAgencyService.findAll(pageable));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
- public Page<?> search(String searchCondition) {
|
|
|
|
|
|
|
+ public Page<?> search(String searchCondition){
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|