Commit 75dca69b by 徐高华

Merge branch 'feature/获取用户敏感信息' into 'developer'

log

See merge request !874
parents 29bb8dfd e7c1dd55
...@@ -206,6 +206,7 @@ public class StaffServiceImpl implements StaffService { ...@@ -206,6 +206,7 @@ public class StaffServiceImpl implements StaffService {
if(resp.isSuccess()) { if(resp.isSuccess()) {
AccountListResponseDTO dto = resp.getResult() ; AccountListResponseDTO dto = resp.getResult() ;
List<AccountListDTO> list = dto.getAccountList() ; List<AccountListDTO> list = dto.getAccountList() ;
log.info("查询激活账号,size={},wxeid={}",list.size(),wxEnterpriseId);
this.updateAccount(wxEnterpriseId, list); this.updateAccount(wxEnterpriseId, list);
cursor = dto.getNextCursor() ; cursor = dto.getNextCursor() ;
Integer hasMore = dto.getHasMore() ; Integer hasMore = dto.getHasMore() ;
...@@ -219,12 +220,11 @@ public class StaffServiceImpl implements StaffService { ...@@ -219,12 +220,11 @@ public class StaffServiceImpl implements StaffService {
private void updateAccount(String wxEnterpriseId , List<AccountListDTO> list) { private void updateAccount(String wxEnterpriseId , List<AccountListDTO> list) {
for(AccountListDTO item : list) { for(AccountListDTO item : list) {
String userId = item.getUserid() ; String userId = item.getUserid() ;
String activeCode = item.getActiveCode() ;
Date start = new Date(item.getActiveTime()*1000L) ; Date start = new Date(item.getActiveTime()*1000L) ;
Date end = new Date(item.getExpireTime()*1000L) ; Date end = new Date(item.getExpireTime()*1000L) ;
TabHaobanStaff staff = this.mapper.selectByUserIdAndEnterpriseId(userId, wxEnterpriseId) ; TabHaobanStaff staff = this.mapper.selectByUserIdAndEnterpriseId(userId, wxEnterpriseId) ;
if(null != staff) { if(null != staff) {
this.updateActiveStatusById(staff.getStaffId(), activeCode, start, end, new Date(), 1) ; this.updateActiveStatusById(staff.getStaffId(), start, end, new Date(), 1) ;
}else { }else {
log.info("查询激活账号,用户不存在,userid={}",userId); log.info("查询激活账号,用户不存在,userid={}",userId);
} }
......
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