|
@@ -179,6 +179,7 @@ func (this *OilSupplierCertAppendController) AddAppend() {
|
|
|
// return
|
|
// return
|
|
|
//}
|
|
//}
|
|
|
//添加增项信息
|
|
//添加增项信息
|
|
|
|
|
+ model.InStyle = cermodel.InStyle
|
|
|
model.ApplyDate = time.Now() //申请日期
|
|
model.ApplyDate = time.Now() //申请日期
|
|
|
model.CreateOn = time.Now()
|
|
model.CreateOn = time.Now()
|
|
|
model.CreateBy = this.User.Realname
|
|
model.CreateBy = this.User.Realname
|
|
@@ -467,10 +468,24 @@ func (this *OilSupplierCertAppendController) AuditEntity() {
|
|
|
if supplierCertAppendEntity.WorkFlowId == "0" || len(supplierCertAppendEntity.WorkFlowId) <= 0 {
|
|
if supplierCertAppendEntity.WorkFlowId == "0" || len(supplierCertAppendEntity.WorkFlowId) <= 0 {
|
|
|
//启动工作流
|
|
//启动工作流
|
|
|
businessKey = certappendId + "-" + strconv.Itoa(supplierCertAppendEntity.AuditIndex)
|
|
businessKey = certappendId + "-" + strconv.Itoa(supplierCertAppendEntity.AuditIndex)
|
|
|
- processInstanceId = svcActiviti.StartProcess(workflow.OIL_APPEND_APPLY, businessKey, this.User.Id)
|
|
|
|
|
|
|
+ if supplierCertAppendEntity.InStyle == "2" {
|
|
|
|
|
+ processInstanceId = svcActiviti.StartProcess(workflow.OIL_FIRST_APPEND_APPLY, businessKey, this.User.Id)
|
|
|
|
|
+ }else if supplierCertAppendEntity.InStyle == "3" {
|
|
|
|
|
+ processInstanceId = svcActiviti.StartProcess(workflow.OIL_SECOND_APPEND_APPLY, businessKey, this.User.Id)
|
|
|
|
|
+ }else {
|
|
|
|
|
+ processInstanceId = svcActiviti.StartProcess(workflow.OIL_APPEND_APPLY, businessKey, this.User.Id)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
var ActiComplete workflow.ActiCompleteVM
|
|
var ActiComplete workflow.ActiCompleteVM
|
|
|
- ActiComplete.ProcessKey = workflow.OIL_APPEND_APPLY
|
|
|
|
|
|
|
+ if supplierCertAppendEntity.InStyle == "2" {
|
|
|
|
|
+ ActiComplete.ProcessKey = workflow.OIL_FIRST_APPEND_APPLY
|
|
|
|
|
+ }else if supplierCertAppendEntity.InStyle == "3" {
|
|
|
|
|
+ ActiComplete.ProcessKey = workflow.OIL_SECOND_APPEND_APPLY
|
|
|
|
|
+ }else{
|
|
|
|
|
+ ActiComplete.ProcessKey = workflow.OIL_APPEND_APPLY
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
ActiComplete.BusinessKey = businessKey
|
|
ActiComplete.BusinessKey = businessKey
|
|
|
ActiComplete.UserNames = firstAudit
|
|
ActiComplete.UserNames = firstAudit
|
|
|
ActiComplete.UserId = this.User.Id
|
|
ActiComplete.UserId = this.User.Id
|
|
@@ -558,6 +573,11 @@ func (this *OilSupplierCertAppendController) AuditEntityFir() {
|
|
|
status := ""
|
|
status := ""
|
|
|
backstatus := "0"
|
|
backstatus := "0"
|
|
|
var userIds string
|
|
var userIds string
|
|
|
|
|
+ if supplierCertAppendEntity.InStyle == "2" {
|
|
|
|
|
+ if supplierCertAppendEntity.Status == suppliercert.SECOND_TRIAL_STATUS{
|
|
|
|
|
+ supplierCertAppendEntity.Status = "4"
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
if supplierCertAppendEntity.Status == "1" {
|
|
if supplierCertAppendEntity.Status == "1" {
|
|
|
userIds = utils.ToStr(dataother.Auditer)
|
|
userIds = utils.ToStr(dataother.Auditer)
|
|
|
status = suppliercert.SECOND_TRIAL_STATUS
|
|
status = suppliercert.SECOND_TRIAL_STATUS
|
|
@@ -611,7 +631,14 @@ func (this *OilSupplierCertAppendController) AuditEntityFir() {
|
|
|
|
|
|
|
|
svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
|
var ActiComplete workflow.ActiCompleteVM
|
|
var ActiComplete workflow.ActiCompleteVM
|
|
|
- ActiComplete.ProcessKey = workflow.OIL_APPEND_APPLY
|
|
|
|
|
|
|
+ if supplierCertAppendEntity.InStyle == "2" {
|
|
|
|
|
+ ActiComplete.ProcessKey = workflow.OIL_FIRST_SUPPLIER_APPLY
|
|
|
|
|
+ }else if supplierCertAppendEntity.InStyle == "3" {
|
|
|
|
|
+ ActiComplete.ProcessKey = workflow.OIL_SECOND_SUPPLIER_APPLY
|
|
|
|
|
+ }else{
|
|
|
|
|
+ ActiComplete.ProcessKey = workflow.OIL_APPEND_APPLY
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
ActiComplete.BusinessKey = supplierCertAppendEntity.BusinessKey
|
|
ActiComplete.BusinessKey = supplierCertAppendEntity.BusinessKey
|
|
|
ActiComplete.UserNames = userIds
|
|
ActiComplete.UserNames = userIds
|
|
|
ActiComplete.UserId = this.User.Id
|
|
ActiComplete.UserId = this.User.Id
|
|
@@ -630,16 +657,18 @@ func (this *OilSupplierCertAppendController) AuditEntityFir() {
|
|
|
}
|
|
}
|
|
|
certSrv.UpdateEntityByIdCols(appendId, supplierCertAppendEntity, cols)
|
|
certSrv.UpdateEntityByIdCols(appendId, supplierCertAppendEntity, cols)
|
|
|
if supplierCertAppendEntity.Status == "5" {
|
|
if supplierCertAppendEntity.Status == "5" {
|
|
|
- paysvc := paymentinfo.GetPaymentService(utils.DBE)
|
|
|
|
|
- var Amount float64
|
|
|
|
|
- if supplierCertAppendEntity.AppendType == "01" {
|
|
|
|
|
- Amount = 6000
|
|
|
|
|
- } else if supplierCertAppendEntity.AppendType == "02" {
|
|
|
|
|
- Amount = 7000
|
|
|
|
|
- } else if supplierCertAppendEntity.AppendType == "03" {
|
|
|
|
|
- Amount = 8000
|
|
|
|
|
|
|
+ if supplierCertAppendEntity.InStyle == "1" {
|
|
|
|
|
+ paysvc := paymentinfo.GetPaymentService(utils.DBE)
|
|
|
|
|
+ var Amount float64
|
|
|
|
|
+ if supplierCertAppendEntity.AppendType == "01" {
|
|
|
|
|
+ Amount = 6000
|
|
|
|
|
+ } else if supplierCertAppendEntity.AppendType == "02" {
|
|
|
|
|
+ Amount = 7000
|
|
|
|
|
+ } else if supplierCertAppendEntity.AppendType == "03" {
|
|
|
|
|
+ Amount = 8000
|
|
|
|
|
+ }
|
|
|
|
|
+ paysvc.AddPaymentinfo(supplierCertAppendEntity.SupplierId, supplierCertAppendEntity.Id, Amount, "3")
|
|
|
}
|
|
}
|
|
|
- paysvc.AddPaymentinfo(supplierCertAppendEntity.SupplierId, supplierCertAppendEntity.Id, Amount, "3")
|
|
|
|
|
}
|
|
}
|
|
|
errinfo.Message = "提交成功!"
|
|
errinfo.Message = "提交成功!"
|
|
|
errinfo.Code = 0
|
|
errinfo.Code = 0
|