|
|
|
|
@ -3,7 +3,9 @@ package org.dromara.oa.erp.controller;
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
|
|
import org.dromara.common.core.exception.ServiceException;
|
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
@ -45,6 +47,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
* @author Yangk
|
|
|
|
|
* @date 2025-12-26
|
|
|
|
|
*/
|
|
|
|
|
@Slf4j
|
|
|
|
|
@Validated
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
@RestController
|
|
|
|
|
@ -140,8 +143,8 @@ public class ErpTimesheetReportController {
|
|
|
|
|
.registerWriteHandler(new ProjectRowHighlightStrategy(list))
|
|
|
|
|
.doWrite(list);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
throw new RuntimeException("导出失败");
|
|
|
|
|
log.error("导出项目工时统计报表失败", e);
|
|
|
|
|
throw new ServiceException("导出失败");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -237,8 +240,8 @@ public class ErpTimesheetReportController {
|
|
|
|
|
.doWrite(dataList);
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
throw new RuntimeException("导出失败");
|
|
|
|
|
log.error("导出项目人员工时统计报表失败", e);
|
|
|
|
|
throw new ServiceException("导出失败");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|