|
@@ -128,11 +128,14 @@ func (this *CompanyServiceRecordController) ServiceRecordAdd() {
|
|
|
item.SysAdminName = sysUser.RealName
|
|
|
item.CreateTime = time.Now().Local()
|
|
|
item.ModifyTime = time.Now().Local()
|
|
|
- if e := item.Create(); e != nil {
|
|
|
+
|
|
|
+ newId, e := item.Create()
|
|
|
+ if e != nil {
|
|
|
br.Msg = "操作失败"
|
|
|
br.ErrMsg = "新增沟通记录失败, Err: " + e.Error()
|
|
|
return
|
|
|
}
|
|
|
+ fmt.Println(newId)
|
|
|
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|