Commit 1abda1a0 by 徐高华

log

parent 0d05a335
...@@ -51,7 +51,7 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService { ...@@ -51,7 +51,7 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService {
private MemberTagApiService memberTagApiService; private MemberTagApiService memberTagApiService;
public void save(WxUserAddLogQDTO qdto) { public void save(WxUserAddLogQDTO qdto) {
log.info("保存用户信息={}",JSON.toJSON(qdto)); log.info("保存用户信息-add={}",JSON.toJSON(qdto));
String externalUserid = qdto.getExternalUserid(); String externalUserid = qdto.getExternalUserid();
String wxUserId = qdto.getWxUserId(); String wxUserId = qdto.getWxUserId();
TabWxUserAddLog entity = new TabWxUserAddLog(); TabWxUserAddLog entity = new TabWxUserAddLog();
...@@ -117,6 +117,7 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService { ...@@ -117,6 +117,7 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService {
@Override @Override
public void updateMemberInfo(String wxEnterpriseId, String enterpriseId, String staffId, String externalUserid, public void updateMemberInfo(String wxEnterpriseId, String enterpriseId, String staffId, String externalUserid,
String memberId) { String memberId) {
log.info("保存用户信息-update={}",memberId);
if (StringUtils.isNotBlank(memberId)) { if (StringUtils.isNotBlank(memberId)) {
TabWxUserAddLog entity = new TabWxUserAddLog(); TabWxUserAddLog entity = new TabWxUserAddLog();
entity = this.addMemberInfo(enterpriseId, memberId, entity); entity = this.addMemberInfo(enterpriseId, memberId, entity);
...@@ -124,10 +125,8 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService { ...@@ -124,10 +125,8 @@ public class WxUserAddLogServiceImpl implements WxUserAddLogService {
entity.setWxEnterpriseId(wxEnterpriseId); entity.setWxEnterpriseId(wxEnterpriseId);
entity.setExternalUserid(externalUserid); entity.setExternalUserid(externalUserid);
entity.setStaffId(staffId); entity.setStaffId(staffId);
if (null != entity) { entity.setCreateTime(new Date());
entity.setCreateTime(new Date()); this.wxUserAddLogMapper.updateMemberInfo(entity);
this.wxUserAddLogMapper.updateMemberInfo(entity);
}
} }
} }
......
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