【数据资产】
根据会员guids查询企业信息
Showing
3 changed files
with
29 additions
and
0 deletions
| ... | @@ -130,6 +130,13 @@ public class EnterpriseController { | ... | @@ -130,6 +130,13 @@ public class EnterpriseController { |
| 130 | return CommonRes.success(true); | 130 | return CommonRes.success(true); |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | @PostMapping("/list-by-tenant-guids") | ||
| 134 | @SystemLog(value = "企业信息-根据会员guids查询企业信息") | ||
| 135 | public CommonRes<List<EnterpriseRSVO>> listByTenantGuids(@RequestBody List<String> guids) { | ||
| 136 | List<EnterpriseRSVO> vo = enterpriseService.listByTenantGuids(guids); | ||
| 137 | return CommonRes.success(vo); | ||
| 138 | } | ||
| 139 | |||
| 133 | //endregion | 140 | //endregion |
| 134 | 141 | ||
| 135 | //region 变更申请 | 142 | //region 变更申请 | ... | ... |
| ... | @@ -113,4 +113,11 @@ public interface EnterpriseService { | ... | @@ -113,4 +113,11 @@ public interface EnterpriseService { |
| 113 | * @return | 113 | * @return |
| 114 | */ | 114 | */ |
| 115 | JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> enterpriseData(JSBaseRQVO<JSEnterpriseQueryVO> queryVO); | 115 | JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> enterpriseData(JSBaseRQVO<JSEnterpriseQueryVO> queryVO); |
| 116 | |||
| 117 | /** | ||
| 118 | * 根据会员guids查询企业信息 | ||
| 119 | * @param guids | ||
| 120 | * @return | ||
| 121 | */ | ||
| 122 | List<EnterpriseRSVO> listByTenantGuids(List<String> guids); | ||
| 116 | } | 123 | } | ... | ... |
| ... | @@ -662,6 +662,21 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -662,6 +662,21 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
| 662 | return JSExchageCommonRes.success(pageListVO); | 662 | return JSExchageCommonRes.success(pageListVO); |
| 663 | } | 663 | } |
| 664 | 664 | ||
| 665 | @Override | ||
| 666 | public List<EnterpriseRSVO> listByTenantGuids(List<String> guids) { | ||
| 667 | if (ObjectUtils.isEmpty(guids)) { | ||
| 668 | return null; | ||
| 669 | } | ||
| 670 | LambdaQueryWrapper<MfEnterprise> queryWrapper = Wrappers.lambdaQuery(MfEnterprise.class); | ||
| 671 | queryWrapper.in(MfEnterprise::getTenantGuid, guids); | ||
| 672 | queryWrapper.eq(MfEnterprise::getBizApproveState, "Y"); | ||
| 673 | List<MfEnterprise> mfEnterprises = mfEnterpriseService.list(queryWrapper); | ||
| 674 | if (ObjectUtils.isEmpty(mfEnterprises)) { | ||
| 675 | return null; | ||
| 676 | } | ||
| 677 | return convertToVO(mfEnterprises); | ||
| 678 | } | ||
| 679 | |||
| 665 | private void afterEnterpriseData(PageListVO<MfEnterprise> enterprisePageListVO, JSExchagePageListVO<JSEnterpriseRSVO> pageListVO) { | 680 | private void afterEnterpriseData(PageListVO<MfEnterprise> enterprisePageListVO, JSExchagePageListVO<JSEnterpriseRSVO> pageListVO) { |
| 666 | pageListVO.setTotal(enterprisePageListVO.getTotalRows().intValue()); | 681 | pageListVO.setTotal(enterprisePageListVO.getTotalRows().intValue()); |
| 667 | List<MfEnterprise> records = enterprisePageListVO.getRecords(); | 682 | List<MfEnterprise> records = enterprisePageListVO.getRecords(); | ... | ... |
-
Please register or sign in to post a comment