|
|
@ -17,6 +17,7 @@ import com.epmet.dao.CustomerStaffAgencyDao; |
|
|
|
import com.epmet.dao.StaffOrgRelationDao; |
|
|
|
import com.epmet.dto.*; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.form.yantai.YtSyncStaffIdFormDTO; |
|
|
|
import com.epmet.dto.result.*; |
|
|
|
import com.epmet.entity.*; |
|
|
|
import com.epmet.feign.*; |
|
|
@ -46,8 +47,6 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
@Autowired |
|
|
|
private EpmetUserFeignClient epmetUserFeignClient; |
|
|
|
@Autowired |
|
|
|
private OperCrmFeignClient operCrmFeignClient; |
|
|
|
@Autowired |
|
|
|
private CustomerAgencyService customerAgencyService; |
|
|
|
@Autowired |
|
|
|
private CustomerStaffAgencyService customerStaffAgencyService; |
|
|
@ -76,11 +75,11 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
@Autowired |
|
|
|
private StaffOrgRelationService staffOrgRelationService; |
|
|
|
@Resource |
|
|
|
private CustomerStaffRedis customerStaffRedis; |
|
|
|
@Resource |
|
|
|
private StaffOrgRelationDao staffOrgRelationDao; |
|
|
|
@Autowired |
|
|
|
private GovAccessFeignClient govAccessFeignClient; |
|
|
|
@Autowired |
|
|
|
private EpmetThirdOpenFeignClient epmetThirdOpenFeignClient; |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<StaffsInAgencyResultDTO> getStaffInfoForHome(StaffsInAgencyFromDTO fromDTO) { |
|
|
@ -613,8 +612,17 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
} |
|
|
|
} |
|
|
|
//如果是烟台的需要更新 根据手机号+姓名 更新data_sync_user_data置为已创建、记录staffId
|
|
|
|
// todo
|
|
|
|
|
|
|
|
// 开发环境默认:45687aa479955f9d06204d415238f7cc
|
|
|
|
// 测试环境:0c41b272ee9ee95ac6f184ad548a30eb
|
|
|
|
// 烟台: 1535072605621841922
|
|
|
|
if ("1535072605621841922".equals(fromDTO.getCustomerId()) |
|
|
|
|| "45687aa479955f9d06204d415238f7cc".equals(fromDTO.getCustomerId()) |
|
|
|
|| "0c41b272ee9ee95ac6f184ad548a30eb".equals(fromDTO.getCustomerId())) { |
|
|
|
YtSyncStaffIdFormDTO ytSyncStaffIdFormDTO = ConvertUtils.sourceToTarget(fromDTO,YtSyncStaffIdFormDTO.class); |
|
|
|
ytSyncStaffIdFormDTO.setStaffId(result.getData().getUserId()); |
|
|
|
ytSyncStaffIdFormDTO.setOperUserId(fromDTO.getCurrentStaffId()); |
|
|
|
epmetThirdOpenFeignClient.dataSyncUpdateStaff(ytSyncStaffIdFormDTO); |
|
|
|
} |
|
|
|
//2022.10.18加个返参,借用下StaffDetailResultDTO不再新建dto了
|
|
|
|
StaffDetailResultDTO resultDTO=new StaffDetailResultDTO(); |
|
|
|
resultDTO.setStaffId(result.getData().getUserId()); |
|
|
|