Browse Source

add:源码阅读demo

master
zhangzq 11 months ago
parent
commit
99262a88ec
  1. 13
      .idea/libraries/Maven__cn_dev33_sa_token_core_1_31_0.xml
  2. 13
      .idea/libraries/Maven__cn_dev33_sa_token_jwt_1_31_0.xml
  3. 13
      .idea/libraries/Maven__cn_dev33_sa_token_servlet_1_31_0.xml
  4. 13
      .idea/libraries/Maven__cn_dev33_sa_token_spring_boot_starter_1_31_0.xml
  5. 13
      .idea/libraries/Maven__cn_hutool_hutool_core_5_8_11.xml
  6. 13
      .idea/libraries/Maven__cn_hutool_hutool_crypto_5_8_5.xml
  7. 13
      .idea/libraries/Maven__cn_hutool_hutool_json_5_8_5.xml
  8. 13
      .idea/libraries/Maven__cn_hutool_hutool_jwt_5_8_5.xml
  9. 13
      .idea/libraries/Maven__com_alibaba_QLExpress_3_3_1.xml
  10. 13
      .idea/libraries/Maven__com_alibaba_transmittable_thread_local_2_12_3.xml
  11. 13
      .idea/libraries/Maven__com_baomidou_mybatis_plus_3_4_0.xml
  12. 13
      .idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_4_0.xml
  13. 13
      .idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_4_0.xml
  14. 13
      .idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_4_0.xml
  15. 13
      .idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_4_0.xml
  16. 13
      .idea/libraries/Maven__com_baomidou_mybatis_plus_generator_3_4_0.xml
  17. 13
      .idea/libraries/Maven__com_github_jsqlparser_jsqlparser_2_0.xml
  18. 13
      .idea/libraries/Maven__com_github_pagehelper_pagehelper_5_1_10.xml
  19. 13
      .idea/libraries/Maven__com_github_pagehelper_pagehelper_spring_boot_autoconfigure_1_2_12.xml
  20. 13
      .idea/libraries/Maven__com_github_pagehelper_pagehelper_spring_boot_starter_1_2_12.xml
  21. 13
      .idea/libraries/Maven__com_google_guava_guava_20_0.xml
  22. 13
      .idea/libraries/Maven__com_yomahub_liteflow_core_2_10_3.xml
  23. 13
      .idea/libraries/Maven__com_yomahub_liteflow_spring_2_10_3.xml
  24. 13
      .idea/libraries/Maven__com_yomahub_liteflow_spring_boot_starter_2_10_3.xml
  25. 13
      .idea/libraries/Maven__commons_beanutils_commons_beanutils_1_9_4.xml
  26. 13
      .idea/libraries/Maven__commons_collections_commons_collections_3_2_2.xml
  27. 13
      .idea/libraries/Maven__commons_io_commons_io_2_11_0.xml
  28. 13
      .idea/libraries/Maven__commons_lang_commons_lang_2_4.xml
  29. 13
      .idea/libraries/Maven__commons_logging_commons_logging_1_2.xml
  30. 13
      .idea/libraries/Maven__org_apache_commons_commons_lang3_3_12_0.xml
  31. 13
      .idea/libraries/Maven__org_apache_velocity_velocity_engine_core_2_3.xml
  32. 13
      .idea/libraries/Maven__org_dom4j_dom4j_2_1_3.xml
  33. 13
      .idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml
  34. 13
      .idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_1.xml
  35. 13
      .idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_0_1.xml
  36. 13
      .idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_0_1.xml
  37. 7
      .idea/misc.xml
  38. 43
      transactional-demo/pom.xml
  39. 2
      transactional-demo/src/main/java/nl/org/transactionaldemo/StartApplication.java
  40. 36
      transactional-demo/src/main/java/nl/org/transactionaldemo/config/SaTokenConfigure.java
  41. 51
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/JDK新特性/CompletableFuture/CompletableDemo.java
  42. 32
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/controller/FlowController.java
  43. 19
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/gateway/专机网关.java
  44. 16
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/nodes/推弯一体.java
  45. 16
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/nodes/深坑储料仓.java
  46. 16
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/nodes/激光下料机.java
  47. 16
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/nodes/缓存线.java
  48. 29
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/ErrorDemo.java
  49. 31
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/PageHelperDemoo.java
  50. 18
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/db/ISchProcessRouteService.java
  51. 20
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/db/SchProcessRouteServiceImpl.java
  52. 57
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/db/dao/SchProcessRoute.java
  53. 16
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/db/dao/mapper/SchProcessRouteMapper.java
  54. 15
      transactional-demo/src/main/java/nl/org/transactionaldemo/server/锁/service/PointService.java
  55. 21
      transactional-demo/src/main/resources/flow.xml

13
.idea/libraries/Maven__cn_dev33_sa_token_core_1_31_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: cn.dev33:sa-token-core:1.31.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-core/1.31.0/sa-token-core-1.31.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-core/1.31.0/sa-token-core-1.31.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-core/1.31.0/sa-token-core-1.31.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__cn_dev33_sa_token_jwt_1_31_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: cn.dev33:sa-token-jwt:1.31.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-jwt/1.31.0/sa-token-jwt-1.31.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-jwt/1.31.0/sa-token-jwt-1.31.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-jwt/1.31.0/sa-token-jwt-1.31.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__cn_dev33_sa_token_servlet_1_31_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: cn.dev33:sa-token-servlet:1.31.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-servlet/1.31.0/sa-token-servlet-1.31.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-servlet/1.31.0/sa-token-servlet-1.31.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-servlet/1.31.0/sa-token-servlet-1.31.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__cn_dev33_sa_token_spring_boot_starter_1_31_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: cn.dev33:sa-token-spring-boot-starter:1.31.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-spring-boot-starter/1.31.0/sa-token-spring-boot-starter-1.31.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-spring-boot-starter/1.31.0/sa-token-spring-boot-starter-1.31.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/cn/dev33/sa-token-spring-boot-starter/1.31.0/sa-token-spring-boot-starter-1.31.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__cn_hutool_hutool_core_5_8_11.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: cn.hutool:hutool-core:5.8.11">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-core/5.8.11/hutool-core-5.8.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-core/5.8.11/hutool-core-5.8.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-core/5.8.11/hutool-core-5.8.11-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__cn_hutool_hutool_crypto_5_8_5.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: cn.hutool:hutool-crypto:5.8.5">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-crypto/5.8.5/hutool-crypto-5.8.5.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-crypto/5.8.5/hutool-crypto-5.8.5-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-crypto/5.8.5/hutool-crypto-5.8.5-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__cn_hutool_hutool_json_5_8_5.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: cn.hutool:hutool-json:5.8.5">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-json/5.8.5/hutool-json-5.8.5.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-json/5.8.5/hutool-json-5.8.5-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-json/5.8.5/hutool-json-5.8.5-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__cn_hutool_hutool_jwt_5_8_5.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: cn.hutool:hutool-jwt:5.8.5">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-jwt/5.8.5/hutool-jwt-5.8.5.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-jwt/5.8.5/hutool-jwt-5.8.5-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/cn/hutool/hutool-jwt/5.8.5/hutool-jwt-5.8.5-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_alibaba_QLExpress_3_3_1.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.alibaba:QLExpress:3.3.1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/QLExpress/3.3.1/QLExpress-3.3.1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/QLExpress/3.3.1/QLExpress-3.3.1-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/QLExpress/3.3.1/QLExpress-3.3.1-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_alibaba_transmittable_thread_local_2_12_3.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.alibaba:transmittable-thread-local:2.12.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/transmittable-thread-local/2.12.3/transmittable-thread-local-2.12.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/transmittable-thread-local/2.12.3/transmittable-thread-local-2.12.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/transmittable-thread-local/2.12.3/transmittable-thread-local-2.12.3-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_baomidou_mybatis_plus_3_4_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.baomidou:mybatis-plus:3.4.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus/3.4.0/mybatis-plus-3.4.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus/3.4.0/mybatis-plus-3.4.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus/3.4.0/mybatis-plus-3.4.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_4_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.baomidou:mybatis-plus-annotation:3.4.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-annotation/3.4.0/mybatis-plus-annotation-3.4.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-annotation/3.4.0/mybatis-plus-annotation-3.4.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-annotation/3.4.0/mybatis-plus-annotation-3.4.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_4_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.baomidou:mybatis-plus-boot-starter:3.4.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-boot-starter/3.4.0/mybatis-plus-boot-starter-3.4.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-boot-starter/3.4.0/mybatis-plus-boot-starter-3.4.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-boot-starter/3.4.0/mybatis-plus-boot-starter-3.4.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_4_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.baomidou:mybatis-plus-core:3.4.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-core/3.4.0/mybatis-plus-core-3.4.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-core/3.4.0/mybatis-plus-core-3.4.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-core/3.4.0/mybatis-plus-core-3.4.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_4_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.baomidou:mybatis-plus-extension:3.4.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-extension/3.4.0/mybatis-plus-extension-3.4.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-extension/3.4.0/mybatis-plus-extension-3.4.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-extension/3.4.0/mybatis-plus-extension-3.4.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_baomidou_mybatis_plus_generator_3_4_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.baomidou:mybatis-plus-generator:3.4.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-generator/3.4.0/mybatis-plus-generator-3.4.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-generator/3.4.0/mybatis-plus-generator-3.4.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-generator/3.4.0/mybatis-plus-generator-3.4.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_2_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.github.jsqlparser:jsqlparser:2.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/jsqlparser/jsqlparser/2.0/jsqlparser-2.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/github/jsqlparser/jsqlparser/2.0/jsqlparser-2.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/jsqlparser/jsqlparser/2.0/jsqlparser-2.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_github_pagehelper_pagehelper_5_1_10.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.github.pagehelper:pagehelper:5.1.10">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper/5.1.10/pagehelper-5.1.10.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper/5.1.10/pagehelper-5.1.10-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper/5.1.10/pagehelper-5.1.10-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_github_pagehelper_pagehelper_spring_boot_autoconfigure_1_2_12.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.2.12">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper-spring-boot-autoconfigure/1.2.12/pagehelper-spring-boot-autoconfigure-1.2.12.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper-spring-boot-autoconfigure/1.2.12/pagehelper-spring-boot-autoconfigure-1.2.12-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper-spring-boot-autoconfigure/1.2.12/pagehelper-spring-boot-autoconfigure-1.2.12-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_github_pagehelper_pagehelper_spring_boot_starter_1_2_12.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.12">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper-spring-boot-starter/1.2.12/pagehelper-spring-boot-starter-1.2.12.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper-spring-boot-starter/1.2.12/pagehelper-spring-boot-starter-1.2.12-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/github/pagehelper/pagehelper-spring-boot-starter/1.2.12/pagehelper-spring-boot-starter-1.2.12-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_google_guava_guava_20_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.google.guava:guava:20.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/google/guava/guava/20.0/guava-20.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/google/guava/guava/20.0/guava-20.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/google/guava/guava/20.0/guava-20.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_yomahub_liteflow_core_2_10_3.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.yomahub:liteflow-core:2.10.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-core/2.10.3/liteflow-core-2.10.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-core/2.10.3/liteflow-core-2.10.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-core/2.10.3/liteflow-core-2.10.3-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_yomahub_liteflow_spring_2_10_3.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.yomahub:liteflow-spring:2.10.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-spring/2.10.3/liteflow-spring-2.10.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-spring/2.10.3/liteflow-spring-2.10.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-spring/2.10.3/liteflow-spring-2.10.3-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__com_yomahub_liteflow_spring_boot_starter_2_10_3.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.yomahub:liteflow-spring-boot-starter:2.10.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-spring-boot-starter/2.10.3/liteflow-spring-boot-starter-2.10.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-spring-boot-starter/2.10.3/liteflow-spring-boot-starter-2.10.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/yomahub/liteflow-spring-boot-starter/2.10.3/liteflow-spring-boot-starter-2.10.3-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_9_4.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: commons-beanutils:commons-beanutils:1.9.4">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__commons_collections_commons_collections_3_2_2.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: commons-collections:commons-collections:3.2.2">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__commons_io_commons_io_2_11_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: commons-io:commons-io:2.11.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/commons-io/commons-io/2.11.0/commons-io-2.11.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/commons-io/commons-io/2.11.0/commons-io-2.11.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__commons_lang_commons_lang_2_4.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: commons-lang:commons-lang:2.4">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.4/commons-lang-2.4.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.4/commons-lang-2.4-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.4/commons-lang-2.4-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: commons-logging:commons-logging:1.2">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__org_apache_commons_commons_lang3_3_12_0.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.apache.commons:commons-lang3:3.12.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__org_apache_velocity_velocity_engine_core_2_3.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.apache.velocity:velocity-engine-core:2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/apache/velocity/velocity-engine-core/2.3/velocity-engine-core-2.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/apache/velocity/velocity-engine-core/2.3/velocity-engine-core-2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/apache/velocity/velocity-engine-core/2.3/velocity-engine-core-2.3-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__org_dom4j_dom4j_2_1_3.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.dom4j:dom4j:2.1.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/dom4j/dom4j/2.1.3/dom4j-2.1.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/dom4j/dom4j/2.1.3/dom4j-2.1.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/dom4j/dom4j/2.1.3/dom4j-2.1.3-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mybatis:mybatis:3.5.5">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.5.5/mybatis-3.5.5.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.5.5/mybatis-3.5.5-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.5.5/mybatis-3.5.5-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_1.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mybatis:mybatis-spring:2.0.1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis-spring/2.0.1/mybatis-spring-2.0.1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis-spring/2.0.1/mybatis-spring-2.0.1-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis-spring/2.0.1/mybatis-spring-2.0.1-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_0_1.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.0.1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/spring/boot/mybatis-spring-boot-autoconfigure/2.0.1/mybatis-spring-boot-autoconfigure-2.0.1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/spring/boot/mybatis-spring-boot-autoconfigure/2.0.1/mybatis-spring-boot-autoconfigure-2.0.1-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/spring/boot/mybatis-spring-boot-autoconfigure/2.0.1/mybatis-spring-boot-autoconfigure-2.0.1-sources.jar!/" />
</SOURCES>
</library>
</component>

13
.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_0_1.xml

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.0.1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.0.1/mybatis-spring-boot-starter-2.0.1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.0.1/mybatis-spring-boot-starter-2.0.1-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.0.1/mybatis-spring-boot-starter-2.0.1-sources.jar!/" />
</SOURCES>
</library>
</component>

7
.idea/misc.xml

@ -11,4 +11,11 @@
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
<component name="SuppressABINotification">
<option name="modulesWithSuppressedNotConfigured">
<set>
<option value="transactional-demo" />
</set>
</option>
</component>
</project>

43
transactional-demo/pom.xml

@ -30,6 +30,11 @@
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>
<dependency>
<groupId>com.yomahub</groupId>
<artifactId>liteflow-spring-boot-starter</artifactId>
<version>2.10.3</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
@ -58,6 +63,44 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- Sa-Token 权限认证 安全框架, -->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.31.0</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.12</version>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>2.3</version>
</dependency>
<!-- Sa-Token 整合 jwt -->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-jwt</artifactId>
<version>1.31.0</version>
</dependency>
</dependencies>
<build>
<plugins>

2
transactional-demo/src/main/java/nl/org/transactionaldemo/StartApplication.java

@ -1,9 +1,11 @@
package nl.org.transactionaldemo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("nl.org.transactionaldemo.server.源码阅读.db.dao.mapper")
public class StartApplication {
public static void main(String[] args) {

36
transactional-demo/src/main/java/nl/org/transactionaldemo/config/SaTokenConfigure.java

@ -0,0 +1,36 @@
package nl.org.transactionaldemo.config;
import cn.dev33.satoken.interceptor.SaInterceptor;
import cn.dev33.satoken.jwt.StpLogicJwtForSimple;
import cn.dev33.satoken.stp.StpLogic;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* @author: lyd
* @description: sa-token的配置路由拦截
* @Date: 2022-09-20
*/
@Configuration
public class SaTokenConfigure implements WebMvcConfigurer {
static {
System.out.println("加载SaTokenConfigure");
}
// Sa-Token 整合 jwt (Simple 简单模式)
@Bean
public StpLogic getStpLogicJwt() {
return new StpLogicJwtForSimple();
}
// 注册 Sa-Token 拦截器,打开注解式鉴权功能
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new SaInterceptor(handle -> StpUtil.checkLogin()))
.addPathPatterns("/**");
}
}

51
transactional-demo/src/main/java/nl/org/transactionaldemo/server/JDK新特性/CompletableFuture/CompletableDemo.java

@ -0,0 +1,51 @@
package nl.org.transactionaldemo.server.JDK新特性.CompletableFuture;
import com.alibaba.fastjson.JSON;
import com.google.common.collect.Lists;
import org.springframework.util.CollectionUtils;
import java.util.*;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collectors;
/*
* 异步编程工具
* @Date 2023/5/6 15:24
*/
public class CompletableDemo {
public static void main(String[] args) {
ThreadPoolExecutor executor = new ThreadPoolExecutor(4, 8, 30L, TimeUnit.SECONDS, new ArrayBlockingQueue<>(50));
ArrayList<Map> datas = new ArrayList();
for (int i = 0; i < 1000; i++) {
Map<String, String> map = new HashMap<>();
map.put("NO:"+i, UUID.randomUUID().toString());
datas.add(map);
}
List<List<Map>> partition = Lists.partition(datas, 200);
//没有返回值的异步操作
runasync(executor, partition);
supplyAsync(executor, partition);
}
private static void runasync(ThreadPoolExecutor executor, List<List<Map>> partition) {
long res = partition.stream().map(item -> CompletableFuture.runAsync(() -> {
for (Map data : item) {
System.out.println(Thread.currentThread().getName()+"____"+data.keySet().toString());
}
}, executor)).parallel().map(CompletableFuture::join).count();//join.get会等待全部线程返回结果
}
private static void supplyAsync(ThreadPoolExecutor executor, List<List<Map>> partition) {
List<Object> collect = partition.stream().map(item -> CompletableFuture.supplyAsync(() -> Thread.currentThread().getName()+"____"+item.stream().map(a->a.keySet().toString()).collect(Collectors.toList()).size(), executor)).parallel().map(CompletableFuture::join).collect(Collectors.toList());
System.out.println(collect.toString());
}
}

32
transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/controller/FlowController.java

@ -0,0 +1,32 @@
package nl.org.transactionaldemo.server.流程引擎.controller;
import com.alibaba.fastjson.JSONObject;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.concurrent.Future;
/*
* @author ZZQ
* @Date 2023/5/6 18:21
*/
@RestController
@RequestMapping("/flow")
public class FlowController {
@Resource
FlowExecutor flowExecutor;
@RequestMapping("/demo")
public String flow(@RequestParam("way") Boolean way){
JSONObject param = new JSONObject();
param.put("way",way);
Future<LiteflowResponse> fullflow = flowExecutor.execute2Future("fullflow", param);
return "sucess";
}
}

19
transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/gateway/专机网关.java

@ -0,0 +1,19 @@
package nl.org.transactionaldemo.server.流程引擎.gateway;
import com.alibaba.fastjson.JSONObject;
import com.yomahub.liteflow.core.NodeIfComponent;
import org.springframework.stereotype.Component;
/*
* @author ZZQ
* @Date 2023/5/6 17:56
*/
@Component()
public class 专机网关 extends NodeIfComponent {
@Override //x就是IF组件,为真,执行a,为假,执行b:
public boolean processIf() throws Exception {
System.out.println("执行网关");
JSONObject data = (JSONObject)this.getRequestData();
return data.getBoolean("way");
}
}

16
transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/nodes/推弯一体.java

@ -0,0 +1,16 @@
package nl.org.transactionaldemo.server.流程引擎.nodes;
import com.yomahub.liteflow.core.NodeComponent;
import org.springframework.stereotype.Component;
/*
* @author ZZQ
* @Date 2023/5/6 17:54
*/
@Component
public class 推弯一体 extends NodeComponent {
@Override
public void process() throws Exception {
System.out.println("推弯一体");
}
}

16
transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/nodes/深坑储料仓.java

@ -0,0 +1,16 @@
package nl.org.transactionaldemo.server.流程引擎.nodes;
import com.yomahub.liteflow.core.NodeComponent;
import org.springframework.stereotype.Component;
/*
* @author ZZQ
* @Date 2023/5/6 17:54
*/
@Component
public class 深坑储料仓 extends NodeComponent {
@Override
public void process() throws Exception {
System.out.println("深坑储料仓");
}
}

16
transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/nodes/激光下料机.java

@ -0,0 +1,16 @@
package nl.org.transactionaldemo.server.流程引擎.nodes;
import com.yomahub.liteflow.core.NodeComponent;
import org.springframework.stereotype.Component;
/*
* @author ZZQ
* @Date 2023/5/6 17:54
*/
@Component
public class 激光下料机 extends NodeComponent {
@Override
public void process() throws Exception {
System.out.println("激光下料机");
}
}

16
transactional-demo/src/main/java/nl/org/transactionaldemo/server/流程引擎/nodes/缓存线.java

@ -0,0 +1,16 @@
package nl.org.transactionaldemo.server.流程引擎.nodes;
import com.yomahub.liteflow.core.NodeComponent;
import org.springframework.stereotype.Component;
/*
* @author ZZQ
* @Date 2023/5/6 17:54
*/
@Component
public class 缓存线 extends NodeComponent {
@Override
public void process() throws Exception {
System.out.println("激光下料机");
}
}

29
transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/ErrorDemo.java

@ -0,0 +1,29 @@
package nl.org.transactionaldemo.server.流程引擎.controller;
import com.alibaba.fastjson.JSONObject;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
import java.util.concurrent.Future;
/*
* @author ZZQ
* @Date 2023/5/6 18:21
*/
@RestController
@RequestMapping("/sourcecode")
public class ErrorDemo {
@RequestMapping("/demo")
public String flow(@RequestParam("list") List<String> way){
way.forEach(a->
Integer.valueOf(a));
return "sucess";
}
}

31
transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/PageHelperDemoo.java

@ -0,0 +1,31 @@
package nl.org.transactionaldemo.server.源码阅读;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import nl.org.transactionaldemo.server.源码阅读.db.ISchProcessRouteService;
import nl.org.transactionaldemo.server.源码阅读.db.dao.SchProcessRoute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/*
* @author ZZQ
* @Date 2023/5/6 18:21
*/
@RestController
@RequestMapping("/page")
public class PageHelperDemoo {
@Resource
ISchProcessRouteService routeService;
@RequestMapping("/demo")
public String flow(@RequestParam("list") List<String> way){
Page<Object> page = PageHelper.startPage(1, 2);
List<SchProcessRoute> list = routeService.list();
return "sucess";
}
}

18
transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/db/ISchProcessRouteService.java

@ -0,0 +1,18 @@
package nl.org.transactionaldemo.server.源码阅读.db;
import com.baomidou.mybatisplus.extension.service.IService;
import nl.org.transactionaldemo.server.源码阅读.db.dao.SchProcessRoute;
/**
* <p>
* 物料系列调度线路配置表 服务类
* </p>
*
* @author generator
* @since 2023-05-23
*/
public interface ISchProcessRouteService extends IService<SchProcessRoute> {
}

20
transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/db/SchProcessRouteServiceImpl.java

@ -0,0 +1,20 @@
package nl.org.transactionaldemo.server.源码阅读.db;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import nl.org.transactionaldemo.server.源码阅读.db.dao.SchProcessRoute;
import nl.org.transactionaldemo.server.源码阅读.db.dao.mapper.SchProcessRouteMapper;
import org.springframework.stereotype.Service;
/**
* <p>
* 物料系列调度线路配置表 服务实现类
* </p>
*
* @author generator
* @since 2023-05-23
*/
@Service
public class SchProcessRouteServiceImpl extends ServiceImpl<SchProcessRouteMapper, SchProcessRoute> implements ISchProcessRouteService {
}

57
transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/db/dao/SchProcessRoute.java

@ -0,0 +1,57 @@
package nl.org.transactionaldemo.server.源码阅读.db.dao;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
/**
* <p>
* 物料系列调度线路配置表
* </p>
*
* @author generator
* @since 2023-05-23
*/
@TableName("sch_process_route")
public class SchProcessRoute implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 规则物料系列/区域
*/
@TableId(value ="rule_code" )
private String rule_code;
/**
* 袋唯一标识
*/
private String process_id;
private String process_name;
public String getRule_code() {
return rule_code;
}
public void setRule_code(String rule_code) {
this.rule_code = rule_code;
}
public String getProcess_id() {
return process_id;
}
public void setProcess_id(String process_id) {
this.process_id = process_id;
}
public String getProcess_name() {
return process_name;
}
public void setProcess_name(String process_name) {
this.process_name = process_name;
}
}

16
transactional-demo/src/main/java/nl/org/transactionaldemo/server/源码阅读/db/dao/mapper/SchProcessRouteMapper.java

@ -0,0 +1,16 @@
package nl.org.transactionaldemo.server.源码阅读.db.dao.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import nl.org.transactionaldemo.server.源码阅读.db.dao.*;
/**
* <p>
* 物料系列调度线路配置表 Mapper 接口
* </p>
*
* @author generator
* @since 2023-05-23
*/
public interface SchProcessRouteMapper extends BaseMapper<SchProcessRoute> {
}

15
transactional-demo/src/main/java/nl/org/transactionaldemo/server/锁/service/PointService.java

@ -0,0 +1,15 @@
package nl.org.transactionaldemo.server.锁.service;
import org.springframework.stereotype.Service;
/*
* @author ZZQ
* @Date 2023/12/5 14:45
*/
@Service
public class PointService {
public String findPoint(){
return "";
};
}

21
transactional-demo/src/main/resources/flow.xml

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow>
<nodes>
<node id="推弯一体" class="nl.org.transactionaldemo.server.流程引擎.nodes.推弯一体"/>
<node id="激光下料机" class="nl.org.transactionaldemo.server.流程引擎.nodes.激光下料机"/>
<node id="深坑储料仓" class="nl.org.transactionaldemo.server.流程引擎.nodes.深坑储料仓"/>
<node id="缓存线" class="nl.org.transactionaldemo.server.流程引擎.nodes.缓存线"/>
<node id="专机网关" class="nl.org.transactionaldemo.server.流程引擎.gateway.专机网关"/>
</nodes>
<chain name="fullflow">
THEN(激光下料机,
IF(专机网关,缓存线,
THEN(推弯一体,
IF(专机网关,缓存线, 深坑储料仓)
)
)
);
</chain>
</flow>
Loading…
Cancel
Save