|
|
@@ -914,7 +914,7 @@ func (this *InfoChangeController) GetAddSupplierList() {
|
|
|
func (this *InfoChangeController) CommitAuditEntity() {
|
|
|
//suppId := this.Ctx.Input.Param(":id")
|
|
|
firstAudit := this.GetString("auditer")
|
|
|
- //fushenauditer := this.GetString("fushenauditer")
|
|
|
+ fushenauditer := this.GetString("fushenauditer")
|
|
|
Remark := this.GetString("Remark")
|
|
|
InfoId := this.GetString("MInfoId")
|
|
|
//取出审批列表
|
|
|
@@ -967,11 +967,15 @@ func (this *InfoChangeController) CommitAuditEntity() {
|
|
|
return
|
|
|
}
|
|
|
//记下workflowID(首次提交时才会记录,中间状态请忽略) 及审批状态
|
|
|
+ if this.User.IsCompanyUser == 1 {
|
|
|
+ infochangeentity.Status = suppliercert.FEN_TRIAL_STATUS
|
|
|
+ } else {
|
|
|
+ infochangeentity.Status = suppliercert.FIRST_TRIAL_STATUS
|
|
|
+ }
|
|
|
infochangeentity.WorkFlowId = processInstanceId
|
|
|
- infochangeentity.Status = suppliercert.FEN_TRIAL_STATUS //二级单位初审
|
|
|
infochangeentity.FenbanAudit, _ = strconv.Atoi(firstAudit)
|
|
|
- //infochangeentity.FirstAudit, _ = strconv.Atoi(firstAudit)
|
|
|
- //infochangeentity.SecondAudit, _ = strconv.Atoi(fushenauditer)
|
|
|
+ infochangeentity.FirstAudit, _ = strconv.Atoi(firstAudit)
|
|
|
+ infochangeentity.SecondAudit, _ = strconv.Atoi(fushenauditer)
|
|
|
infochangeentity.AuditIndex = infochangeentity.AuditIndex + 1
|
|
|
infochangeentity.BusinessKey = ActiComplete.BusinessKey
|
|
|
infochangeentity.CreateOn = time.Now()
|
|
|
@@ -983,8 +987,8 @@ func (this *InfoChangeController) CommitAuditEntity() {
|
|
|
"Status",
|
|
|
"Step",
|
|
|
"FenbanAudit",
|
|
|
- //"FirstAudit",
|
|
|
- //"SecondAudit",
|
|
|
+ "FirstAudit",
|
|
|
+ "SecondAudit",
|
|
|
"AuditIndex",
|
|
|
"BusinessKey",
|
|
|
"CreateOn",
|