|
|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.iformall.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
@@ -87,7 +88,12 @@ public class MallCooUserInfoServiceImpl implements MallCooUserInfoService { |
|
|
|
mallCooUserInfo.setUserName(basicInfo.getName()); |
|
|
|
mallCooUserInfo.setBirthdate(basicInfo.getBirthdate()); |
|
|
|
mallCooUserInfo.setGender(basicInfo.getSex()); |
|
|
|
mallCooUserInfo.setAddress(basicInfo.getAddress()); |
|
|
|
if(StringUtils.isNotBlank(basicInfo.getAddress())){ |
|
|
|
try{ |
|
|
|
JSONObject addressObject = JSONObject.parseObject(basicInfo.getAddress()); |
|
|
|
mallCooUserInfo.setAddress(addressObject.getString("address")); |
|
|
|
}catch(Exception e){} |
|
|
|
} |
|
|
|
mallCooUserInfo.setUpdateDate(new Date()); |
|
|
|
mallCooUserInfoMapper.updateById(mallCooUserInfo); |
|
|
|
} |
|
|
|
|