记得上下班打卡 | git大法好,push需谨慎

Commit c80aca7a authored by 张国柄's avatar 张国柄

会员下单预览+地区+身份标识;

parent 592ef47f
......@@ -20,6 +20,8 @@ public class AdamMemberOrderPreviewVo implements Serializable {
private AdamRealInfoVo realInfoVo;
@ApiModelProperty(position = 14, value = "生日")
private String birthday;
@ApiModelProperty(position = 15, value = "常住地/区域[100]", example = "北京 北京市 朝阳区")
private String area;
private static final AdamMemberOrderPreviewVo obj = new AdamMemberOrderPreviewVo();
......
......@@ -60,16 +60,31 @@ public class AdamMemberOrderController {
if (null == memberVo) {
return ResponseDto.failure(ErrorMapping.get("10201"));
}
AdamMemberPriceVo memberPriceVo = adamRdmService.getMemberPriceVoByPriceId(mno, id);
if (null == memberPriceVo) {
return ResponseDto.failure(ErrorMapping.get("10202"));
}
String currentUid = CurrentUtil.getCurrentUid();
AdamMemberOrderPreviewVo previewVo = AdamMemberOrderPreviewVo.getNew();
previewVo.setMemberId(mno);
previewVo.setMemberTitle(memberVo.getTitle());
previewVo.setRealInfoVo(adamRdmService.getRealInfoVoByUid(CurrentUtil.getCurrentUid()));
previewVo.setPriceVo(adamRdmService.getMemberPriceVoByPriceId(mno, id));
previewVo.setRealInfoVo(adamRdmService.getRealInfoVoByUid(currentUid));
previewVo.setPriceVo(memberPriceVo);
AdamUserMemberVo userMemberVo = adamRdmService.getUserMemberVoByUid(currentUid);
if (null == userMemberVo) {
memberVo.setStageMarker(0);
} else if (userMemberVo.isActive()) {
memberVo.setStageMarker(userMemberVo.isOldMember() ? 10 : 11);
} else {
memberVo.setStageMarker(2);
}
AdamUserInfoVo userInfoVo = adamRdmService.getUserInfoVoByUid(CurrentUtil.getCurrentUid());
previewVo.setBirthday(null == userInfoVo ? null : userInfoVo.getBirthday());
AdamUserInfoVo userInfoVo = adamRdmService.getUserInfoVoByUid(currentUid);
previewVo.setBirthday(userInfoVo.getBirthday());
previewVo.setArea(userInfoVo.getArea());
return ResponseDto.success(previewVo);
}
......
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 to comment