diff --git a/src/main/resources/mybatis/datasource/eightwork/ConfinedspaceMapper.xml b/src/main/resources/mybatis/datasource/eightwork/ConfinedspaceMapper.xml index f27a9e3..b7428e1 100644 --- a/src/main/resources/mybatis/datasource/eightwork/ConfinedspaceMapper.xml +++ b/src/main/resources/mybatis/datasource/eightwork/ConfinedspaceMapper.xml @@ -462,11 +462,14 @@ select + flow.CAN_SKIP, + flow.ACTOR_FIELD, step.STEP_NAME, user.NAME as ACT_USER_NAME, log.ACT_TIME, log.STATUS, cu.SIGN_USER, + cu.FINISHED_SIGN_USER, cu.STEP_ID as CURRENT_STEP from bus_eightwork_task_flow flow @@ -457,9 +460,12 @@ left join bus_eightwork_flow_log log on log.STEP_ID = flow.STEP_ID and log.WORK_ID = #{HIGHWORK_ID} left join sys_user user on user.USER_ID = log.ACT_USER - left join (select sign.STEP_ID,GROUP_CONCAT(signer.NAME) sign_user from bus_highwork_sign sign + left join (select sign.STEP_ID, + GROUP_CONCAT( if(sign.SIGN_TIME IS NULL,signer.NAME,null) ) sign_user, + GROUP_CONCAT( if(sign.SIGN_TIME IS not NULL,signer.NAME,null) ) finished_sign_user + from bus_highwork_sign sign left join sys_user signer on signer.USER_ID = sign.SIGN_USER_ID where sign.HIGHWORK_ID = #{HIGHWORK_ID} - and sign.SIGN_TIME is null) cu on cu.STEP_ID = step.STEP_ID + GROUP BY sign.STEP_ID) cu on cu.STEP_ID = step.STEP_ID where flow.TASK_ID = #{TASK_ID} and