|
|
@ -1,7 +1,6 @@ |
|
|
|
package com.epmet.controller.yantai; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.CustomerStaffInfoDTOCache; |
|
|
@ -11,7 +10,6 @@ import com.epmet.commons.tools.utils.api.yt.UserData; |
|
|
|
import com.epmet.commons.tools.utils.api.yt.YantaiApi; |
|
|
|
import com.epmet.dao.yantai.DataSyncOrgDataDao; |
|
|
|
import com.epmet.dao.yantai.DataSyncUserDataDao; |
|
|
|
import com.epmet.dto.CustomerStaffDTO; |
|
|
|
import com.epmet.dto.form.yantai.YtUserPageFormDTO; |
|
|
|
import com.epmet.dto.result.yantai.DataSyncOrgDataDTO; |
|
|
|
import com.epmet.dto.result.yantai.YtUserPageResDTO; |
|
|
@ -64,7 +62,7 @@ public class DataSyncUserAndOrgServiceImpl implements DataSyncUserAndOrgService |
|
|
|
public Boolean yanTaiSyncUser(String organizationId) { |
|
|
|
String customerId = YT_CUSTOMER_ID; |
|
|
|
// 先删除 旧数据
|
|
|
|
Integer delSize = NumConstant.ZERO; |
|
|
|
Integer delSize = null; |
|
|
|
do { |
|
|
|
delSize = dataSyncUserDataService.deleteByCustomerId(customerId); |
|
|
|
}while (null != delSize && delSize == NumConstant.ONE_THOUSAND); |
|
|
@ -92,7 +90,6 @@ public class DataSyncUserAndOrgServiceImpl implements DataSyncUserAndOrgService |
|
|
|
entity.setStatus(NumConstant.ZERO_STR); |
|
|
|
entity.setStaffId(""); |
|
|
|
}else { |
|
|
|
CustomerStaffInfoCacheResult staffInfo1 = CustomerStaffRedis.getStaffInfo(customerId, staffInfo.getUserId()); |
|
|
|
entity.setStatus(NumConstant.ONE_STR); |
|
|
|
entity.setStaffId(staffInfo.getUserId()); |
|
|
|
} |
|
|
@ -112,7 +109,7 @@ public class DataSyncUserAndOrgServiceImpl implements DataSyncUserAndOrgService |
|
|
|
@Override |
|
|
|
public Boolean yanTaiSyncOrg(String organizationId) { |
|
|
|
// 先删除 旧数据
|
|
|
|
Integer delSize = NumConstant.ZERO; |
|
|
|
Integer delSize = null; |
|
|
|
do { |
|
|
|
delSize = dataSyncOrgDataService.deleteByCustomerId(YT_CUSTOMER_ID); |
|
|
|
}while (null != delSize && delSize == NumConstant.ONE_THOUSAND); |
|
|
|