|
@@ -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()
|
|
_, err = tx.Raw(sql, returnDate).Exec()
|
|
if err != nil {
|
|
if err != nil {
|
|
return
|
|
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()
|
|
_, err = tx.Raw(sql, returnDate).Exec()
|
|
if err != nil {
|
|
if err != nil {
|
|
return
|
|
return
|