Commit 8cdf2ef8 by huangjy

fix:子女端登陆绑定长者逻辑修改

parent 6a8033c9
......@@ -196,10 +196,7 @@ public class PlatElderChildrenInfoServiceImpl extends ServiceImpl<PlatElderChild
List<PlatElderChildrenInfoWechatVO> voList = Lists.newArrayList();
for (PlatElderChildrenInfo platElderChildrenInfo : platElderChildrenInfoList) {
PlatElderChildrenInfoWechatVO vo = BeanDtoVoUtils.convert(platElderChildrenInfo, PlatElderChildrenInfoWechatVO.class);
PlatElder platElder = elderMap.get(platElderChildrenInfo.getElderId());
if (platElder != null) {
vo.setElderName(platElder.getName());
}
vo.setPlatElder(elderMap.getOrDefault(platElderChildrenInfo.getElderId(),new PlatElder()));
voList.add(vo);
}
......
package com.makeit.vo.wechat.elder;
import com.makeit.common.dto.BaseTenantDTO;
import com.makeit.entity.platform.elder.PlatElder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -21,8 +22,8 @@ public class PlatElderChildrenInfoWechatVO extends BaseTenantDTO {
@ApiModelProperty(value = "长者id")
private String elderId;
@ApiModelProperty(value = "长者名称")
private String elderName;
@ApiModelProperty(value = "长者信息")
private PlatElder platElder;
@ApiModelProperty(value = "姓名")
private String name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment