分包商

This commit is contained in:
zt
2025-03-28 16:38:03 +08:00
parent 8289974a21
commit b4491e0848
37 changed files with 1515 additions and 30 deletions

View File

@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bwa.task_staff_num,
bwa.task_address,
bwa.applicant_amount,
bwa.create_time,
bwa.apply_time,
bwa.id,
bwa.username,
bwa.project_name,
@ -73,5 +73,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order by bwa.create_time desc
</select>
<select id="fbsAuditPageList" resultType="com.ruoyi.bgt.domain.vo.BgtWageApplicationVO">
select bwa.task_name,
bwa.task_staff_num,
bwa.task_address,
bwa.applicant_amount,
bwa.apply_time,
bwa.id,
bwa.username,
bwa.project_name,
bwa.audit_status
from bgt_wage_application bwa
<where>
<if test="dto.reviewerId != null ">
and bwa.reviewer_id = #{dto.reviewerId}
</if>
<if test="dto.taskId != null ">
and bwa.task_id = #{dto.taskId}
</if>
<if test="dto.taskName != null and dto.taskName != ''">
and bpr.task_name like concat('%', #{dto.taskName}, '%')
</if>
<if test="dto.type != null and dto.type == 1 ">
and bwa.audit_status = '1'
</if>
<if test="dto.type != null and dto.type == 2 ">
and bwa.audit_status in ('2','3')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,30 @@
<?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.fbs.mapper.FbsMessageMapper">
<resultMap type="com.ruoyi.fbs.domain.FbsMessage" id="FbsMessageResult">
<result property="id" column="id"/>
<result property="senderType" column="sender_type"/>
<result property="senderId" column="sender_id"/>
<result property="recipientType" column="recipient_type"/>
<result property="recipientId" column="recipient_id"/>
<result property="headline" column="headline"/>
<result property="subheading" column="subheading"/>
<result property="tableId" column="table_id"/>
<result property="tableName" column="table_name"/>
<result property="messageLargeType" column="message_large_type"/>
<result property="messageSmallType" column="message_small_type"/>
<result property="readStatus" column="read_status"/>
<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"/>
<result property="isOperation" column="is_operation"/>
</resultMap>
</mapper>

View File

@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="dto.auditorType != null and dto.auditorType != ''">
and a.auditor_type = #{dto.auditorType}
</if>
<if test="dto.auditorType == null">
<if test="dto.auditorType == null or dto.auditorType == ''">
and a.auditor_type in (0,1,2,3)
</if>
<if test="dto.date != null">

View File

@ -17,5 +17,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark"/>
</resultMap>
<select id="joinSectionList" resultType="com.ruoyi.fbs.domain.vo.FbsProjectSectionListVO">
SELECT zps.id, zps.project_id, zps.section_name
from zbf_project_section zps
left join zbf_project zp on zps.project_id = zp.id
where EXISTS (SELECT 1
FROM zbf_project_subcontracting zpsu
WHERE zpsu.user_id = #{dto.fbsUserId}
AND zps.id = zpsu.section_id)
<if test="dto.projectId!=null">
and zps.project_id = #{dto.projectId}
</if>
</select>
</mapper>