Commit 92fa4355 authored by tangwei's avatar tangwei

修改bug

parent 24ab2df4
...@@ -32,7 +32,7 @@ public class PersonUser { ...@@ -32,7 +32,7 @@ public class PersonUser {
private Integer age; private Integer age;
@ApiModelProperty(value = "籍贯") @ApiModelProperty(value = "籍贯")
private String nativePlace; private List<Integer> nativePlace;
@ApiModelProperty(value = "民族") @ApiModelProperty(value = "民族")
private String folkKey; private String folkKey;
......
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl; package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yeejoin.amos.boot.module.jxiop.api.dto.*; import com.yeejoin.amos.boot.module.jxiop.api.dto.*;
import com.yeejoin.amos.boot.module.jxiop.api.entity.PersonBasic; import com.yeejoin.amos.boot.module.jxiop.api.entity.PersonBasic;
...@@ -124,6 +125,12 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas ...@@ -124,6 +125,12 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
}else{ }else{
personBasic.setProjectOrgCode(companyModel.getOrgCode()); personBasic.setProjectOrgCode(companyModel.getOrgCode());
} }
if(!personUser.getNativePlace().isEmpty()){
personBasic.setNativePlace(JSON.toJSONString(personUser.getNativePlace()));
}
this.baseMapper.insert(personBasic); this.baseMapper.insert(personBasic);
//人员技能学历信息 //人员技能学历信息
PersonSkillEducation personSkillEducation = new PersonSkillEducation(); PersonSkillEducation personSkillEducation = new PersonSkillEducation();
...@@ -132,6 +139,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas ...@@ -132,6 +139,7 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
personSkillEducationService.save(personSkillEducation); personSkillEducationService.save(personSkillEducation);
//人员资质信息 //人员资质信息
personCertificate.setPersonId(personBasic.getSequenceNbr()); personCertificate.setPersonId(personBasic.getSequenceNbr());
personCertificateService.save(personCertificate); personCertificateService.save(personCertificate);
//人员账号信息 //人员账号信息
personAccount.setPersonId(personBasic.getSequenceNbr()); personAccount.setPersonId(personBasic.getSequenceNbr());
...@@ -200,6 +208,9 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas ...@@ -200,6 +208,9 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
}else{ }else{
personBasic.setProjectOrgCode(companyModel.getOrgCode()); personBasic.setProjectOrgCode(companyModel.getOrgCode());
} }
if(!personUser.getNativePlace().isEmpty()){
personBasic.setNativePlace(JSON.toJSONString(personUser.getNativePlace()));
}
this.personBasicMapper.updateById(personBasic); this.personBasicMapper.updateById(personBasic);
......
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