From 5fa1de02759b9646e8987312736699755990e960 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 13 十月 2023 15:30:22 +0800
Subject: [PATCH] bug修改

---
 api/v1/serviceFollowup.go |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/api/v1/serviceFollowup.go b/api/v1/serviceFollowup.go
index 3c2dda4..410de2d 100644
--- a/api/v1/serviceFollowup.go
+++ b/api/v1/serviceFollowup.go
@@ -37,6 +37,13 @@
 		ctx.Fail(errCode)
 		return
 	}
+	if params.CodeRule.Method == 1 {
+		autoCode := model.GetAutoCode(serviceFollowup.Id, &params.CodeRule)
+		m := map[string]interface{}{
+			"number": autoCode,
+		}
+		_ = model.NewServiceFollowupSearch().SetId(serviceFollowup.Id).UpdateByMap(m)
+	}
 
 	ctx.Ok()
 }
@@ -121,6 +128,7 @@
 		OldMemberId:    serviceFollowup.OldMemberId,
 		Remark:         serviceFollowup.Remark,
 		File:           serviceFollowup.File,
+		CodeStandID:    serviceFollowup.CodeStandID,
 	}
 
 	return ecode.OK, serviceFollowupModel
@@ -132,7 +140,9 @@
 //	@Summary	鍥炶鍗曠鐞嗗垪琛�
 //	@Produce	application/json
 //	@Param		object	body		request.GetServiceFollowupList	true	"鍙傛暟"
-//	@Success	200		{object}	contextx.Response{data=response.ServiceFollowupResponse}
+//
+// @Success	200		{object}	contextx.Response{data=response.ServiceFollowupResponse}
+//
 //	@Router		/api/serviceFollowup/list [post]
 func (con *ServiceFollowupApi) List(c *gin.Context) {
 	var params request.GetServiceFollowupList

--
Gitblit v1.8.0