|
@@ -274,6 +274,7 @@ type ReportApproveItemOrm struct {
|
|
|
HandleTime time.Time `description:"处理时间"`
|
|
|
CreateTime time.Time `description:"创建时间"`
|
|
|
ModifyTime time.Time `description:"修改时间"`
|
|
|
+ NodeState int `description:"当前节点审批状态:1-待审批;2-已审批;3-已驳回;4-已撤回" json:"-"`
|
|
|
}
|
|
|
|
|
|
// GetApprovingReportApproveCount 获取待处理的审批分页列表总数
|
|
@@ -323,7 +324,7 @@ func GetApprovedReportApprovePageList(cond string, pars []interface{}, orderRule
|
|
|
if orderRule != "" {
|
|
|
order = ` ORDER BY ` + orderRule
|
|
|
}
|
|
|
- sql := fmt.Sprintf(`SELECT a.report_approve_record_id, a.state AS record_state, a.approve_time AS handle_time, b.*
|
|
|
+ sql := fmt.Sprintf(`SELECT a.report_approve_record_id, a.state AS record_state,a.node_state, a.approve_time AS handle_time, b.*
|
|
|
FROM report_approve_record AS a
|
|
|
JOIN report_approve AS b ON a.report_approve_id = b.report_approve_id
|
|
|
WHERE 1 = 1 %s %s
|