提交 c2dcee3b authored 作者: wangmenglong's avatar wangmenglong

阿里回调通知

上级 84e16294
...@@ -12,11 +12,13 @@ import com.alipay.api.DefaultAlipayClient; ...@@ -12,11 +12,13 @@ import com.alipay.api.DefaultAlipayClient;
import com.alipay.api.domain.AlipayEbppIndustryJobResumeauthlogininfoGetModel; import com.alipay.api.domain.AlipayEbppIndustryJobResumeauthlogininfoGetModel;
import com.alipay.api.internal.util.AlipayEncrypt; import com.alipay.api.internal.util.AlipayEncrypt;
import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.internal.util.AlipaySignature;
import com.alipay.api.internal.util.StringUtils;
import com.alipay.api.request.AlipayEbppIndustryJobResumeauthlogininfoGetRequest; import com.alipay.api.request.AlipayEbppIndustryJobResumeauthlogininfoGetRequest;
import com.alipay.api.request.AlipaySystemOauthTokenRequest; import com.alipay.api.request.AlipaySystemOauthTokenRequest;
import com.alipay.api.response.AlipayEbppIndustryJobResumeauthlogininfoGetResponse; import com.alipay.api.response.AlipayEbppIndustryJobResumeauthlogininfoGetResponse;
import com.alipay.api.response.AlipaySystemOauthTokenResponse; import com.alipay.api.response.AlipaySystemOauthTokenResponse;
import com.jfb.recruit.service.*; import com.jfb.recruit.service.*;
import com.jfb.recruit.util.IdCardUtils;
import com.jfb.recruit.xsnowflake.SnowFlakeFactory; import com.jfb.recruit.xsnowflake.SnowFlakeFactory;
import data.recruit.*; import data.recruit.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -272,7 +274,7 @@ public class ApiAliController extends BaseController { ...@@ -272,7 +274,7 @@ public class ApiAliController extends BaseController {
WorkExperience workExperience = new WorkExperience(); WorkExperience workExperience = new WorkExperience();
workExperience.setPersonId(person.getId()); workExperience.setPersonId(person.getId());
workExperience.setBaseCode(person.getBaseCode()); workExperience.setBaseCode(person.getBaseCode());
workExperience.setJob(workExperienceJson.getString("job_name")); workExperience.setJob(workExperienceJson.getString("position_name"));
workExperience.setOrgName(workExperienceJson.getString("company")); workExperience.setOrgName(workExperienceJson.getString("company"));
workExperience.setStartTime(workExperienceJson.getString("start_date")); workExperience.setStartTime(workExperienceJson.getString("start_date"));
workExperience.setEndTime(workExperienceJson.getString("end_date")); workExperience.setEndTime(workExperienceJson.getString("end_date"));
...@@ -295,10 +297,14 @@ public class ApiAliController extends BaseController { ...@@ -295,10 +297,14 @@ public class ApiAliController extends BaseController {
Objective objective = new Objective(); Objective objective = new Objective();
objective.setPersonId(person.getId()); objective.setPersonId(person.getId());
objective.setBaseCode(person.getBaseCode()); objective.setBaseCode(person.getBaseCode());
objective.setCity(objectiveJson.getString("city_name")); if(!StringUtils.isEmpty(objectiveJson.getString("city_code"))){
objective.setCity(IdCardUtils.getNameString(Integer.parseInt(objectiveJson.getString("city_code"))));
objective.setProvince(IdCardUtils.getNameString(Integer.parseInt(objectiveJson.getString("city_code").substring(0,2))));
}
objective.setIndustryId(objectiveJson.getString("expect_job_code")); objective.setIndustryId(objectiveJson.getString("expect_job_code"));
Industry industry = industryService.getDetailsByName(objectiveJson.getString("expect_job_name"),"1"); Industry industry = industryService.getDetailsByCode(objectiveJson.getString("expect_job_code"),"1");
if (industry!=null){ if (industry!=null){
objective.setIndustryName(industry.getName()); objective.setIndustryName(industry.getName());
} }
......
...@@ -31,4 +31,6 @@ public interface IndustryService { ...@@ -31,4 +31,6 @@ public interface IndustryService {
Industry getDetailsByName(String name,String parentType); Industry getDetailsByName(String name,String parentType);
Industry getDetailsByCode(String code,String parentType);
} }
...@@ -217,6 +217,30 @@ public class IndustryServiceImpl extends ServiceImpl<IndustryMapper, Industry> i ...@@ -217,6 +217,30 @@ public class IndustryServiceImpl extends ServiceImpl<IndustryMapper, Industry> i
return super.getOne(qw); return super.getOne(qw);
} }
/**
* @author: wangmenglong
* @date; 2024/3/24 17:19
* @description: 获取行业详情
* @param: [id]
* @return: data.industry.Industry
**/
@Override
public Industry getDetailsByCode(String code,String parentType) {
LambdaQueryWrapper<Industry> qw = new LambdaQueryWrapper<>();
qw.eq(Industry::getDel,false)
.eq(Industry::getCode, code);
if(parentType.equals("0")){
qw.eq(Industry::getParentId, "0");
}else if(parentType.equals("1")){
qw.ne(Industry::getParentId, "0");
qw.isNull(Industry::getCode);
}
return super.getOne(qw);
}
/** /**
* @author: wangmenglong * @author: wangmenglong
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论