门店评分
This commit is contained in:
@@ -296,7 +296,7 @@ func GetDailyFinishOrderList(db *DaoDB, storeID int) (orderList []*model.OrderPi
|
||||
select t2.status_time, t1.pick_deadline
|
||||
from goods_order t1
|
||||
left join order_status t2 on t1.vendor_order_id = t2.vendor_order_id
|
||||
where t1.jx_store_id = ? and t2.order_type = ? and t2.status = ? and DATE_FORMAT(t1.order_finished_at, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d')
|
||||
where t1.jx_store_id = ? and t2.order_type = ? and t2.status = ? and DATE(t1.order_finished_at) = CURDATE()
|
||||
`
|
||||
sqlParams := []interface{}{
|
||||
storeID,
|
||||
@@ -307,7 +307,7 @@ func GetDailyFinishOrderList(db *DaoDB, storeID int) (orderList []*model.OrderPi
|
||||
}
|
||||
|
||||
func GetDailyBadCommentOrderCount(db *DaoDB, storeID int) (num int64, err error) {
|
||||
sql := `select count(*) from jx_bad_comments where DATE_FORMAT(createtime, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d') and jxstoreid = ?`
|
||||
sql := `select count(*) from jx_bad_comments where DATE(createtime) = CURDATE() and jxstoreid = ?`
|
||||
sqlParams := []interface{}{
|
||||
storeID,
|
||||
}
|
||||
@@ -324,7 +324,7 @@ func GetDailyFinishOrderCount(db *DaoDB, storeID int) (num int64, err error) {
|
||||
|
||||
func GetDailyEndOrderCount(db *DaoDB, storeID int, statusList []int) (num int64, err error) {
|
||||
sql := `select count(*) from goods_order
|
||||
where DATE_FORMAT(order_finished_at, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d')
|
||||
where DATE(order_finished_at) = CURDATE()
|
||||
and jx_store_id = ?
|
||||
and status in (` + GenQuestionMarks(len(statusList)) + `)`
|
||||
sqlParams := []interface{}{
|
||||
|
||||
Reference in New Issue
Block a user