Commit dbb6d6c6 authored by hongguangwu's avatar hongguangwu

MVP1.7.12-瓜子导出档案_附属表

parent 77310fef
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants;
import lombok.Data;
import java.io.Serializable;
/**
* 瓜子档案表——导出教育经历
*
* @author hgw
* @date 2025-6-19 15:09:18
*/
@Data
public class TGzEmpInfoExportEducation implements Serializable {
// 流程ID 姓名 证件号码 学历 学位 教育方式 院校名称 入学日期 毕业日期 毕业类型 专业 是否最高学历 是否最高学位 是否第一学历
@ExcelProperty("流程ID")
private String bizId;
@ExcelProperty("姓名")
private String name;
@ExcelProperty("证件号码")
private String nationalId;
@ExcelAttribute(name = "学历", isDataId = true, dataType = ExcelAttributeConstants.GZ_EDU_QUAL)
@ExcelProperty("学历")
private String eduQual;
@ExcelAttribute(name = "学位", isDataId = true, dataType = ExcelAttributeConstants.GZ_EDU_DERGEE)
@ExcelProperty("学位")
private String eduDegree;
@ExcelAttribute(name = "教育方式", isDataId = true, dataType = ExcelAttributeConstants.GZ_EDU_TYPE)
@ExcelProperty("教育方式")
private String eduType;
@ExcelProperty("院校名称")
private String school;
// 日期格式化
@ExcelProperty("入学日期")
private String eduStartDate;
// 日期格式化
@ExcelProperty("毕业日期")
private String eduEndDate;
@ExcelAttribute(name = "毕业类型", isDataId = true, dataType = ExcelAttributeConstants.GZ_GRADUATE_TYPE)
@ExcelProperty("毕业类型")
private String gradutionType;
@ExcelProperty("专业")
private String major;
@ExcelAttribute(name = "是否最高学历", isDataId = true, readConverterExp = "Y=是,N=不是")
@ExcelProperty("是否最高学历")
private String highEduQualFlag;
@ExcelAttribute(name = "是否最高学位", isDataId = true, readConverterExp = "Y=是,N=不是")
@ExcelProperty("是否最高学位")
private String highEduDegreeFlag;
@ExcelAttribute(name = "是否第一学历", isDataId = true, readConverterExp = "Y=是,N=不是")
@ExcelProperty("是否第一学历")
private String firstDegreeFlag;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants;
import lombok.Data;
import java.io.Serializable;
/**
* 瓜子档案表——导出家庭成员
*
* @author hgw
* @date 2025-6-19 15:35:34
*/
@Data
public class TGzEmpInfoExportFamily implements Serializable {
// 流程ID 姓名 证件号码 与成员关系 姓名 联系电话 地址 所在单位名称 是否客户单位任职 职务
@ExcelProperty("流程ID")
private String bizId;
@ExcelProperty("姓名")
private String name;
@ExcelProperty("证件号码")
private String nationalId;
@ExcelAttribute(name = "与成员关系", isDataId = true, dataType = ExcelAttributeConstants.GZ_FAMILY_RELATION)
@ExcelProperty("与成员关系")
private String familyRelation;
@ExcelProperty("姓名")
private String familyName;
@ExcelProperty("联系电话")
private String familyPhone;
@ExcelProperty("地址")
private String familyAddress;
@ExcelProperty("所在单位名称")
private String familyCompany;
@ExcelAttribute(name = "是否客户单位任职", isDataId = true, readConverterExp = "Y=是,N=不是")
@ExcelProperty("是否客户单位任职")
private String gzEmeFlag;
@ExcelProperty("职务")
private String jobCode;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 瓜子档案表——导出技能证书
*
* @author hgw
* @date 2025-6-19 15:42:45
*/
@Data
public class TGzEmpInfoExportSkill implements Serializable {
// 流程ID 姓名 证件号码 专业技能名称 获得日期 授予单位 技术等级
@ExcelProperty("流程ID")
private String bizId;
@ExcelProperty("姓名")
private String name;
@ExcelProperty("证件号码")
private String nationalId;
@ExcelProperty("专业技能名称")
private String skillName;
// 日期格式化
@ExcelProperty("获得日期")
private String skillDate;
@ExcelProperty("授予单位")
private String skillOrg;
@ExcelProperty("技术等级")
private String skillLevel;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* 瓜子档案表——导出工作经历
*
* @author hgw
* @date 2025-6-19 15:09:18
*/
@Data
public class TGzEmpInfoExportWork implements Serializable {
// 流程ID 姓名 证件号码 单位名称 开始日期 结束日期 所在部门 职务名称 证明人 证明人联系电话
@ExcelProperty("流程ID")
private String bizId;
@ExcelProperty("姓名")
private String name;
@ExcelProperty("证件号码")
private String nationalId;
@ExcelProperty("单位名称")
private String workUnit;
// 日期格式化
@ExcelProperty("开始日期")
private String workStartDate;
// 日期格式化
@ExcelProperty("结束日期")
private String workEndDate;
@ExcelProperty("所在部门")
private String workDept;
@ExcelProperty("职务名称")
private String workJob;
@ExcelProperty("证明人")
private String certifierName;
@ExcelProperty("证明人联系电话")
private String certifierPhone;
}
...@@ -21,8 +21,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -21,8 +21,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpInfo; import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpInfo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoExportMain; import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoSearchVo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -59,4 +58,20 @@ public interface TGzEmpInfoMapper extends BaseMapper<TGzEmpInfo> { ...@@ -59,4 +58,20 @@ public interface TGzEmpInfoMapper extends BaseMapper<TGzEmpInfo> {
**/ **/
List<TGzEmpInfoExportMain> getTGzEmpInfoList(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo); List<TGzEmpInfoExportMain> getTGzEmpInfoList(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
// 导出瓜子档案之教育 hgw 2025-6-19 14:32:24
int getTGzEmpInfoCountEducation(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
List<TGzEmpInfoExportEducation> getTGzEmpInfoListEducation(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
// 导出瓜子档案之工作 hgw 2025-6-19 14:32:24
int getTGzEmpInfoCountWork(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
List<TGzEmpInfoExportWork> getTGzEmpInfoListWork(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
// 导出瓜子档案之家庭 hgw 2025-6-19 14:32:24
int getTGzEmpInfoCountFamily(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
List<TGzEmpInfoExportFamily> getTGzEmpInfoListFamily(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
// 导出瓜子档案之技能 hgw 2025-6-19 14:32:24
int getTGzEmpInfoCountSkill(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
List<TGzEmpInfoExportSkill> getTGzEmpInfoListSkill(@Param("tGzEmpInfo") TGzEmpInfoSearchVo tGzEmpInfo);
} }
...@@ -16,8 +16,14 @@ ...@@ -16,8 +16,14 @@
*/ */
package com.yifu.cloud.plus.v1.yifu.archives.service.impl; package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import cn.hutool.core.bean.BeanUtil;
import com.alibaba.excel.EasyExcelFactory; import com.alibaba.excel.EasyExcelFactory;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.AreaMap; import com.yifu.cloud.plus.v1.yifu.admin.api.vo.AreaMap;
import com.yifu.cloud.plus.v1.yifu.archives.entity.*; import com.yifu.cloud.plus.v1.yifu.archives.entity.*;
...@@ -26,51 +32,28 @@ import com.yifu.cloud.plus.v1.yifu.archives.service.TAttaInfoService; ...@@ -26,51 +32,28 @@ import com.yifu.cloud.plus.v1.yifu.archives.service.TAttaInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpInfoService; import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzOfferInfoService; import com.yifu.cloud.plus.v1.yifu.archives.service.TGzOfferInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.util.IdCardUtil; import com.yifu.cloud.plus.v1.yifu.archives.util.IdCardUtil;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoExportMain; import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportDetailVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportMainVo;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants;
import com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprCheckProperties; import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprSalaryProperties;
import com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprUpmsProperties; import com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprUpmsProperties;
import com.yifu.cloud.plus.v1.yifu.common.dapr.util.HttpDaprUtil; import com.yifu.cloud.plus.v1.yifu.common.dapr.util.HttpDaprUtil;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.HashMap;
import java.net.URL;
import java.util.List;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ArrayUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import com.alibaba.excel.util.ListUtils;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import javax.servlet.ServletOutputStream; import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.net.URL;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
...@@ -264,8 +247,9 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI ...@@ -264,8 +247,9 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI
ExcelWriter excelWriter = EasyExcelFactory.write(out, TGzEmpInfoExportMain.class).registerConverter(new DictConverter(nameAndDicTypeMap, redisLabelMap)).build(); ExcelWriter excelWriter = EasyExcelFactory.write(out, TGzEmpInfoExportMain.class).registerConverter(new DictConverter(nameAndDicTypeMap, redisLabelMap)).build();
int index = 0; int index = 0;
if (count > CommonConstants.ZERO_INT) { if (count > CommonConstants.ZERO_INT) {
// 1:主表+紧急联系人
WriteSheet writeSheet; WriteSheet writeSheet;
for (int i = 0; i <= count; i += CommonConstants.EXCEL_EXPORT_LIMIT){ for (int i = 0; i <= count; i += CommonConstants.EXCEL_EXPORT_LIMIT) {
// 获取实际记录 // 获取实际记录
searchVo.setLimitStart(i); searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT); searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
...@@ -279,6 +263,88 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI ...@@ -279,6 +263,88 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI
list.clear(); list.clear();
} }
} }
// 2附属表:
// 2.1教育经历
count = baseMapper.getTGzEmpInfoCountEducation(searchVo);
if (count > CommonConstants.ZERO_INT) {
index = 1;
List<TGzEmpInfoExportEducation> listEducation;
for (int i = 0; i <= count; i += CommonConstants.EXCEL_EXPORT_LIMIT) {
// 获取实际记录
searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
listEducation = baseMapper.getTGzEmpInfoListEducation(searchVo);
if (Common.isNotNull(listEducation)) {
writeSheet = EasyExcelFactory.writerSheet("教育经历" + index).build();
excelWriter.write(listEducation, writeSheet);
index++;
}
if (Common.isNotNull(listEducation)) {
listEducation.clear();
}
}
}
// 2.2工作经历
count = baseMapper.getTGzEmpInfoCountWork(searchVo);
if (count > CommonConstants.ZERO_INT) {
index = 1;
List<TGzEmpInfoExportWork> listWork;
for (int i = 0; i <= count; i += CommonConstants.EXCEL_EXPORT_LIMIT) {
// 获取实际记录
searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
listWork = baseMapper.getTGzEmpInfoListWork(searchVo);
if (Common.isNotNull(listWork)) {
writeSheet = EasyExcelFactory.writerSheet("工作经历" + index).build();
excelWriter.write(listWork, writeSheet);
index++;
}
if (Common.isNotNull(listWork)) {
listWork.clear();
}
}
}
// 2.3家庭成员
count = baseMapper.getTGzEmpInfoCountFamily(searchVo);
if (count > CommonConstants.ZERO_INT) {
index = 1;
List<TGzEmpInfoExportFamily> listFamily;
for (int i = 0; i <= count; i += CommonConstants.EXCEL_EXPORT_LIMIT) {
// 获取实际记录
searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
listFamily = baseMapper.getTGzEmpInfoListFamily(searchVo);
if (Common.isNotNull(listFamily)) {
writeSheet = EasyExcelFactory.writerSheet("家庭成员" + index).build();
excelWriter.write(listFamily, writeSheet);
index++;
}
if (Common.isNotNull(listFamily)) {
listFamily.clear();
}
}
}
// 2.4技能证书
count = baseMapper.getTGzEmpInfoCountSkill(searchVo);
if (count > CommonConstants.ZERO_INT) {
index = 1;
List<TGzEmpInfoExportSkill> listSkill;
for (int i = 0; i <= count; i += CommonConstants.EXCEL_EXPORT_LIMIT) {
// 获取实际记录
searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
listSkill = baseMapper.getTGzEmpInfoListSkill(searchVo);
if (Common.isNotNull(listSkill)) {
writeSheet = EasyExcelFactory.writerSheet("技能证书" + index).build();
excelWriter.write(listSkill, writeSheet);
index++;
}
if (Common.isNotNull(listSkill)) {
listSkill.clear();
}
}
}
} else { } else {
WriteSheet writeSheet = EasyExcelFactory.writerSheet(prfName + index).build(); WriteSheet writeSheet = EasyExcelFactory.writerSheet(prfName + index).build();
excelWriter.write(list, writeSheet); excelWriter.write(list, writeSheet);
......
...@@ -494,16 +494,152 @@ ...@@ -494,16 +494,152 @@
a.hukou_city_area_id, a.hukou_city_area_id,
a.hukou_county_area_id, a.hukou_county_area_id,
a.account_province_area_id, a.account_province_area_id,
a.account_city_area_id a.account_city_area_id,
b.emerg_name,
b.emerg_relation,
b.emerg_phone,
b.emerg_address,
b.primary_nid
FROM t_gz_emp_info a FROM t_gz_emp_info a
left join t_gz_emp_contract b on a.id = b.emp_id
<where> <where>
a.del_flag = '0' a.del_flag = '0'
<include refid="tGzEmpInfo_where"/> <include refid="tGzEmpInfo_where"/>
</where> </where>
group by a.id
ORDER by a.create_time desc,a.id desc ORDER by a.create_time desc,a.id desc
<if test="tGzEmpInfo.limitStart != null"> <if test="tGzEmpInfo.limitStart != null">
limit #{tGzEmpInfo.limitStart},#{tGzEmpInfo.limitEnd} limit #{tGzEmpInfo.limitStart},#{tGzEmpInfo.limitEnd}
</if> </if>
</select> </select>
<!--导出瓜子档案之教育-->
<select id="getTGzEmpInfoCountEducation" resultType="java.lang.Integer">
SELECT
count(1)
FROM t_gz_emp_education b left join t_gz_emp_info a on a.id=b.emp_id
where a.del_flag = '0' and b.del_flag = '0'
<include refid="tGzEmpInfo_where"/>
</select>
<!--导出瓜子档案之教育-->
<select id="getTGzEmpInfoListEducation" resultType="com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoExportEducation">
SELECT
a.biz_id,
a.name,
a.national_id,
b.edu_qual,
b.edu_degree,
b.edu_type,
b.school,
date_format(b.edu_start_date, '%Y-%m-%d') edu_start_date,
date_format(b.edu_end_date, '%Y-%m-%d') edu_end_date,
b.gradution_type,
b.major,
b.high_edu_qual_flag,
b.high_edu_degree_flag,
b.first_degree_flag
FROM t_gz_emp_education b left join t_gz_emp_info a on a.id=b.emp_id
where a.del_flag = '0' and b.del_flag = '0'
<include refid="tGzEmpInfo_where"/>
group by b.id
order by b.create_time desc,b.id desc
<if test="tGzEmpInfo.limitStart != null">
limit #{tGzEmpInfo.limitStart},#{tGzEmpInfo.limitEnd}
</if>
</select>
<!--导出瓜子档案之工作-->
<select id="getTGzEmpInfoCountWork" resultType="java.lang.Integer">
SELECT
count(1)
FROM t_gz_emp_work b left join t_gz_emp_info a on a.id=b.emp_id
where a.del_flag = '0' and b.del_flag = '0'
<include refid="tGzEmpInfo_where"/>
</select>
<!--导出瓜子档案之工作-->
<select id="getTGzEmpInfoListWork" resultType="com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoExportWork">
SELECT
a.biz_id,
a.name,
a.national_id,
b.work_unit,
date_format(b.work_start_date, '%Y-%m-%d') work_start_date,
date_format(b.work_end_date, '%Y-%m-%d') work_end_date,
b.work_dept,
b.work_job,
b.certifier_name,
b.certifier_phone
FROM t_gz_emp_work b left join t_gz_emp_info a on a.id=b.emp_id
where a.del_flag = '0' and b.del_flag = '0'
<include refid="tGzEmpInfo_where"/>
group by b.id
order by b.create_time desc,b.id desc
<if test="tGzEmpInfo.limitStart != null">
limit #{tGzEmpInfo.limitStart},#{tGzEmpInfo.limitEnd}
</if>
</select>
<!--导出瓜子档案之家庭-->
<select id="getTGzEmpInfoCountFamily" resultType="java.lang.Integer">
SELECT
count(1)
FROM t_gz_emp_family b left join t_gz_emp_info a on a.id=b.emp_id
where a.del_flag = '0' and b.del_flag = '0'
<include refid="tGzEmpInfo_where"/>
</select>
<!--导出瓜子档案之家庭-->
<select id="getTGzEmpInfoListFamily" resultType="com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoExportFamily">
SELECT
a.biz_id,
a.name,
a.national_id,
b.family_relation,
b.family_name,
b.family_phone,
b.family_address,
b.family_company,
b.gz_eme_flag,
b.job_code
FROM t_gz_emp_family b left join t_gz_emp_info a on a.id=b.emp_id
where a.del_flag = '0' and b.del_flag = '0'
<include refid="tGzEmpInfo_where"/>
group by b.id
order by b.create_time desc,b.id desc
<if test="tGzEmpInfo.limitStart != null">
limit #{tGzEmpInfo.limitStart},#{tGzEmpInfo.limitEnd}
</if>
</select>
<!--导出瓜子档案之家庭-->
<select id="getTGzEmpInfoCountSkill" resultType="java.lang.Integer">
SELECT
count(1)
FROM t_gz_emp_skill b left join t_gz_emp_info a on a.id=b.emp_id
where a.del_flag = '0' and b.del_flag = '0'
<include refid="tGzEmpInfo_where"/>
</select>
<!--导出瓜子档案之家庭-->
<select id="getTGzEmpInfoListSkill" resultType="com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoExportSkill">
SELECT
a.biz_id,
a.name,
a.national_id,
b.skill_name,
date_format(b.skill_date, '%Y-%m-%d') skill_date,
b.skill_org,
b.skill_level
FROM t_gz_emp_skill b left join t_gz_emp_info a on a.id=b.emp_id
where a.del_flag = '0' and b.del_flag = '0'
<include refid="tGzEmpInfo_where"/>
group by b.id
order by b.create_time desc,b.id desc
<if test="tGzEmpInfo.limitStart != null">
limit #{tGzEmpInfo.limitStart},#{tGzEmpInfo.limitEnd}
</if>
</select>
</mapper> </mapper>
...@@ -197,4 +197,14 @@ public class ExcelAttributeConstants { ...@@ -197,4 +197,14 @@ public class ExcelAttributeConstants {
public static final String GZ_ACCOUNT_TYPE = "gz_account_type"; public static final String GZ_ACCOUNT_TYPE = "gz_account_type";
// 瓜子的银行 // 瓜子的银行
public static final String GZ_BANK = "gz_bank"; public static final String GZ_BANK = "gz_bank";
// 瓜子的教育方式
public static final String GZ_EDU_TYPE = "gz_edu_type";
// 瓜子的学历
public static final String GZ_EDU_QUAL = "gz_edu_qual";
// 瓜子的学位
public static final String GZ_EDU_DERGEE = "gz_edu_dergee";
// 瓜子的毕业类型
public static final String GZ_GRADUATE_TYPE = "gz_graduate_type";
// 瓜子的家庭成员-与成员关系
public static final String GZ_FAMILY_RELATION = "gz_family_relation";
} }
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