组织架构考勤规则修改二次提交
This commit is contained in:
parent
62956c14eb
commit
425347b8ce
|
|
@ -13,6 +13,7 @@ import com.bonus.common.security.annotation.RequiresPermissions;
|
|||
import com.bonus.common.security.utils.SecurityUtils;
|
||||
import com.bonus.system.att.entity.*;
|
||||
import com.bonus.system.att.service.AttendanceDetailsService;
|
||||
import com.bonus.system.att.service.OrgChangeService;
|
||||
import com.bonus.system.basic.domain.SysOrg;
|
||||
import com.bonus.system.basic.domain.SysOrgExport;
|
||||
import com.bonus.system.basic.service.SysOrgService;
|
||||
|
|
@ -93,6 +94,9 @@ public class ExportFileController {
|
|||
@Resource(name = "sysOrgService")
|
||||
private SysOrgService sysOrgService;
|
||||
|
||||
@Resource(name = "OrgChangeService")
|
||||
private OrgChangeService orgChangeService;
|
||||
|
||||
|
||||
/**
|
||||
* 分公司项目部导出
|
||||
|
|
@ -546,4 +550,36 @@ public class ExportFileController {
|
|||
log.error(e.toString(), e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 组织架构变更导出
|
||||
* @param response
|
||||
* @param bean
|
||||
* @return void
|
||||
* @author:fly
|
||||
* @date:2024-10-14-10:30
|
||||
*/
|
||||
@RequiresPermissions("att:org:change:export")
|
||||
@GetMapping("/exportOrgChange")
|
||||
public void exportOrgChange(HttpServletResponse response, OrgChangeBean bean) {
|
||||
try {
|
||||
List<OrgChangeBean> personExportVoList = new ArrayList<>();
|
||||
List<OrgChangeBean> personLists = orgChangeService.selectOrgChangeList(bean);
|
||||
for (int i = 0; i < personLists.size(); i++) {
|
||||
OrgChangeBean vo = personLists.get(i);
|
||||
vo.setId((i + 1L));
|
||||
vo.setIsCheck(BusinessConstants.WAIT_CHECK.equals(vo.getIsCheck()) ? "待审核" : BusinessConstants.PASS_CHECK.equals(vo.getIsCheck()) ? "已通过" : BusinessConstants.NOT_PASS_CHECK.equals(vo.getIsCheck()) ? "未通过" : "撤回");
|
||||
// 创建一个 SimpleDateFormat 对象,用于格式化日期
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
// 将 Date 转换为 String
|
||||
String dateString = formatter.format(vo.getCreateTime());
|
||||
personExportVoList.add(vo);
|
||||
}
|
||||
extracted(personExportVoList, SubOrgBean.class, "组织架构变更记录导出", "组织架构变更记录导出", "组织架构变更记录导出", response);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue