|
@@ -76,6 +76,10 @@ function M.search(msg_body)
|
|
|
|
|
|
local offset = (page_number - 1) * page_size
|
|
|
|
|
|
+ local infra_status_param = ""
|
|
|
+ if msg_body.infra_status~="" then
|
|
|
+ infra_status_param = string.format(" AND infra_status = %d ",msg_body.infra_status)
|
|
|
+ end
|
|
|
|
|
|
local cbo_script_status_param = ""
|
|
|
if msg_body.cbo_script_status~="" then
|
|
@@ -178,7 +182,7 @@ function M.search(msg_body)
|
|
|
genre_param = string.format(" AND genre = %d ",msg_body.genre)
|
|
|
end
|
|
|
|
|
|
- local param = cbo_script_status_param..cbo_status_param..project_type_param..oce_product_platform_id_param..oce_product_id_param..delivery_mode_param..main_name_param..tg_platform_param..running_status_param..pay_type_param..butler_id_param..tg_app_index_param..is_open_create_link_param..is_delete_param..custom_budget_param..cpa_bid_param..template_bid_param..genre_param..wx_miniapp_create_status_param..material_platform_id_param;
|
|
|
+ local param = infra_status_param..cbo_script_status_param..cbo_status_param..project_type_param..oce_product_platform_id_param..oce_product_id_param..delivery_mode_param..main_name_param..tg_platform_param..running_status_param..pay_type_param..butler_id_param..tg_app_index_param..is_open_create_link_param..is_delete_param..custom_budget_param..cpa_bid_param..template_bid_param..genre_param..wx_miniapp_create_status_param..material_platform_id_param;
|
|
|
|
|
|
local sql = "SELECT * FROM tg_main where 1=1 "..param..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
|
|
|
local res = mysqldbx.query(sql)
|