@@ -441,8 +441,8 @@ func ApplyReceive(companyId, productId, sysUserId, companyApprovalId, applyUserI
return
}
- // 将进行中的任务给作废掉
- sql = `UPDATE company_todo SET status="已作废",modify_time=NOW() WHERE company_id=? AND product_id=? and status="进行中" `
+ // 将历史的任务给标记删除掉
+ sql = `UPDATE company_todo SET is_delete=1,modify_time=NOW() WHERE company_id=? AND product_id=? AND is_delete = 0 `
_, err = o.Raw(sql, companyId, productId).Exec()
if err != nil {