|
|
@@ -20,6 +20,7 @@ import (
|
|
|
"dashoo.cn/business3/items"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
+ "log"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
@@ -767,7 +768,7 @@ func (this *OilSupplierCertAppendController) CompanySubmitAuditEntity() {
|
|
|
|
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
if receiveVal != "true" {
|
|
|
- fmt.Println(time.Now().String()+" ---- 工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
+ log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
panic("任务已审批,请刷新!")
|
|
|
}
|
|
|
|
|
|
@@ -865,7 +866,7 @@ func (this *OilSupplierCertAppendController) SeparateUnitSubmitAuditEntity() {
|
|
|
ActiComplete.CallbackUrl = utils.Cfg.MustValue("workflow", "callbackHost")
|
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
if receiveVal != "true" {
|
|
|
- fmt.Println(time.Now().String()+" ---- 工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
+ log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
panic("任务已审批,请刷新!")
|
|
|
}
|
|
|
// 记录申请快照 选择在准入项更新以后记录快照,防止第一次审批未通过后又改变了准入范围(待验证)。 // CertSubStatus字段 -1是什么状态
|
|
|
@@ -935,7 +936,7 @@ func (this *OilSupplierCertAppendController) AppendSeparateAuditEntity() {
|
|
|
ActiComplete.CallbackUrl = utils.Cfg.MustValue("workflow", "callbackHost")
|
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
if receiveVal != "true" {
|
|
|
- fmt.Println(time.Now().String()+" ---- 工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
+ log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
panic("任务已审批,请刷新!")
|
|
|
}
|
|
|
}
|
|
|
@@ -980,7 +981,7 @@ func (this *OilSupplierCertAppendController) AppendCommonAuditEntity() {
|
|
|
ActiComplete.CallbackUrl = utils.Cfg.MustValue("workflow", "callbackHost")
|
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
if receiveVal != "true" {
|
|
|
- fmt.Println(time.Now().String()+" ---- 工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
+ log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
panic("任务已审批,请刷新!")
|
|
|
}
|
|
|
}
|
|
|
@@ -1040,7 +1041,7 @@ func (this *OilSupplierCertAppendController) AppendBusinessOfficeSeparateAuditEn
|
|
|
ActiComplete.CallbackUrl = utils.Cfg.MustValue("workflow", "callbackHost")
|
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
if receiveVal != "true" {
|
|
|
- fmt.Println(time.Now().String()+" ---- 工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
+ log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
panic("任务已审批,请刷新!")
|
|
|
}
|
|
|
}
|
|
|
@@ -1084,7 +1085,7 @@ func (this *OilSupplierCertAppendController) AppendConcentrateAuditEntity() {
|
|
|
ActiComplete.CallbackUrl = utils.Cfg.MustValue("workflow", "callbackHost")
|
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
if receiveVal != "true" {
|
|
|
- fmt.Println(time.Now().String()+" ---- 工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
+ log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
panic("任务已审批,请刷新!")
|
|
|
}
|
|
|
//cols := []string{
|
|
|
@@ -1163,7 +1164,7 @@ func (this *OilSupplierCertAppendController) UpdateIsStorage() {
|
|
|
ActiComplete.CallbackUrl = utils.Cfg.MustValue("workflow", "callbackHost")
|
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
if receiveVal != "true" {
|
|
|
- fmt.Println(time.Now().String()+" ---- 工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
+ log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
panic("任务已审批,请刷新!")
|
|
|
}
|
|
|
|