|
@@ -222,10 +222,12 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
private ReportPushLogService reportPushLogService;
|
|
|
@Resource
|
|
|
private SapSyncLogService sapSyncLogService;
|
|
|
-
|
|
|
+ @Resource
|
|
|
+ private CompanyDictMapper companyDictMapper;
|
|
|
@Value(value = "${upload.path}")
|
|
|
private String path;
|
|
|
|
|
|
+
|
|
|
//获取报告列表
|
|
|
@Override
|
|
|
public HttpRespMsg getReportList(String date, Integer deptId, String targetUid, Integer pageIndex,
|
|
@@ -5931,11 +5933,22 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
// titles.add("工作日期");
|
|
|
// titles.add("工作时长(小时)");
|
|
|
titles.add(MessageUtils.message("entry.workDate"));
|
|
|
+ //具体工作细项
|
|
|
+ boolean hasDetailItem = false;
|
|
|
+ if (timeType.getType() == 2 && timeType.getMultiWorktime() == 1) {
|
|
|
+ Integer i = companyDictMapper.selectCount(new QueryWrapper<CompanyDict>().eq("company_id", companyId).eq("code", "multiOption"));
|
|
|
+ if (i > 0) {
|
|
|
+ hasDetailItem = true;
|
|
|
+ titles.add("具体工时");
|
|
|
+ }
|
|
|
+ }
|
|
|
titles.add(MessageUtils.message("excel.WorkHours"));
|
|
|
+
|
|
|
if (timeType.getMultiWorktime() == 1) {
|
|
|
//titles.add("工时时间");
|
|
|
titles.add(MessageUtils.message("excel.hours"));
|
|
|
}
|
|
|
+
|
|
|
//titles.add("加班");
|
|
|
titles.add(MessageUtils.message("excel.workOvertime"));
|
|
|
//是否启用自定义的维度了
|
|
@@ -6098,6 +6111,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
newMap.put("startTime", worktimeItem.getStartTime());
|
|
|
newMap.put("endTime", worktimeItem.getEndTime());
|
|
|
newMap.put("content", worktimeItem.getContent());
|
|
|
+ newMap.put("detail", worktimeItem.getDetail());
|
|
|
newMap.put("duration", df.format(worktimeItem.getTime()));
|
|
|
//第一条填充加班
|
|
|
if (isOvertime == 1 && i == 0) {
|
|
@@ -6114,6 +6128,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
newMap.put("startTime", "");
|
|
|
newMap.put("endTime", "");
|
|
|
newMap.put("content", "");
|
|
|
+ newMap.put("detail", "");
|
|
|
dealDataList.add(newMap);
|
|
|
}
|
|
|
} else {
|
|
@@ -6278,6 +6293,13 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
|
createDate = (String) map.get("createDate");
|
|
|
}
|
|
|
item.add(createDate);
|
|
|
+ if (hasDetailItem) {
|
|
|
+ if (map.get("detail") == null) {
|
|
|
+ item.add("");
|
|
|
+ } else {
|
|
|
+ item.add((String) map.get("detail"));
|
|
|
+ }
|
|
|
+ }
|
|
|
item.add(map.get("duration").toString());
|
|
|
if (timeType.getMultiWorktime() == 1) {
|
|
|
if ((Integer)map.get("multiWorktime") == 1) {
|