同步代码 更换电脑

This commit is contained in:
2025-06-16 15:59:23 +08:00
parent c09c14642d
commit b02ba9e482
6 changed files with 145 additions and 1 deletions

View File

@@ -17,6 +17,8 @@
<result property="delFlag" column="del_flag"/>
<result property="remark" column="remark"/>
</resultMap>
<select id="selectVoPagePlus" resultType="com.ruoyi.oa.domain.vo.OaProjectReportVo">
select opr.report_id,
opr.user_id,
@@ -67,5 +69,26 @@
where report_id = #{reportId}
</select>
<!-- 查询 content 中包含 “完成” 的记录数,按时间过滤 -->
<select id="countWithCompleted" parameterType="java.util.Date" resultType="Long">
SELECT COUNT(*)
FROM oa_project_report
WHERE del_flag = 0
AND content LIKE CONCAT('%', '完成', '%')
AND create_time &gt;= #{createTime}
</select>
<!-- 查询 content 中包含 “未完成” 或 “等待” 或 “待” 的记录数,按时间过滤 -->
<select id="countWithPending" parameterType="java.util.Date" resultType="Long">
SELECT COUNT(*)
FROM oa_project_report
WHERE del_flag = 0
AND (
content LIKE CONCAT('%', '未完成', '%')
OR content LIKE CONCAT('%', '等待', '%')
OR content LIKE CONCAT('%', '待', '%')
)
AND create_time &gt;= #{createTime}
</select>
</mapper>