流程各节点加上审批人姓名
This commit is contained in:
parent
9c39989591
commit
3decf28405
|
@ -36,7 +36,7 @@ public class HistoryDetailDTO {
|
||||||
@ApiModelProperty(value = "执行ID")
|
@ApiModelProperty(value = "执行ID")
|
||||||
private String executionId;
|
private String executionId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "受理人")
|
@ApiModelProperty(value = "受理人id")
|
||||||
private String assignee;
|
private String assignee;
|
||||||
|
|
||||||
@ApiModelProperty(value = "开始时间")
|
@ApiModelProperty(value = "开始时间")
|
||||||
|
@ -50,4 +50,7 @@ public class HistoryDetailDTO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "审批意见")
|
@ApiModelProperty(value = "审批意见")
|
||||||
private String comment;
|
private String comment;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "受理人姓名")
|
||||||
|
private String assigneeName;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Date;
|
||||||
* @author Jone
|
* @author Jone
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper=false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class HistoryDetailEntity {
|
public class HistoryDetailEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -37,4 +37,6 @@ public class HistoryDetailEntity {
|
||||||
|
|
||||||
private String comment;
|
private String comment;
|
||||||
|
|
||||||
|
private String assigneeName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,13 +56,28 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getTaskHandleDetailInfo" resultMap="HistoryDetail">
|
<select id="getTaskHandleDetailInfo" resultMap="HistoryDetail">
|
||||||
SELECT ahc.ID_, ahc.TYPE_, aht.ID_ as TASK_ID_, aht.PROC_INST_ID_, ahc.MESSAGE_,
|
SELECT
|
||||||
aht.PROC_DEF_ID_, aht.EXECUTION_ID_, aht.NAME_, aht.ASSIGNEE_, aht.START_TIME_,
|
ahc.ID_,
|
||||||
aht.END_TIME_ from ACT_HI_TASKINST aht
|
ahc.TYPE_,
|
||||||
left join ACT_HI_COMMENT ahc on ahc.TASK_ID_ = aht.ID_ and ahc.TYPE_ = 'comment'
|
aht.ID_ AS TASK_ID_,
|
||||||
where aht.PROC_INST_ID_ = #{processInstanceId}
|
aht.PROC_INST_ID_,
|
||||||
and aht.end_time_ is not null
|
ahc.MESSAGE_,
|
||||||
order by aht.START_TIME_ desc
|
aht.PROC_DEF_ID_,
|
||||||
|
aht.EXECUTION_ID_,
|
||||||
|
aht.NAME_,
|
||||||
|
aht.ASSIGNEE_,
|
||||||
|
aht.START_TIME_,
|
||||||
|
aht.END_TIME_,
|
||||||
|
( SELECT user1.real_name FROM sys_user user1 WHERE user1.id = aht.ASSIGNEE_ ) ASSIGNEE_NAME_
|
||||||
|
FROM
|
||||||
|
ACT_HI_TASKINST aht
|
||||||
|
LEFT JOIN ACT_HI_COMMENT ahc ON ahc.TASK_ID_ = aht.ID_
|
||||||
|
AND ahc.TYPE_ = 'comment'
|
||||||
|
WHERE
|
||||||
|
aht.PROC_INST_ID_ = #{processInstanceId}
|
||||||
|
AND aht.end_time_ IS NOT NULL
|
||||||
|
ORDER BY
|
||||||
|
aht.START_TIME_ DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue