Browse Source

项目迁移

zhangkan 1 year ago
parent
commit
b0e64b213e
66 changed files with 12401 additions and 0 deletions
  1. 8 0
      .idea/.gitignore
  2. 23 0
      .idea/compiler.xml
  3. 12 0
      .idea/dataSources.xml
  4. 6 0
      .idea/encodings.xml
  5. 25 0
      .idea/jarRepositories.xml
  6. 12 0
      .idea/misc.xml
  7. 6 0
      .idea/sqldialects.xml
  8. 124 0
      .idea/uiDesigner.xml
  9. 15 0
      lanyun.iml
  10. 364 0
      pom.xml
  11. 22 0
      src/main/java/com/muzhi/lanyun/LanYunApplication.java
  12. 77 0
      src/main/java/com/muzhi/lanyun/common/R.java
  13. 12 0
      src/main/java/com/muzhi/lanyun/common/ResultCode.java
  14. 20 0
      src/main/java/com/muzhi/lanyun/config/MybatisPlusConfig.java
  15. 38 0
      src/main/java/com/muzhi/lanyun/controller/AccessTokenController.java
  16. 155 0
      src/main/java/com/muzhi/lanyun/controller/DingOaController.java
  17. 1538 0
      src/main/java/com/muzhi/lanyun/entity/ChaifenbLanyun.java
  18. 1538 0
      src/main/java/com/muzhi/lanyun/entity/ChaifencLanyun.java
  19. 1537 0
      src/main/java/com/muzhi/lanyun/entity/DanganLanyun.java
  20. 1538 0
      src/main/java/com/muzhi/lanyun/entity/XinziLanyun.java
  21. 23 0
      src/main/java/com/muzhi/lanyun/entity/vo/DanganLanyunQuery.java
  22. 15 0
      src/main/java/com/muzhi/lanyun/entity/vo/LanyunDataVo.java
  23. 23 0
      src/main/java/com/muzhi/lanyun/entity/vo/XinziLanyunQuery.java
  24. 11 0
      src/main/java/com/muzhi/lanyun/mapper/ChaifenbLanyunMapper.java
  25. 11 0
      src/main/java/com/muzhi/lanyun/mapper/ChaifencLanyunMapper.java
  26. 12 0
      src/main/java/com/muzhi/lanyun/mapper/DanganLanyunMapper.java
  27. 11 0
      src/main/java/com/muzhi/lanyun/mapper/XinziLanyunMapper.java
  28. 5 0
      src/main/java/com/muzhi/lanyun/mapper/xml/ChaifenbLanyunMapper.xml
  29. 5 0
      src/main/java/com/muzhi/lanyun/mapper/xml/ChaifencLanyunMapper.xml
  30. 5 0
      src/main/java/com/muzhi/lanyun/mapper/xml/DanganLanyunMapper.xml
  31. 5 0
      src/main/java/com/muzhi/lanyun/mapper/xml/XinziLanyunMapper.xml
  32. 15 0
      src/main/java/com/muzhi/lanyun/service/AccessTokenService.java
  33. 75 0
      src/main/java/com/muzhi/lanyun/service/DingOaService.java
  34. 73 0
      src/main/java/com/muzhi/lanyun/service/impl/AccessTokenServiceImpl.java
  35. 3619 0
      src/main/java/com/muzhi/lanyun/service/impl/DingOaServiceImpl.java
  36. 57 0
      src/main/resources/application.properties
  37. 1222 0
      src/test/java/com/muzhi/lanyun/APITest/Test1.java
  38. 13 0
      src/test/java/com/muzhi/lanyun/TestApplicationTests.java
  39. 57 0
      target/classes/application.properties
  40. BIN
      target/classes/com/muzhi/lanyun/LanYunApplication.class
  41. BIN
      target/classes/com/muzhi/lanyun/common/R.class
  42. BIN
      target/classes/com/muzhi/lanyun/common/ResultCode.class
  43. BIN
      target/classes/com/muzhi/lanyun/config/MybatisPlusConfig.class
  44. BIN
      target/classes/com/muzhi/lanyun/controller/AccessTokenController.class
  45. BIN
      target/classes/com/muzhi/lanyun/controller/DingOaController.class
  46. BIN
      target/classes/com/muzhi/lanyun/entity/ChaifenbLanyun.class
  47. BIN
      target/classes/com/muzhi/lanyun/entity/ChaifencLanyun.class
  48. BIN
      target/classes/com/muzhi/lanyun/entity/DanganLanyun.class
  49. BIN
      target/classes/com/muzhi/lanyun/entity/XinziLanyun.class
  50. BIN
      target/classes/com/muzhi/lanyun/entity/vo/DanganLanyunQuery.class
  51. BIN
      target/classes/com/muzhi/lanyun/entity/vo/LanyunDataVo.class
  52. BIN
      target/classes/com/muzhi/lanyun/entity/vo/XinziLanyunQuery.class
  53. BIN
      target/classes/com/muzhi/lanyun/mapper/ChaifenbLanyunMapper.class
  54. BIN
      target/classes/com/muzhi/lanyun/mapper/ChaifencLanyunMapper.class
  55. BIN
      target/classes/com/muzhi/lanyun/mapper/DanganLanyunMapper.class
  56. BIN
      target/classes/com/muzhi/lanyun/mapper/XinziLanyunMapper.class
  57. BIN
      target/classes/com/muzhi/lanyun/service/AccessTokenService.class
  58. BIN
      target/classes/com/muzhi/lanyun/service/DingOaService.class
  59. BIN
      target/classes/com/muzhi/lanyun/service/impl/AccessTokenServiceImpl.class
  60. BIN
      target/classes/com/muzhi/lanyun/service/impl/DingOaServiceImpl.class
  61. BIN
      target/lanyun-1.0-SNAPSHOT.jar.original
  62. 3 0
      target/maven-archiver/pom.properties
  63. BIN
      target/springboot-lanyun.jar
  64. 67 0
      target/surefire-reports/TEST-com.muzhi.lanyun.TestApplicationTests.xml
  65. 4 0
      target/surefire-reports/com.muzhi.lanyun.TestApplicationTests.txt
  66. BIN
      target/test-classes/com/muzhi/lanyun/TestApplicationTests.class

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml

+ 23 - 0
.idea/compiler.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="CompilerConfiguration">
+    <annotationProcessing>
+      <profile default="true" name="Default" enabled="true" />
+      <profile name="Maven default annotation processors profile" enabled="true">
+        <sourceOutputDir name="target/generated-sources/annotations" />
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
+        <outputRelativeToContentRoot value="true" />
+        <module name="springboot" />
+      </profile>
+    </annotationProcessing>
+    <bytecodeTargetLevel>
+      <module name="lanyun" target="1.8" />
+    </bytecodeTargetLevel>
+  </component>
+  <component name="JavacSettings">
+    <option name="ADDITIONAL_OPTIONS_OVERRIDE">
+      <module name="lanyun" options="-parameters" />
+      <module name="springboot" options="-parameters" />
+    </option>
+  </component>
+</project>

+ 12 - 0
.idea/dataSources.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
+    <data-source source="LOCAL" name="yunpu" uuid="39a4ab6c-9dc0-4284-bd57-352caaabf44b">
+      <driver-ref>mysql.8</driver-ref>
+      <synchronize>true</synchronize>
+      <jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
+      <jdbc-url>jdbc:mysql://47.97.181.40:3306</jdbc-url>
+      <working-dir>$ProjectFileDir$</working-dir>
+    </data-source>
+  </component>
+</project>

+ 6 - 0
.idea/encodings.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding">
+    <file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
+  </component>
+</project>

+ 25 - 0
.idea/jarRepositories.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="RemoteRepositoriesConfiguration">
+    <remote-repository>
+      <option name="id" value="sonatype-nexus-staging" />
+      <option name="name" value="Sonatype Nexus Staging" />
+      <option name="url" value="https://oss.sonatype.org/service/local/staging/deploy/maven2/" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="central" />
+      <option name="name" value="Central Repository" />
+      <option name="url" value="https://repo.maven.apache.org/maven2" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="central" />
+      <option name="name" value="Maven Central repository" />
+      <option name="url" value="https://repo1.maven.org/maven2" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="jboss.community" />
+      <option name="name" value="JBoss Community repository" />
+      <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
+    </remote-repository>
+  </component>
+</project>

+ 12 - 0
.idea/misc.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ExternalStorageConfigurationManager" enabled="true" />
+  <component name="MavenProjectsManager">
+    <option name="originalFiles">
+      <list>
+        <option value="$PROJECT_DIR$/pom.xml" />
+      </list>
+    </option>
+  </component>
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
+</project>

+ 6 - 0
.idea/sqldialects.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="SqlDialectMappings">
+    <file url="PROJECT" dialect="MySQL" />
+  </component>
+</project>

+ 124 - 0
.idea/uiDesigner.xml

@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Palette2">
+    <group name="Swing">
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
+      </item>
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
+        <initial-values>
+          <property name="text" value="Button" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="RadioButton" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="CheckBox" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="Label" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
+          <preferred-size width="-1" height="20" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
+      </item>
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
+      </item>
+    </group>
+  </component>
+</project>

+ 15 - 0
lanyun.iml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module version="4">
+  <component name="FacetManager">
+    <facet type="jpa" name="JPA">
+      <configuration>
+        <setting name="validation-enabled" value="true" />
+        <setting name="provider-name" value="Hibernate" />
+        <datasource-mapping>
+          <factory-entry name="noname-a.xml@0" value="39a4ab6c-9dc0-4284-bd57-352caaabf44b" />
+        </datasource-mapping>
+        <naming-strategy-map />
+      </configuration>
+    </facet>
+  </component>
+</module>

+ 364 - 0
pom.xml

@@ -0,0 +1,364 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>2.3.3.RELEASE</version>
+        <relativePath/> <!-- lookup parent from repository -->
+    </parent>
+    <groupId>com.muzhi.lanyun</groupId>
+    <artifactId>springboot</artifactId>
+<!--    <packaging>jar</packaging>-->
+    <version>lanyun</version>
+    <name>lanyun</name>
+    <description>Demo project for Spring Boot</description>
+
+    <properties>
+        <java.version>1.8</java.version>
+        <fastjson.version>1.2.33</fastjson.version>
+        <gson.version>2.8.2</gson.version>
+        <json.version>20170516</json.version>
+        <poi.version>3.17</poi.version>
+        <jodatime.version>2.10.1</jodatime.version>
+        <swagger.version>2.7.0</swagger.version>
+        <commons-fileupload.version>1.3.1</commons-fileupload.version>
+        <!--        <thymeleaf.version>3.0.2.RELEASE</thymeleaf.version>-->
+        <!-- 布局功能的支持程序 thymeleaf3主程序 layout2以上版本-->
+        <!--        <thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version>-->
+    </properties>
+
+    <repositories>
+        <repository>
+            <id>sonatype-nexus-staging</id>
+            <name>Sonatype Nexus Staging</name>
+            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </repository>
+    </repositories>
+
+    <dependencies>
+<!--        用友NC-->
+
+
+
+        <dependency>
+            <groupId>com.auth0</groupId>
+            <artifactId>java-jwt</artifactId>
+            <version>3.4.0</version>
+        </dependency>
+
+        <!-- httpClient -->
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>4.5.2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpcore</artifactId>
+            <version>4.4.13</version>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-httpclient</groupId>
+            <artifactId>commons-httpclient</artifactId>
+            <version>3.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.squareup.okhttp3</groupId>
+            <artifactId>okhttp</artifactId>
+            <version>4.4.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.konghq</groupId>
+            <artifactId>unirest-java</artifactId>
+            <version>2.3.17</version>
+        </dependency>
+
+<!--        <dependency>-->
+<!--            <groupId>org.slf4j</groupId>-->
+<!--            <artifactId>slf4j-api</artifactId>-->
+<!--        </dependency>-->
+
+<!--        <dependency>-->
+<!--            <groupId>commons-io</groupId>-->
+<!--            <artifactId>commons-io</artifactId>-->
+<!--        </dependency>-->
+
+        <!--json 组件 -->
+<!--        <dependency>-->
+<!--            <groupId>com.alibaba</groupId>-->
+<!--            <artifactId>fastjson</artifactId>-->
+<!--            <scope>provided</scope>-->
+<!--        </dependency>-->
+
+        <!--        <dependency>-->
+        <!--            <groupId>org.apache.cxf</groupId>-->
+        <!--            <artifactId>cxf-spring-boot-starter-jaxws</artifactId>-->
+        <!--            <version>3.3.1</version>-->
+        <!--        </dependency>-->
+
+        <!--        <dependency>-->
+        <!--            <groupId>org.springframework.boot</groupId>-->
+        <!--            <artifactId>spring-boot-starter-thymeleaf</artifactId>-->
+        <!--&lt;!&ndash;            <version>2.3.3.RELEASE</version>&ndash;&gt;-->
+        <!--        </dependency>-->
+
+        <!--钉钉相关-->
+        <dependency>
+            <groupId>com.aliyun</groupId>
+            <artifactId>alibaba-dingtalk-service-sdk</artifactId>
+            <version>2.0.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.aliyun</groupId>
+            <artifactId>dingtalk</artifactId>
+            <version>1.4.35</version>
+        </dependency>
+
+        <!--json相关-->
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>fastjson</artifactId>
+            <version>${fastjson.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.json</groupId>
+            <artifactId>json</artifactId>
+            <version>${json.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.google.code.gson</groupId>
+            <artifactId>gson</artifactId>
+            <version>${gson.version}</version>
+        </dependency>
+
+        <!--        <dependency>-->
+        <!--            <groupId>net.sf.json-lib</groupId>-->
+        <!--            <artifactId>json-lib</artifactId>-->
+        <!--            <version>2.4</version>-->
+        <!--        </dependency>-->
+
+
+        <!-- JSONObject对象依赖的jar包 -->
+        <dependency>
+            <groupId>commons-beanutils</groupId>
+            <artifactId>commons-beanutils</artifactId>
+            <version>1.9.3</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-collections</groupId>
+            <artifactId>commons-collections</artifactId>
+            <version>3.2.1</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-lang</groupId>
+            <artifactId>commons-lang</artifactId>
+            <version>2.6</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>1.1.1</version>
+        </dependency>
+        <dependency>
+            <groupId>net.sf.ezmorph</groupId>
+            <artifactId>ezmorph</artifactId>
+            <version>1.0.6</version>
+        </dependency>
+        <dependency>
+            <groupId>net.sf.json-lib</groupId>
+            <artifactId>json-lib</artifactId>
+            <version>2.2.3</version>
+            <classifier>jdk15</classifier><!-- 指定jdk版本 -->
+        </dependency>
+
+
+        <!--xls-->
+        <dependency>
+            <groupId>org.apache.poi</groupId>
+            <artifactId>poi</artifactId>
+            <version>${poi.version}</version>
+        </dependency>
+        <!--xlsx-->
+        <dependency>
+            <groupId>org.apache.poi</groupId>
+            <artifactId>poi-ooxml</artifactId>
+            <version>${poi.version}</version>
+        </dependency>
+        <!--文件上传-->
+        <dependency>
+            <groupId>commons-fileupload</groupId>
+            <artifactId>commons-fileupload</artifactId>
+            <version>${commons-fileupload.version}</version>
+        </dependency>
+
+        <!--        <dependency>-->
+        <!--            <groupId>org.springframework.boot</groupId>-->
+        <!--            <artifactId>spring-boot-starter-thymeleaf</artifactId>-->
+        <!--        </dependency>-->
+
+        <!--引入web模块-->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-devtools</artifactId>
+            <version>2.3.3.RELEASE</version>
+        </dependency>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+            <optional>true</optional>
+            <version>1.18.10</version>
+        </dependency>
+
+        <!--MD5加密-->
+        <dependency>
+            <groupId>org.apache.directory.studio</groupId>
+            <artifactId>org.apache.commons.codec</artifactId>
+            <version>1.8</version>
+        </dependency>
+
+        <!--mybatis-plus数据库连接-->
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+            <version>3.2.0</version>
+        </dependency>
+        <!--引入mysql:数据库驱动-->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <!--引入druid数据源-->
+        <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>druid</artifactId>
+            <version>1.1.9</version>
+        </dependency>
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>druid-spring-boot-starter</artifactId>
+            <version>1.1.9</version>
+        </dependency>
+
+        <!--引入jpa模块-->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-jpa</artifactId>
+        </dependency>
+
+        <!--日期时间工具-->
+        <dependency>
+            <groupId>joda-time</groupId>
+            <artifactId>joda-time</artifactId>
+            <version>${jodatime.version}</version>
+        </dependency>
+
+        <!--日期工具-->
+        <dependency>
+            <groupId>cn.hutool</groupId>
+            <artifactId>hutool-all</artifactId>
+            <version>4.6.8</version>
+        </dependency>
+
+        <!--log4j-->
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.17</version>
+        </dependency>
+
+        <!--swagger-->
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger2</artifactId>
+            <version>${swagger.version}</version>
+        </dependency>
+        <!--swagger ui-->
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+            <version>${swagger.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.junit.vintage</groupId>
+                    <artifactId>junit-vintage-engine</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <fork>true</fork>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.3.1</version>
+                <configuration>
+                    <source>1.8</source>
+                    <target>1.8</target>
+                    <encoding>utf8</encoding>
+                </configuration>
+            </plugin>
+
+            <!--打包跳过测试-->
+<!--            <plugin>-->
+<!--                <groupId>org.apache.maven.plugins</groupId>-->
+<!--                <artifactId>maven-surefire-plugin</artifactId>-->
+<!--                <version>2.4.2</version>-->
+<!--                <configuration>-->
+<!--                    <skipTests>true</skipTests>-->
+<!--                </configuration>-->
+<!--            </plugin>-->
+        </plugins>
+
+        <!--映射mapper中对应的xml配置文件,如果没有mapper.xml文件则将下列注释-->
+<!--        <resources>-->
+<!--            <resource>-->
+<!--                <directory>src/main/java</directory>-->
+<!--                <includes>-->
+<!--                    <include>**/*.xml</include>-->
+
+<!--                    <include>**/*.properties</include>-->
+<!--                    <include>**/*.tld</include>-->
+<!--                    <include>**/*.xls</include>-->
+<!--                    <include>**/*.xlsx</include>-->
+<!--                </includes>-->
+<!--                <filtering>false</filtering>-->
+<!--            </resource>-->
+<!--        </resources>-->
+    </build>
+
+</project>

+ 22 - 0
src/main/java/com/muzhi/lanyun/LanYunApplication.java

@@ -0,0 +1,22 @@
+package com.muzhi.lanyun;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+
+@MapperScan("com.muzhi.lanyun.mapper")
+@EnableAsync//开启异步注解
+@SpringBootApplication(exclude= DataSourceAutoConfiguration.class)//启动时不加载数据库(exclude= DataSourceAutoConfiguration.class)
+@EnableScheduling//开启定时任务
+//@ComponentScan(basePackages = {"com.muzhi"})
+public class LanYunApplication {
+
+    public static void main(String[] args){
+        SpringApplication.run(LanYunApplication.class, args);
+    }
+
+}

+ 77 - 0
src/main/java/com/muzhi/lanyun/common/R.java

@@ -0,0 +1,77 @@
+package com.muzhi.lanyun.common;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @Author ZhangKan
+ * @Data 11:20
+ */
+
+//统一返回结果类
+@Data
+public class R {
+
+    @ApiModelProperty(value = "是否成功")
+    private Boolean success;
+
+    @ApiModelProperty(value = "返回码")
+    private Integer code;
+
+    @ApiModelProperty(value = "返回消息")
+    private String message;
+
+    @ApiModelProperty(value = "返回数据")
+    private Map<String, Object> data = new HashMap<String, Object>();
+
+    //把构造方法私有
+    private R(){}
+
+    //成功静态方法
+    public static R ok(){
+
+        R r = new R();
+        r.setSuccess(true);
+        r.setCode(ResultCode.SUCCESS);
+        r.setMessage("成功");
+        return r;
+    }
+
+    //失败静态方法
+    public static R error(){
+
+        R r = new R();
+        r.setSuccess(false);
+        r.setCode(ResultCode.ERROR);
+        r.setMessage("失败");
+        return r;
+    }
+
+    public R message(String message){
+        this.setMessage(message);
+        return this;
+    }
+
+    public R code(Integer code){
+        this.setCode(code);
+        return this;
+    }
+
+    public R data(String key, Object value){
+        this.data.put(key, value);
+        return this;
+    }
+
+    public R data(String key, String value){
+        this.data.put(key, value);
+        return this;
+    }
+
+    public R data(Map<String, Object> map){
+        this.setData(map);
+        return this;
+    }
+}

+ 12 - 0
src/main/java/com/muzhi/lanyun/common/ResultCode.java

@@ -0,0 +1,12 @@
+package com.muzhi.lanyun.common;
+
+/**
+ * @Author ZhangKan
+ * @Data 11:15
+ */
+public interface ResultCode {
+
+    public static Integer SUCCESS = 200;//成功
+
+    public static Integer ERROR = 201;//失败
+}

+ 20 - 0
src/main/java/com/muzhi/lanyun/config/MybatisPlusConfig.java

@@ -0,0 +1,20 @@
+package com.muzhi.lanyun.config;
+
+import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * @Author ZhangKan
+ * @Data 21:30
+ */
+
+//配置拦截器
+@Configuration
+public class MybatisPlusConfig {
+
+    @Bean
+    public PaginationInterceptor paginationInterceptor(){
+        return new PaginationInterceptor();
+    }
+}

+ 38 - 0
src/main/java/com/muzhi/lanyun/controller/AccessTokenController.java

@@ -0,0 +1,38 @@
+package com.muzhi.lanyun.controller;
+
+import com.muzhi.lanyun.service.AccessTokenService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.io.IOException;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+
+/**
+ * @Author ZhangKan
+ * @Data 15:03
+ */
+
+@Api(description = "钉钉授权AccessToken")
+@RestController
+@RequestMapping("/dingservice")
+@CrossOrigin//解决跨域问题
+public class AccessTokenController {
+
+    @Autowired
+    private AccessTokenService AccessTokenService;
+
+    //获取钉钉中的access_token(蓝云架构)
+    @ApiOperation(value = "获取钉钉中的access_token")
+    @GetMapping("getAccessToken")
+    public String getAccessToken(){
+
+        String accessToken = AccessTokenService.getAccessToken();
+        return accessToken;
+    }
+}

+ 155 - 0
src/main/java/com/muzhi/lanyun/controller/DingOaController.java

@@ -0,0 +1,155 @@
+package com.muzhi.lanyun.controller;
+
+import com.alibaba.fastjson.JSONObject;
+import com.muzhi.lanyun.common.R;
+import com.muzhi.lanyun.entity.vo.DanganLanyunQuery;
+import com.muzhi.lanyun.entity.vo.LanyunDataVo;
+import com.muzhi.lanyun.entity.vo.XinziLanyunQuery;
+import com.muzhi.lanyun.service.DingOaService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Async;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Map;
+
+
+@Api(description = "钉钉")
+@RestController
+@RequestMapping("/dingservice")
+@CrossOrigin//解决跨域问题
+public class DingOaController {
+
+    @Autowired
+    private DingOaService dingOaService;
+
+    //获取数据库中【蓝云薪资总表】实体类表数据进行前端接口调用展示数据
+    @ApiOperation(value = "获取数据库中【蓝云薪资总表】实体类表数据进行前端接口调用展示数据")
+    @GetMapping("getXinziLanyun")
+    public LanyunDataVo getXinziLanyun(Integer currentPage, Integer pageSize,
+                                        XinziLanyunQuery xinziLanyunQuery){
+
+        LanyunDataVo xinziLanyun = dingOaService.getXinziLanyun(currentPage,pageSize,xinziLanyunQuery);
+        return xinziLanyun;
+    }
+
+    //获取数据库中【拆分A表】实体类表数据进行前端接口调用展示数据
+    @ApiOperation(value = "获取数据库中【拆分B表】实体类表数据进行前端接口调用展示数据")
+    @GetMapping("getChaifenbLanyun")
+    public LanyunDataVo getChaifenbLanyun(Integer currentPage, Integer pageSize,
+                                       XinziLanyunQuery xinziLanyunQuery){
+
+        LanyunDataVo chaifenbLanyun = dingOaService.getChaifenbLanyun(currentPage,pageSize,xinziLanyunQuery);
+        return chaifenbLanyun;
+    }
+
+    //获取数据库中【拆分B表】实体类表数据进行前端接口调用展示数据
+    @ApiOperation(value = "获取数据库中【拆分C表】实体类表数据进行前端接口调用展示数据")
+    @GetMapping("getChaifencLanyun")
+    public LanyunDataVo getChaifencLanyun(Integer currentPage, Integer pageSize,
+                                       XinziLanyunQuery xinziLanyunQuery){
+
+        LanyunDataVo chaifencLanyun = dingOaService.getChaifencLanyun(currentPage,pageSize,xinziLanyunQuery);
+        return chaifencLanyun;
+    }
+
+    //获取数据库中【蓝云档案汇总表】实体类表数据进行前端接口调用展示数据
+    @ApiOperation(value = "获取数据库中【蓝云档案汇总表】实体类表数据进行前端接口调用展示数据")
+    @GetMapping("getDanganLanyun")
+    public LanyunDataVo getDanganLanyun(Integer currentPage, Integer pageSize,
+                                        DanganLanyunQuery danganLanyunQuery){
+
+        LanyunDataVo danganLanyun = dingOaService.getDanganLanyun(currentPage,pageSize,danganLanyunQuery);
+        return danganLanyun;
+    }
+
+
+    //获取钉钉组织架构人员信息-同步至宜搭人员信息表
+    @ApiOperation(value = "获取钉钉组织架构人员信息-同步至宜搭人员信息表")
+    @PostMapping("getRenyuan")
+    @Scheduled(cron = "0 0 21 * * ?")//每天21:00触发(也就是凌晨22点01分触发)
+//    @Scheduled(cron = "0 0/10 * * * ?")//每10分钟执行一次
+//    @Scheduled(cron = "0 */10 * * * ?")//每隔10分钟执行一次
+    public String getRenyuan(){
+
+        String renyuan = dingOaService.getRenyuan();
+        return renyuan;
+    }
+
+    //获取宜搭人员信息表,更新宜搭人员状态
+    @ApiOperation(value = "获取宜搭人员信息表,更新宜搭人员状态")
+    @PostMapping("getRenyuanStatus")
+//    @Scheduled(cron = "0 30 22 * * ?")//每天22:31触发(也就是凌晨22点01分触发)
+//    @Scheduled(cron = "0 0/10 * * * ?")//每10分钟执行一次
+//    @Scheduled(cron = "0 */10 * * * ?")//每隔10分钟执行一次
+    public String getRenyuanStatus(){
+
+        String renyuanStatus = dingOaService.getRenyuanStatus();
+        return renyuanStatus;
+    }
+
+    //计算同步考勤数据-同步至宜搭应出勤天数表单
+    @ApiOperation(value = "计算同步考勤数据-同步至宜搭应出勤天数表单")
+    @PostMapping("tongbuKaoqin")
+    @Scheduled(cron = "0 0 22 * * ?")//每天23:10触发(也就是凌晨23点10分触发)
+//    @Scheduled(cron = "0 10 0 * * ?")//每天00:10触发(也就是凌晨0点10分触发)
+//    @Scheduled(cron = "0 0/10 * * * ?")//每10分钟执行一次
+//    @Scheduled(cron = "0 */10 * * * ?")//每隔10分钟执行一次
+    public String tongbuKaoqin(){
+
+        String tongbuKaoqin = dingOaService.tongbuKaoqin();
+        return tongbuKaoqin;
+    }
+
+    //批量修改档案及浮动数据方法
+    @ApiOperation(value = "批量修改档案及浮动数据方法")
+    @PostMapping("updateDangan")
+//    @Scheduled(cron = "0 0 22 * * ?")//每天23:10触发(也就是凌晨23点10分触发)
+//    @Scheduled(cron = "0 10 0 * * ?")//每天00:10触发(也就是凌晨0点10分触发)
+//    @Scheduled(cron = "0 0/10 * * * ?")//每10分钟执行一次
+//    @Scheduled(cron = "0 */10 * * * ?")//每隔10分钟执行一次
+    public R updateDangan(@RequestBody JSONObject obj) throws Exception{
+
+        R updateDangan = dingOaService.updateDangan(obj);
+        return updateDangan;
+    }
+
+    //计算同步薪资总表数据-同步至宜搭【工资核算表(A)】表单
+    @ApiOperation(value = "计算同步薪资总表数据-同步至宜搭【工资核算表(A)】表单")
+    @PostMapping("tongbuXinzihesuanA")
+//    @Scheduled(cron = "0 0 22 * * ?")//每天23:10触发(也就是凌晨23点10分触发)
+//    @Scheduled(cron = "0 10 0 * * ?")//每天00:10触发(也就是凌晨0点10分触发)
+//    @Scheduled(cron = "0 0/10 * * * ?")//每10分钟执行一次
+//    @Scheduled(cron = "0 */10 * * * ?")//每隔10分钟执行一次
+    public R tongbuXinzihesuanA(@RequestBody JSONObject obj) throws Exception{
+
+        R tongbuXinzihesuanA = dingOaService.tongbuXinzihesuanA(obj);
+        return tongbuXinzihesuanA;
+    }
+
+    /**
+     * 表单打开时加载(默认加载出所属部门)【废弃,未启用】
+     */
+    @ApiOperation(value = "表单打开时加载(默认加载出所属部门)")
+    @GetMapping("getBumen")
+    public List getBumen(String userid, String deptid){
+
+        List bumen = dingOaService.getBumen(userid,deptid);
+        return bumen;
+    }
+
+    /**
+     * 表单提交时校验(入职登记)
+     */
+    @ApiOperation(value = "表单提交时校验(入职登记)")
+    @GetMapping("getRZJY")
+    public Map getRZJY(String processInstances){
+
+        Map rzjy = dingOaService.getRZJY(processInstances);
+
+        return rzjy;
+    }
+}

File diff suppressed because it is too large
+ 1538 - 0
src/main/java/com/muzhi/lanyun/entity/ChaifenbLanyun.java


File diff suppressed because it is too large
+ 1538 - 0
src/main/java/com/muzhi/lanyun/entity/ChaifencLanyun.java


File diff suppressed because it is too large
+ 1537 - 0
src/main/java/com/muzhi/lanyun/entity/DanganLanyun.java


File diff suppressed because it is too large
+ 1538 - 0
src/main/java/com/muzhi/lanyun/entity/XinziLanyun.java


+ 23 - 0
src/main/java/com/muzhi/lanyun/entity/vo/DanganLanyunQuery.java

@@ -0,0 +1,23 @@
+package com.muzhi.lanyun.entity.vo;
+
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class DanganLanyunQuery {
+
+    // https://mc.cloudpure.cn/tianhe/tbservice/getTianheTB?page=1&limit=10
+    // &name=&xmbh&xmfzr=&xmzt&sfgd=&rwStart=&rwEnd=
+
+    @ApiModelProperty(value = "部门编号,匹配查询")
+    private String bmbh;
+
+    @ApiModelProperty(value = "多个人员编号,包含查询")
+    private List userids;
+
+    @ApiModelProperty(value = "人员姓名,模糊查询")
+    private String ryxm;
+}

+ 15 - 0
src/main/java/com/muzhi/lanyun/entity/vo/LanyunDataVo.java

@@ -0,0 +1,15 @@
+package com.muzhi.lanyun.entity.vo;
+
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class LanyunDataVo<T> {
+
+    private Integer code;
+    private String msg;
+    private Integer currentPage;
+    private Long totalCount;
+    private List<T> data;
+}

+ 23 - 0
src/main/java/com/muzhi/lanyun/entity/vo/XinziLanyunQuery.java

@@ -0,0 +1,23 @@
+package com.muzhi.lanyun.entity.vo;
+
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class XinziLanyunQuery {
+
+    // https://mc.cloudpure.cn/tianhe/tbservice/getTianheTB?page=1&limit=10
+    // &name=&xmbh&xmfzr=&xmzt&sfgd=&rwStart=&rwEnd=
+
+    @ApiModelProperty(value = "部门编号,匹配查询")
+    private String bmbh;
+
+    @ApiModelProperty(value = "多个人员编号,包含查询")
+    private List userids;
+
+    @ApiModelProperty(value = "人员姓名,模糊查询")
+    private String ryxm;
+}

+ 11 - 0
src/main/java/com/muzhi/lanyun/mapper/ChaifenbLanyunMapper.java

@@ -0,0 +1,11 @@
+package com.muzhi.lanyun.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.muzhi.lanyun.entity.ChaifenbLanyun;
+import org.springframework.stereotype.Repository;
+
+//在对应的Mapper上面继承基本的类BaseMapper
+@Repository//代表持久层,或者加入@Mapper注解
+public interface ChaifenbLanyunMapper extends BaseMapper<ChaifenbLanyun> {
+    //所有的CRUD操作都已经编写完成了
+}

+ 11 - 0
src/main/java/com/muzhi/lanyun/mapper/ChaifencLanyunMapper.java

@@ -0,0 +1,11 @@
+package com.muzhi.lanyun.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.muzhi.lanyun.entity.ChaifencLanyun;
+import org.springframework.stereotype.Repository;
+
+//在对应的Mapper上面继承基本的类BaseMapper
+@Repository//代表持久层,或者加入@Mapper注解
+public interface ChaifencLanyunMapper extends BaseMapper<ChaifencLanyun> {
+    //所有的CRUD操作都已经编写完成了
+}

+ 12 - 0
src/main/java/com/muzhi/lanyun/mapper/DanganLanyunMapper.java

@@ -0,0 +1,12 @@
+package com.muzhi.lanyun.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.muzhi.lanyun.entity.DanganLanyun;
+import com.muzhi.lanyun.entity.XinziLanyun;
+import org.springframework.stereotype.Repository;
+
+//在对应的Mapper上面继承基本的类BaseMapper
+@Repository//代表持久层,或者加入@Mapper注解
+public interface DanganLanyunMapper extends BaseMapper<DanganLanyun> {
+    //所有的CRUD操作都已经编写完成了
+}

+ 11 - 0
src/main/java/com/muzhi/lanyun/mapper/XinziLanyunMapper.java

@@ -0,0 +1,11 @@
+package com.muzhi.lanyun.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.muzhi.lanyun.entity.XinziLanyun;
+import org.springframework.stereotype.Repository;
+
+//在对应的Mapper上面继承基本的类BaseMapper
+@Repository//代表持久层,或者加入@Mapper注解
+public interface XinziLanyunMapper extends BaseMapper<XinziLanyun> {
+    //所有的CRUD操作都已经编写完成了
+}

+ 5 - 0
src/main/java/com/muzhi/lanyun/mapper/xml/ChaifenbLanyunMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+        <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.muzhi.lanyun.mapper.ChaifenbLanyunMapper">
+
+</mapper>

+ 5 - 0
src/main/java/com/muzhi/lanyun/mapper/xml/ChaifencLanyunMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+        <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.muzhi.lanyun.mapper.ChaifencLanyunMapper">
+
+</mapper>

+ 5 - 0
src/main/java/com/muzhi/lanyun/mapper/xml/DanganLanyunMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+        <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.muzhi.lanyun.mapper.DanganLanyunMapper">
+
+</mapper>

+ 5 - 0
src/main/java/com/muzhi/lanyun/mapper/xml/XinziLanyunMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+        <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.muzhi.lanyun.mapper.XinziLanyunMapper">
+
+</mapper>

+ 15 - 0
src/main/java/com/muzhi/lanyun/service/AccessTokenService.java

@@ -0,0 +1,15 @@
+package com.muzhi.lanyun.service;
+
+import java.io.IOException;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+
+/**
+ * @Author ZhangKan
+ * @Data 15:34
+ */
+public interface AccessTokenService {
+
+    //获取access_token的方法(蓝云)
+    String getAccessToken();
+}

+ 75 - 0
src/main/java/com/muzhi/lanyun/service/DingOaService.java

@@ -0,0 +1,75 @@
+package com.muzhi.lanyun.service;
+
+import com.alibaba.fastjson.JSONObject;
+import com.muzhi.lanyun.common.R;
+import com.muzhi.lanyun.entity.ChaifenbLanyun;
+import com.muzhi.lanyun.entity.ChaifencLanyun;
+import com.muzhi.lanyun.entity.DanganLanyun;
+import com.muzhi.lanyun.entity.XinziLanyun;
+import com.muzhi.lanyun.entity.vo.DanganLanyunQuery;
+import com.muzhi.lanyun.entity.vo.LanyunDataVo;
+import com.muzhi.lanyun.entity.vo.XinziLanyunQuery;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Author ZhangKan
+ * @Data 15:34
+ */
+public interface DingOaService {
+
+    //获取数据库中【蓝云薪资总表】实体类表数据进行前端接口调用展示数据
+    public LanyunDataVo<XinziLanyun> getXinziLanyun(Integer currentPage, Integer pageSize, XinziLanyunQuery xinziLanyunQuery);
+
+    //获取数据库中【拆分A表】实体类表数据进行前端接口调用展示数据
+    public LanyunDataVo<ChaifenbLanyun> getChaifenbLanyun(Integer currentPage, Integer pageSize, XinziLanyunQuery xinziLanyunQuery);
+
+    //获取数据库中【拆分B表】实体类表数据进行前端接口调用展示数据
+    public LanyunDataVo<ChaifencLanyun> getChaifencLanyun(Integer currentPage, Integer pageSize, XinziLanyunQuery xinziLanyunQuery);
+
+
+
+    //获取数据库中【蓝云档案汇总表】实体类表数据进行前端接口调用展示数据
+    public LanyunDataVo<DanganLanyun> getDanganLanyun(Integer currentPage, Integer pageSize, DanganLanyunQuery danganLanyunQuery);
+
+    /**
+     * ⬇⬇⬇宜搭批量导入表单写入数据库的方法⬇⬇⬇
+     * */
+//    //导入薪资档案
+//    R importXZDA(JSONObject data);
+//
+//    //导入浮动数据
+//    R importFDSJ(JSONObject data);
+//
+//    //导入社保公积金
+//    R importSBGJJ(JSONObject data);
+    /**
+     * ⬆⬆⬆宜搭批量导入表单写入数据库的方法⬆⬆⬆
+     * */
+
+    //获取钉钉组织架构人员信息-同步至宜搭人员信息表
+    String getRenyuan();
+
+    //获取宜搭人员信息表,更新宜搭人员状态
+    String getRenyuanStatus();
+
+    //计算同步考勤数据-同步至宜搭应出勤天数表单
+    String tongbuKaoqin();
+
+    //批量修改档案及浮动数据方法
+    R updateDangan(JSONObject obj);
+
+    //计算同步薪资总表数据-同步至宜搭【工资核算表(A)】表单
+    R tongbuXinzihesuanA(JSONObject obj) throws Exception;
+
+    /**
+     * 表单打开时加载(默认加载出所属部门)【废弃,未启用】
+     */
+    List getBumen(String userid, String deptid);
+
+    /**
+     * 表单提交时校验(入职登记)
+     */
+    Map getRZJY(String processInstances);
+}

+ 73 - 0
src/main/java/com/muzhi/lanyun/service/impl/AccessTokenServiceImpl.java

@@ -0,0 +1,73 @@
+package com.muzhi.lanyun.service.impl;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.dingtalk.api.DefaultDingTalkClient;
+import com.dingtalk.api.request.OapiGettokenRequest;
+import com.dingtalk.api.response.OapiGettokenResponse;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.muzhi.lanyun.service.AccessTokenService;
+import com.taobao.api.ApiException;
+import lombok.extern.slf4j.Slf4j;
+import okhttp3.*;
+import org.apache.http.client.config.CookieSpecs;
+import org.apache.http.client.config.RequestConfig;
+import org.apache.http.client.methods.HttpGet;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClients;
+import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
+import org.apache.http.util.EntityUtils;
+import org.springframework.stereotype.Service;
+
+import javax.crypto.Mac;
+import javax.crypto.spec.SecretKeySpec;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+import java.util.Base64;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.TreeMap;
+
+
+/**
+ * @Author ZhangKan
+ * @Data 15:39
+ */
+
+@Service
+@Slf4j
+public class AccessTokenServiceImpl implements AccessTokenService {
+
+    //蓝云
+    //APPKEY
+    private static String APPKEY = "dingfwn4kpmb4g3dy4fj";
+    //APPSECRET
+    private static String APPSECRET = "OwdkUc9nvBivpwsg0AiaEcyWLtZ678fskqBJwP7B5CQNrycIoyKuWslFTCOOaZG4";
+    //AgenthId:2871877887
+
+    public static String accessToken = null;
+
+
+    //获取access_token的方法(蓝云架构)
+    @Override
+    public String getAccessToken() {
+        DefaultDingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/gettoken");
+        OapiGettokenRequest request = new OapiGettokenRequest();
+        request.setAppkey(APPKEY);
+        request.setAppsecret(APPSECRET);
+        request.setHttpMethod("GET");
+        try {
+            OapiGettokenResponse response = client.execute(request);
+            accessToken = response.getAccessToken();
+            System.out.println("AccessToken:" + accessToken);
+        } catch (ApiException e) {
+            e.printStackTrace();
+        }
+        return accessToken;
+    }
+}

File diff suppressed because it is too large
+ 3619 - 0
src/main/java/com/muzhi/lanyun/service/impl/DingOaServiceImpl.java


+ 57 - 0
src/main/resources/application.properties

@@ -0,0 +1,57 @@
+server.port=8109
+server.servlet.context-path=/lanyun
+
+server.tomcat.uri-encoding=UTF-8
+
+## 服务名
+#spring.application.name=shennongshi-yd
+## 环境设置:dev、test、prod(开发环境、测试环境、生产环境)
+#spring.profiles.active=dev
+
+# mysql数据库连接
+# 本地测试数据库
+#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+#spring.datasource.url=jdbc:mysql://localhost:3306/dingtalk?serverTimezone=GMT%2B8
+#spring.datasource.username=root
+#spring.datasource.password=123456
+
+# 云璞【47.98.130.40服务器】测试数据库
+spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+spring.datasource.url=jdbc:mysql://47.97.181.40:3306/dingtalk?serverTimezone=GMT%2B8
+spring.datasource.username=root
+spring.datasource.password=cp-root@2022++
+
+#定时同步
+
+#配置日志,当前为默认的控制台输出,也可以用log4j
+#mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
+
+#控制台显示sql
+#spring.jpa.show-sql=true
+#更新或者创建数据表结构
+#spring.jpa.hibernate.ddl-auto=update
+
+#返回json的全局时间格式
+spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
+spring.jackson.time-zone=GMT+8
+#配置mapper xml文件的路径
+#mybatis-plus.mapper-locations=classpath:com/muzhi/lz/mapper/xml/*.xml
+
+#mybatis-plus.config-location=classpath:mybatis/mybatis-config.xml
+
+#禁用缓存
+spring.thymeleaf.cache=false
+#spring.thymeleaf.mode= LEGACYHTML5
+#spring.resources.chain.strategy.content.enabled=true
+#spring.resources.chain.strategy.content.paths=/**
+#spring.thymeleaf.check-template = true
+#spring.thymeleaf.servlet.content-type=text/html
+#spring.thymeleaf.enabled = true
+#spring.thymeleaf.encoding = UTF-8
+#spring.thymeleaf.prefix = classpath:/static/
+#spring.thymeleaf.suffix = .html
+
+#定义日期提交的格式(日期的格式化):SpingMVC将页面提交的值需要转换为指定类型;默认的是yyyy/MM/dd
+#spring.mvc.date-format=yyyy-MM-dd
+
+spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/templates/

File diff suppressed because it is too large
+ 1222 - 0
src/test/java/com/muzhi/lanyun/APITest/Test1.java


+ 13 - 0
src/test/java/com/muzhi/lanyun/TestApplicationTests.java

@@ -0,0 +1,13 @@
+package com.muzhi.lanyun;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class TestApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}

+ 57 - 0
target/classes/application.properties

@@ -0,0 +1,57 @@
+server.port=8109
+server.servlet.context-path=/lanyun
+
+server.tomcat.uri-encoding=UTF-8
+
+## ������
+#spring.application.name=shennongshi-yd
+## �������ã�dev��test��prod���������������Ի���������������
+#spring.profiles.active=dev
+
+# mysql���ݿ�����
+# ���ز������ݿ�
+#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+#spring.datasource.url=jdbc:mysql://localhost:3306/dingtalk?serverTimezone=GMT%2B8
+#spring.datasource.username=root
+#spring.datasource.password=123456
+
+# ��象�47.98.130.40���������������ݿ�
+spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+spring.datasource.url=jdbc:mysql://47.97.181.40:3306/dingtalk?serverTimezone=GMT%2B8
+spring.datasource.username=root
+spring.datasource.password=cp-root@2022++
+
+#��ʱͬ��
+
+#������־����ǰΪĬ�ϵĿ���̨�����Ҳ������log4j
+#mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
+
+#����̨��ʾsql
+#spring.jpa.show-sql=true
+#���»��ߴ������ݱ�ṹ
+#spring.jpa.hibernate.ddl-auto=update
+
+#����json��ȫ��ʱ���ʽ
+spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
+spring.jackson.time-zone=GMT+8
+#����mapper xml�ļ���·��
+#mybatis-plus.mapper-locations=classpath:com/muzhi/lz/mapper/xml/*.xml
+
+#mybatis-plus.config-location=classpath:mybatis/mybatis-config.xml
+
+#���û���
+spring.thymeleaf.cache=false
+#spring.thymeleaf.mode= LEGACYHTML5
+#spring.resources.chain.strategy.content.enabled=true
+#spring.resources.chain.strategy.content.paths=/**
+#spring.thymeleaf.check-template = true
+#spring.thymeleaf.servlet.content-type=text/html
+#spring.thymeleaf.enabled = true
+#spring.thymeleaf.encoding = UTF-8
+#spring.thymeleaf.prefix = classpath:/static/
+#spring.thymeleaf.suffix = .html
+
+#���������ύ�ĸ�ʽ�����ڵĸ�ʽ������SpingMVC��ҳ���ύ��ֵ��Ҫת��Ϊָ�����ͣ�Ĭ�ϵ���yyyy/MM/dd
+#spring.mvc.date-format=yyyy-MM-dd
+
+spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/templates/

BIN
target/classes/com/muzhi/lanyun/LanYunApplication.class


BIN
target/classes/com/muzhi/lanyun/common/R.class


BIN
target/classes/com/muzhi/lanyun/common/ResultCode.class


BIN
target/classes/com/muzhi/lanyun/config/MybatisPlusConfig.class


BIN
target/classes/com/muzhi/lanyun/controller/AccessTokenController.class


BIN
target/classes/com/muzhi/lanyun/controller/DingOaController.class


BIN
target/classes/com/muzhi/lanyun/entity/ChaifenbLanyun.class


BIN
target/classes/com/muzhi/lanyun/entity/ChaifencLanyun.class


BIN
target/classes/com/muzhi/lanyun/entity/DanganLanyun.class


BIN
target/classes/com/muzhi/lanyun/entity/XinziLanyun.class


BIN
target/classes/com/muzhi/lanyun/entity/vo/DanganLanyunQuery.class


BIN
target/classes/com/muzhi/lanyun/entity/vo/LanyunDataVo.class


BIN
target/classes/com/muzhi/lanyun/entity/vo/XinziLanyunQuery.class


BIN
target/classes/com/muzhi/lanyun/mapper/ChaifenbLanyunMapper.class


BIN
target/classes/com/muzhi/lanyun/mapper/ChaifencLanyunMapper.class


BIN
target/classes/com/muzhi/lanyun/mapper/DanganLanyunMapper.class


BIN
target/classes/com/muzhi/lanyun/mapper/XinziLanyunMapper.class


BIN
target/classes/com/muzhi/lanyun/service/AccessTokenService.class


BIN
target/classes/com/muzhi/lanyun/service/DingOaService.class


BIN
target/classes/com/muzhi/lanyun/service/impl/AccessTokenServiceImpl.class


BIN
target/classes/com/muzhi/lanyun/service/impl/DingOaServiceImpl.class


BIN
target/lanyun-1.0-SNAPSHOT.jar.original


+ 3 - 0
target/maven-archiver/pom.properties

@@ -0,0 +1,3 @@
+artifactId=lanyun
+groupId=com.muzhi.lanyun
+version=1.0-SNAPSHOT

BIN
target/springboot-lanyun.jar


File diff suppressed because it is too large
+ 67 - 0
target/surefire-reports/TEST-com.muzhi.lanyun.TestApplicationTests.xml


+ 4 - 0
target/surefire-reports/com.muzhi.lanyun.TestApplicationTests.txt

@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: com.muzhi.lanyun.TestApplicationTests
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.563 s - in com.muzhi.lanyun.TestApplicationTests

BIN
target/test-classes/com/muzhi/lanyun/TestApplicationTests.class