|
@@ -5,6 +5,7 @@ import (
|
|
|
"fmt"
|
|
|
"hongze/hz_crm_api/models"
|
|
|
"hongze/hz_crm_api/models/company"
|
|
|
+ "hongze/hz_crm_api/services"
|
|
|
"hongze/hz_crm_api/utils"
|
|
|
"strings"
|
|
|
"time"
|
|
@@ -135,7 +136,20 @@ func (this *CompanyServiceRecordController) ServiceRecordAdd() {
|
|
|
br.ErrMsg = "新增沟通记录失败, Err: " + e.Error()
|
|
|
return
|
|
|
}
|
|
|
- fmt.Println(newId)
|
|
|
+
|
|
|
+ //权益客户新增历史备注总表
|
|
|
+ itemRecord := new(company.CompanyHistoryRemark)
|
|
|
+ itemRecord.CompanyId = req.CompanyType
|
|
|
+ itemRecord.CompanyId = req.CompanyId
|
|
|
+ itemRecord.SysAdminId = sysUser.AdminId
|
|
|
+ itemRecord.SysAdminName = sysUser.RealName
|
|
|
+ itemRecord.CreateTime = time.Now().Local()
|
|
|
+ itemRecord.ModifyTime = time.Now().Local()
|
|
|
+ itemRecord.ShowTime = time.Now().Local()
|
|
|
+ itemRecord.ProductId = 2
|
|
|
+ itemRecord.TableName = "company_service_record"
|
|
|
+ itemRecord.TableId = newId
|
|
|
+ go services.AddCompanyHistoryRemark(itemRecord)
|
|
|
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|