...
|
...
|
@@ -189,6 +189,9 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques |
|
|
}
|
|
|
ids = append(ids, fmt.Sprintf("%v", input.Id))
|
|
|
}
|
|
|
if len(ids) == 0 {
|
|
|
ids = append(ids, "0")
|
|
|
}
|
|
|
if err = utils.ExecuteSQLWithOrmer(orm, fmt.Sprintf(sql1, strings.Join(ids, ",")), template.Id); err != nil {
|
|
|
log.Error(err.Error())
|
|
|
orm.Rollback()
|
...
|
...
|
|