Explorar o código

fix:company_to标记删除状态

Roc %!s(int64=2) %!d(string=hai) anos
pai
achega
580c3eabd2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      models/tables/company_approval/company_approval.go

+ 2 - 2
models/tables/company_approval/company_approval.go

@@ -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 {
 		return