|
@@ -979,6 +979,10 @@ func (this *OilSupplierCertAppendController) AppendCommonAuditEntity() {
|
|
|
var supplierCertAppendEntity suppliercertappend.OilSupplierCertAppend
|
|
var supplierCertAppendEntity suppliercertappend.OilSupplierCertAppend
|
|
|
certSrv.GetEntityById(certAppendId, &supplierCertAppendEntity)
|
|
certSrv.GetEntityById(certAppendId, &supplierCertAppendEntity)
|
|
|
|
|
|
|
|
|
|
+ cols := []string{"AuditDate"}
|
|
|
|
|
+ supplierCertAppendEntity.AuditDate = time.Now()
|
|
|
|
|
+ certSrv.UpdateEntityBywheretbl(OilSupplierCertAppendName, &supplierCertAppendEntity, cols, "Id = " + certAppendId)
|
|
|
|
|
+
|
|
|
svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
|
var ActiComplete workflow.ActiCompleteVM
|
|
var ActiComplete workflow.ActiCompleteVM
|
|
|
ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
|
|
ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
|
|
@@ -1162,6 +1166,11 @@ func (this *OilSupplierCertAppendController) UpdateIsStorage() {
|
|
|
AuditRemark = "入库退回。"
|
|
AuditRemark = "入库退回。"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 审核日期
|
|
|
|
|
+ cols := []string{"AuditDate"}
|
|
|
|
|
+ supplierCertAppendEntity.AuditDate = time.Now()
|
|
|
|
|
+ certAppendSrv.UpdateEntityBywheretbl(OilSupplierCertAppendName, &supplierCertAppendEntity, cols, "Id = " + id)
|
|
|
|
|
+
|
|
|
svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
|
var ActiComplete workflow.ActiCompleteVM
|
|
var ActiComplete workflow.ActiCompleteVM
|
|
|
ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
|
|
ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
|
|
@@ -1175,6 +1184,14 @@ func (this *OilSupplierCertAppendController) UpdateIsStorage() {
|
|
|
log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
log.Println("工作流异常, 业务ID:"+supplierCertAppendEntity.BusinessKey+", 流程ID:"+supplierCertAppendEntity.WorkFlowId, " 工作流传参: ", ActiComplete, receiveVal)
|
|
|
panic("任务已审批,请刷新!")
|
|
panic("任务已审批,请刷新!")
|
|
|
}
|
|
}
|
|
|
|
|
+ if status == "1" && receiveVal == "true" {
|
|
|
|
|
+ // 资质文件改状态
|
|
|
|
|
+ var file supplierfile.OilSupplierFile
|
|
|
|
|
+ svc := supplierfile.GetSupplierfileService(utils.DBE)
|
|
|
|
|
+ cols := []string{"SupType"}
|
|
|
|
|
+ file.SupType = 3
|
|
|
|
|
+ svc.UpdateEntityBywheretbl(OilSupplierFileName, &file, cols, "SupType = 2 and SupplierId = " + strconv.Itoa(supplierCertAppendEntity.SupplierId))
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|