我管理的/我需要填写的 列表返回模版类型 1日报 2周报
This commit is contained in:
parent
897d15708d
commit
d2e460b56d
@ -21,5 +21,8 @@ public class LogStatisticsModelVO extends LogFormDO {
|
||||
|
||||
@Schema(description = "提交范围")
|
||||
private String commitTimeRange;
|
||||
|
||||
@Schema(description = "模版类型 1日报 2周报 3月报")
|
||||
private Integer type;
|
||||
}
|
||||
|
||||
|
@ -118,6 +118,7 @@ public class LogStatisticsServiceImpl implements LogStatisticsService {
|
||||
List<LogInstanceDO> instanceDOS = logInstanceService.myManageLogInstanceByTimeRange(logFormDO.getId(), logRuleDO.getType(), thisDate);
|
||||
LogStatisticsModelVO vo = new LogStatisticsModelVO();
|
||||
BeanUtil.copyProperties(logFormDO, vo);
|
||||
vo.setType(logRuleDO.getType());
|
||||
//查询下应该提交多少日志实例 - 直接通过模版id查询使用表
|
||||
Integer num = Math.toIntExact(logUseMapper.selectCount(new LambdaQueryWrapper<LogUseDO>()
|
||||
.eq(LogUseDO::getFormId, logFormDO.getId())));
|
||||
@ -268,6 +269,7 @@ public class LogStatisticsServiceImpl implements LogStatisticsService {
|
||||
vo.setUnSubmittedNum(unSubmittedNum);
|
||||
vo.setLateNum(lateNum);
|
||||
}
|
||||
vo.setType(logRuleDO.getType());
|
||||
list.add(vo);
|
||||
}
|
||||
return list;
|
||||
|
Loading…
Reference in New Issue
Block a user