zn-cloud/yudao-module-bpm/yudao-module-bpm-biz/src/main/resources/mapper/oa/BpmOALeaveMapper.xml
furongxin b1e7f9a9f6 feat(bpm): 新增合同审批功能
- 添加合同审批相关的 API 接口和实现类
- 创建合同审批的请求和响应对象
- 实现合同审批的创建、查询等功能
- 添加合同统计相关接口和实现
- 优化合同审批页面列表展示
2024-12-08 13:40:21 +08:00

24 lines
990 B
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.yudao.module.bpm.dal.mysql.oa.BpmOALeaveMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="getLeaveListByTime" resultType="cn.iocoder.yudao.module.bpm.api.oa.vo.leave.BpmOALeaveRpcVO">
SELECT
*
FROM
bpm_oa_leave
<where>
result = 2
AND DATE_FORMAT( end_time, '%Y-%m-%d' ) &gt;= #{time}
AND DATE_FORMAT( start_time, '%Y-%m-%d') &lt;= #{time}
</where>
</select>
</mapper>