Explorar o código

Merge branch 'aj_business_trip' into debug

tuoling805 %!s(int64=2) %!d(string=hai) anos
pai
achega
403bcd0a48
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      models/business_apply.go

+ 2 - 2
models/business_apply.go

@@ -17,14 +17,14 @@ func BusinessTripApplyStatusOutTime(returnDate string) (err error) {
 		}
 	}()
 	//客户产品状态变更
-	sql := `UPDATE business_apply SET status='已过期',modify_time=NOW()  WHERE status='待审批' AND arrive_date < ? `
+	sql := `UPDATE business_apply SET status='已过期',modify_time=NOW()  WHERE status='待审批' AND arrive_date <= ? `
 	_, err = tx.Raw(sql, returnDate).Exec()
 	if err != nil {
 		return
 	}
 
 	// 将历史的任务给标记删除掉
-	sql = `UPDATE business_apply_peer SET status='已过期',modify_time=NOW() WHERE status='待审批' AND arrive_date < ? `
+	sql = `UPDATE business_apply_peer SET status='已过期',modify_time=NOW() WHERE status='待审批' AND arrive_date <= ? `
 	_, err = tx.Raw(sql, returnDate).Exec()
 	if err != nil {
 		return