|
|
@@ -19,6 +19,7 @@ import com.jeeplus.modules.dpenterprise.service.DpEnterpriseAuthenticationServic
|
|
|
import com.jeeplus.modules.hpmessage.entity.HpMessage;
|
|
|
import com.jeeplus.modules.hpmessage.service.HpMessageService;
|
|
|
import com.jeeplus.modules.hpresume.entity.CmCandidateBelongDetailcm;
|
|
|
+import com.jeeplus.modules.hpresume.entity.CmCandidateContactDetailcm;
|
|
|
import com.jeeplus.modules.hpresume.entity.CmCandidateTrackcm;
|
|
|
import com.jeeplus.modules.hpresume.mapper.HpResumeBankMapper;
|
|
|
import com.jeeplus.modules.hpuser.entity.HpApplyPosition;
|
|
|
@@ -1418,6 +1419,36 @@ public class HpUserService extends CrudService<HpUserMapper, HpUser> {
|
|
|
cmCandidateBelongDetail.setBelongTime(new Date());
|
|
|
|
|
|
hpResumeBankMapper.saveCmCandidateBelongDetail(cmCandidateBelongDetail);
|
|
|
+
|
|
|
+ //如果有跟进信息就同步到crm跟进明细表
|
|
|
+ if(StringUtils.isNotBlank(hpMember.getContactPerson())){
|
|
|
+ List<HpUserContact> list=hpUserContactService.findListByUserId(hpUser1.getId());
|
|
|
+ if(list.size()>0){
|
|
|
+ for (int i = 0; i <list.size() ; i++) {
|
|
|
+ CmCandidateContactDetailcm cmCandidateContactDetailcm=new CmCandidateContactDetailcm();
|
|
|
+ if(StringUtils.isNotBlank(cmCandidateTrack.getId())){
|
|
|
+ cmCandidateContactDetailcm.setCandidateTrackId(Integer.parseInt(cmCandidateTrack.getId()));
|
|
|
+ }
|
|
|
+ cmCandidateContactDetailcm.setContactPerson(list.get(i).getContactUser());
|
|
|
+ cmCandidateContactDetailcm.setContactTime(list.get(i).getContactTime());
|
|
|
+ cmCandidateContactDetailcm.setContactType(0);
|
|
|
+ contactStatus=list.get(i).getContactStatus();
|
|
|
+ if(contactStatus!=null){
|
|
|
+ if(contactStatus==5){
|
|
|
+ cmCandidateContactDetailcm.setContactStatus(1);
|
|
|
+ }else if(contactStatus==4 || contactStatus==0){
|
|
|
+ cmCandidateContactDetailcm.setContactStatus(0);
|
|
|
+ }else if(contactStatus==2 || contactStatus==1 || contactStatus==3 ){
|
|
|
+ cmCandidateContactDetailcm.setContactStatus(2);
|
|
|
+ }else{
|
|
|
+ cmCandidateContactDetailcm.setContactStatus(-1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ cmCandidateContactDetailcm.setContactContent(list.get(i).getContactContent());
|
|
|
+ hpResumeBankMapper.savecmCandidateContactDetail(cmCandidateContactDetailcm);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
//将业务表跟member表信息关联
|
|
|
hpMemberService.mergeInfo(hpUser1.getId(), userIds, hpMember.getId());
|
|
|
}
|