|
|
@@ -479,11 +479,12 @@ public class CardInfoServiceImpl extends SuperService implements CardInfoService
|
|
|
//----------------------------园区卡片操作 start ------------------------
|
|
|
|
|
|
public ResultContent<Page<CardInfoPoolModel>> page(CardInfoSearch param, Pageable pageable) {
|
|
|
+ checkParamOid(param);
|
|
|
initOidSearchParam(param);
|
|
|
String oid = param.getOid();
|
|
|
OidAboutInfo aboutInfo = organizationService.getOidAboutOrgInfo(oid);
|
|
|
param.setProjectOid(aboutInfo.getProjectOid());
|
|
|
- param.setSchoolOid(aboutInfo.getSchoolOid());
|
|
|
+
|
|
|
Page<CardInfo> page = cardInfoDao.page(pageable, param);
|
|
|
return ResultContent.buildSuccess(PageEntityUtil.concurrent2PageModel(page, this::toOrgModel));
|
|
|
}
|
|
|
@@ -618,9 +619,8 @@ public class CardInfoServiceImpl extends SuperService implements CardInfoService
|
|
|
if (ObjectUtils.isNotEmpty(entity)) {
|
|
|
model = new CardInfoModel();
|
|
|
BeanUtils.copyProperties(entity, model);
|
|
|
-
|
|
|
// 机构用户信息
|
|
|
- OrganizationUserModel organizationUser = userAccountService.getOrgUserDetail(entity.getSchoolOid(), entity.getUserId());
|
|
|
+ OrganizationUserModel organizationUser = userAccountService.getOrgUserDetail(entity.getOid(), entity.getUserId(), true);
|
|
|
model.setOrganizationUser(organizationUser);
|
|
|
}
|
|
|
return model;
|