edb_data_wind_wsd.go 451 B

123456789101112131415
  1. package data_manage
  2. import (
  3. "fmt"
  4. "github.com/beego/beego/v2/client/orm"
  5. )
  6. func ModifyEdbInfoWindWsdDataStatus(source, subSource int, edbInfoId int64, edbCode string) (err error) {
  7. o := orm.NewOrmUsingDB("data")
  8. tableName := GetEdbDataTableNameAndSubSource(source, subSource)
  9. sql := ` UPDATE %s SET edb_info_id=?,modify_time=NOW() WHERE edb_code=? `
  10. sql = fmt.Sprintf(sql, tableName)
  11. _, err = o.Raw(sql, edbInfoId, edbCode).Exec()
  12. return
  13. }