|
|
@@ -6,6 +6,7 @@ import (
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplier"
|
|
|
"dashoo.cn/backend/api/business/paymentinfo"
|
|
|
"dashoo.cn/business2/items"
|
|
|
+ "dashoo.cn/backend/api/business/organize"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
"strconv"
|
|
|
@@ -572,6 +573,9 @@ func (this *OilSupplierCertController) AuditEntity() {
|
|
|
var supplierCertEntity suppliercert.OilSupplierCert
|
|
|
certSrv.GetEntityById(certId, &supplierCertEntity)
|
|
|
|
|
|
+ svc := organize.GetOrganizeService(utils.DBE)
|
|
|
+ unitId := svc.GetMyUnitDepartmentId(this.User.DepartmentId)
|
|
|
+
|
|
|
var errinfo ErrorDataInfo
|
|
|
defer func() { //finally处理失败的异常
|
|
|
if err := recover(); err != nil {
|
|
|
@@ -692,6 +696,7 @@ func (this *OilSupplierCertController) AuditEntity() {
|
|
|
supplierCertEntity.SecondAudit,_ = strconv.Atoi(secondAudit)
|
|
|
supplierCertEntity.ThirdAudit,_ = strconv.Atoi(thirdAudit)
|
|
|
supplierCertEntity.ProcessKey = ActiComplete.ProcessKey
|
|
|
+ supplierCertEntity.CommitComId = unitId
|
|
|
cols := []string{
|
|
|
"Id",
|
|
|
"WorkflowId",
|
|
|
@@ -703,6 +708,7 @@ func (this *OilSupplierCertController) AuditEntity() {
|
|
|
"SecondAudit",
|
|
|
"ThirdAudit",
|
|
|
"ProcessKey",
|
|
|
+ "CommitComId",
|
|
|
}
|
|
|
certSrv.UpdateEntityByIdCols(certId, supplierCertEntity, cols)
|
|
|
|