|
@@ -58,7 +58,7 @@ function M.open_app_book_task(msg_body)
|
|
|
for i = 1, #msg_body.id_list, 1 do
|
|
|
local res,sql,id;
|
|
|
id = msg_body.id_list[i]
|
|
|
- sql = string.format("UPDATE '%s' SET status = 0 , wait_status = 0 ,is_close_execution = 1 WHERE id = %d ",table_name,id)
|
|
|
+ sql = string.format("UPDATE %s SET status = 0 , wait_status = 0 ,is_close_execution = 1 WHERE id = %d ",table_name,id)
|
|
|
res = mysqldtaskbx.Singleton().query(sql)
|
|
|
end
|
|
|
return true,{}
|
|
@@ -85,7 +85,7 @@ function M.open_app_book_task(msg_body)
|
|
|
for i = 1, #msg_body.id_list, 1 do
|
|
|
local res,sql,id;
|
|
|
id = msg_body.id_list[i]
|
|
|
- sql = string.format("UPDATE '%s' SET status = 0 , wait_status = 0 ,is_close_execution = 1 WHERE id = %d ",table_name,id)
|
|
|
+ sql = string.format("UPDATE %s SET status = 0 , wait_status = 0 ,is_close_execution = 1 WHERE id = %d ",table_name,id)
|
|
|
res = mysqldtaskbx.Singleton().query(sql)
|
|
|
end
|
|
|
return true,{}
|
|
@@ -109,7 +109,7 @@ function M.open_check_url_task(msg_body)
|
|
|
end
|
|
|
|
|
|
local idString = table.concat(msg_body.id_list, ",")
|
|
|
- local sql = string.format("UPDATE '%s' SET status = 0 , wait_status = 1 WHERE id IN (%s) ",table_name,idString)
|
|
|
+ local sql = string.format("UPDATE %s SET status = 0 , wait_status = 1 WHERE id IN (%s) ",table_name,idString)
|
|
|
skynet.error("sql:",sql)
|
|
|
mysqldtaskbx.Singleton().query(sql)
|
|
|
return true,{}
|
|
@@ -133,7 +133,7 @@ function M.set_task_weight(msg_body)
|
|
|
end
|
|
|
|
|
|
local idString = table.concat(msg_body.id_list, ",")
|
|
|
- local sql = string.format("UPDATE '%s' SET weight = %d WHERE id IN (%s) ",table_name,msg_body.weight,idString)
|
|
|
+ local sql = string.format("UPDATE %s SET weight = %d WHERE id IN (%s) ",table_name,msg_body.weight,idString)
|
|
|
skynet.error("sql:",sql)
|
|
|
mysqldtaskbx.Singleton().query(sql)
|
|
|
return true,{}
|