|
@@ -549,6 +549,9 @@ select
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="processState==8 and aid !=null">
|
|
|
|
|
+ and e.approval_aid =#{aid}
|
|
|
|
|
+ </if>
|
|
|
<if test="userName !=null">
|
|
<if test="userName !=null">
|
|
|
and c.nickname like concat('%',#{userName},'%')
|
|
and c.nickname like concat('%',#{userName},'%')
|
|
|
</if>
|
|
</if>
|
|
@@ -583,15 +586,12 @@ select
|
|
|
and ((a.process_state >= #{processState} and a.process_state < 10)or a.back_status >= #{processState})
|
|
and ((a.process_state >= #{processState} and a.process_state < 10)or a.back_status >= #{processState})
|
|
|
</if>
|
|
</if>
|
|
|
<if test="complete ==0 and processState == 8">
|
|
<if test="complete ==0 and processState == 8">
|
|
|
- and ((a.process_state >= 8 and a.process_state < 10)or a.back_status >= #{processState}) and e.province !=11
|
|
|
|
|
|
|
+ and (a.process_state >= 8 and a.process_state < 10)or a.back_status >= #{processState}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="complete ==0 and processState == 9">
|
|
<if test="complete ==0 and processState == 9">
|
|
|
and ((a.process_state = 9 )or a.back_status >= #{processState})
|
|
and ((a.process_state = 9 )or a.back_status >= #{processState})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="complete ==0 and processState == 10">
|
|
|
|
|
- and ((a.process_state =10 )or a.back_status >= #{processState}) and e.province=11
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="complete ==1 and processState < 6">
|
|
|
|
|
|
|
+ <if test="complete ==1 and processState < 6">
|
|
|
and a.process_state = #{processState} and a.status in (0,1,2,3)
|
|
and a.process_state = #{processState} and a.status in (0,1,2,3)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="complete ==1 and processState == 6">
|
|
<if test="complete ==1 and processState == 6">
|
|
@@ -684,6 +684,9 @@ select
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="processState==8 and aid !=null">
|
|
|
|
|
+ and e.approval_aid =#{aid}
|
|
|
|
|
+ </if>
|
|
|
<if test="userName !=null">
|
|
<if test="userName !=null">
|
|
|
and c.nickname like concat('%',#{userName},'%')
|
|
and c.nickname like concat('%',#{userName},'%')
|
|
|
</if>
|
|
</if>
|
|
@@ -718,14 +721,11 @@ select
|
|
|
and ((a.process_state >= #{processState} and a.process_state < 10)or a.back_status >= #{processState})
|
|
and ((a.process_state >= #{processState} and a.process_state < 10)or a.back_status >= #{processState})
|
|
|
</if>
|
|
</if>
|
|
|
<if test="complete ==0 and processState == 8">
|
|
<if test="complete ==0 and processState == 8">
|
|
|
- and ((a.process_state >= 8 and a.process_state < 10)or a.back_status >= #{processState}) and e.province !=11
|
|
|
|
|
|
|
+ and (a.process_state >= 8 and a.process_state < 10)or a.back_status >= #{processState}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="complete ==0 and processState == 9">
|
|
<if test="complete ==0 and processState == 9">
|
|
|
and ((a.process_state = 9 )or a.back_status >= #{processState})
|
|
and ((a.process_state = 9 )or a.back_status >= #{processState})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="complete ==0 and processState == 10">
|
|
|
|
|
- and ((a.process_state =10 )or a.back_status >= #{processState}) and e.province=11
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="complete ==1 and processState < 6">
|
|
<if test="complete ==1 and processState < 6">
|
|
|
and a.process_state = #{processState} and a.status in (0,1,2,3)
|
|
and a.process_state = #{processState} and a.status in (0,1,2,3)
|
|
|
</if>
|
|
</if>
|