|
@@ -457,9 +457,9 @@
|
|
|
<if test="dbName == 'mssql'">'%'+#{content}+'%'</if>
|
|
|
<if test="dbName == 'mysql'">concat('%',#{content},'%')</if>
|
|
|
</if>
|
|
|
- <if test="user != null and user.id != null and user.id != ''">
|
|
|
+ <!--<if test="user != null and user.id != null and user.id != ''">
|
|
|
AND a.notify_user = #{user.id}
|
|
|
- </if>
|
|
|
+ </if>-->
|
|
|
<if test="userName != null and userName != ''">
|
|
|
AND u.name LIKE
|
|
|
<if test="dbName == 'oracle'">'%'||#{userName}||'%'</if>
|
|
@@ -485,7 +485,7 @@
|
|
|
and a.create_by is not null
|
|
|
|
|
|
and a.process_instance_id in( select process_instance_id from work_activity_process
|
|
|
- where process_instance_id in(select process_id from work_activity_process_user where user_id = #{user.id})
|
|
|
+ where process_instance_id in(select process_id from work_activity_process_user where user_id = #{user.id} and del_flag=1)
|
|
|
and del_flag = 0 and (remarks !='[强制撤销]' or remarks is null) and is_approval != 0
|
|
|
group by process_instance_id)
|
|
|
|
|
@@ -520,9 +520,9 @@
|
|
|
<if test="dbName == 'mssql'">'%'+#{content}+'%'</if>
|
|
|
<if test="dbName == 'mysql'">concat('%',#{content},'%')</if>
|
|
|
</if>
|
|
|
- <if test="user != null and user.id != null and user.id != ''">
|
|
|
+ <!--<if test="user != null and user.id != null and user.id != ''">
|
|
|
AND a.notify_user = #{user.id}
|
|
|
- </if>
|
|
|
+ </if>-->
|
|
|
<if test="userName != null and userName != ''">
|
|
|
AND u.name LIKE
|
|
|
<if test="dbName == 'oracle'">'%'||#{userName}||'%'</if>
|
|
@@ -547,7 +547,7 @@
|
|
|
</if>
|
|
|
and a.create_by is not null
|
|
|
and a.process_instance_id in( select process_instance_id from work_activity_process
|
|
|
- where process_instance_id in(select process_id from work_activity_process_user where user_id = #{user.id})
|
|
|
+ where process_instance_id in(select process_id from work_activity_process_user where user_id = #{user.id} and del_flag=1)
|
|
|
and del_flag = 0 and (remarks !='[强制撤销]' or remarks is null) and is_approval != 0
|
|
|
group by process_instance_id)
|
|
|
</where>
|