视频,用印回调,裁决书处理

This commit is contained in:
18792927508
2024-05-10 17:48:42 +08:00
parent 50a9e7242c
commit 44129c7cd0
28 changed files with 998 additions and 671 deletions
@@ -11,7 +11,8 @@
<result property="scheduleStartTime" column="schedule_start_time" />
</resultMap>
<select id="getCaseListByRespondent" resultType="CaseEvidenceVO" resultMap="CaseEvidenceVOResult">
select DISTINCT(c.id) id, c.case_num,c.case_status,rc.room_id,rc.schedule_start_time
select t.* from(
select c.id id, c.case_num,c.case_status,rc.room_id,rc.schedule_start_time
from case_application as c join case_affiliate as d on c.id = d.case_appli_id
left join reserved_conference rc on rc.case_id=c.id
where c.id = d.case_appli_id
@@ -21,11 +22,46 @@
<if test="identityType != null ">
and d.identity_type = #{identityType}
</if>
<if test="phone != null and phone != ''">
and (d.contact_telphone = #{phone} or d.contact_telphone_agent=#{phone})
</if>
<if test="caseStatusList != null and caseStatusList.size() > 0">
and c.case_status in
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
#{caseStatus}
</foreach>
</if>
union
<!-- 已办案件 -->
select c.id id, c.case_num,c.case_status,rc.room_id,rc.schedule_start_time
from case_log_record r
join case_application c on r.case_appli_id=c.id
JOIN case_affiliate ca ON ca.case_appli_id = c.id
left join reserved_conference rc on rc.case_id=c.id
WHERE
r.create_by=#{loginUserName} AND ca.identity_type=2
and c.id not in(
select c.id
from case_application c
JOIN case_affiliate ca ON ca.case_appli_id = c.id
where c.id = ca.case_appli_id
<if test="identityNum != null and identityNum != ''">
and ca.identity_num = #{identityNum}
</if>
<if test="identityType != null ">
and ca.identity_type = #{identityType}
</if>
<if test="phone != null and phone != ''">
and (ca.contact_telphone = #{phone} or ca.contact_telphone_agent=#{phone})
</if>
<if test="caseStatusList != null and caseStatusList.size() > 0">
and c.case_status in
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
#{caseStatus}
</foreach>
</if>
)
) t
</select>
</mapper>