响应请求没有区域信息

master
382696293@qq.com 2 years ago
parent e0105c6c15
commit be2b7c3480

@ -46,7 +46,7 @@ public class LoginUserVo {
* id * id
*/ */
@Excel(name = "省id") @Excel(name = "省id")
private String provinceId; private Long provinceId;
/** /**
* *
@ -58,7 +58,7 @@ public class LoginUserVo {
* id * id
*/ */
@Excel(name = "市id") @Excel(name = "市id")
private String cityId; private Long cityId;
/** /**
* *
@ -70,7 +70,7 @@ public class LoginUserVo {
* id * id
*/ */
@Excel(name = "区id") @Excel(name = "区id")
private String areaId; private Long areaId;
/** /**
* *
@ -91,7 +91,7 @@ public class LoginUserVo {
public LoginUserVo() { public LoginUserVo() {
} }
public LoginUserVo(Long id, String nickname, String headimg, String username, Integer credit, String mobile, String provinceId, String province, String cityId, String city, String areaId, String area, Date birthday, String token) { public LoginUserVo(Long id, String nickname, String headimg, String username, Integer credit, String mobile, Long provinceId, String province, Long cityId, String city, Long areaId, String area, Date birthday, String token) {
this.id = id; this.id = id;
this.nickname = nickname; this.nickname = nickname;
this.headimg = headimg; this.headimg = headimg;
@ -156,11 +156,11 @@ public class LoginUserVo {
this.mobile = mobile; this.mobile = mobile;
} }
public String getProvinceId() { public Long getProvinceId() {
return provinceId; return provinceId;
} }
public void setProvinceId(String provinceId) { public void setProvinceId(Long provinceId) {
this.provinceId = provinceId; this.provinceId = provinceId;
} }
@ -172,11 +172,11 @@ public class LoginUserVo {
this.province = province; this.province = province;
} }
public String getCityId() { public Long getCityId() {
return cityId; return cityId;
} }
public void setCityId(String cityId) { public void setCityId(Long cityId) {
this.cityId = cityId; this.cityId = cityId;
} }
@ -188,11 +188,11 @@ public class LoginUserVo {
this.city = city; this.city = city;
} }
public String getAreaId() { public Long getAreaId() {
return areaId; return areaId;
} }
public void setAreaId(String areaId) { public void setAreaId(Long areaId) {
this.areaId = areaId; this.areaId = areaId;
} }
@ -219,4 +219,6 @@ public class LoginUserVo {
public void setToken(String token) { public void setToken(String token) {
this.token = token; this.token = token;
} }
} }

@ -21,6 +21,8 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.Map; import java.util.Map;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -122,9 +124,10 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
// TODO 首次完善,增加加分 (未完成) // TODO 首次完善,增加加分 (未完成)
} }
BeanUtils.copyProperties(userMemberUpdateVo, wxUserMember); WxUserMember update = new WxUserMember();
wxUserMember.setUpdateTime(DateUtils.getNowDate()); BeanUtils.copyProperties(userMemberUpdateVo, update);
wxUserMemberMapper.updateWxUserMember(wxUserMember); update.setUpdateTime(DateUtils.getNowDate());
wxUserMemberMapper.updateWxUserMember(update);
// 刷新用户信息 // 刷新用户信息
return refreshWxUserInfo(); return refreshWxUserInfo();
@ -136,6 +139,7 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
* @return * @return
*/ */
@Override @Override
@Transactional(propagation = Propagation.SUPPORTS)
public LoginUserVo refreshWxUserInfo() { public LoginUserVo refreshWxUserInfo() {
// 1、获取用户最新信息 // 1、获取用户最新信息
String openid = SecurityUtils.getLoginUser().getWxUserMember().getOpenid(); String openid = SecurityUtils.getLoginUser().getWxUserMember().getOpenid();

Loading…
Cancel
Save