待办中心-查询完善。
This commit is contained in:
+15
-13
@@ -257,7 +257,7 @@
|
||||
from
|
||||
process_info_detail detail
|
||||
where detail.process_info_id = pi.id and detail.user_id = #{params.currentUserId}
|
||||
<if test="params.queryType == 'todoProcess'">
|
||||
<if test="params.taskStatus != null and params.taskStatus != ''">
|
||||
and detail.`status` = #{params.taskStatus}
|
||||
</if>
|
||||
order by detail.submit_time desc
|
||||
@@ -269,7 +269,7 @@
|
||||
from
|
||||
process_info_detail detail
|
||||
where detail.process_info_id = pi.id and detail.user_id = #{params.currentUserId}
|
||||
<if test="params.queryType == 'todoProcess'">
|
||||
<if test="params.taskStatus != null and params.taskStatus != ''">
|
||||
and detail.`status` = #{params.taskStatus}
|
||||
</if>
|
||||
order by detail.submit_time desc
|
||||
@@ -287,20 +287,22 @@
|
||||
<foreach collection="params.flowTypeList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
and (
|
||||
pi.id IN (
|
||||
SELECT
|
||||
pid.process_info_id
|
||||
FROM
|
||||
process_info_detail pid
|
||||
where pid.user_id = #{params.currentUserId}
|
||||
<if test="params.taskStatus != null and params.taskStatus != ''">
|
||||
and pid.status = #{params.taskStatus}
|
||||
</if>
|
||||
)
|
||||
)
|
||||
<if test="params.queryType == 'issuedProcess'">
|
||||
and pi.create_by = #{params.createBy}
|
||||
</if>
|
||||
<if test="params.queryType != 'issuedProcess'">
|
||||
and (
|
||||
pi.id IN (
|
||||
SELECT
|
||||
pid.process_info_id
|
||||
FROM
|
||||
process_info_detail pid
|
||||
where pid.user_id = #{params.currentUserId} and pid.status = #{params.taskStatus}
|
||||
)
|
||||
)
|
||||
</if>
|
||||
|
||||
</where>
|
||||
) temp
|
||||
<include refid="BaseQuerySql"/>
|
||||
|
||||
+1
@@ -375,6 +375,7 @@ public class ProcessInfoEOServiceImpl extends ServiceImpl<ProcessInfoEOMapper, P
|
||||
flowTypeList.add(FlowTypeEnum.FGJSPG.getValue());
|
||||
params.put("flowTypeList",flowTypeList);
|
||||
params.put("currentUserId",currentUser.getId());
|
||||
params.put("taskStatus", TaskStatusEnum.HAVE_DONE.getValue());
|
||||
|
||||
IPage page = new Page(pageNo, pageSize);
|
||||
IPage<ProcessInfoVO> result = this.baseMapper.queryLawsAssessPageList(page,params);
|
||||
|
||||
Reference in New Issue
Block a user