案件查询
This commit is contained in:
+1
@@ -198,6 +198,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
caseApplication.setFinanceStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
|
caseApplication.setFinanceStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
|
||||||
}
|
}
|
||||||
if ("法律顾问".equals(role.getRoleName())) {
|
if ("法律顾问".equals(role.getRoleName())) {
|
||||||
|
// 秘书查看所有案件
|
||||||
// 查询角色有关的用户部门
|
// 查询角色有关的用户部门
|
||||||
List<Long> deptIds = new ArrayList<>();
|
List<Long> deptIds = new ArrayList<>();
|
||||||
deptIds.add(sysUser.getDeptId());
|
deptIds.add(sysUser.getDeptId());
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
<!--仲裁员-->
|
<!--仲裁员-->
|
||||||
<if test="userId != null and userId != ''">
|
<if test="userId != null and userId != ''">
|
||||||
or ( t.identity_type=1 and
|
or ( t.identity_type=1 and
|
||||||
t.case_status in (7,8,9,11,13,17)
|
t.case_status in (7,11,13,17)
|
||||||
and
|
and
|
||||||
instr (t.arbitrator_id,#{userId})>0)
|
instr (t.arbitrator_id,#{userId})>0)
|
||||||
</if>
|
</if>
|
||||||
@@ -316,14 +316,14 @@
|
|||||||
WHERE
|
WHERE
|
||||||
ca.identity_type=1
|
ca.identity_type=1
|
||||||
|
|
||||||
and c.case_status in (1,5,14,15,16,17,31)
|
and c.case_status in (1,5,8,9,14,15,16,17,31)
|
||||||
|
|
||||||
<if test="deptIds != null and deptIds.size() > 0">
|
<!-- <if test="deptIds != null and deptIds.size() > 0">
|
||||||
and ca.application_organ_id in
|
and ca.application_organ_id in
|
||||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>-->
|
||||||
<if test="lockStatus != null">
|
<if test="lockStatus != null">
|
||||||
AND c.lock_status = #{lockStatus}
|
AND c.lock_status = #{lockStatus}
|
||||||
</if>
|
</if>
|
||||||
@@ -439,12 +439,12 @@
|
|||||||
<!-- #{caseStatus}-->
|
<!-- #{caseStatus}-->
|
||||||
<!-- </foreach>-->
|
<!-- </foreach>-->
|
||||||
<!-- </if>-->
|
<!-- </if>-->
|
||||||
<if test="deptIds != null and deptIds.size() > 0">
|
<!-- <if test="deptIds != null and deptIds.size() > 0">
|
||||||
and ca.application_organ_id in
|
and ca.application_organ_id in
|
||||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if> -->
|
||||||
<!-- <if test="caseStatus != null">-->
|
<!-- <if test="caseStatus != null">-->
|
||||||
<!-- AND c.case_status = #{caseStatus}-->
|
<!-- AND c.case_status = #{caseStatus}-->
|
||||||
<!-- </if>-->
|
<!-- </if>-->
|
||||||
@@ -699,7 +699,7 @@
|
|||||||
<!--仲裁员-->
|
<!--仲裁员-->
|
||||||
<if test="userId != null and userId != ''">
|
<if test="userId != null and userId != ''">
|
||||||
or ( t.identity_type=1 and
|
or ( t.identity_type=1 and
|
||||||
t.case_status in (7,8,9,11,13,17)
|
t.case_status in (7,11,13,17)
|
||||||
and
|
and
|
||||||
instr (t.arbitrator_id,#{userId})>0)
|
instr (t.arbitrator_id,#{userId})>0)
|
||||||
</if>
|
</if>
|
||||||
@@ -791,13 +791,13 @@
|
|||||||
WHERE case_appli_id = c.id
|
WHERE case_appli_id = c.id
|
||||||
)
|
)
|
||||||
WHERE
|
WHERE
|
||||||
ca.identity_type=1 and c.case_status in (1,5,14,15,16,17,31)
|
ca.identity_type=1 and c.case_status in (1,5,8,9,14,15,16,17,31)
|
||||||
<if test="deptIds != null and deptIds.size() > 0">
|
<!-- <if test="deptIds != null and deptIds.size() > 0">
|
||||||
and ca.application_organ_id in
|
and ca.application_organ_id in
|
||||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if> -->
|
||||||
<if test="caseStatus != null">
|
<if test="caseStatus != null">
|
||||||
AND c.case_status = #{caseStatus}
|
AND c.case_status = #{caseStatus}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user