查询修改
This commit is contained in:
@@ -199,9 +199,9 @@
|
||||
</if>
|
||||
<!--申请人-->
|
||||
<if test="nameId != null and nameId != ''">
|
||||
or( ( t.application_organ_id = #{nameId} AND t.identity_type=1
|
||||
or ( t.application_organ_id = #{nameId} AND t.identity_type=1
|
||||
and t.case_status in (0,2))
|
||||
)
|
||||
|
||||
</if>
|
||||
<!--部门长-->
|
||||
<if test="deptHeadStatus != null and deptHeadStatus.size() > 0">
|
||||
@@ -217,18 +217,18 @@
|
||||
</if>
|
||||
</where>
|
||||
) t1
|
||||
-- <where>
|
||||
<!-- <!–申请人–>-->
|
||||
<!-- <where>
|
||||
<!–申请人–>-->
|
||||
<!-- <if test="nameId != null and nameId != ''">-->
|
||||
<!-- and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1-->
|
||||
<!-- and t1.case_status in (0,2)-->
|
||||
<!-- )-->
|
||||
<!-- </if>-->
|
||||
-- </where>
|
||||
<!-- </if>
|
||||
</where> -->
|
||||
</select>
|
||||
|
||||
<select id="selectAdminCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
||||
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||
select DISTINCT(c.id) id,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||
CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
|
||||
ELSE '无审理方式'
|
||||
END arbitratMethodName,
|
||||
@@ -288,7 +288,7 @@
|
||||
sum( case when c.case_status=17 then 1 else 0 end) caseApplyArchived
|
||||
FROM
|
||||
case_application c
|
||||
LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id
|
||||
JOIN case_affiliate ca ON ca.case_appli_id = c.id
|
||||
AND ca.identity_type = 1
|
||||
WHERE
|
||||
c.case_status IN (
|
||||
|
||||
Reference in New Issue
Block a user