| | |
| | | </if> |
| | | </select> |
| | | <select id="leaveList" resultType="com.ruoyi.system.applet.vo.LeaveUserListVO"> |
| | | select t1.*,t1.create_time as createTime1 |
| | | select t1.*,t1.create_time as createTime1,t1.start_time as startTime1,t1.end_time as endTime1 |
| | | from t_leave t1 |
| | | where |
| | | t1.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | |
| | | <if test="query.type == 2"> |
| | | and t1.leave_person = #{query.userId} |
| | | </if> |
| | | <if test="query.auditStatus!=null and query.auditStatus == 1"> |
| | | and t1.audit_status = 1 |
| | | </if> |
| | | <if test="query.auditStatus!=null and query.auditStatus != 1"> |
| | | and (t1.audit_status = 2 or t1.audit_status = 3) |
| | | </if> |
| | | <if test="query.userIds != null and query.userIds.size()>0"> |
| | | AND t1.leave_person IN |
| | | <foreach collection="query.userIds" separator="," item="id" open="(" close=")"> |