机构审核搭建反馈后插入必要数据 用于pad登录
This commit is contained in:
parent
a4be9d6bcb
commit
18e9322a1f
|
|
@ -13,4 +13,6 @@ public interface EmployeesOrgLocalApi {
|
||||||
String canApply(String employeeId, String orgCode);
|
String canApply(String employeeId, String orgCode);
|
||||||
|
|
||||||
void invitedConfirm(EmployeesApplyEntity dto);
|
void invitedConfirm(EmployeesApplyEntity dto);
|
||||||
|
|
||||||
|
void insert(EmployeesOrgApiEntity data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import com.nu.modules.employees.entity.NuEmployeesAdvisoryInfo;
|
||||||
import com.nu.modules.employees.mapper.EmployeesOrgMapper;
|
import com.nu.modules.employees.mapper.EmployeesOrgMapper;
|
||||||
import com.nu.modules.employees.service.IEmployeesOrgService;
|
import com.nu.modules.employees.service.IEmployeesOrgService;
|
||||||
import com.nu.modules.employees.service.INuEmployeesAdvisoryInfoService;
|
import com.nu.modules.employees.service.INuEmployeesAdvisoryInfoService;
|
||||||
|
import com.nu.modules.wechat.employees.api.EmployeesApplyApi;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -172,6 +173,13 @@ public class EmployeesOrgServiceImpl extends ServiceImpl<EmployeesOrgMapper, Emp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void insert(EmployeesOrgApiEntity data) {
|
||||||
|
EmployeesOrg employeesOrg = new EmployeesOrg();
|
||||||
|
BeanUtils.copyProperties(data,employeesOrg);
|
||||||
|
baseMapper.insert(employeesOrg);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<EmployeesOrg> getEmployeesOrgListByEmpId(String employeesId){
|
public List<EmployeesOrg> getEmployeesOrgListByEmpId(String employeesId){
|
||||||
return baseMapper.getEmployeesOrgListByEmpId(employeesId);
|
return baseMapper.getEmployeesOrgListByEmpId(employeesId);
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,9 @@ import com.google.common.collect.Maps;
|
||||||
import com.nu.dto.EmployeesApplyMQDto;
|
import com.nu.dto.EmployeesApplyMQDto;
|
||||||
import com.nu.dto.OrgApplyInfoMQDto;
|
import com.nu.dto.OrgApplyInfoMQDto;
|
||||||
import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
import com.nu.entity.EmployeesAdvisoryInfoEntity;
|
||||||
|
import com.nu.entity.EmployeesApplyEntity;
|
||||||
|
import com.nu.entity.EmployeesOrgApiEntity;
|
||||||
|
import com.nu.modules.EmployeesInfo.api.EmployeesOrgLocalApi;
|
||||||
import com.nu.modules.EmployeesInfo.api.IEmployeesAdvisioryInfoApi;
|
import com.nu.modules.EmployeesInfo.api.IEmployeesAdvisioryInfoApi;
|
||||||
import com.nu.utils.RabbitMQUtil;
|
import com.nu.utils.RabbitMQUtil;
|
||||||
import org.apache.commons.compress.utils.Lists;
|
import org.apache.commons.compress.utils.Lists;
|
||||||
|
|
@ -65,6 +68,7 @@ import org.jeecg.common.util.dynamic.db.FreemarkerParseFactory;
|
||||||
import org.jeecg.common.util.oConvertUtils;
|
import org.jeecg.common.util.oConvertUtils;
|
||||||
import org.jeecg.config.firewall.SqlInjection.IDictTableWhiteListHandler;
|
import org.jeecg.config.firewall.SqlInjection.IDictTableWhiteListHandler;
|
||||||
import org.jeecg.config.mybatis.MybatisPlusSaasConfig;
|
import org.jeecg.config.mybatis.MybatisPlusSaasConfig;
|
||||||
|
import org.jeewx.api.core.req.model.message.TemplateData;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -162,6 +166,8 @@ public class SysBaseApiImpl implements ISysBaseAPI {
|
||||||
@Lazy
|
@Lazy
|
||||||
@Autowired
|
@Autowired
|
||||||
private IEmployeesAdvisioryInfoApi employeesAdvisioryInfoApi;
|
private IEmployeesAdvisioryInfoApi employeesAdvisioryInfoApi;
|
||||||
|
@Autowired
|
||||||
|
private EmployeesOrgLocalApi employeesOrgLocalApi;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
//@SensitiveDecode
|
//@SensitiveDecode
|
||||||
|
|
@ -2086,6 +2092,28 @@ public class SysBaseApiImpl implements ISysBaseAPI {
|
||||||
employeesAdvisoryInfoEntity.setLastLoginOrg(dataSourceCode);
|
employeesAdvisoryInfoEntity.setLastLoginOrg(dataSourceCode);
|
||||||
employeesAdvisoryInfoEntity.setIzInit("Y");
|
employeesAdvisoryInfoEntity.setIzInit("Y");
|
||||||
employeesAdvisioryInfoApi.insert(employeesAdvisoryInfoEntity);
|
employeesAdvisioryInfoApi.insert(employeesAdvisoryInfoEntity);
|
||||||
|
|
||||||
|
//登录还会去nu_biz_employees_org中查询数据 获取机构信息 所以这里也要插入数据
|
||||||
|
EmployeesOrgApiEntity empOrgdata = new EmployeesOrgApiEntity();
|
||||||
|
empOrgdata.setEmployeesId(userId);
|
||||||
|
empOrgdata.setOrgCode(dataSourceCode);
|
||||||
|
empOrgdata.setIzOnline("N");
|
||||||
|
empOrgdata.setIzFreeze("N");
|
||||||
|
empOrgdata.setStatus("2");
|
||||||
|
empOrgdata.setOpenId(orgInfo.getOpenId());
|
||||||
|
empOrgdata.setTel(orgInfo.getTel());
|
||||||
|
empOrgdata.setName(orgInfo.getName());
|
||||||
|
empOrgdata.setSex(orgInfo.getSex());
|
||||||
|
empOrgdata.setNational(orgInfo.getNational());
|
||||||
|
empOrgdata.setBirthDate(orgInfo.getBirthDate());
|
||||||
|
empOrgdata.setIdCardAddress(orgInfo.getIdCardAddress());
|
||||||
|
empOrgdata.setIdCard(orgInfo.getIdCard());
|
||||||
|
empOrgdata.setIssuingAuthority(orgInfo.getIssuingAuthority());
|
||||||
|
empOrgdata.setStartTime(orgInfo.getStartTime());
|
||||||
|
empOrgdata.setEndTime(orgInfo.getEndTime());
|
||||||
|
empOrgdata.setCardZmPath(orgInfo.getCardZmPath());
|
||||||
|
empOrgdata.setCardFmPath(orgInfo.getCardFmPath());
|
||||||
|
employeesOrgLocalApi.insert(empOrgdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue