作者 唐旭辉

Merge branch 'dev' of http://gitlab.fjmaimaimai.com/mmm-go/oppmg into dev

@@ -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()