update.go 432 B

1234567891011
  1. package my_chart_classify_mapping
  2. import "hongze/hongze_yb/global"
  3. // MyChartMove 移动我的图表
  4. func MyChartMove(sort float64, adminId int, myChartId, myChartClassifyId int) (err error) {
  5. sql := ` UPDATE my_chart_classify_mapping SET sort = ?,modify_time=NOW() WHERE admin_id=? AND my_chart_id=? AND my_chart_classify_id=? `
  6. err = global.MYSQL["data"].Exec(sql, sort, adminId, myChartId, myChartClassifyId).Error
  7. return
  8. }