|
@@ -55,7 +55,7 @@ end
|
|
|
--product_id 书id
|
|
|
--sync_status 状态
|
|
|
function M.search(msg_body)
|
|
|
- local isok ,key = tools.checkData({"genre","end_time_date",
|
|
|
+ local isok ,key = tools.checkData({"min_book_word","max_book_word","genre","end_time_date",
|
|
|
"start_time_date",
|
|
|
"sync_status",
|
|
|
"product_id",
|
|
@@ -73,6 +73,13 @@ function M.search(msg_body)
|
|
|
local page_size = msg_body.page_size
|
|
|
local page_number = msg_body.page_number
|
|
|
local offset = (page_number - 1) * page_size
|
|
|
+
|
|
|
+
|
|
|
+ local word_param = ""
|
|
|
+ if msg_body.min_book_word~="" and msg_body.max_book_word~="" then
|
|
|
+ word_param = string.format(" AND CAST(words AS UNSIGNED) >= %f AND CAST(words AS UNSIGNED) <= %f ",msg_body.min_book_word,msg_body.max_book_word)
|
|
|
+ end
|
|
|
+
|
|
|
local product_param = ""
|
|
|
if msg_body.product_id~="" then
|
|
|
product_param = string.format(" AND product_id = %d ",tonumber(msg_body.product_id))
|
|
@@ -258,7 +265,7 @@ function M.search(msg_body)
|
|
|
|
|
|
local new_param = stat_cost_param..show_cnt_param..click_cnt_param..convert_cnt_param..cvr_param..ctr_param
|
|
|
-----
|
|
|
- local param = genre_param..date_param..product_param..oce_material_param..status_param..tg_platform_param..sync_status_param..product_name_param..is_auto_param..material_id_param..signature_param..dy_id_1_param..artificial_status_param..machine_review_status_param..is_sexual_inducement_content_param..is_bad_value_view_param
|
|
|
+ local param = word_param..genre_param..date_param..product_param..oce_material_param..status_param..tg_platform_param..sync_status_param..product_name_param..is_auto_param..material_id_param..signature_param..dy_id_1_param..artificial_status_param..machine_review_status_param..is_sexual_inducement_content_param..is_bad_value_view_param
|
|
|
|
|
|
local up_down_param = d_z_param..comment_param..forward_param..collect_param..new_param
|
|
|
|