|
@@ -137,7 +137,7 @@ func (r *ReportPdf) Update(cols []string) (err error) {
|
|
|
ModifyTime: time.Now(),
|
|
|
}
|
|
|
_, err = tx.Insert(insertPushStatus)
|
|
|
- } else if reportPushStatus != nil || err.Error() != utils.ErrNoRow() {
|
|
|
+ } else if reportPushStatus != nil {
|
|
|
// pdf报告发布后编辑,则更新report_push_status表, 若取消发布,则在推送表中删除
|
|
|
if r.State == utils.ReportStatusDown {
|
|
|
err = reportPushStatus.Delete()
|