Stringsql=String.format("SELECT a.package_name,a.app_name,a.platform,JSON_KEYS(feat_id) tag_arr,t.tag FROM app_tag.tag_result a LEFT JOIN (SELECT package_name,tag FROM app_tag.tag_list WHERE tag > 1) t ON a.package_name = t.package_name WHERE t.package_name IS NOT NULL");
StringsqlAdmin=String.format("SELECT a.package_name,a.app_name,a.platform,feat_id tag FROM app_tag.tag_result a LEFT JOIN app_tag.user u ON a.user_id = u.user_id WHERE u.role = 1");
Stringsql=String.format("SELECT a.package_name,a.app_name,a.platform,JSON_KEYS(feat_id) tag_arr,t.tag FROM app_tag.tag_result a "+
"LEFT JOIN (SELECT package_name,tag FROM app_tag.tag_list WHERE tag > 1) t "+
"ON a.package_name = t.package_name WHERE t.package_name IS NOT NULL AND t.package_name NOT IN (SELECT DISTINCT package_name FROM app_tag.storage)");
StringsqlAdmin=String.format("SELECT a.package_name,a.app_name,a.platform,feat_id tag FROM app_tag.tag_result a "+
"LEFT JOIN app_tag.user u ON a.user_id = u.user_id WHERE u.role = 1 AND a.package_name NOT IN (SELECT DISTINCT package_name FROM app_tag.storage)");