Commit 0d14672b by jinfeng.wang

fix

parent 43a9b82f
......@@ -36,8 +36,11 @@ public class StorageTag {
public static void main(String[] args) {
String sql = 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");
String sqlAdmin = 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");
String sql = 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)");
String sqlAdmin = 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)");
try {
Class.forName(DRIVER);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment