ab6a6b05 by xiaojie

【数据资产】

根据会员guids查询企业信息
1 parent dd9558d6
......@@ -129,6 +129,13 @@ public class EnterpriseController {
enterpriseService.moveOldData(vo);
return CommonRes.success(true);
}
@PostMapping("/list-by-tenant-guids")
@SystemLog(value = "企业信息-根据会员guids查询企业信息")
public CommonRes<List<EnterpriseRSVO>> listByTenantGuids(@RequestBody List<String> guids) {
List<EnterpriseRSVO> vo = enterpriseService.listByTenantGuids(guids);
return CommonRes.success(vo);
}
//endregion
......
......@@ -113,4 +113,11 @@ public interface EnterpriseService {
* @return
*/
JSExchageCommonRes<JSExchagePageListVO<JSEnterpriseRSVO>> enterpriseData(JSBaseRQVO<JSEnterpriseQueryVO> queryVO);
/**
* 根据会员guids查询企业信息
* @param guids
* @return
*/
List<EnterpriseRSVO> listByTenantGuids(List<String> guids);
}
......
......@@ -662,6 +662,21 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
return JSExchageCommonRes.success(pageListVO);
}
@Override
public List<EnterpriseRSVO> listByTenantGuids(List<String> guids) {
if (ObjectUtils.isEmpty(guids)) {
return null;
}
LambdaQueryWrapper<MfEnterprise> queryWrapper = Wrappers.lambdaQuery(MfEnterprise.class);
queryWrapper.in(MfEnterprise::getTenantGuid, guids);
queryWrapper.eq(MfEnterprise::getBizApproveState, "Y");
List<MfEnterprise> mfEnterprises = mfEnterpriseService.list(queryWrapper);
if (ObjectUtils.isEmpty(mfEnterprises)) {
return null;
}
return convertToVO(mfEnterprises);
}
private void afterEnterpriseData(PageListVO<MfEnterprise> enterprisePageListVO, JSExchagePageListVO<JSEnterpriseRSVO> pageListVO) {
pageListVO.setTotal(enterprisePageListVO.getTotalRows().intValue());
List<MfEnterprise> records = enterprisePageListVO.getRecords();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!