Explorar o código

Merge branch 'feature/eta_1.3.8' into debug

hsun hai 1 ano
pai
achega
f990d18e75
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      controllers/smart_report/smart_report.go

+ 5 - 5
controllers/smart_report/smart_report.go

@@ -1464,11 +1464,11 @@ func (this *SmartReportController) CancelApprove() {
 		br.Msg = "操作成功"
 		return
 	}
-	if reportItem.ApproveId <= 0 {
-		br.Msg = "报告审批不存在"
-		br.ErrMsg = fmt.Sprintf("报告审批不存在, ApproveId: %d", reportItem.ApproveId)
-		return
-	}
+	//if reportItem.ApproveId <= 0 {
+	//	br.Msg = "报告审批不存在"
+	//	br.ErrMsg = fmt.Sprintf("报告审批不存在, ApproveId: %d", reportItem.ApproveId)
+	//	return
+	//}
 
 	// 撤销审批
 	e = services.CancelReportApprove(report_approve.FlowReportTypeSmart, reportItem.SmartReportId, reportItem.ApproveId, sysUser.AdminId, sysUser.RealName)