diff --git a/src/main/java/org/alis/excel/service/ClassInventory.java b/src/main/java/org/alis/excel/service/ClassInventory.java index b261574..602686c 100644 --- a/src/main/java/org/alis/excel/service/ClassInventory.java +++ b/src/main/java/org/alis/excel/service/ClassInventory.java @@ -1,6 +1,5 @@ package org.alis.excel.service; -import cn.hutool.core.date.DateUtil; import cn.hutool.db.Db; import cn.hutool.db.Entity; import cn.hutool.json.JSONArray; @@ -30,14 +29,14 @@ public class ClassInventory implements CommandLineRunner { "and date_format(ci.create_time, '%Y-%m-%d') =date_format(st.create_time, '%Y-%m-%d')\n" + "left JOIN (select user_id from class.class_student where class_id in (select id from class.class_info where status = 3)) as cl\n" + "on cl.user_id = st.user_id\n" + - "where ci.id is null and st.create_time >'2024-03-01 00:00:00' and st.user_id not in (83335,83340,230940,83327,230747,216119,83342,83388,83385,213412,212723,210824,210690,215397,230231,230941,216365,212762,212854,230843,213368,216112,206927,230604,215389,212297,92713,84675,230376,83337,216362,215374,215391,230657,213737,231093,215265,205049,208510,83338,230289,215235,230484,231009,213413,213111,216114,210825,231298,231297,216358,216805,216699,210707,215319,215246,208905,212151,216455,83334,215868,216348,83324,159468,231013,212626,215762,205622,216363,213792,215767,231122,216696,212263,83424,230230,204840,204997,216804,216563,231199,216808,215349,216208,230511,215491,83401,216206,231200,230778,260080,83383,83384,230232,230777,77652,83322,216357,213369,207459,204894,215812,83343,212727,83344,206611,260171,260170,260169,260168,260167,210261,230762,212329,83333,216339,83341,215440,206283,204727,230776,230104,216347,230126,230600,215425,212625,204765,216806,215345,208096,230845,230103,216342,83389,83369,216364,231015,216698,83351,212325,83425,215303,211168,231014,83368,231008,231007,83347,83387,215465,231333,230193,83348,83339,204665,215296,216359,83370,83402,215321,215267,83350,230453,215350,215226,216690,83353,78213,206432,260222,260223,260224,260225,260226,260240,210989,230779,260241,260242,260243,260244,260245,260275,260276) and st.user_id in "; + "where ci.id is null and st.create_time >'2024-03-01 00:00:00' and st.user_id in "; private static final String selectSql = "select st.user_id,st.id,st.week_id,st.create_time from study.student_record st left JOIN class.class_inventory ci \n" + "on st.user_id = ci.user_id and st.week_id=ci.week_id \n" + "and date_format(ci.create_time, '%Y-%m-%d') =date_format(st.create_time, '%Y-%m-%d')\n" + "left JOIN (select user_id from class.class_student where class_id in (select id from class.class_info where status = 3)) as cl\n" + "on cl.user_id = st.user_id\n" + - "where ci.id is null and st.create_time >'2024-03-01 00:00:00' and st.user_id not in (83335,83340,230940,83327,230747,216119,83342,83388,83385,213412,212723,210824,210690,215397,230231,230941,216365,212762,212854,230843,213368,216112,206927,230604,215389,212297,92713,84675,230376,83337,216362,215374,215391,230657,213737,231093,215265,205049,208510,83338,230289,215235,230484,231009,213413,213111,216114,210825,231298,231297,216358,216805,216699,210707,215319,215246,208905,212151,216455,83334,215868,83324,216348,159468,231013,212626,215762,205622,216363,213792,215767,231122,216696,212263,83424,230230,204840,204997,216804,216563,231199,216808,215349,216208,230511,215491,83401,216206,231200,230778,260080,83383,83384,230232,230777,77652,83322,216357,213369,207459,204894,215812,83343,212727,83344,206611,260171,260170,260169,260168,260167,210261,230762,212329,83333,216339,83341,215440,206283,204727,230776,230104,216347,230126,230600,215425,212625,204765,216806,215345,208096,230845,230103,216342,83389,83369,216364,231015,216698,83351,212325,83425,215303,211168,231014,83368,231008,231007,83347,83387,215465,231333,230193,83348,83339,204665,215296,216359,83370,83402,215321,215267,83350,230453,215350,215226,216690,83353,78213,206432,260222,260223,260224,260225,260226,260240,210989,230779,260241,260242,260243,260244,260245,260275,260276)"; + "where ci.id is null and st.create_time >'2024-03-01 00:00:00' and st.user_id not in (83335,83340,230940,83327,230747,216119,83342,83388,83385,213412,212723,210824,210690,215397,230231,230941,216365,212762,212854,230843,213368,216112,206927,230604,215389,212297,92713,84675,230376,83337,216362,215374,215391,230657,213737,231093,215265,205049,208510,83338,230289,215235,230484,231009,213413,213111,216114,210825,231298,231297,216358,216805,216699,210707,215319,215246,208905,212151,216455,83334,215868,83324,216348,159468,231013,212626,215762,205622,216363,213792,215767,231122,216696,212263,83424,230230,204840,204997,216804,216563,231199,216808,215349,216208,230511,215491,83401,216206,231200,230778,260080,83383,83384,230232,230777,77652,83322,216357,213369,207459,204894,215812,83343,212727,83344,206611,260171,260170,260169,260168,260167,210261,230762,212329,83333,216339,83341,215440,206283,204727,230776,230104,216347,230126,230600,215425,212625,204765,216806,215345,208096,230845,230103,216342,83389,83369,216364,231015,216698,83351,212325,83425,215303,211168,231014,83368,231008,231007,83347,83387,215465,231333,230193,83348,83339,204665,215296,216359,83370,83402,215321,215267,83350,230453,215350,215226,216690,83353,78213,206432,260222,260223,260224,260225,260226,260240,210989,230779,260241,260242,260243,260244,260245,260275,260276,215240,231147,260247,260360,260363,260539,260538,83326,215369,215420,260486,260487,260488,260489,260619,260620,260246)"; @Override public void run(String... args) throws Exception { diff --git a/src/main/java/org/alis/excel/service/ExcelExportService.java b/src/main/java/org/alis/excel/service/ExcelExportService.java index 21d1cdd..030b8e5 100644 --- a/src/main/java/org/alis/excel/service/ExcelExportService.java +++ b/src/main/java/org/alis/excel/service/ExcelExportService.java @@ -35,7 +35,7 @@ import java.util.stream.Collectors; * @date 2023/3/11 11:35 */ @Slf4j -@Service +//@Service public class ExcelExportService implements ApplicationRunner { private static final String group = "prod"; @@ -76,7 +76,7 @@ public class ExcelExportService implements ApplicationRunner { private String getCookie() { - return "source=12; user_id=10751; timestamp=1709974674106; token=eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJVU0VSX0NFTlRFUiIsInN1YiI6IntcImlkXCI6MTA3NTEsXCJuYW1lXCI6XCLnvZflt51cIixcImVtYWlsXCI6XCJjaHVhbi5sdW9AZGF5dWFuMTk5Ny5jb21cIixcInBob25lXCI6XCIxODEqKioqNzIzOVwiLFwic3RhdHVzXCI6MSxcInR5cGVcIjoyLFwibG9naW5EYXRlXCI6XCIyMDI0LTAyLTE3IDEwOjE1OjQyXCIsXCJleHBpcmVEYXRlXCI6XCIyMDI0LTAzLTE4IDEwOjE1OjQyXCIsXCJkdXJhdGlvblwiOjI1OTIwMDB9IiwiYXVkIjoiTElMWV9wcm9kIiwiaWF0IjoxNzA4MTM2MTQyLCJleHAiOjE3MTA3MjgxNDJ9.QzpYTcJT1gQEvaGt26jxljfgaWusxH_ecL6gcUMSwDtEr-K4HxaytOB9iIwyJCRlGNL8WnC-21MVbfd13p5qYQ"; + return "source=12; user_id=10751; timestamp=1710906609609; token=eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJVU0VSX0NFTlRFUiIsInN1YiI6IntcImlkXCI6MTA3NTEsXCJuYW1lXCI6XCLnvZflt51cIixcImVtYWlsXCI6XCJjaHVhbi5sdW9AZGF5dWFuMTk5Ny5jb21cIixcInBob25lXCI6XCIxODEqKioqNzIzOVwiLFwic3RhdHVzXCI6MSxcInR5cGVcIjoyLFwibG9naW5EYXRlXCI6XCIyMDI0LTAzLTIwIDExOjUwOjA5XCIsXCJleHBpcmVEYXRlXCI6XCIyMDI0LTA0LTE5IDExOjUwOjA5XCIsXCJkdXJhdGlvblwiOjI1OTIwMDB9IiwiYXVkIjoiTElMWV9wcm9kIiwiaWF0IjoxNzEwOTA2NjA5LCJleHAiOjE3MTM0OTg2MDl9.4w8wsmfvnu2HoUboJkLPc-2XD8aDJfKAdqaYL1xM98ZN_-Y3pdOPbER9BxdoiDvO20wXGq_GggwRJqTWc9AI-w"; } diff --git a/src/main/resources/user.txt b/src/main/resources/user.txt index 95876e3..ba6d398 100644 --- a/src/main/resources/user.txt +++ b/src/main/resources/user.txt @@ -1 +1,3 @@ -86858 \ No newline at end of file +216131 +213028 +212179 \ No newline at end of file