新增车间计算记录与数据看板
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.ruoyi.oa.domain.OaAttendanceRecord;
|
||||
import com.ruoyi.oa.domain.vo.OaAttendanceRecordVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计算记录Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-05-15
|
||||
*/
|
||||
public interface OaAttendanceRecordMapper extends BaseMapperPlus<OaAttendanceRecordMapper, OaAttendanceRecord, OaAttendanceRecordVo> {
|
||||
|
||||
/**
|
||||
* 获取全部的生成日期
|
||||
* @param date
|
||||
* @return
|
||||
*/
|
||||
List<String> listGenDate(String date);
|
||||
|
||||
/**
|
||||
* 获取全部相同日期数据
|
||||
*
|
||||
* @param date
|
||||
* @param firstDay
|
||||
* @return
|
||||
*/
|
||||
List<Long> listCommonDateRecord(@Param("date") String date, @Param("firstDay") Date firstDay);
|
||||
|
||||
/**
|
||||
* 查询详情
|
||||
* @param recordId
|
||||
* @return
|
||||
*/
|
||||
OaAttendanceRecordVo selectVoByIdPlus(Long recordId);
|
||||
}
|
||||
@@ -14,4 +14,7 @@ import org.apache.ibatis.annotations.Select;
|
||||
public interface OaReportDetailMapper extends BaseMapperPlus<OaReportDetailMapper, OaReportDetail, OaReportDetailVo> {
|
||||
@Select("SELECT url FROM sys_oss WHERE oss_id = #{ossId}")
|
||||
String selectImageUrlByOssId(String ossId);
|
||||
|
||||
|
||||
OaReportDetailVo selectVoByIdPlus(Long id);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package com.ruoyi.oa.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
||||
import com.ruoyi.oa.domain.SysOaAttendance;
|
||||
import com.ruoyi.oa.domain.bo.SysOaAttendanceBo;
|
||||
import com.ruoyi.oa.domain.vo.AttendanceMonthlyCount;
|
||||
import com.ruoyi.oa.domain.vo.SysOaAttendanceVo;
|
||||
import com.ruoyi.common.core.mapper.BaseMapperPlus;
|
||||
import com.ruoyi.oa.domain.vo.SysUserVo;
|
||||
@@ -38,4 +37,11 @@ public interface SysOaAttendanceMapper extends BaseMapperPlus<SysOaAttendanceMap
|
||||
Double getAttendanceDay(@Param("userId") Long userId,
|
||||
@Param("projectId") Long projectId );
|
||||
|
||||
List<Long> selectNowMonthUserId(Date firstDay);
|
||||
|
||||
List<AttendanceMonthlyCount> selectLastSixMonthsByMonth(String refDate);
|
||||
|
||||
AttendanceMonthlyCount selectAttendanceMonthlyCountByMonth(String refDate);
|
||||
|
||||
List<AttendanceMonthlyCount> selectMonthlyCounts(String refDate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user