feat(微信用户): 添加汇邦云用户信息字段及绑定逻辑
在WxUserDTO中添加ab98Name和ab98FaceImg字段用于存储汇邦云用户信息 在WxUserApplicationService中实现根据ab98UserId查询并设置汇邦云用户信息
This commit is contained in:
parent
8a02234dcc
commit
4940ebddeb
|
|
@ -35,7 +35,8 @@
|
|||
"Bash(cat \"/e/code/智柜宝/shop-back-end/agileboot-domain/src/main/java/com/agileboot/domain/system/user/dto/UserDTO.java\")",
|
||||
"Bash(cat \"/e/code/智柜宝/shop-back-end/agileboot-domain/src/main/java/com/agileboot/domain/system/user/query/SearchUserQuery.java\")",
|
||||
"Bash(./mvnw clean compile -pl agileboot-api -am -DskipTests)",
|
||||
"Bash(./mvnw clean compile -pl agileboot-api,agileboot-domain -am -DskipTests)"
|
||||
"Bash(./mvnw clean compile -pl agileboot-api,agileboot-domain -am -DskipTests)",
|
||||
"Bash(./mvnw clean compile -pl agileboot-domain -am -DskipTests)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
|
|
|
|||
|
|
@ -215,6 +215,15 @@ public class WxUserApplicationService {
|
|||
userDTO = getUserDetailByOpenid(openid);
|
||||
}
|
||||
|
||||
// 如果该用户绑定了ab98UserId,则查询Ab98User信息并设置到DTO中
|
||||
if (userDTO != null && userDTO.getAb98UserId() != null) {
|
||||
Ab98UserEntity ab98UserEntity = ab98UserService.getById(userDTO.getAb98UserId());
|
||||
if (ab98UserEntity != null) {
|
||||
userDTO.setAb98Name(ab98UserEntity.getName());
|
||||
userDTO.setAb98FaceImg(ab98UserEntity.getFaceImg());
|
||||
}
|
||||
}
|
||||
|
||||
return userDTO;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,4 +68,10 @@ public class WxUserDTO {
|
|||
|
||||
@ExcelColumn(name = "备注")
|
||||
private String remark;
|
||||
|
||||
@ExcelColumn(name = "汇邦云用户名")
|
||||
private String ab98Name;
|
||||
|
||||
@ExcelColumn(name = "汇邦云用户头像")
|
||||
private String ab98FaceImg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue