esoe 2 years ago
parent
commit
39ddbdebb9
  1. 6
      pom.xml
  2. 5
      src/main/java/ru/egspt/Access.java
  3. 1
      src/main/java/ru/egspt/implant/Runner.java
  4. 37
      src/main/sql/script.sql
  5. BIN
      target/classes/ru/egspt/Access.class
  6. BIN
      target/classes/ru/egspt/AccessPane.class
  7. BIN
      target/classes/ru/egspt/App.class
  8. BIN
      target/classes/ru/egspt/Base.class
  9. BIN
      target/classes/ru/egspt/BaseControls.class
  10. BIN
      target/classes/ru/egspt/Data.class
  11. BIN
      target/classes/ru/egspt/DataPane.class
  12. BIN
      target/classes/ru/egspt/Quiz.class
  13. BIN
      target/classes/ru/egspt/QuizesTableModel.class
  14. BIN
      target/classes/ru/egspt/ReportControls.class
  15. BIN
      target/classes/ru/egspt/ReportPane.class
  16. BIN
      target/classes/ru/egspt/ReportTableModel.class
  17. BIN
      target/classes/ru/egspt/Result.class
  18. BIN
      target/classes/ru/egspt/ResultsTableModel.class
  19. BIN
      target/classes/ru/egspt/TagControls.class
  20. BIN
      target/classes/ru/egspt/TagModel.class
  21. BIN
      target/classes/ru/egspt/TagPane.class
  22. BIN
      target/classes/ru/egspt/User.class
  23. BIN
      target/classes/ru/egspt/UserListModel.class
  24. BIN
      target/classes/ru/egspt/UsersTableModel.class
  25. BIN
      target/classes/ru/egspt/implant/ExtendedUser$1.class
  26. BIN
      target/classes/ru/egspt/implant/ExtendedUser$ExtendedUserBuilder.class
  27. BIN
      target/classes/ru/egspt/implant/ExtendedUser.class
  28. BIN
      target/classes/ru/egspt/implant/Implant.class
  29. BIN
      target/classes/ru/egspt/implant/Runner.class
  30. BIN
      target/classes/ru/molokoin/Runner.class
  31. 9
      target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  32. 44
      target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  33. BIN
      target/moodle-anyreport-0.1-jar-with-dependencies.jar
  34. BIN
      target/moodle-anyreport-0.1.jar

6
pom.xml

@ -62,6 +62,12 @@
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
<version>8.0.28</version> <version>8.0.28</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client -->
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.0.3</version>
</dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>

5
src/main/java/ru/egspt/Access.java

@ -7,7 +7,8 @@ public class Access {
* @param link the link to set * @param link the link to set
*/ */
public void setLink(String link) { public void setLink(String link) {
this.link = "jdbc:MySQL://" + link + ":3306/moodle"; //this.link = "jdbc:MySQL://" + link + ":3306/moodle";
this.link = "jdbc:mariadb://" + link + ":3306/moodle";
} }
/** /**
* @return the link * @return the link
@ -39,5 +40,5 @@ public class Access {
public String getPassword() { public String getPassword() {
return password; return password;
} }
} }

1
src/main/java/ru/egspt/implant/Runner.java

@ -33,7 +33,6 @@ public class Runner {
ArrayList<Quiz> quizes = r.data.getQuizesFromBase(r.base); ArrayList<Quiz> quizes = r.data.getQuizesFromBase(r.base);
ArrayList<Result> results = r.data.getResultsFromBase(r.base); ArrayList<Result> results = r.data.getResultsFromBase(r.base);
ArrayList<User> users = r.data.getUsersFromBase(r.base); ArrayList<User> users = r.data.getUsersFromBase(r.base);
} }
} }

37
src/main/sql/script.sql

@ -0,0 +1,37 @@
-- пользователи
SELECT id, username, email FROM mdl_user
-- опросы
SELECT id, name FROM mdl_quiz;
-- попытки /общие данные
SELECT id, quiz, userid, attempt, timestart, timefinish, sumgrades FROM mdl_quiz_attempts;
-- отчет
WITH pure AS (
SELECT
mqa.id as pure_id,
mqa.userid as pure_userid,
mqa.attempt as pure_attempt,
FROM_UNIXTIME(mqa.timestart) AS pure_timestart_date,
FROM_UNIXTIME(mqa.timefinish) AS pure_timefinish_date,
mqa.sumgrades as pure_mqa_sumgrades,
mqa.quiz as pure_mqa_quiz,
mq.id as pure_mq_id,
mq.name as pure_mq_name,
mu.id as pure_mu_id,
mu.username as pure_mu_username,
mu.email as pure_mu_email
FROM mdl_quiz_attempts as mqa
LEFT JOIN mdl_quiz as mq on mqa.quiz=mq.id
LEFT JOIN mdl_user as mu on mqa.userid=mu.id
WHERE mqa.userid > 3849
)
SELECT
pure_id,
pure_userid,
pure_mu_username,
pure_mu_email,
pure_timestart_date,
pure_timefinish_date,
pure_mqa_sumgrades,
pure_mq_name
FROM pure as report;

BIN
target/classes/ru/egspt/Access.class

Binary file not shown.

BIN
target/classes/ru/egspt/AccessPane.class

Binary file not shown.

BIN
target/classes/ru/egspt/App.class

Binary file not shown.

BIN
target/classes/ru/egspt/Base.class

Binary file not shown.

BIN
target/classes/ru/egspt/BaseControls.class

Binary file not shown.

BIN
target/classes/ru/egspt/Data.class

Binary file not shown.

BIN
target/classes/ru/egspt/DataPane.class

Binary file not shown.

BIN
target/classes/ru/egspt/Quiz.class

Binary file not shown.

BIN
target/classes/ru/egspt/QuizesTableModel.class

Binary file not shown.

BIN
target/classes/ru/egspt/ReportControls.class

Binary file not shown.

BIN
target/classes/ru/egspt/ReportPane.class

Binary file not shown.

BIN
target/classes/ru/egspt/ReportTableModel.class

Binary file not shown.

BIN
target/classes/ru/egspt/Result.class

Binary file not shown.

BIN
target/classes/ru/egspt/ResultsTableModel.class

Binary file not shown.

BIN
target/classes/ru/egspt/TagControls.class

Binary file not shown.

BIN
target/classes/ru/egspt/TagModel.class

Binary file not shown.

BIN
target/classes/ru/egspt/TagPane.class

Binary file not shown.

BIN
target/classes/ru/egspt/User.class

Binary file not shown.

BIN
target/classes/ru/egspt/UserListModel.class

Binary file not shown.

BIN
target/classes/ru/egspt/UsersTableModel.class

Binary file not shown.

BIN
target/classes/ru/egspt/implant/ExtendedUser$1.class

Binary file not shown.

BIN
target/classes/ru/egspt/implant/ExtendedUser$ExtendedUserBuilder.class

Binary file not shown.

BIN
target/classes/ru/egspt/implant/ExtendedUser.class

Binary file not shown.

BIN
target/classes/ru/egspt/implant/Implant.class

Binary file not shown.

BIN
target/classes/ru/egspt/implant/Runner.class

Binary file not shown.

BIN
target/classes/ru/molokoin/Runner.class

Binary file not shown.

9
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@ -1,20 +1,21 @@
ru\egspt\TagControls.class ru\egspt\TagControls.class
ru\egspt\ResultsTableModel.class ru\egspt\ResultsTableModel.class
ru\egspt\User.class
ru\egspt\App.class ru\egspt\App.class
ru\egspt\QuizesTableModel.class
ru\egspt\TagModel.class ru\egspt\TagModel.class
ru\egspt\implant\ExtendedUser$1.class
ru\egspt\BaseControls.class ru\egspt\BaseControls.class
ru\egspt\ReportTableModel.class
ru\egspt\Result.class ru\egspt\Result.class
ru\egspt\AccessPane.class ru\egspt\AccessPane.class
ru\egspt\DataPane.class ru\egspt\DataPane.class
ru\egspt\Quiz.class ru\egspt\Quiz.class
ru\egspt\Access.class ru\egspt\Access.class
ru\egspt\Base.class ru\egspt\Base.class
ru\egspt\UsersTableModel.class
ru\egspt\ReportControls.class ru\egspt\ReportControls.class
ru\egspt\UserListModel.class ru\egspt\UserListModel.class
ru\egspt\TagPane.class ru\egspt\TagPane.class
ru\egspt\Data.class ru\egspt\Data.class
ru\egspt\User.class
ru\egspt\QuizesTableModel.class
ru\egspt\ReportTableModel.class
ru\egspt\UsersTableModel.class
ru\egspt\ReportPane.class ru\egspt\ReportPane.class

44
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

@ -1,20 +1,24 @@
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\TagPane.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\BaseControls.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\QuizesTableModel.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\implant\ExtendedUser.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\TagModel.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\implant\Runner.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\AccessPane.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\ReportControls.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\BaseControls.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\TagControls.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\DataPane.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\UsersTableModel.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\Data.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\AccessPane.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\ReportTableModel.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\QuizesTableModel.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\ResultsTableModel.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\ReportPane.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\Access.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\ReportTableModel.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\App.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\implant\Implant.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\Base.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\Quiz.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\User.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\ResultsTableModel.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\UsersTableModel.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\Access.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\ReportControls.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\molokoin\Runner.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\UserListModel.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\Data.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\Result.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\Result.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\TagControls.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\App.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\ReportPane.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\DataPane.java
c:\Users\devuser\Documents\code\moodle\moodle-anyreport\src\main\java\ru\egspt\Quiz.java c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\TagModel.java
c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\User.java
c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\TagPane.java
c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\Base.java
c:\Users\devuser\Documents\code\moodle-anyreport\src\main\java\ru\egspt\UserListModel.java

BIN
target/moodle-anyreport-0.1-jar-with-dependencies.jar

Binary file not shown.

BIN
target/moodle-anyreport-0.1.jar

Binary file not shown.
Loading…
Cancel
Save