|
@@ -2,6 +2,7 @@ package com.dragoninfo.dcuc.authweb.restcontroller.auth;
|
|
|
|
|
|
import com.dragoninfo.dcuc.app.facade.IResourceFacade;
|
|
|
import com.dragoninfo.dcuc.auth.auth.dto.ServiceAuthFlowDTO;
|
|
|
+import com.dragoninfo.dcuc.auth.auth.facade.IServiceAuthFacade;
|
|
|
import com.dragoninfo.dcuc.auth.power.facade.IAppFunInfoFacade;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.auth.vo.ServiceAuthVo;
|
|
|
import com.dragoninfo.duceap.core.response.Result;
|
|
@@ -29,36 +30,27 @@ import java.util.List;
|
|
|
public class ServiceAuthController {
|
|
|
|
|
|
@Autowired
|
|
|
- private IResourceFacade resourceFacade;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private IAppFunInfoFacade appFunFacade;
|
|
|
-
|
|
|
-// @ApiOperation(value = "服务授权列表")
|
|
|
-// @ApiImplicitParam(name = "searchDTO", value = "查询条件")
|
|
|
-// @PostMapping(value = "search")
|
|
|
-// public Result page(SearchDTO searchDTO){
|
|
|
-// Page<ServiceAuthFlowDTO> serviceAuthFlowDTOS = resourceFacade.serviceAuthFlowPage(searchDTO);
|
|
|
-// List<ServiceAuthVo> vos=new ArrayList<>();
|
|
|
-// serviceAuthFlowDTOS.getContent().forEach(item->{
|
|
|
-// ServiceAuthVo vo=new ServiceAuthVo();
|
|
|
-// vo.setApplicantName(item.getApplicantName());
|
|
|
-// vo.setAppName(item.getAppName());
|
|
|
-// vo.setApprovalOrgName(item.getApprovalOrgName());
|
|
|
-// vo.setOrderNo(item.getOrderNo());
|
|
|
-// if (StringUtils.isNotEmpty(item.getServiceCodes())){
|
|
|
-// String[] serviceCodes = item.getServiceCodes().split(",");
|
|
|
-// for (String serviceCode : serviceCodes) {
|
|
|
-//
|
|
|
-// }
|
|
|
-// // appFunFacade.getByAppAndFuncCode()
|
|
|
-// }
|
|
|
-// vo.setServiceCodes(item.getServiceCodes());
|
|
|
-// vo.setApplyTime(item.getApplyTime());
|
|
|
-// vos.add(vo);
|
|
|
-// });
|
|
|
-// return Result.success(serviceAuthFlowDTOS.getTotalElements(),vos);
|
|
|
-// }
|
|
|
+ private IServiceAuthFacade serviceAuthFacade;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "服务授权列表")
|
|
|
+ @ApiImplicitParam(name = "searchDTO", value = "查询条件")
|
|
|
+ @PostMapping(value = "search")
|
|
|
+ public Result page(SearchDTO searchDTO){
|
|
|
+ Page<ServiceAuthFlowDTO> serviceAuthFlowDTOS = serviceAuthFacade.serviceAuthFlowPage(searchDTO);
|
|
|
+ List<ServiceAuthVo> vos=new ArrayList<>();
|
|
|
+ serviceAuthFlowDTOS.getContent().forEach(item->{
|
|
|
+ ServiceAuthVo vo=new ServiceAuthVo();
|
|
|
+ vo.setApplicantName(item.getApplicantName());
|
|
|
+ vo.setAppName(item.getAppName());
|
|
|
+ vo.setApprovalOrgName(item.getApplicantOrgName());
|
|
|
+ vo.setOrderNo(item.getDesc());
|
|
|
+ vo.setServiceCodes(item.getServiceCodes());
|
|
|
+ vo.setApplyTime(item.getApplyTime());
|
|
|
+ vos.add(vo);
|
|
|
+ });
|
|
|
+ return Result.success(serviceAuthFlowDTOS.getTotalElements(),vos);
|
|
|
+ }
|
|
|
}
|