Browse Source

1, graphql返回数据修改

tags/B.2.6.7_20240112_base
yk 1 year ago
parent
commit
13a23e3dda
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      xueyi-modules/xueyi-system/src/main/java/com/xueyi/system/staff/graphql/VisitorPassRecordsGraphQLQueryResolver.java

+ 2
- 1
xueyi-modules/xueyi-system/src/main/java/com/xueyi/system/staff/graphql/VisitorPassRecordsGraphQLQueryResolver.java View File

@@ -73,8 +73,9 @@ class VisitorPassRecordsGraphQLQueryResolver implements GraphQLQueryResolver {
{ {
DmRecognizedRecordsDto recognizedRecordsDto = converter.mapperDto(t); DmRecognizedRecordsDto recognizedRecordsDto = converter.mapperDto(t);
DmVisitorsPo po = visitorsMapper.selectById(t.getUserId()); DmVisitorsPo po = visitorsMapper.selectById(t.getUserId());
if (null == po) {
if (null != po) {
recognizedRecordsDto.setVisitor(visitorsConverter.mapperDto(po)); recognizedRecordsDto.setVisitor(visitorsConverter.mapperDto(po));
recognizedRecordsDto.setUserName(po.getName());
} }
return recognizedRecordsDto; return recognizedRecordsDto;
}).collect(Collectors.toList()); }).collect(Collectors.toList());


Loading…
Cancel
Save