@@ -29,15 +28,25 @@ public class AutoOnlineProcessor {
Stringtoday=DateUtil.today();
try{
connection=dbUtil.getConnection();
StringquSql="select xm.id from `x_media` xm LEFT JOIN x_content_status_change xcsc on xm.id = xcsc.content_id and xcsc.content_class = 'media' "+
StringquSql="select xm.id,xm.external_code from `x_media` xm LEFT JOIN x_content_status_change xcsc on xm.id = xcsc.content_id and xcsc.content_class = 'media' "+
"where xm.`status` = '000' and xm.file_status = '001' and xm.update_time >= ? and xcsc.id is null ";
StringupSql=StrUtil.format(" update `x_media` set `status` = '001',`update_time` = '{}' where id = ?",DateUtil.now());
dbUtil.doExecute(connection,upSql,id);
varexternalCode=(String)map.get("external_code");
StringchkSql="select wrc.operation from ws_c2_recieve_cmd wrc where wrc.obj_code = ? and wrc.obj_type = 'media' and `status` = 200 ORDER BY wrc.create_time desc limit 1 ";