@@ -21,28 +23,35 @@ public class AutoBindAppProcessor {
DbUtildbUtil;
@Value("${entity.appId}")
privateLongAPP_ID;
privateStringAPP_ID;
publicvoidexecute(){
Connectionconnection=null;
try{
connection=dbUtil.getConnection();
// 查询未绑定
Stringsql=StrUtil.format(" select xm.id,xm.name from x_media xm LEFT JOIN x_media__app xma on xm.id = xma.media_id and xma.app_id = {} where xma.id is null limit 100 ",APP_ID);
Stringsql=StrUtil.format(" select xm.id,xm.name from x_media xm LEFT JOIN x_media__app xma on xm.id = xma.media_id and xma.app_id = {} where xma.id is null limit 100 ",appId);