update.go 374 B

1234567891011121314
  1. package models
  2. import (
  3. "hongze/hongze_yb/global"
  4. )
  5. //修改报告发送给同花顺的记录状态
  6. func ModifyReportSendThsDetailStatus(sendId int, status int8, remark string) (err error) {
  7. err = global.DEFAULT_MYSQL.Model(ReportSendThsDetail{}).Where("send_id = ? ", sendId).Updates(ReportSendThsDetail{
  8. Status: status,
  9. Remark: remark,
  10. }).Error
  11. return
  12. }