Commit 53dacd35 by 刘润源

一人一码发展统计表-总量去重

parent be876f99
......@@ -328,11 +328,11 @@ public class OrderController extends BaseController {
"COUNT( DISTINCT `id_card`,`now_package`,`business_package`AND CASE WHEN user_type = 2 THEN 1 END ) AS oldContinueNum," +
"COUNT( DISTINCT CASE WHEN user_type IN (0, 3, 5) AND order_status IN ('已发货', '已完成') THEN 1 END ) AS finishNewNum," +
"COUNT( CASE WHEN user_type IN (1,2) AND order_status IN ('已发货', '已完成') THEN 1 END ) AS finishOldNum," +
"COUNT( CASE WHEN user_type = 0 THEN 1 END ) +" +
" COUNT( CASE WHEN user_type = 5 THEN 1 END ) +" +
" COUNT( CASE WHEN user_type = 3 THEN 1 END ) +" +
" COUNT( CASE WHEN user_type = 1 THEN 1 END ) +" +
" COUNT( CASE WHEN user_type = 2 THEN 1 END ) AS sum";
"COUNT( DISTINCT `id_card` AND CASE WHEN user_type = 0 THEN 1 END ) +" +
" COUNT( DISTINCT `id_card` AND CASE WHEN user_type = 5 THEN 1 END ) +" +
" COUNT( DISTINCT `id_card` AND CASE WHEN user_type = 3 THEN 1 END ) +" +
" COUNT( DISTINCT `id_card`,`now_package`,`business_package`AND CASE WHEN user_type = 1 THEN 1 END ) +" +
" COUNT( DISTINCT `id_card`,`now_package`,`business_package`AND CASE WHEN user_type = 2 THEN 1 END ) AS sum";
commonWrapper.setSqlSelect(selectSql);
commonWrapper.ne("order_status", "异常单");
commonWrapper.isNotNull("hehuoren_area");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment