New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
管理画面集計周り調整 #1143
Labels
enhancement
機能追加
Comments
@yuh2 |
受注件数が増えた場合に管理画面にログインできなくなる不具合の改善です。 |
nanasess
added a commit
to nanasess/ec-cube
that referenced
this issue
Feb 17, 2016
検証してみましたが、日付跨ぎの受注があると正常に算出できないようですので、再考します。 テストケースはこちら |
nanasess
added a commit
to nanasess/ec-cube
that referenced
this issue
Feb 17, 2016
nanasess
added a commit
to nanasess/ec-cube
that referenced
this issue
Jun 1, 2016
- 前日分と当日分を足して比較しているので、月跨ぎになると失敗する - see EC-CUBE#1143
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
管理画面のHOMEの売上表示部分で
$dql = 'SELECT SUBSTRING(CONCAT(o.order_date, \'\'), 1, 7) AS order_month, SUM(o.payment_total) AS order_amount, COUNT(o) AS order_count FROM Eccube\Entity\Order o WHERE o.del_flg = 0 AND o.OrderStatus NOT IN (:excludes) AND SUBSTRING(CONCAT(o.order_date, \'\'), 1, 7) = SUBSTRING(:targetDate, 1, 7) GROUP BY order_month';
こんな感じで書かれている部分を
order_dateにINDEXを貼って
その期間のMAXのorder_idとMINのorder_idを取得して
t1.order_id BETWEEN :min_order_id AND :max_order_id
こんな感じに抽出するように変えませんか?
具体的にはAdminController.phpを下記のような感じに。
The text was updated successfully, but these errors were encountered: