select 1 from (select a.EMP_IDCARD from t_pre_emp_work_recording a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ew.EMP_IDCARD
select 1 from (select a.EMP_IDCARD from t_pre_emp_work_recording a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ew.EMP_IDCARD
)
)
<includerefid="tPreEmpMain_where"/>
<includerefid="tPreEmpMain_where"/>
<iftest="tPreEmpMain != null">
<iftest="tPreEmpMain.authSql != null and tPreEmpMain.authSql.trim() != ''">
${tPreEmpMain.authSql}
</if>
</if>
</where>
</where>
</select>
</select>
...
@@ -377,6 +382,11 @@
...
@@ -377,6 +382,11 @@
select 1 from (select a.EMP_IDCARD from t_pre_emp_work_recording a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ew.EMP_IDCARD
select 1 from (select a.EMP_IDCARD from t_pre_emp_work_recording a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ew.EMP_IDCARD
)
)
<includerefid="tPreEmpMain_where"/>
<includerefid="tPreEmpMain_where"/>
<iftest="tPreEmpMain != null">
<iftest="tPreEmpMain.authSql != null and tPreEmpMain.authSql.trim() != ''">
${tPreEmpMain.authSql}
</if>
</if>
</where>
</where>
ORDER BY a.emp_idcard DESC
ORDER BY a.emp_idcard DESC
<iftest="tPreEmpMain != null">
<iftest="tPreEmpMain != null">
...
@@ -398,6 +408,11 @@
...
@@ -398,6 +408,11 @@
select 1 from (select a.EMP_IDCARD from t_pre_emp_family a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ef.EMP_IDCARD
select 1 from (select a.EMP_IDCARD from t_pre_emp_family a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ef.EMP_IDCARD
)
)
<includerefid="tPreEmpMain_where"/>
<includerefid="tPreEmpMain_where"/>
<iftest="tPreEmpMain != null">
<iftest="tPreEmpMain.authSql != null and tPreEmpMain.authSql.trim() != ''">
${tPreEmpMain.authSql}
</if>
</if>
</where>
</where>
</select>
</select>
<!--导出统计list2主要家庭成员信息-->
<!--导出统计list2主要家庭成员信息-->
...
@@ -413,6 +428,11 @@
...
@@ -413,6 +428,11 @@
select 1 from (select a.EMP_IDCARD from t_pre_emp_family a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ef.EMP_IDCARD
select 1 from (select a.EMP_IDCARD from t_pre_emp_family a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ef.EMP_IDCARD
)
)
<includerefid="tPreEmpMain_where"/>
<includerefid="tPreEmpMain_where"/>
<iftest="tPreEmpMain != null">
<iftest="tPreEmpMain.authSql != null and tPreEmpMain.authSql.trim() != ''">
${tPreEmpMain.authSql}
</if>
</if>
</where>
</where>
ORDER BY a.emp_idcard DESC
ORDER BY a.emp_idcard DESC
<iftest="tPreEmpMain != null">
<iftest="tPreEmpMain != null">
...
@@ -434,6 +454,11 @@
...
@@ -434,6 +454,11 @@
select 1 from (select a.EMP_IDCARD from t_pre_emp_professional_qualification a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ep.EMP_IDCARD
select 1 from (select a.EMP_IDCARD from t_pre_emp_professional_qualification a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ep.EMP_IDCARD
)
)
<includerefid="tPreEmpMain_where"/>
<includerefid="tPreEmpMain_where"/>
<iftest="tPreEmpMain != null">
<iftest="tPreEmpMain.authSql != null and tPreEmpMain.authSql.trim() != ''">
${tPreEmpMain.authSql}
</if>
</if>
</where>
</where>
</select>
</select>
<!--导出统计list3职业资格信息-->
<!--导出统计list3职业资格信息-->
...
@@ -449,6 +474,11 @@
...
@@ -449,6 +474,11 @@
select 1 from (select a.EMP_IDCARD from t_pre_emp_professional_qualification a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ep.EMP_IDCARD
select 1 from (select a.EMP_IDCARD from t_pre_emp_professional_qualification a left join t_pre_emp_main p on a.PRE_MAIN_ID=p.id where p.STATUS != '5' and p.id is not null GROUP BY a.EMP_IDCARD HAVING count(1)>1) ea where ea.EMP_IDCARD=ep.EMP_IDCARD
)
)
<includerefid="tPreEmpMain_where"/>
<includerefid="tPreEmpMain_where"/>
<iftest="tPreEmpMain != null">
<iftest="tPreEmpMain.authSql != null and tPreEmpMain.authSql.trim() != ''">