Merge remote-tracking branch 'origin/test' into dev
正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -189,6 +189,9 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques | @@ -189,6 +189,9 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques | ||
| 189 | } | 189 | } |
| 190 | ids = append(ids, fmt.Sprintf("%v", input.Id)) | 190 | ids = append(ids, fmt.Sprintf("%v", input.Id)) |
| 191 | } | 191 | } |
| 192 | + if len(ids) == 0 { | ||
| 193 | + ids = append(ids, "0") | ||
| 194 | + } | ||
| 192 | if err = utils.ExecuteSQLWithOrmer(orm, fmt.Sprintf(sql1, strings.Join(ids, ",")), template.Id); err != nil { | 195 | if err = utils.ExecuteSQLWithOrmer(orm, fmt.Sprintf(sql1, strings.Join(ids, ",")), template.Id); err != nil { |
| 193 | log.Error(err.Error()) | 196 | log.Error(err.Error()) |
| 194 | orm.Rollback() | 197 | orm.Rollback() |
-
请 注册 或 登录 后发表评论