2025-02-18 14:15:00 +08:00
|
|
|
<?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="com.ruoyi.bgt.mapper.BgtProjectRecruitApplyMapper">
|
|
|
|
|
|
|
|
<resultMap type="com.ruoyi.bgt.domain.BgtProjectRecruitApply" id="BgtProjectRecruitApplyResult">
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<result property="recruitId" column="recruit_id"/>
|
|
|
|
<result property="userId" column="user_id"/>
|
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="appQueryList" resultType="com.ruoyi.bgt.domain.vo.BgtProjectRecruitApplyVO">
|
2025-02-22 13:42:15 +08:00
|
|
|
select bpra.id,
|
|
|
|
bpra.entry_time,
|
|
|
|
wu.user_id,
|
|
|
|
wu.phone,
|
|
|
|
wu.score,
|
|
|
|
wu.avatar_name,
|
|
|
|
wu.username,
|
2025-02-26 18:43:45 +08:00
|
|
|
bpra.status,
|
2025-02-22 13:42:15 +08:00
|
|
|
wu.type_of_work,
|
|
|
|
bpr.recruit_name,
|
|
|
|
fpt.task_name
|
2025-02-18 14:15:00 +08:00
|
|
|
from bgt_project_recruit_apply bpra
|
2025-02-22 13:42:15 +08:00
|
|
|
left join wgz_user wu on bpra.user_id = wu.user_id
|
|
|
|
left join bgt_project_recruit bpr on bpr.id = bpra.recruit_id
|
|
|
|
left join fbs_project_task fpt on fpt.id = bpr.task_id
|
|
|
|
<where>
|
|
|
|
<if test="dto.username !=null and dto.username !='' ">
|
|
|
|
and wu.username like concat('%', #{dto.username}, '%')
|
|
|
|
</if>
|
|
|
|
<if test="dto.recruitIds != null and dto.recruitIds.size() > 0">
|
|
|
|
AND bpra.recruit_id IN
|
|
|
|
<foreach collection="dto.recruitIds" item="recruitId" open="(" separator="," close=")">
|
|
|
|
#{recruitId}
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
<if test="dto.status != null and dto.status.size() > 0">
|
|
|
|
AND bpra.status IN
|
|
|
|
<foreach collection="dto.status" item="item" open="(" separator="," close=")">
|
|
|
|
#{item}
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</where>
|
2025-02-26 18:43:45 +08:00
|
|
|
order by bpra.create_time desc,bpra.status asc
|
2025-02-22 13:42:15 +08:00
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="todayAttendanceList" resultType="com.ruoyi.bgt.domain.vo.BgtProjectRecruitApplyVO">
|
|
|
|
select bpra.id,
|
|
|
|
bpra.entry_time,
|
|
|
|
wu.user_id,
|
|
|
|
wu.phone,
|
|
|
|
wu.score,
|
|
|
|
wu.avatar_name,
|
|
|
|
wu.username,
|
|
|
|
wu.type_of_work,
|
|
|
|
bpr.recruit_name,
|
|
|
|
fpt.task_name
|
|
|
|
from wgz_attendance wa
|
|
|
|
left join wgz_user wu on wa.user_id = wu.user_id
|
|
|
|
left join bgt_project_recruit_apply bpra on wa.recruit_id = bpra.recruit_id and bpra.user_id = wa.user_id
|
|
|
|
left join bgt_project_recruit bpr on bpr.id = bpra.recruit_id
|
|
|
|
left join fbs_project_task fpt on fpt.id = bpr.task_id
|
2025-02-25 17:13:38 +08:00
|
|
|
where wa.date = #{dto.date}
|
2025-02-22 13:42:15 +08:00
|
|
|
<if test="dto.attendanceType !=null and dto.attendanceType ==1 ">
|
|
|
|
and (wa.missed_in =0 or missed_out = 0 )
|
|
|
|
</if>
|
|
|
|
<if test="dto.attendanceType !=null and dto.attendanceType ==2 ">
|
|
|
|
and (wa.missed_in =1 and missed_out = 1 )
|
2025-02-18 17:25:21 +08:00
|
|
|
</if>
|
2025-02-22 13:42:15 +08:00
|
|
|
<if test="dto.attendanceType !=null and dto.attendanceType ==3 ">
|
|
|
|
and wa.late =1
|
2025-02-18 17:25:21 +08:00
|
|
|
</if>
|
2025-02-18 14:15:00 +08:00
|
|
|
</select>
|
|
|
|
|
2025-02-21 16:15:49 +08:00
|
|
|
<select id="underwayPage" resultType="com.ruoyi.wgz.bo.res.WgzAppUnderwayRes">
|
|
|
|
SELECT
|
2025-02-22 16:09:45 +08:00
|
|
|
a.entry_time,
|
|
|
|
a.leave_time,
|
2025-02-21 16:15:49 +08:00
|
|
|
b.*,
|
|
|
|
c.task_name,
|
|
|
|
c.task_address,
|
|
|
|
c.task_img,
|
2025-02-22 16:09:45 +08:00
|
|
|
c.create_time as taskCreateTime
|
2025-02-21 16:15:49 +08:00
|
|
|
FROM
|
|
|
|
bgt_project_recruit_apply as a
|
|
|
|
LEFT JOIN bgt_project_recruit as b on(a.recruit_id = b.id and b.del_flag = 0 )
|
|
|
|
LEFT JOIN fbs_project_task as c ON (b.task_id = c.id AND c.del_flag = 0)
|
2025-02-22 16:09:45 +08:00
|
|
|
<where>
|
2025-02-27 10:03:24 +08:00
|
|
|
<if test="req.userId!=null and req.userId!=0 ">
|
|
|
|
a.user_id = #{req.userId} AND
|
2025-02-22 16:09:45 +08:00
|
|
|
</if>
|
|
|
|
<choose>
|
2025-02-27 10:03:24 +08:00
|
|
|
<when test="req.type!=null and req.type!='' and req.type == 1">
|
2025-02-22 16:09:45 +08:00
|
|
|
a.status IN ('3', '5') AND
|
|
|
|
</when>
|
2025-02-27 10:03:24 +08:00
|
|
|
<when test="req.type!=null and req.type!='' and req.type == 2">
|
2025-02-22 16:09:45 +08:00
|
|
|
a.status IN ('6') AND
|
|
|
|
</when>
|
|
|
|
</choose>
|
2025-02-21 16:15:49 +08:00
|
|
|
a.del_flag = 0
|
2025-02-22 16:09:45 +08:00
|
|
|
</where>
|
2025-02-21 16:15:49 +08:00
|
|
|
</select>
|
|
|
|
|
2025-02-18 14:15:00 +08:00
|
|
|
</mapper>
|