Преглед изворни кода

信息变更返回分办不可驳回

baichengfei пре 5 година
родитељ
комит
f48ada1084
1 измењених фајлова са 9 додато и 11 уклоњено
  1. 9 11
      src/dashoo.cn/backend/api/controllers/oilsupplier/infochange.go

+ 9 - 11
src/dashoo.cn/backend/api/controllers/oilsupplier/infochange.go

@@ -1736,7 +1736,7 @@ func (this *InfoChangeController) UnitAuditEntity() {
 func (this *InfoChangeController) SeparateAuditEntity() {
 	infoId := this.Ctx.Input.Param(":id")
 	//SuppId := this.GetString("SuppId")
-	Result := this.GetString("Result")
+	//Result := this.GetString("Result")
 	firstAudit := this.GetString("FirstAudit")
 	secondAudit := this.GetString("SecondAudit")
 	AuditRemark := this.GetString("AuditRemark")
@@ -1761,16 +1761,14 @@ func (this *InfoChangeController) SeparateAuditEntity() {
 	infoSrv := infochange.GetInfoChangeService(utils.DBE)
 	var infoChangeEntity infochange.OilInfoChange
 	infoSrv.GetEntityById(infoId, &infoChangeEntity)
-	if Result == "1" {
-		// 将选择的初审和复审人员保存下来
-		cols := []string{
-			"FirstAudit",
-			"SecondAudit",
-		}
-		infoChangeEntity.FirstAudit, _ = strconv.Atoi(firstAudit)
-		infoChangeEntity.SecondAudit, _ = strconv.Atoi(secondAudit)
-		infoSrv.UpdateEntityByIdCols(infoId, infoChangeEntity, cols)
+	// 将选择的初审和复审人员保存下来
+	cols := []string{
+		"FirstAudit",
+		"SecondAudit",
 	}
+	infoChangeEntity.FirstAudit, _ = strconv.Atoi(firstAudit)
+	infoChangeEntity.SecondAudit, _ = strconv.Atoi(secondAudit)
+	infoSrv.UpdateEntityByIdCols(infoId, infoChangeEntity, cols)
 
 	svcActiviti := workflow.GetActivitiService(utils.DBE)
 	var ActiComplete workflow.ActiCompleteVM
@@ -1778,7 +1776,7 @@ func (this *InfoChangeController) SeparateAuditEntity() {
 	ActiComplete.BusinessKey = infoChangeEntity.BusinessKey
 	ActiComplete.UserId = this.User.Id // 审批人员
 	// ActiComplete.UserNames = secondAudit // 初审人员
-	ActiComplete.Result = Result //分办完成后只向前走
+	ActiComplete.Result = "1" //分办完成后只向前走
 	ActiComplete.Remarks = AuditRemark
 	ActiComplete.CallbackUrl = utils.Cfg.MustValue("workflow", "callbackHost")
 	receiveVal := svcActiviti.TaskComplete(ActiComplete)