Bladeren bron

Merge branch 'crm/need_1070' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

zhangchuanxing 2 dagen geleden
bovenliggende
commit
3a22bc1322
1 gewijzigde bestanden met toevoegingen van 4 en 12 verwijderingen
  1. 4 12
      services/company_approval_message.go

+ 4 - 12
services/company_approval_message.go

@@ -349,16 +349,7 @@ func AddCompanyApprovalMessageLiangChunYue(companyId, companyContractId int, com
 
 	//新增操作记录
 	{
-		var remark string
-		var operation string
-		remark = "设置共享"
-		operation = "set_share"
-		AddCompanyOperationRecord(companyId, companyProductItem.SellerId, 0, 2, 0, companyProductItem.CompanyName,
-			companyProductItem.ProductName, "超级管理员", remark, operation, "", "超级管理员", "", companyProductItem.Status)
-	}
-
-	//新增操作记录
-	{
+		time.Sleep(1000 * time.Millisecond)
 		seller, e := system.GetSysAdminByRealName("梁春悦6")
 		if e != nil {
 			err = errors.New("GetSysAdminByRealName, Err: " + e.Error())
@@ -366,17 +357,18 @@ func AddCompanyApprovalMessageLiangChunYue(companyId, companyContractId int, com
 		}
 		var remark string
 		var operation string
-		remark = "分配给" + seller.RealName
+		remark = "设置共享,分配给" + seller.RealName
 		operation = "set_share_seller"
 		AddCompanyOperationRecord(companyId, seller.AdminId, 0, 2, 0, companyProductItem.CompanyName,
 			companyProductItem.ProductName, "超级管理员", remark, operation, "", "超级管理员", "", companyProductItem.Status)
 
 		//待更新字段
 		updateCol := make([]string, 0)
+		companyProductItem.IsShare = 1
 		companyProductItem.ShareSeller = seller.RealName
 		companyProductItem.ShareSellerId = seller.AdminId
 		companyProductItem.ShareGroupId = seller.GroupId
-		updateCol = append(updateCol, "ShareSeller", "ShareSellerId", "ShareGroupId")
+		updateCol = append(updateCol, "IsShare", "ShareSeller", "ShareSellerId", "ShareGroupId")
 
 		e = companyProductItem.Update(updateCol)
 		if e != nil {