Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
ca61f129
Commit
ca61f129
authored
Jul 01, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.6-预入职相关_校验
parent
6f906b6a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
305 additions
and
17 deletions
+305
-17
TCompleteMonitorController.java
.../yifu/archives/controller/TCompleteMonitorController.java
+2
-2
TPreEmpMainController.java
...us/v1/yifu/archives/controller/TPreEmpMainController.java
+2
-2
TCompleteMonitorMapper.java
.../plus/v1/yifu/archives/mapper/TCompleteMonitorMapper.java
+7
-0
TPreEmpMainMapper.java
...cloud/plus/v1/yifu/archives/mapper/TPreEmpMainMapper.java
+12
-0
TCompleteMonitorService.java
...lus/v1/yifu/archives/service/TCompleteMonitorService.java
+1
-1
TPreEmpMainService.java
...oud/plus/v1/yifu/archives/service/TPreEmpMainService.java
+1
-1
TCompleteMonitorServiceImpl.java
...fu/archives/service/impl/TCompleteMonitorServiceImpl.java
+53
-1
TPreEmpMainServiceImpl.java
...v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
+55
-1
TCompleteMonitorMapper.xml
...-biz/src/main/resources/mapper/TCompleteMonitorMapper.xml
+57
-4
TPreEmpMainMapper.xml
...hives-biz/src/main/resources/mapper/TPreEmpMainMapper.xml
+115
-5
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TCompleteMonitorController.java
View file @
ca61f129
...
...
@@ -47,10 +47,10 @@ public class TCompleteMonitorController {
@Operation
(
description
=
"导出档案完整度监控管理-全量 权限:archves_tcompletemonitor_export_all"
)
@PostMapping
(
"/exportAll"
)
//@PreAuthorize("@pms.hasPermission('archves_tcompletemonitor_export_all')")
public
void
exportAll
(
HttpServletResponse
response
,
@RequestBody
TCompleteMonitorSearchVo
searchVo
)
{
public
R
<
String
>
exportAll
(
HttpServletResponse
response
,
@RequestBody
TCompleteMonitorSearchVo
searchVo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
tCompleteMonitorService
.
exportAll
(
response
,
searchVo
);
return
tCompleteMonitorService
.
exportAll
(
response
,
searchVo
);
}
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TPreEmpMainController.java
View file @
ca61f129
...
...
@@ -242,10 +242,10 @@ public class TPreEmpMainController {
@Operation
(
summary
=
"导出预入职-全量"
,
description
=
"导出预入职-全量 hasPermission('archives_tpreempmain-export-all')"
)
@PostMapping
(
"/exportAll"
)
//@PreAuthorize("@pms.hasPermission('archives_tpreempmain-export-all')")
public
void
exportAll
(
HttpServletResponse
response
,
@RequestBody
TPreEmpMainSearchVo
searchVo
)
{
public
R
<
String
>
exportAll
(
HttpServletResponse
response
,
@RequestBody
TPreEmpMainSearchVo
searchVo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
tPreEmpMainService
.
exportAll
(
response
,
searchVo
);
return
tPreEmpMainService
.
exportAll
(
response
,
searchVo
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TCompleteMonitorMapper.java
View file @
ca61f129
...
...
@@ -93,8 +93,15 @@ public interface TCompleteMonitorMapper extends BaseMapper<TCompleteMonitor> {
int
getTEmpMainAllCount
(
@Param
(
"tCompleteMonitor"
)
TCompleteMonitor
tCompleteMonitor
);
// 导出详情使用 hgw 2024-6-26 11:05:41
List
<
TMainExportAllVO
>
getTEmpMainAllList
(
@Param
(
"tCompleteMonitor"
)
TCompleteMonitor
tCompleteMonitor
);
// 导出详情使用 hgw 2024-6-26 11:05:41
int
getTEmpMainAllCountOneWork
(
@Param
(
"tCompleteMonitor"
)
TCompleteMonitor
tCompleteMonitor
);
List
<
TMainExportAllVO
>
getTEmpMainAllListOneWork
(
@Param
(
"tCompleteMonitor"
)
TCompleteMonitor
tCompleteMonitor
);
int
getTEmpMainAllCountTwoFamily
(
@Param
(
"tCompleteMonitor"
)
TCompleteMonitor
tCompleteMonitor
);
List
<
TMainExportAllVO
>
getTEmpMainAllListTwoFamily
(
@Param
(
"tCompleteMonitor"
)
TCompleteMonitor
tCompleteMonitor
);
int
getTEmpMainAllCountThreeProfessional
(
@Param
(
"tCompleteMonitor"
)
TCompleteMonitor
tCompleteMonitor
);
List
<
TMainExportAllVO
>
getTEmpMainAllListThreeProfessional
(
@Param
(
"tCompleteMonitor"
)
TCompleteMonitor
tCompleteMonitor
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TPreEmpMainMapper.java
View file @
ca61f129
...
...
@@ -20,7 +20,9 @@ package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCompleteMonitor
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TPreEmpMain
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TMainExportAllVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TPreMainExportAllVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -51,6 +53,16 @@ public interface TPreEmpMainMapper extends BaseMapper<TPreEmpMain> {
List
<
TPreMainExportAllVO
>
getTPreEmpMainAllList
(
@Param
(
"tPreEmpMain"
)
TPreEmpMain
tPreEmpMain
);
// 导出详情使用 hgw 2024-6-26 11:05:41
int
getTEmpMainAllCountOneWork
(
@Param
(
"tPreEmpMain"
)
TPreEmpMain
tPreEmpMain
);
List
<
TPreMainExportAllVO
>
getTEmpMainAllListOneWork
(
@Param
(
"tPreEmpMain"
)
TPreEmpMain
tPreEmpMain
);
int
getTEmpMainAllCountTwoFamily
(
@Param
(
"tPreEmpMain"
)
TPreEmpMain
tPreEmpMain
);
List
<
TPreMainExportAllVO
>
getTEmpMainAllListTwoFamily
(
@Param
(
"tPreEmpMain"
)
TPreEmpMain
tPreEmpMain
);
int
getTEmpMainAllCountThreeProfessional
(
@Param
(
"tPreEmpMain"
)
TPreEmpMain
tPreEmpMain
);
List
<
TPreMainExportAllVO
>
getTEmpMainAllListThreeProfessional
(
@Param
(
"tPreEmpMain"
)
TPreEmpMain
tPreEmpMain
);
TPreEmpMain
getTPreEmpMainByCardAndDept
(
@Param
(
"empIdCard"
)
String
empIdCard
,
@Param
(
"deptId"
)
String
deptId
);
TPreEmpMain
getTPreEmpMainByCardAndDeptNo
(
@Param
(
"empIdCard"
)
String
empIdCard
,
@Param
(
"deptNo"
)
String
deptNo
);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TCompleteMonitorService.java
View file @
ca61f129
...
...
@@ -61,6 +61,6 @@ public interface TCompleteMonitorService extends IService<TCompleteMonitor> {
IPage
<
TCompleteMonitorInfoVo
>
getMonitorEmpInfoListPage
(
Page
<
TCompleteMonitorInfoVo
>
page
,
String
deptNo
);
// 导出全量
void
exportAll
(
HttpServletResponse
response
,
TCompleteMonitorSearchVo
searchVo
);
R
<
String
>
exportAll
(
HttpServletResponse
response
,
TCompleteMonitorSearchVo
searchVo
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TPreEmpMainService.java
View file @
ca61f129
...
...
@@ -75,7 +75,7 @@ public interface TPreEmpMainService extends IService<TPreEmpMain> {
// 导出
void
listExport
(
HttpServletResponse
response
,
TPreEmpMainSearchVo
searchVo
);
// 导出全量
void
exportAll
(
HttpServletResponse
response
,
TPreEmpMainSearchVo
searchVo
);
R
<
String
>
exportAll
(
HttpServletResponse
response
,
TPreEmpMainSearchVo
searchVo
);
List
<
TPreEmpMain
>
noPageDiy
(
TPreEmpMainSearchVo
searchVo
);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TCompleteMonitorServiceImpl.java
View file @
ca61f129
...
...
@@ -233,12 +233,15 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
* @return
*/
@Override
public
void
exportAll
(
HttpServletResponse
response
,
TCompleteMonitorSearchVo
searchVo
)
{
public
R
<
String
>
exportAll
(
HttpServletResponse
response
,
TCompleteMonitorSearchVo
searchVo
)
{
String
name
=
"档案完整度监控详情"
;
String
fileName
=
name
+
DateUtil
.
getThisTime
()
+
".xlsx"
;
//获取要导出的列表
List
<
TMainExportAllVO
>
list
=
Lists
.
newArrayList
();
long
count
=
baseMapper
.
getTEmpMainAllCount
(
searchVo
);
if
(
count
>
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
return
R
.
failed
(
"数据超过6万条,请联系管理员后端导出!"
);
}
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
...
...
@@ -336,6 +339,54 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
list
.
clear
();
}
}
// 1工作经历
count
=
baseMapper
.
getTEmpMainAllCountOneWork
(
searchVo
);
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
baseMapper
.
getTEmpMainAllListOneWork
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
ExcelWriterSheetBuilder
writeSheet
=
EasyExcelFactory
.
writerSheet
(
"工作经历"
+
index
);
excelWriter
.
write
(
list
,
writeSheet
.
build
());
index
++;
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
// 2家庭成员
count
=
baseMapper
.
getTEmpMainAllCountTwoFamily
(
searchVo
);
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
baseMapper
.
getTEmpMainAllListTwoFamily
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
ExcelWriterSheetBuilder
writeSheet
=
EasyExcelFactory
.
writerSheet
(
"家庭成员"
+
index
);
excelWriter
.
write
(
list
,
writeSheet
.
build
());
index
++;
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
// 3职业资格
count
=
baseMapper
.
getTEmpMainAllCountThreeProfessional
(
searchVo
);
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
baseMapper
.
getTEmpMainAllListThreeProfessional
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
ExcelWriterSheetBuilder
writeSheet
=
EasyExcelFactory
.
writerSheet
(
"职业资格"
+
index
);
excelWriter
.
write
(
list
,
writeSheet
.
build
());
index
++;
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
}
else
{
WriteSheet
writeSheet
=
EasyExcelFactory
.
writerSheet
(
name
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
...
...
@@ -356,6 +407,7 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
log
.
error
(
"执行异常"
,
e
);
}
}
return
null
;
}
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
View file @
ca61f129
...
...
@@ -1717,12 +1717,15 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
* @return
*/
@Override
public
void
exportAll
(
HttpServletResponse
response
,
TPreEmpMainSearchVo
searchVo
)
{
public
R
<
String
>
exportAll
(
HttpServletResponse
response
,
TPreEmpMainSearchVo
searchVo
)
{
String
name
=
"预入职导出全量"
;
String
fileName
=
name
+
DateUtil
.
getThisTime
()
+
".xlsx"
;
//获取要导出的列表
List
<
TPreMainExportAllVO
>
list
=
Lists
.
newArrayList
();
long
count
=
baseMapper
.
getTPreEmpMainAllCount
(
searchVo
);
if
(
count
>
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
return
R
.
failed
(
"数据超过6万条,请联系管理员后端导出!"
);
}
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
...
...
@@ -1820,6 +1823,56 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
list
.
clear
();
}
}
// 1工作经历
count
=
baseMapper
.
getTEmpMainAllCountOneWork
(
searchVo
);
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
baseMapper
.
getTEmpMainAllListOneWork
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
ExcelWriterSheetBuilder
writeSheet
=
EasyExcelFactory
.
writerSheet
(
"工作经历"
+
index
);
excelWriter
.
write
(
list
,
writeSheet
.
build
());
index
++;
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
// 2家庭成员
count
=
baseMapper
.
getTEmpMainAllCountTwoFamily
(
searchVo
);
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
baseMapper
.
getTEmpMainAllListTwoFamily
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
ExcelWriterSheetBuilder
writeSheet
=
EasyExcelFactory
.
writerSheet
(
"家庭成员"
+
index
);
excelWriter
.
write
(
list
,
writeSheet
.
build
());
index
++;
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
// 3职业资格
count
=
baseMapper
.
getTEmpMainAllCountThreeProfessional
(
searchVo
);
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
baseMapper
.
getTEmpMainAllListThreeProfessional
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
ExcelWriterSheetBuilder
writeSheet
=
EasyExcelFactory
.
writerSheet
(
"职业资格"
+
index
);
excelWriter
.
write
(
list
,
writeSheet
.
build
());
index
++;
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
}
else
{
WriteSheet
writeSheet
=
EasyExcelFactory
.
writerSheet
(
name
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
...
...
@@ -1840,6 +1893,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
log
.
error
(
"执行异常"
,
e
);
}
}
return
null
;
}
/**
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TCompleteMonitorMapper.xml
View file @
ca61f129
...
...
@@ -307,7 +307,7 @@
,e.VALIDITY_END field10,e.EMP_BIRTHDAY field11,e.EMP_AGE field12 ,emp_married.label field13,nation.label field14
,politicalStatus.label field15,e.EMP_PHONE field16,e.EMP_EMAIL field17
,concat(ifnull(pi.AREA_NAME,''),ifnull(ci.AREA_NAME,''),ifnull(ti.AREA_NAME,'')) field18 ,registype.label field19
,concat(ifnull(pf.AREA_NAME,''),ifnull(cf.AREA_NAME,''),ifnull(tf.AREA_NAME,'')) field20 ,if(e.
FILE_STATUS=0,'正常','已减档
') field21
,concat(ifnull(pf.AREA_NAME,''),ifnull(cf.AREA_NAME,''),ifnull(tf.AREA_NAME,'')) field20 ,if(e.
status=0,'草稿','已审核
') field21
,e.CONTACT_ADDRESS field22,p.UNIT_NAME field23,p.DEPT_NAME field24
,concat(p.BUSINESS_PRIMARY_TYPE,'-',ifnull(p.BUSINESS_SECOND_TYPE,''),'-',ifnull(p.BUSINESS_THIRD_TYPE,'')) field25
,eci.contract_name field26 ,workingHours.label field27,eci.POST field28,eci.CONTRACT_START field29
...
...
@@ -394,6 +394,22 @@
</if>
</select>
<!-- 数量 -->
<select
id=
"getTEmpMainAllCountOneWork"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_complete_monitor a
left join t_employee_project p on a.DEPT_NO=p.DEPT_NO
left join t_employee_info e on p.EMP_ID=e.id
left join t_emp_work_recording ew on e.id=ew.EMP_ID
<where>
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ew.id is not null and ew.DELETE_FLAG = '0' and EXISTS (
select 1 from (select a.emp_id from t_emp_work_recording a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ew.emp_id
)
<include
refid=
"tCompleteMonitor_where"
/>
</where>
</select>
<!--导出统计list1主要工作经历-->
<select
id=
"getTEmpMainAllListOneWork"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TMainExportAllVO"
>
SELECT
...
...
@@ -404,7 +420,9 @@
left join t_employee_info e on p.EMP_ID=e.id
left join t_emp_work_recording ew on e.id=ew.EMP_ID
<where>
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ew.id is not null
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ew.id is not null and ew.DELETE_FLAG = '0' and EXISTS (
select 1 from (select a.emp_id from t_emp_work_recording a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ew.emp_id
)
<include
refid=
"tCompleteMonitor_where"
/>
</where>
<if
test=
"tCompleteMonitor != null"
>
...
...
@@ -414,6 +432,21 @@
</if>
</select>
<!-- 数量 -->
<select
id=
"getTEmpMainAllCountTwoFamily"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_complete_monitor a
left join t_employee_project p on a.DEPT_NO=p.DEPT_NO
left join t_employee_info e on p.EMP_ID=e.id
left join t_emp_family ef on e.id=ef.EMP_ID
<where>
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ef.id is not null and ef.DELETE_FLAG = '0' and EXISTS (
select 1 from (select a.emp_id from t_emp_family a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ef.emp_id
)
<include
refid=
"tCompleteMonitor_where"
/>
</where>
</select>
<!--导出统计list2主要家庭成员信息-->
<select
id=
"getTEmpMainAllListTwoFamily"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TMainExportAllVO"
>
SELECT
...
...
@@ -424,7 +457,9 @@
left join t_employee_info e on p.EMP_ID=e.id
left join t_emp_family ef on e.id=ef.EMP_ID
<where>
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ef.id is not null
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ef.id is not null and ef.DELETE_FLAG = '0' and EXISTS (
select 1 from (select a.emp_id from t_emp_family a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ef.emp_id
)
<include
refid=
"tCompleteMonitor_where"
/>
</where>
<if
test=
"tCompleteMonitor != null"
>
...
...
@@ -433,6 +468,22 @@
</if>
</if>
</select>
<!-- 数量 -->
<select
id=
"getTEmpMainAllCountThreeProfessional"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_complete_monitor a
left join t_employee_project p on a.DEPT_NO=p.DEPT_NO
left join t_employee_info e on p.EMP_ID=e.id
left join t_emp_professional_qualification ep on e.id=ep.EMP_ID
<where>
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ep.id is not null and ep.DELETE_FLAG = '0' and EXISTS (
select 1 from (select a.emp_id from t_emp_professional_qualification a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ep.emp_id
)
<include
refid=
"tCompleteMonitor_where"
/>
</where>
</select>
<!--导出统计list3职业资格信息-->
<select
id=
"getTEmpMainAllListThreeProfessional"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TMainExportAllVO"
>
SELECT
...
...
@@ -444,7 +495,9 @@
left join t_emp_professional_qualification ep on e.id=ep.EMP_ID
left join view_sys_dict_item qualification_type on qualification_type.value=ep.QUALIFICATION_TYPE and qualification_type.type='qualification_type'
<where>
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ep.id is not null
p.DELETE_FLAG = '0' and p.PROJECT_STATUS = 0 and ep.id is not null and ep.DELETE_FLAG = '0' and EXISTS (
select 1 from (select a.emp_id from t_emp_professional_qualification a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ep.emp_id
)
<include
refid=
"tCompleteMonitor_where"
/>
</where>
<if
test=
"tCompleteMonitor != null"
>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TPreEmpMainMapper.xml
View file @
ca61f129
...
...
@@ -285,24 +285,24 @@
<select
id=
"getTPreEmpMainAllList"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TPreMainExportAllVO"
>
SELECT
case a.STATUS when '0' then '草稿' when '1' then '待完善' when '2' then '待审核' when '3' then '审核不通过' when '4' then '审核通过' else '-' end field1
,
a.create_time
field2,e.EMP_CODE field3,emp_natrue.label field4,a.emp_name field5,a.emp_idcard field6
,
DATE_FORMAT(a.create_time,'%Y-%m-%d')
field2,e.EMP_CODE field3,emp_natrue.label field4,a.emp_name field5,a.emp_idcard field6
,if(e.EMP_SEX='2','女',if(e.EMP_SEX='1','男','-')) field7
,if(e.VALIDITY_END is null,'-',if(e.VALIDITY_END > '2999-12-30 00:00:00','长期','固定')) field8 ,e.VALIDITY_END field9
,e.VALIDITY_END field10,e.EMP_BIRTHDAY field11,e.EMP_AGE field12 ,emp_married.label field13,nation.label field14
,politicalStatus.label field15,e.EMP_PHONE field16,e.EMP_EMAIL field17
,concat(ifnull(pi.AREA_NAME,''),ifnull(ci.AREA_NAME,''),ifnull(ti.AREA_NAME,'')) field18 ,registype.label field19
,concat(ifnull(pf.AREA_NAME,''),ifnull(cf.AREA_NAME,''),ifnull(tf.AREA_NAME,'')) field20 ,if(e.
FILE_STATUS=0,'正常','已减档
') field21
,concat(ifnull(pf.AREA_NAME,''),ifnull(cf.AREA_NAME,''),ifnull(tf.AREA_NAME,'')) field20 ,if(e.
status=0,'草稿','已审核
') field21
,e.CONTACT_ADDRESS field22,p.UNIT_NAME field23,p.DEPT_NAME field24
,concat(p.BUSINESS_PRIMARY_TYPE,'-',ifnull(p.BUSINESS_SECOND_TYPE,''),'-',ifnull(p.BUSINESS_THIRD_TYPE,'')) field25
,contractType.label field26 ,workingHours.label field27,p.POST field28,p.ENJOIN_DATE field29
,p.TRY_PERIOD field30,p.EMP_LABEL field31
,ec.EMP_NAME field32,ec.RELATION_TYPE field33,ec.ADDRESS field34,ec.TEL field35
,ee.SCHOOL field36,ee.MAJOR field37,education.label field38,if(e.IS_COLLEGE=0,'否','是') field39
,
if(ee.HIGH_IDENTIFICATION=0,'是','否')
field40 ,ee.ENTRY_DATE field41,ee.GRADUTION_DATE field42
,
educationEmp.label
field40 ,ee.ENTRY_DATE field41,ee.GRADUTION_DATE field42
,if(e.FIRST_WORK_FLAG
=0,'是','否'
) field43,ew.WORK_UNIT field44,ew.WORK_JOB field45,ew.START_DATE field46,ew.END_DATE field47
,if(e.FIRST_WORK_FLAG
is null,'',if(e.FIRST_WORK_FLAG=0,'是','否')
) field43,ew.WORK_UNIT field44,ew.WORK_JOB field45,ew.START_DATE field46,ew.END_DATE field47
,ef.FAMILY_NAME field48,ef.RELATIONSHIP_SELF field49,ef.CONTRACT_TEL field50
,if(e.HAVE_QUALIFICATION
=0,'是','否'
) field51,ep.DECLARE_YEAR field52,qualification_type.label field53
,if(e.HAVE_QUALIFICATION
is null,'',if(e.HAVE_QUALIFICATION=0,'是','否')
) field51,ep.DECLARE_YEAR field52,qualification_type.label field53
,if(ed.INJURY_IDENTIFICATION=0,'是','否') field54,if(ed.OCCUPATIONAL_DISEASE_FLAG=0,'是','否') field55 ,ed.OCCUPATIONAL_DISEASE field56
,if(ed.INFECTIOUS_DISEASE_FLAG=0,'是','否') field57 ,ed.INFECTIOUS_NAME field58 ,if(ed.DISABILITY_FLAG=0,'是','否') field59
...
...
@@ -310,6 +310,7 @@
FROM t_pre_emp_main a
left join t_pre_employee_info e on a.id=e.PRE_MAIN_ID
left join view_sys_dict_item emp_natrue on emp_natrue.value=a.emp_Natrue and emp_natrue.type='emp_natrue'
left join view_sys_dict_item educationEmp on educationEmp.value=e.HIGN_EDUCATION and educationEmp.type='education'
left join view_sys_dict_item emp_married on emp_married.value=e.EMP_MARRI_STATUS and emp_married.type='emp_married'
left join view_sys_dict_item nation on nation.value=e.EMP_NATIONAL and nation.type='emp_national'
left join view_sys_dict_item registype on registype.value=e.EMP_REGIS_TYPE and registype.type='emp_registype'
...
...
@@ -373,6 +374,115 @@
</where>
</select>
<!-- 数量 -->
<select
id=
"getTEmpMainAllCountOneWork"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_pre_emp_main a
left join t_pre_employee_info e on a.id=e.PRE_MAIN_ID
left join t_pre_emp_work_recording ew on e.id=ew.EMP_ID
<where>
a.STATUS != '5' and ew.id is not null and EXISTS (
select 1 from (select a.emp_id from t_pre_emp_work_recording a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ew.emp_id
)
<include
refid=
"tPreEmpMain_where"
/>
</where>
</select>
<!--导出统计list1主要工作经历-->
<select
id=
"getTEmpMainAllListOneWork"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TPreMainExportAllVO"
>
SELECT
e.emp_idcard field6
,if(e.FIRST_WORK_FLAG is null,'',if(e.FIRST_WORK_FLAG=0,'是','否')) field43,ew.WORK_UNIT field44,ew.WORK_JOB field45,ew.START_DATE field46,ew.END_DATE field47
FROM t_pre_emp_main a
left join t_pre_employee_info e on a.id=e.PRE_MAIN_ID
left join t_pre_emp_work_recording ew on e.id=ew.EMP_ID
<where>
a.STATUS != '5' and ew.id is not null and EXISTS (
select 1 from (select a.emp_id from t_pre_emp_work_recording a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ew.emp_id
)
<include
refid=
"tPreEmpMain_where"
/>
</where>
<if
test=
"tPreEmpMain != null"
>
<if
test=
"tPreEmpMain.limitStart != null"
>
limit #{tPreEmpMain.limitStart},#{tPreEmpMain.limitEnd}
</if>
</if>
</select>
<!-- 数量 -->
<select
id=
"getTEmpMainAllCountTwoFamily"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_pre_emp_main a
left join t_pre_employee_info e on a.id=e.PRE_MAIN_ID
left join t_pre_emp_family ef on e.id=ef.EMP_ID
<where>
a.STATUS != '5' and ef.id is not null and EXISTS (
select 1 from (select a.emp_id from t_pre_emp_family a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ef.emp_id
)
<include
refid=
"tPreEmpMain_where"
/>
</where>
</select>
<!--导出统计list2主要家庭成员信息-->
<select
id=
"getTEmpMainAllListTwoFamily"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TPreMainExportAllVO"
>
SELECT
e.emp_idcard field6
,ef.FAMILY_NAME field48,ef.RELATIONSHIP_SELF field49,ef.CONTRACT_TEL field50
FROM t_pre_emp_main a
left join t_pre_employee_info e on a.id=e.PRE_MAIN_ID
left join t_pre_emp_family ef on e.id=ef.EMP_ID
<where>
a.STATUS != '5' and ef.id is not null and EXISTS (
select 1 from (select a.emp_id from t_pre_emp_family a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ef.emp_id
)
<include
refid=
"tPreEmpMain_where"
/>
</where>
<if
test=
"tPreEmpMain != null"
>
<if
test=
"tPreEmpMain.limitStart != null"
>
limit #{tPreEmpMain.limitStart},#{tPreEmpMain.limitEnd}
</if>
</if>
</select>
<!-- 数量 -->
<select
id=
"getTEmpMainAllCountThreeProfessional"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_pre_emp_main a
left join t_pre_employee_info e on a.id=e.PRE_MAIN_ID
left join t_pre_emp_professional_qualification ep on e.id=ep.EMP_ID
<where>
a.STATUS != '5' and ep.id is not null and EXISTS (
select 1 from (select a.emp_id from t_pre_emp_professional_qualification a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ep.emp_id
)
<include
refid=
"tPreEmpMain_where"
/>
</where>
</select>
<!--导出统计list3职业资格信息-->
<select
id=
"getTEmpMainAllListThreeProfessional"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TPreMainExportAllVO"
>
SELECT
e.emp_idcard field6
,if(e.HAVE_QUALIFICATION is null,'',if(e.HAVE_QUALIFICATION=0,'是','否')) field51,ep.DECLARE_YEAR field52,qualification_type.label field53
FROM t_pre_emp_main a
left join t_pre_employee_info e on a.id=e.PRE_MAIN_ID
left join t_pre_emp_professional_qualification ep on e.id=ep.EMP_ID
left join view_sys_dict_item qualification_type on qualification_type.value=ep.QUALIFICATION_TYPE and qualification_type.type='qualification_type'
<where>
a.STATUS != '5' and ep.id is not null and EXISTS (
select 1 from (select a.emp_id from t_pre_emp_professional_qualification a GROUP BY a.EMP_ID HAVING count(1)>1) ea where ea.emp_id=ep.emp_id
)
<include
refid=
"tPreEmpMain_where"
/>
</where>
<if
test=
"tPreEmpMain != null"
>
<if
test=
"tPreEmpMain.limitStart != null"
>
limit #{tPreEmpMain.limitStart},#{tPreEmpMain.limitEnd}
</if>
</if>
</select>
<!--tPreEmpMain简单分页查询-->
<select
id=
"getTPreEmpMainByCardAndDept"
resultMap=
"tPreEmpMainMap"
>
SELECT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment