月计划与月计划异常导出添加头部条件
This commit is contained in:
parent
803298ae60
commit
de8a9f61aa
|
|
@ -134,6 +134,7 @@ public class AttDetailByMonthController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@Resource(name = "attendanceDetailsService")
|
@Resource(name = "attendanceDetailsService")
|
||||||
private AttendanceDetailsService attendanceDetailsService;
|
private AttendanceDetailsService attendanceDetailsService;
|
||||||
|
|
||||||
@RequiresPermissions("att:detail:export")
|
@RequiresPermissions("att:detail:export")
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public void export(HttpServletResponse response, AttDetailByMonthBean bean) {
|
public void export(HttpServletResponse response, AttDetailByMonthBean bean) {
|
||||||
|
|
@ -207,6 +208,7 @@ public class AttDetailByMonthController extends BaseController {
|
||||||
AttDetailBean dayTable = new AttDetailBean();
|
AttDetailBean dayTable = new AttDetailBean();
|
||||||
dayTable.setStartDate(monthFirstAndLast.get(0));
|
dayTable.setStartDate(monthFirstAndLast.get(0));
|
||||||
dayTable.setEndDate(monthFirstAndLast.get(1));
|
dayTable.setEndDate(monthFirstAndLast.get(1));
|
||||||
|
dayTable.setName(bean.getName());
|
||||||
if (bean.getOrgId() != null) {
|
if (bean.getOrgId() != null) {
|
||||||
dayTable.setOrgId(String.valueOf(bean.getOrgId()));
|
dayTable.setOrgId(String.valueOf(bean.getOrgId()));
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -215,7 +217,6 @@ public class AttDetailByMonthController extends BaseController {
|
||||||
dayTable.setOrgList(bean.getOrgList());
|
dayTable.setOrgList(bean.getOrgList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dayTable.setName(bean.getName());
|
|
||||||
headers.entrySet()
|
headers.entrySet()
|
||||||
.forEach(entry -> {
|
.forEach(entry -> {
|
||||||
if ("99".equals(entry.getKey())) {
|
if ("99".equals(entry.getKey())) {
|
||||||
|
|
|
||||||
|
|
@ -727,7 +727,6 @@ public class ExportFileController {
|
||||||
dayTable.setOrgList(bean.getOrgList());
|
dayTable.setOrgList(bean.getOrgList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dayTable.setName(bean.getUserName());
|
|
||||||
headers.entrySet()
|
headers.entrySet()
|
||||||
.forEach(entry -> {
|
.forEach(entry -> {
|
||||||
if ("99".equals(entry.getKey())) {
|
if ("99".equals(entry.getKey())) {
|
||||||
|
|
|
||||||
|
|
@ -453,6 +453,9 @@
|
||||||
<if test="bean.userName != null and bean.userName != ''">
|
<if test="bean.userName != null and bean.userName != ''">
|
||||||
and locate(#{bean.userName},awa.user_name)
|
and locate(#{bean.userName},awa.user_name)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="bean.orgId != null and bean.orgId != ''">
|
||||||
|
and so.id = #{bean.orgId}
|
||||||
|
</if>
|
||||||
<if test='bean.orgList != null and bean.orgList.size() > 0'>
|
<if test='bean.orgList != null and bean.orgList.size() > 0'>
|
||||||
and so.id in (
|
and so.id in (
|
||||||
<foreach collection="bean.orgList" item="item" separator=",">
|
<foreach collection="bean.orgList" item="item" separator=",">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue