|
@@ -848,12 +848,12 @@ def content_rank(user_id, start, end, page, page_size, order, order_by, book, ch
|
|
|
db = MysqlUtils().dm
|
|
|
|
|
|
title_totle = db.getData(f'''select count(*) from dw_image_cost_day dicd
|
|
|
-where REPLACE(REPLACE(title , CHAR(10), ''), CHAR(13), '') is not null
|
|
|
+where REPLACE(REPLACE(title , CHAR(10), ''), CHAR(13), '') is not null and length(title)>0
|
|
|
and (1=1 {op1} {op4} {op10} {op11} {op12} {op_or1})
|
|
|
{op_time_bigger} {op_time_small}
|
|
|
''')[0][0]
|
|
|
des_totle = db.getData(f'''select count(*) from dw_image_cost_day dicd
|
|
|
- where REPLACE(REPLACE(description , CHAR(10), ''), CHAR(13), '') is not null
|
|
|
+ where REPLACE(REPLACE(description , CHAR(10), ''), CHAR(13), '') is not null and length(description)>0
|
|
|
and (1=1 {op1} {op4} {op10} {op11} {op12} {op_or1})
|
|
|
{op_time_bigger} {op_time_small}
|
|
|
''')[0][0]
|
|
@@ -894,7 +894,7 @@ where REPLACE(REPLACE(title , CHAR(10), ''), CHAR(13), '') is not null
|
|
|
null as updateBy,
|
|
|
use_times as userTimes
|
|
|
from dw_image_cost_day
|
|
|
- where REPLACE(REPLACE(title, CHAR(10), ''), CHAR(13), '') is not null
|
|
|
+ where REPLACE(REPLACE(description, CHAR(10), ''), CHAR(13), '') is not null and length(description)>0
|
|
|
and (1=1 {op1} {op4} {op10} {op11} {op12} {op_or1})
|
|
|
{op_time_bigger} {op_time_small}
|
|
|
limit {start_title} , {end_title}) as a
|
|
@@ -922,7 +922,7 @@ select * from (select
|
|
|
null as updateBy,
|
|
|
use_times as userTimes
|
|
|
from dw_image_cost_day
|
|
|
- where REPLACE(REPLACE(title, CHAR(10), ''), CHAR(13), '') is not null
|
|
|
+ where REPLACE(REPLACE(title, CHAR(10), ''), CHAR(13), '') is not null and length(title)>0
|
|
|
and (1=1 {op1} {op4} {op10} {op11} {op12} {op_or1})
|
|
|
{op_time_bigger} {op_time_small}
|
|
|
limit {start_des} , {end_des}
|