From 115bd9b51f5d8eade4658f844de37516486c60e7 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 18 十一月 2023 17:25:25 +0800
Subject: [PATCH] crm获取aps项目模块信息

---
 service/serviceContractStatus.go |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/service/serviceContractStatus.go b/service/serviceContractStatus.go
index ac5a82a..507c6cc 100644
--- a/service/serviceContractStatus.go
+++ b/service/serviceContractStatus.go
@@ -55,9 +55,7 @@
 			return ecode.DBErr
 		}
 
-		err = model.NewServiceContractStatusSearch().SetId(v.Id).Updates(map[string]interface{}{
-
-		})
+		err = model.NewServiceContractStatusSearch().SetId(v.Id).Updates(map[string]interface{}{})
 		if err != nil {
 			return ecode.DBErr
 		}
@@ -67,9 +65,9 @@
 }
 
 func (ServiceContractStatusService) UpdateServiceContractStatus(serviceContractStatus *model.ServiceContractStatus) int {
-		err := model.NewServiceContractStatusSearch().SetId(serviceContractStatus.Id).Save(serviceContractStatus)
-		if err != nil {
-			return ecode.DBErr
-		}
+	err := model.NewServiceContractStatusSearch().SetId(serviceContractStatus.Id).Update(serviceContractStatus)
+	if err != nil {
+		return ecode.DBErr
+	}
 	return ecode.OK
 }

--
Gitblit v1.8.0