Pārlūkot izejas kodu

朝阳 养老驿站填报系统

pull/1/head
唐周平 pirms 10 mēnešiem
revīzija
cfa25be612
90 mainītis faili ar 4697 papildinājumiem un 0 dzēšanām
  1. +8
    -0
      .idea/.gitignore
  2. +19
    -0
      .idea/compiler.xml
  3. +7
    -0
      .idea/encodings.xml
  4. +30
    -0
      .idea/jarRepositories.xml
  5. +14
    -0
      .idea/misc.xml
  6. +124
    -0
      .idea/uiDesigner.xml
  7. +6
    -0
      .idea/vcs.xml
  8. +91
    -0
      mztb/pom.xml
  9. +22
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/MztbApplication.java
  10. +19
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.java
  11. +40
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/MztbStartedListener.java
  12. +253
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/BusinessInfo.java
  13. +127
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/DbSourceConfig.java
  14. +82
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FillOut.java
  15. +577
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FinanceInfo.java
  16. +154
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/PartyInfo.java
  17. +217
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/YearEndPersons.java
  18. +44
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.java
  19. +149
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.java
  20. +56
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.java
  21. +45
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.java
  22. +38
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.java
  23. +22
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/test/Test.java
  24. +11
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/domian/FillTask.java
  25. +48
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.java
  26. +37
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.java
  27. +139
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/task/PushTask.java
  28. +155
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/tool/DbUtil.java
  29. +13
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/tool/MztbEnum.java
  30. +1141
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/tool/UtilPub.java
  31. +86
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.java
  32. +33
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.java
  33. +2
    -0
      mztb/src/main/resources/META-INF/spring.factories
  34. +72
    -0
      mztb/src/main/resources/config/application-dev.yaml
  35. +77
    -0
      mztb/src/main/resources/config/application-prod.yaml
  36. +40
    -0
      mztb/src/main/resources/config/application.yaml
  37. +74
    -0
      mztb/src/main/resources/config/logback.xml
  38. +58
    -0
      mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillCard.js
  39. +96
    -0
      mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillList.js
  40. +18
    -0
      mztb/src/main/resources/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js
  41. Binārs
      mztb/src/main/resources/static/favicon.ico
  42. Binārs
      mztb/src/main/resources/static/images/login/bg-img.png
  43. Binārs
      mztb/src/main/resources/static/images/login/bg.png
  44. Binārs
      mztb/src/main/resources/static/images/login/main-logo.png
  45. +2
    -0
      mztb/target/classes/META-INF/spring.factories
  46. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/MztbApplication.class
  47. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.class
  48. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/MztbStartedListener.class
  49. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/BusinessInfo.class
  50. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/DbSourceConfig.class
  51. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/FillOut.class
  52. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/FinanceInfo.class
  53. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/PartyInfo.class
  54. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/YearEndPersons.class
  55. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.class
  56. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelListHandler.class
  57. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelLoadHandler.class
  58. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelSaveHandler.class
  59. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.class
  60. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.class
  61. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationListHandler.class
  62. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationLoadHandler.class
  63. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationSaveHandler.class
  64. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.class
  65. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.class
  66. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/base/test/Test.class
  67. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/domian/FillTask.class
  68. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.class
  69. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.class
  70. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/task/PushTask.class
  71. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/tool/DbUtil.class
  72. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum$FoState.class
  73. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum.class
  74. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/tool/UtilPub.class
  75. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthListHandler.class
  76. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthLoadHandler.class
  77. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.class
  78. Binārs
      mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.class
  79. +72
    -0
      mztb/target/classes/config/application-dev.yaml
  80. +77
    -0
      mztb/target/classes/config/application-prod.yaml
  81. +40
    -0
      mztb/target/classes/config/application.yaml
  82. +74
    -0
      mztb/target/classes/config/logback.xml
  83. +58
    -0
      mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillCard.js
  84. +96
    -0
      mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillList.js
  85. +18
    -0
      mztb/target/classes/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js
  86. Binārs
      mztb/target/classes/static/favicon.ico
  87. Binārs
      mztb/target/classes/static/images/login/bg-img.png
  88. Binārs
      mztb/target/classes/static/images/login/bg.png
  89. Binārs
      mztb/target/classes/static/images/login/main-logo.png
  90. +16
    -0
      pom.xml

+ 8
- 0
.idea/.gitignore Parādīt failu

@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

+ 19
- 0
.idea/compiler.xml Parādīt failu

@@ -0,0 +1,19 @@
<?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="mztb" />
</profile>
</annotationProcessing>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="mztb" options="-parameters" />
</option>
</component>
</project>

+ 7
- 0
.idea/encodings.xml Parādīt failu

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

+ 30
- 0
.idea/jarRepositories.xml Parādīt failu

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
</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="Central Repository" />
<option name="url" value="http://maven.aliyun.com/nexus/content/repositories/central/" />
</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>

+ 14
- 0
.idea/misc.xml Parādīt failu

@@ -0,0 +1,14 @@
<?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">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

+ 124
- 0
.idea/uiDesigner.xml Parādīt failu

@@ -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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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.png" 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>

+ 6
- 0
.idea/vcs.xml Parādīt failu

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

+ 91
- 0
mztb/pom.xml Parādīt failu

@@ -0,0 +1,91 @@
<?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">

<!-- <parent>-->
<!-- <artifactId>mztb-parent</artifactId>-->
<!-- <groupId>cc.smtweb</groupId>-->
<!-- <version>1.0-SNAPSHOT</version>-->
<!-- </parent>-->
<modelVersion>4.0.0</modelVersion>
<groupId>cc.smtweb</groupId>
<artifactId>mztb</artifactId>
<version>1.0-SNAPSHOT</version>


<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.6.2</version>
</dependency>
<!-- 系统底层 -->
<dependency>
<groupId>cc.smtweb</groupId>
<artifactId>smt-framework-bpm</artifactId>
<version>1.4.0-SNAPSHOT</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>cc.smtweb</groupId>-->
<!-- <artifactId>smt-framework-core</artifactId>-->
<!-- <version>1.4.0-SNAPSHOT</version>-->
<!-- </dependency>-->
<dependency>
<groupId>cc.smtweb</groupId>
<artifactId>smt-framework-bpm-vue</artifactId>
<!-- <artifactId>smt-framework-bpm-run</artifactId>-->
<version>1.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.2.6</version>
</dependency>

<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.3.3</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.3.3</version>
</dependency>

</dependencies>

<pluginRepositories>
<pluginRepository>
<id>nexus-jjkj</id>
<name>Nexus jjkj</name>
<url>http://47.92.149.153:7000/repository/maven-public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>


</project>

+ 22
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/MztbApplication.java Parādīt failu

@@ -0,0 +1,22 @@
package cc.smtweb.biz.mztb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class MztbApplication {

public static void main(String[] args) {
// try {
// Runtime.getRuntime().exec("redis-cli -n 10 flushdb");
// } catch (IOException e) {
// e.printStackTrace();
// }
SpringApplication.run(MztbApplication.class, args);
// try {
// Runtime.getRuntime().exec("cmd /c start http://localhost:8888/static/design/ui/index.html#/design");
// } catch (IOException e) {
// e.printStackTrace();
// }
}
}

+ 19
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.java Parādīt failu

@@ -0,0 +1,19 @@
package cc.smtweb.biz.mztb.spring;

import cc.smtweb.framework.core.mvc.config.ControllerConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
* @author kevin
*/
@Configuration
@ComponentScan
public class MztbAutoConfiguration {
/** 配置自定义service扫描路径 {module}/{service}/{method} */
@Bean
public ControllerConfig pgzxControllerConfig() {
return new ControllerConfig("mztb", "cc.smtweb.biz.mztb", null);
}
}

+ 40
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/MztbStartedListener.java Parādīt failu

@@ -0,0 +1,40 @@
package cc.smtweb.biz.mztb.web;

import cc.smtweb.framework.core.annotation.SwStartListener;
import cc.smtweb.framework.core.common.SwConsts;
import cc.smtweb.framework.core.mvc.controller.IStartListener;
import cc.smtweb.framework.core.session.SessionUtil;

/**
* Created by Akmm at 2022/7/8 19:57
*/
@SwStartListener()
public class MztbStartedListener implements IStartListener {

@Override
public double versionTo() {
return 0;
}
@Override
public int order() {
return SwConsts.DEFAULT_ORDER + 10;
}

@Override
public void init() {
SwConsts.SysParam.RUN_PROJECTS = "bpm,mztb";
SwConsts.SysParam.SYS_DEBUG = true;
SwConsts.SysParam.ENABLE_TRANSPORT_ENCRYPT =false;

}

@Override
public void run() {

}

@Override
public void close() {

}
}

+ 253
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/BusinessInfo.java Parādīt failu

@@ -0,0 +1,253 @@
package cc.smtweb.biz.mztb.web.base;

import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity;

/**
* Created by 1 at 2023-12-19 11:07:15
* 实体【[业务信息](TB_BUSINESS_INFO)】的Entity类
*/
@SwTable("TB_BUSINESS_INFO")
public class BusinessInfo extends DefaultEntity {
public static final String ENTITY_NAME = "TB_BUSINESS_INFO";

public BusinessInfo() {
super(ENTITY_NAME);
}

/** 主键 */
public long getId() {
return getLong("bi_id");
}

/** 主键 */
public void setId(long bi_id) {
put("bi_id", bi_id);
}
/** 最后更新时间 */
public long getUpdateAt() {
return getLong("bi_update_at");
}

/** 最后更新时间 */
public void setUpdateAt(long bi_update_at) {
put("bi_update_at", bi_update_at);
}
/** 填报主表ID */
public long getFoId() {
return getLong("bi_fo_id");
}

/** 填报主表ID */
public void setFoId(long bi_fo_id) {
put("bi_fo_id", bi_fo_id);
}
/** 类型 */
public String getType() {
return getStr("bi_type");
}

/** 类型 */
public void setType(String bi_type) {
put("bi_type", bi_type);
}
/** 性质 */
public String getProperty() {
return getStr("bi_property");
}

/** 性质 */
public void setProperty(String bi_property) {
put("bi_property", bi_property);
}
/** 兴办主体 */
public String getInitiate() {
return getStr("bi_initiate");
}

/** 兴办主体 */
public void setInitiate(String bi_initiate) {
put("bi_initiate", bi_initiate);
}
/** 是否为所有权、经营权分离办公养老机构 */
public int getIsolate() {
return getInt("bi_isolate");
}

/** 是否为所有权、经营权分离办公养老机构 */
public void setIsolate(int bi_isolate) {
put("bi_isolate", bi_isolate);
}
/** 医疗机构执业许可证登记号 */
public String getMedicalCard() {
return getStr("bi_medical_card");
}

/** 医疗机构执业许可证登记号 */
public void setMedicalCard(String bi_medical_card) {
put("bi_medical_card", bi_medical_card);
}
/** 医疗保险定点医疗机构资格证书编码 */
public String getMedicalCode() {
return getStr("bi_medical_code");
}

/** 医疗保险定点医疗机构资格证书编码 */
public void setMedicalCode(String bi_medical_code) {
put("bi_medical_code", bi_medical_code);
}
/** 单位所在地区行政区划代码 */
public String getUnitAddressAreaCode() {
return getStr("bi_unit_address_area_code");
}

/** 单位所在地区行政区划代码 */
public void setUnitAddressAreaCode(String bi_unit_address_area_code) {
put("bi_unit_address_area_code", bi_unit_address_area_code);
}
/** 邮编 */
public String getPostcode() {
return getStr("bi_postcode");
}

/** 邮编 */
public void setPostcode(String bi_postcode) {
put("bi_postcode", bi_postcode);
}
/** 年末职工人数 */
public int getYearEndEmployeeNumber() {
return getInt("bi_year_end_employee_number");
}

/** 年末职工人数 */
public void setYearEndEmployeeNumber(int bi_year_end_employee_number) {
put("bi_year_end_employee_number", bi_year_end_employee_number);
}
/** 年末职工人数(女) */
public int getYearEndEmpMiss() {
return getInt("bi_year_end_emp_miss");
}

/** 年末职工人数(女) */
public void setYearEndEmpMiss(int bi_year_end_emp_miss) {
put("bi_year_end_emp_miss", bi_year_end_emp_miss);
}
/** 年末职工人数(男) */
public int getYearEndEmpMan() {
return getInt("bi_year_end_emp_man");
}

/** 年末职工人数(男) */
public void setYearEndEmpMan(int bi_year_end_emp_man) {
put("bi_year_end_emp_man", bi_year_end_emp_man);
}
/** 年末职工人数(医护人员) */
public int getYearEndMedic() {
return getInt("bi_year_end_medic");
}

/** 年末职工人数(医护人员) */
public void setYearEndMedic(int bi_year_end_medic) {
put("bi_year_end_medic", bi_year_end_medic);
}
/** 大学专科人数 */
public int getYearEndZk() {
return getInt("bi_year_end_zk");
}

/** 大学专科人数 */
public void setYearEndZk(int bi_year_end_zk) {
put("bi_year_end_zk", bi_year_end_zk);
}
/** 大学本科及以上人数 */
public int getYearEndBk() {
return getInt("bi_year_end_bk");
}

/** 大学本科及以上人数 */
public void setYearEndBk(int bi_year_end_bk) {
put("bi_year_end_bk", bi_year_end_bk);
}
/** 助理社会工作师人数 */
public int getAssistant() {
return getInt("bi_assistant");
}

/** 助理社会工作师人数 */
public void setAssistant(int bi_assistant) {
put("bi_assistant", bi_assistant);
}
/** 社会工作师人数 */
public int getEngineer() {
return getInt("bi_engineer");
}

/** 社会工作师人数 */
public void setEngineer(int bi_engineer) {
put("bi_engineer", bi_engineer);
}
/** 35岁及以下人数 */
public int getThirtyFive() {
return getInt("bi_thirty_five");
}

/** 35岁及以下人数 */
public void setThirtyFive(int bi_thirty_five) {
put("bi_thirty_five", bi_thirty_five);
}
/** 36-45岁人数 */
public int getFortyFive() {
return getInt("bi_forty_five");
}

/** 36-45岁人数 */
public void setFortyFive(int bi_forty_five) {
put("bi_forty_five", bi_forty_five);
}
/** 46-55岁人数 */
public int getFiftyFive() {
return getInt("bi_fifty_five");
}

/** 46-55岁人数 */
public void setFiftyFive(int bi_fifty_five) {
put("bi_fifty_five", bi_fifty_five);
}
/** 56岁以上人数 */
public int getFiftyFiveAbove() {
return getInt("bi_fifty_five_above");
}

/** 56岁以上人数 */
public void setFiftyFiveAbove(int bi_fifty_five_above) {
put("bi_fifty_five_above", bi_fifty_five_above);
}
/** 机构管理人员—专业技术技能人员 */
public int getPartyManageSp() {
return getInt("bi_party_manage_sp");
}

/** 机构管理人员—专业技术技能人员 */
public void setPartyManageSp(int bi_party_manage_sp) {
put("bi_party_manage_sp", bi_party_manage_sp);
}
/** 专业技术技能人员—养老护理员 */
public int getSpNursingAssistant() {
return getInt("bi_sp_nursing_assistant");
}

/** 专业技术技能人员—养老护理员 */
public void setSpNursingAssistant(int bi_sp_nursing_assistant) {
put("bi_sp_nursing_assistant", bi_sp_nursing_assistant);
}
/** 执行会计制度 */
public String getExecuteRegimen() {
return getStr("bi_execute_regimen");
}

/** 执行会计制度 */
public void setExecuteRegimen(String bi_execute_regimen) {
put("bi_execute_regimen", bi_execute_regimen);
}
}

+ 127
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/DbSourceConfig.java Parādīt failu

@@ -0,0 +1,127 @@
package cc.smtweb.biz.mztb.web.base;

import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity;

/**
* Created by 1 at 2023-12-19 11:07:17
* 实体【[配置前置库连接](TB_DB_SOURCE_CONFIG)】的Entity类
*/
@SwTable("TB_DB_SOURCE_CONFIG")
public class DbSourceConfig extends DefaultEntity {
public static final String ENTITY_NAME = "TB_DB_SOURCE_CONFIG";

public DbSourceConfig() {
super(ENTITY_NAME);
}

/** 主键 */
public long getId() {
return getLong("dsc_id");
}

/** 主键 */
public void setId(long dsc_id) {
put("dsc_id", dsc_id);
}
/** 最后更新时间 */
public long getUpdateAt() {
return getLong("dsc_update_at");
}

/** 最后更新时间 */
public void setUpdateAt(long dsc_update_at) {
put("dsc_update_at", dsc_update_at);
}
/** 组织ID */
public long getOrgId() {
return getLong("dsc_org_id");
}

/** 组织ID */
public void setOrgId(long dsc_org_id) {
put("dsc_org_id", dsc_org_id);
}
/** 数据库类型 */
public String getDbType() {
return getStr("dsc_db_type");
}

/** 数据库类型 */
public void setDbType(String dsc_db_type) {
put("dsc_db_type", dsc_db_type);
}
/** ip地址 */
public String getConnectIp() {
return getStr("dsc_connect_ip");
}

/** ip地址 */
public void setConnectIp(String dsc_connect_ip) {
put("dsc_connect_ip", dsc_connect_ip);
}
/** 端口 */
public int getPort() {
return getInt("dsc_port");
}

/** 端口 */
public void setPort(int dsc_port) {
put("dsc_port", dsc_port);
}
/** 用户名 */
public String getUsername() {
return getStr("dsc_username");
}

/** 用户名 */
public void setUsername(String dsc_username) {
put("dsc_username", dsc_username);
}
/** 密码 */
public String getPassword() {
return getStr("dsc_password");
}

/** 密码 */
public void setPassword(String dsc_password) {
put("dsc_password", dsc_password);
}
/** 数据库名 */
public String getDbName() {
return getStr("dsc_db_name");
}

/** 数据库名 */
public void setDbName(String dsc_db_name) {
put("dsc_db_name", dsc_db_name);
}
/** 数据库编码 */
public String getCoding() {
return getStr("dsc_coding");
}

/** 数据库编码 */
public void setCoding(String dsc_coding) {
put("dsc_coding", dsc_coding);
}
/** 完整的URL地址 */
public String getWholeUrl() {
return getStr("dsc_whole_url");
}

/** 完整的URL地址 */
public void setWholeUrl(String dsc_whole_url) {
put("dsc_whole_url", dsc_whole_url);
}
/** 使用状态 */
public int getUseState() {
return getInt("dsc_use_state");
}

/** 使用状态 */
public void setUseState(int dsc_use_state) {
put("dsc_use_state", dsc_use_state);
}
}

+ 82
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FillOut.java Parādīt failu

@@ -0,0 +1,82 @@
package cc.smtweb.biz.mztb.web.base;

import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity;

/**
* Created by 1 at 2023-12-19 11:07:02
* 实体【[填报主表](TB_FILL_OUT)】的Entity类
*/
@SwTable("TB_FILL_OUT")
public class FillOut extends DefaultEntity {
public static final String ENTITY_NAME = "TB_FILL_OUT";

public FillOut() {
super(ENTITY_NAME);
}

/** 主键 */
public long getId() {
return getLong("fo_id");
}

/** 主键 */
public void setId(long fo_id) {
put("fo_id", fo_id);
}
/** 最后更新时间 */
public long getUpdateAt() {
return getLong("fo_update_at");
}

/** 最后更新时间 */
public void setUpdateAt(long fo_update_at) {
put("fo_update_at", fo_update_at);
}
/** 任务月 */
public long getTask() {
return getLong("fo_task");
}

/** 任务月 */
public void setTask(long fo_task) {
put("fo_task", fo_task);
}
/** 填报类型 */
public int getType() {
return getInt("fo_type");
}

/** 填报类型 */
public void setType(int fo_type) {
put("fo_type", fo_type);
}
/** 状态 */
public int getState() {
return getInt("fo_state");
}

/** 状态 */
public void setState(int fo_state) {
put("fo_state", fo_state);
}
/** 填报人 */
public String getUser() {
return getStr("fo_user");
}

/** 填报人 */
public void setUser(String fo_user) {
put("fo_user", fo_user);
}
/** 填报时间 */
public long getDate() {
return getLong("fo_date");
}

/** 填报时间 */
public void setDate(long fo_date) {
put("fo_date", fo_date);
}
}

+ 577
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/FinanceInfo.java Parādīt failu

@@ -0,0 +1,577 @@
package cc.smtweb.biz.mztb.web.base;

import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity;

/**
* Created by 1 at 2023-12-19 11:07:05
* 实体【[财务信息](TB_FINANCE_INFO)】的Entity类
*/
@SwTable("TB_FINANCE_INFO")
public class FinanceInfo extends DefaultEntity {
public static final String ENTITY_NAME = "TB_FINANCE_INFO";

public FinanceInfo() {
super(ENTITY_NAME);
}

/** 主键 */
public long getId() {
return getLong("fi_id");
}

/** 主键 */
public void setId(long fi_id) {
put("fi_id", fi_id);
}
/** 最后更新时间 */
public long getUpdateAt() {
return getLong("fi_update_at");
}

/** 最后更新时间 */
public void setUpdateAt(long fi_update_at) {
put("fi_update_at", fi_update_at);
}
/** 填报主表ID */
public long getFoId() {
return getLong("fi_fo_id");
}

/** 填报主表ID */
public void setFoId(long fi_fo_id) {
put("fi_fo_id", fi_fo_id);
}
/** 存货 */
public long getStock() {
return getLong("fi_stock");
}

/** 存货 */
public void setStock(long fi_stock) {
put("fi_stock", fi_stock);
}
/** 固定资产原价 */
public long getFixedAssets() {
return getLong("fi_fixed_assets");
}

/** 固定资产原价 */
public void setFixedAssets(long fi_fixed_assets) {
put("fi_fixed_assets", fi_fixed_assets);
}
/** 累计折旧 */
public long getGrandTotalDepr() {
return getLong("fi_grand_total_depr");
}

/** 累计折旧 */
public void setGrandTotalDepr(long fi_grand_total_depr) {
put("fi_grand_total_depr", fi_grand_total_depr);
}
/** 累计折旧(本年折旧) */
public long getGtdYear() {
return getLong("fi_gtd_year");
}

/** 累计折旧(本年折旧) */
public void setGtdYear(long fi_gtd_year) {
put("fi_gtd_year", fi_gtd_year);
}
/** 资产总计 */
public long getPropertyTotal() {
return getLong("fi_property_total");
}

/** 资产总计 */
public void setPropertyTotal(long fi_property_total) {
put("fi_property_total", fi_property_total);
}
/** 负债合计 */
public long getLiabilitiesTotal() {
return getLong("fi_liabilities_total");
}

/** 负债合计 */
public void setLiabilitiesTotal(long fi_liabilities_total) {
put("fi_liabilities_total", fi_liabilities_total);
}
/** 营业收入 */
public long getOperationRevenue() {
return getLong("fi_operation_revenue");
}

/** 营业收入 */
public void setOperationRevenue(long fi_operation_revenue) {
put("fi_operation_revenue", fi_operation_revenue);
}
/** 营业成本 */
public long getOperatingCosts() {
return getLong("fi_operating_costs");
}

/** 营业成本 */
public void setOperatingCosts(long fi_operating_costs) {
put("fi_operating_costs", fi_operating_costs);
}
/** 营业税金及附加 */
public long getTaxes() {
return getLong("fi_taxes");
}

/** 营业税金及附加 */
public void setTaxes(long fi_taxes) {
put("fi_taxes", fi_taxes);
}
/** 销售费用 */
public long getSellCost() {
return getLong("fi_sell_cost");
}

/** 销售费用 */
public void setSellCost(long fi_sell_cost) {
put("fi_sell_cost", fi_sell_cost);
}
/** 管理费用 */
public long getManageCost() {
return getLong("fi_manage_cost");
}

/** 管理费用 */
public void setManageCost(long fi_manage_cost) {
put("fi_manage_cost", fi_manage_cost);
}
/** 管理费用(税金) */
public long getMcTaxes() {
return getLong("fi_mc_taxes");
}

/** 管理费用(税金) */
public void setMcTaxes(long fi_mc_taxes) {
put("fi_mc_taxes", fi_mc_taxes);
}
/** 管理费用(差旅费) */
public long getMcTravel() {
return getLong("fi_mc_travel");
}

/** 管理费用(差旅费) */
public void setMcTravel(long fi_mc_travel) {
put("fi_mc_travel", fi_mc_travel);
}
/** 财务费用 */
public long getFinanceCost() {
return getLong("fi_finance_cost");
}

/** 财务费用 */
public void setFinanceCost(long fi_finance_cost) {
put("fi_finance_cost", fi_finance_cost);
}
/** 财务费用(利息净支出) */
public long getFcInterests() {
return getLong("fi_fc_interests");
}

/** 财务费用(利息净支出) */
public void setFcInterests(long fi_fc_interests) {
put("fi_fc_interests", fi_fc_interests);
}
/** 资产减值损失 */
public long getAssetLoss() {
return getLong("fi_asset_loss");
}

/** 资产减值损失 */
public void setAssetLoss(long fi_asset_loss) {
put("fi_asset_loss", fi_asset_loss);
}
/** 公允价值变动收益 */
public long getFairValueChanage() {
return getLong("fi_fair_value_chanage");
}

/** 公允价值变动收益 */
public void setFairValueChanage(long fi_fair_value_chanage) {
put("fi_fair value_chanage", fi_fair_value_chanage);
}
/** 投资收益 */
public long getIncomeFromInvestment() {
return getLong("fi_income_from_investment");
}

/** 投资收益 */
public void setIncomeFromInvestment(long fi_income_from_investment) {
put("fi_income_from_investment", fi_income_from_investment);
}
/** 营业利润 */
public long getOperatingProfit() {
return getLong("fi_operating_profit");
}

/** 营业利润 */
public void setOperatingProfit(long fi_operating_profit) {
put("fi_operating_profit", fi_operating_profit);
}
/** 营业外收入 */
public long getNonbusinessIncome() {
return getLong("fi_nonbusiness_income");
}

/** 营业外收入 */
public void setNonbusinessIncome(long fi_nonbusiness_income) {
put("fi_nonbusiness_income", fi_nonbusiness_income);
}
/** 营业外收入(政府补助) */
public long getNiPublicSubsidy() {
return getLong("fi_ni_public_subsidy");
}

/** 营业外收入(政府补助) */
public void setNiPublicSubsidy(long fi_ni_public_subsidy) {
put("fi_ni_public_subsidy", fi_ni_public_subsidy);
}
/** 应付职工底薪 */
public long getBasePay() {
return getLong("fi_base_pay");
}

/** 应付职工底薪 */
public void setBasePay(long fi_base_pay) {
put("fi_base_pay", fi_base_pay);
}
/** 本年应交增值税 */
public long getPayableMoneyYear() {
return getLong("fi_payable_money_year");
}

/** 本年应交增值税 */
public void setPayableMoneyYear(long fi_payable_money_year) {
put("fi_payable_money_year", fi_payable_money_year);
}
/** 本年收入合计 */
public long getYearIncomeTotal() {
return getLong("fi_year_income_total");
}

/** 本年收入合计 */
public void setYearIncomeTotal(long fi_year_income_total) {
put("fi_year_income_total", fi_year_income_total);
}
/** 本年收入合计(事业收入) */
public long getYitEnterpricse() {
return getLong("fi_yit_enterpricse");
}

/** 本年收入合计(事业收入) */
public void setYitEnterpricse(long fi_yit_enterpricse) {
put("fi_yit_enterpricse", fi_yit_enterpricse);
}
/** 本年收入合计(捐赠收入) */
public long getYitDonation() {
return getLong("fi_yit_donation");
}

/** 本年收入合计(捐赠收入) */
public void setYitDonation(long fi_yit_donation) {
put("fi_yit_donation", fi_yit_donation);
}
/** 本年收入合计(经营收入) */
public long getYitBusiness() {
return getLong("fi_yit_business");
}

/** 本年收入合计(经营收入) */
public void setYitBusiness(long fi_yit_business) {
put("fi_yit_business", fi_yit_business);
}
/** 本年收入合计(政府补助收入) */
public long getYitSubsidy() {
return getLong("fi_yit_subsidy");
}

/** 本年收入合计(政府补助收入) */
public void setYitSubsidy(long fi_yit_subsidy) {
put("fi_yit_subsidy", fi_yit_subsidy);
}
/** 本年收入合计(会费收入) */
public long getYitMembershiopFees() {
return getLong("fi_yit_membershiop_fees");
}

/** 本年收入合计(会费收入) */
public void setYitMembershiopFees(long fi_yit_membershiop_fees) {
put("fi_yit_membershiop_fees", fi_yit_membershiop_fees);
}
/** 本年支出合计 */
public long getYearExpend() {
return getLong("fi_year_expend");
}

/** 本年支出合计 */
public void setYearExpend(long fi_year_expend) {
put("fi_year_expend", fi_year_expend);
}
/** 本年支出合计(商品和服务支出) */
public long getYeCommodityService() {
return getLong("fi_ye_commodity_service");
}

/** 本年支出合计(商品和服务支出) */
public void setYeCommodityService(long fi_ye_commodity_service) {
put("fi_ye_commodity_service", fi_ye_commodity_service);
}
/** 商品和服务支出(取暖费) */
public long getCsHeatingFee() {
return getLong("fi_cs_heating_fee");
}

/** 商品和服务支出(取暖费) */
public void setCsHeatingFee(long fi_cs_heating_fee) {
put("fi_cs_heating_fee", fi_cs_heating_fee);
}
/** 商品和服务支出(差旅费) */
public long getCsTravelExpense() {
return getLong("fi_cs_travel_expense");
}

/** 商品和服务支出(差旅费) */
public void setCsTravelExpense(long fi_cs_travel_expense) {
put("fi_cs_travel_expense", fi_cs_travel_expense);
}
/** 商品和服务支出(因公出国 / 境费) */
public long getCsGoAbroad() {
return getLong("fi_cs_go_abroad");
}

/** 商品和服务支出(因公出国 / 境费) */
public void setCsGoAbroad(long fi_cs_go_abroad) {
put("fi_cs_go_abroad", fi_cs_go_abroad);
}
/** 商品和服务支出(劳务费) */
public long getCsServiceFee() {
return getLong("fi_cs_service_fee");
}

/** 商品和服务支出(劳务费) */
public void setCsServiceFee(long fi_cs_service_fee) {
put("fi_cs_service_fee", fi_cs_service_fee);
}
/** 商品和服务支出(工会经费) */
public long getCsExpend() {
return getLong("fi_cs_expend");
}

/** 商品和服务支出(工会经费) */
public void setCsExpend(long fi_cs_expend) {
put("fi_cs_expend", fi_cs_expend);
}
/** 商品和服务支出(福利费) */
public long getCsWeal() {
return getLong("fi_cs_weal");
}

/** 商品和服务支出(福利费) */
public void setCsWeal(long fi_cs_weal) {
put("fi_cs_weal", fi_cs_weal);
}
/** 本年支出合计(对个人和家庭补助支出) */
public long getYcsPersonageFamilyFee() {
return getLong("fi_ycs_personage_family_fee");
}

/** 本年支出合计(对个人和家庭补助支出) */
public void setYcsPersonageFamilyFee(long fi_ycs_personage_family_fee) {
put("fi_ycs_personage_family_fee", fi_ycs_personage_family_fee);
}
/** 对个人和家庭补助支出(抚恤金) */
public long getPffFuxue() {
return getLong("fi_pff_fuxue");
}

/** 对个人和家庭补助支出(抚恤金) */
public void setPffFuxue(long fi_pff_fuxue) {
put("fi_pff_fuxue", fi_pff_fuxue);
}
/** 对个人和家庭补助支出(生活补助) */
public long getPffLivingSubsidy() {
return getLong("fi_pff_living_subsidy");
}

/** 对个人和家庭补助支出(生活补助) */
public void setPffLivingSubsidy(long fi_pff_living_subsidy) {
put("fi_pff_living_subsidy", fi_pff_living_subsidy);
}
/** 对个人和家庭补助支出(救济费) */
public long getPffRelief() {
return getLong("fi_pff_relief");
}

/** 对个人和家庭补助支出(救济费) */
public void setPffRelief(long fi_pff_relief) {
put("fi_pff_relief", fi_pff_relief);
}
/** 对个人和家庭补助支出(助学金) */
public long getPffStudentGrent() {
return getLong("fi_pff_student_grent");
}

/** 对个人和家庭补助支出(助学金) */
public void setPffStudentGrent(long fi_pff_student_grent) {
put("fi_pff_student_grent", fi_pff_student_grent);
}
/** 对个人和家庭补助支出(奖励金) */
public long getPffBounty() {
return getLong("fi_pff_bounty");
}

/** 对个人和家庭补助支出(奖励金) */
public void setPffBounty(long fi_pff_bounty) {
put("fi_pff_bounty", fi_pff_bounty);
}
/** 对个人和家庭补助支出(生产补贴) */
public long getPffSubsidy() {
return getLong("fi_pff_subsidy");
}

/** 对个人和家庭补助支出(生产补贴) */
public void setPffSubsidy(long fi_pff_subsidy) {
put("fi_pff_subsidy", fi_pff_subsidy);
}
/** 本年支出合计(工资福利支出) */
public long getYcsSalary() {
return getLong("fi_ycs_salary");
}

/** 本年支出合计(工资福利支出) */
public void setYcsSalary(long fi_ycs_salary) {
put("fi_ycs_salary", fi_ycs_salary);
}
/** 本年支出合计(经营支出) */
public long getYcsOperatingExpense() {
return getLong("fi_ycs_operating_expense");
}

/** 本年支出合计(经营支出) */
public void setYcsOperatingExpense(long fi_ycs_operating_expense) {
put("fi_ycs_operating_expense", fi_ycs_operating_expense);
}
/** 销售税金 */
public long getSellFee() {
return getLong("fi_sell_fee");
}

/** 销售税金 */
public void setSellFee(long fi_sell_fee) {
put("fi_sell_fee", fi_sell_fee);
}
/** 本年费用合计 */
public long getYearSumFee() {
return getLong("fi_year_sum_fee");
}

/** 本年费用合计 */
public void setYearSumFee(long fi_year_sum_fee) {
put("fi_year_sum_fee", fi_year_sum_fee);
}
/** 本年费用合计(业务活动成本) */
public long getYsfBusinessFee() {
return getLong("fi_ysf_business_fee");
}

/** 本年费用合计(业务活动成本) */
public void setYsfBusinessFee(long fi_ysf_business_fee) {
put("fi_ysf_business_fee", fi_ysf_business_fee);
}
/** 业务活动成本(人员费用) */
public long getBfStaffCosts() {
return getLong("fi_bf_staff_costs");
}

/** 业务活动成本(人员费用) */
public void setBfStaffCosts(long fi_bf_staff_costs) {
put("fi_bf_staff_costs", fi_bf_staff_costs);
}
/** 业务活动成本(日常费用) */
public long getBfEveryDayFee() {
return getLong("fi_bf_every_day_fee");
}

/** 业务活动成本(日常费用) */
public void setBfEveryDayFee(long fi_bf_every_day_fee) {
put("fi_bf_every_day_fee", fi_bf_every_day_fee);
}
/** 业务活动成本(固定资产折旧) */
public long getBfAssets() {
return getLong("fi_bf_assets");
}

/** 业务活动成本(固定资产折旧) */
public void setBfAssets(long fi_bf_assets) {
put("fi_bf_assets", fi_bf_assets);
}
/** 业务活动成本(税费) */
public long getBfTax() {
return getLong("fi_bf_tax");
}

/** 业务活动成本(税费) */
public void setBfTax(long fi_bf_tax) {
put("fi_bf_tax", fi_bf_tax);
}
/** 本年费用合计(管理费用) */
public long getYsfMenageFee() {
return getLong("fi_ysf_menage_fee");
}

/** 本年费用合计(管理费用) */
public void setYsfMenageFee(long fi_ysf_menage_fee) {
put("fi_ysf_menage_fee", fi_ysf_menage_fee);
}
/** 管理费用(人员费用) */
public long getMfStaffCosts() {
return getLong("fi_mf_staff_costs");
}

/** 管理费用(人员费用) */
public void setMfStaffCosts(long fi_mf_staff_costs) {
put("fi_mf_staff_costs", fi_mf_staff_costs);
}
/** 管理费用(日常费用) */
public long getMfEveryDayFee() {
return getLong("fi_mf_every_day_fee");
}

/** 管理费用(日常费用) */
public void setMfEveryDayFee(long fi_mf_every_day_fee) {
put("fi_mf_every_day_fee", fi_mf_every_day_fee);
}
/** 管理费用(固定资产折旧) */
public long getMfAssets() {
return getLong("fi_mf_assets");
}

/** 管理费用(固定资产折旧) */
public void setMfAssets(long fi_mf_assets) {
put("fi_mf_assets", fi_mf_assets);
}
/** 管理费用(税费) */
public long getMfTax() {
return getLong("fi_mf_tax");
}

/** 管理费用(税费) */
public void setMfTax(long fi_mf_tax) {
put("fi_mf_tax", fi_mf_tax);
}
/** 净资产变动额 */
public long getChangeInNotAssets() {
return getLong("fi_change_in_not_assets");
}

/** 净资产变动额 */
public void setChangeInNotAssets(long fi_change_in_not_assets) {
put("fi_change_in_not_assets", fi_change_in_not_assets);
}
}

+ 154
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/PartyInfo.java Parādīt failu

@@ -0,0 +1,154 @@
package cc.smtweb.biz.mztb.web.base;

import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity;

/**
* Created by 1 at 2023-12-19 11:07:08
* 实体【[机构信息](TB_PARTY_INFO)】的Entity类
*/
@SwTable("TB_PARTY_INFO")
public class PartyInfo extends DefaultEntity {
public static final String ENTITY_NAME = "TB_PARTY_INFO";

public PartyInfo() {
super(ENTITY_NAME);
}

/** 主键 */
public long getId() {
return getLong("pi_id");
}

/** 主键 */
public void setId(long pi_id) {
put("pi_id", pi_id);
}
/** 最后更新时间 */
public long getUpdateAt() {
return getLong("pi_update_at");
}

/** 最后更新时间 */
public void setUpdateAt(long pi_update_at) {
put("pi_update_at", pi_update_at);
}
/** 单位名称 */
public String getPartyName() {
return getStr("pi_party_name");
}

/** 单位名称 */
public void setPartyName(String pi_party_name) {
put("pi_party_name", pi_party_name);
}
/** 信用代码 */
public String getCreditCode() {
return getStr("pi_credit_code");
}

/** 信用代码 */
public void setCreditCode(String pi_credit_code) {
put("pi_credit_code", pi_credit_code);
}
/** 登记部门 */
public String getRegDept() {
return getStr("pi_reg_dept");
}

/** 登记部门 */
public void setRegDept(String pi_reg_dept) {
put("pi_reg_dept", pi_reg_dept);
}
/** 登记时间 */
public long getRegTime() {
return getLong("pi_reg_time");
}

/** 登记时间 */
public void setRegTime(long pi_reg_time) {
put("pi_reg_time", pi_reg_time);
}
/** 机构类型 */
public String getPartyType() {
return getStr("pi_party_type");
}

/** 机构类型 */
public void setPartyType(String pi_party_type) {
put("pi_party_type", pi_party_type);
}
/** 变动类型 */
public String getChangeType() {
return getStr("pi_change_type");
}

/** 变动类型 */
public void setChangeType(String pi_change_type) {
put("pi_change_type", pi_change_type);
}
/** 变动时间 */
public long getChangeTime() {
return getLong("pi_change_time");
}

/** 变动时间 */
public void setChangeTime(long pi_change_time) {
put("pi_change_time", pi_change_time);
}
/** 行政区划代码 */
public String getAreaCode() {
return getStr("pi_area_code");
}

/** 行政区划代码 */
public void setAreaCode(String pi_area_code) {
put("pi_area_code", pi_area_code);
}
/** 法定代表人 */
public String getLegalPerson() {
return getStr("pi_legal_person");
}

/** 法定代表人 */
public void setLegalPerson(String pi_legal_person) {
put("pi_legal_person", pi_legal_person);
}
/** 地址 */
public String getAddress() {
return getStr("pi_address");
}

/** 地址 */
public void setAddress(String pi_address) {
put("pi_address", pi_address);
}
/** 电话 */
public String getPhone() {
return getStr("pi_phone");
}

/** 电话 */
public void setPhone(String pi_phone) {
put("pi_phone", pi_phone);
}
/** 邮编 */
public String getPostcode() {
return getStr("pi_postcode");
}

/** 邮编 */
public void setPostcode(String pi_postcode) {
put("pi_postcode", pi_postcode);
}
/** 国民经济分类 */
public String getNationalEconomyType() {
return getStr("pi_national_economy_type");
}

/** 国民经济分类 */
public void setNationalEconomyType(String pi_national_economy_type) {
put("pi_national_economy_type", pi_national_economy_type);
}
}

+ 217
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/YearEndPersons.java Parādīt failu

@@ -0,0 +1,217 @@
package cc.smtweb.biz.mztb.web.base;

import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity;

/**
* Created by 1 at 2023-12-19 11:07:10
* 实体【[年末人数信息](TB_YEAR_END_PERSONS)】的Entity类
*/
@SwTable("TB_YEAR_END_PERSONS")
public class YearEndPersons extends DefaultEntity {
public static final String ENTITY_NAME = "TB_YEAR_END_PERSONS";

public YearEndPersons() {
super(ENTITY_NAME);
}

/** 主键 */
public long getId() {
return getLong("yep_id");
}

/** 主键 */
public void setId(long yep_id) {
put("yep_id", yep_id);
}
/** 最后更新时间 */
public long getUpdateAt() {
return getLong("yep_update_at");
}

/** 最后更新时间 */
public void setUpdateAt(long yep_update_at) {
put("yep_update_at", yep_update_at);
}
/** 填报主表ID */
public long getFoId() {
return getLong("yep_fo_id");
}

/** 填报主表ID */
public void setFoId(long yep_fo_id) {
put("yep_fo_id", yep_fo_id);
}
/** 年末床位数 */
public int getYeBed() {
return getInt("yep_ye_bed");
}

/** 年末床位数 */
public void setYeBed(int yep_ye_bed) {
put("yep_ye_bed", yep_ye_bed);
}
/** 年末床位数(护理型床位) */
public int getYeNurseBed() {
return getInt("yep_ye_nurse_bed");
}

/** 年末床位数(护理型床位) */
public void setYeNurseBed(int yep_ye_nurse_bed) {
put("yep_ye_nurse_bed", yep_ye_nurse_bed);
}
/** 年在院总人天数 */
public int getYeZrts() {
return getInt("yep_ye_zrts");
}

/** 年在院总人天数 */
public void setYeZrts(int yep_ye_zrts) {
put("yep_ye_zrts", yep_ye_zrts);
}
/** 年末在院人数 */
public int getYeNumber() {
return getInt("yep_ye_number");
}

/** 年末在院人数 */
public void setYeNumber(int yep_ye_number) {
put("yep_ye_number", yep_ye_number);
}
/** 年末在院人数(女性) */
public int getYeMissNum() {
return getInt("yep_ye_miss_num");
}

/** 年末在院人数(女性) */
public void setYeMissNum(int yep_ye_miss_num) {
put("yep_ye_miss_num", yep_ye_miss_num);
}
/** 年末在院人数(其他人员) */
public int getYeOtherNum() {
return getInt("yep_ye_other_num");
}

/** 年末在院人数(其他人员) */
public void setYeOtherNum(int yep_ye_other_num) {
put("yep_ye_other_num", yep_ye_other_num);
}
/** 年末在院人数(特困人员救助供养对象) */
public int getYePoverty() {
return getInt("yep_ye_poverty");
}

/** 年末在院人数(特困人员救助供养对象) */
public void setYePoverty(int yep_ye_poverty) {
put("yep_ye_poverty", yep_ye_poverty);
}
/** 年末在院人数(自费人员) */
public int getYeSelfPaying() {
return getInt("yep_ye_self_paying");
}

/** 年末在院人数(自费人员) */
public void setYeSelfPaying(int yep_ye_self_paying) {
put("yep_ye_self_paying", yep_ye_self_paying);
}
/** 年末在院人数(老年人) */
public int getYeOldMan() {
return getInt("yep_ye_old_man");
}

/** 年末在院人数(老年人) */
public void setYeOldMan(int yep_ye_old_man) {
put("yep_ye_old_man", yep_ye_old_man);
}
/** 年末在院人数(青壮年) */
public int getYeYoung() {
return getInt("yep_ye_young");
}

/** 年末在院人数(青壮年) */
public void setYeYoung(int yep_ye_young) {
put("yep_ye_young", yep_ye_young);
}
/** 年末在院人数(儿童) */
public int getYeChild() {
return getInt("yep_ye_child");
}

/** 年末在院人数(儿童) */
public void setYeChild(int yep_ye_child) {
put("yep_ye_child", yep_ye_child);
}
/** 年末在院人数(能力完好) */
public int getYeIntact() {
return getInt("yep_ye_intact");
}

/** 年末在院人数(能力完好) */
public void setYeIntact(int yep_ye_intact) {
put("yep_ye_intact", yep_ye_intact);
}
/** 年末在院人数(部分失能) */
public int getYePartDisability() {
return getInt("yep_ye_part_disability");
}

/** 年末在院人数(部分失能) */
public void setYePartDisability(int yep_ye_part_disability) {
put("yep_ye_part_disability", yep_ye_part_disability);
}
/** 年末在院人数(完全失能) */
public int getYeDisability() {
return getInt("yep_ye_disability");
}

/** 年末在院人数(完全失能) */
public void setYeDisability(int yep_ye_disability) {
put("yep_ye_disability", yep_ye_disability);
}
/** 康复和医疗门诊人次数 */
public int getOutpatientService() {
return getInt("yep_outpatient_service");
}

/** 康复和医疗门诊人次数 */
public void setOutpatientService(int yep_outpatient_service) {
put("yep_outpatient_service", yep_outpatient_service);
}
/** 家庭寄养儿童数量 */
public int getFosterChildren() {
return getInt("yep_foster_children");
}

/** 家庭寄养儿童数量 */
public void setFosterChildren(int yep_foster_children) {
put("yep_foster_children", yep_foster_children);
}
/** 机构建筑面积(平方米) */
public long getAcreage() {
return getLong("yep_acreage");
}

/** 机构建筑面积(平方米) */
public void setAcreage(long yep_acreage) {
put("yep_acreage", yep_acreage);
}
/** 相关单位统一社会信用代码 */
public String getUnitCreditCode() {
return getStr("yep_unit_credit_code");
}

/** 相关单位统一社会信用代码 */
public void setUnitCreditCode(String yep_unit_credit_code) {
put("yep_unit_credit_code", yep_unit_credit_code);
}
/** 相关单位名称 */
public String getUnitName() {
return getStr("yep_unit_name");
}

/** 相关单位名称 */
public void setUnitName(String yep_unit_name) {
put("yep_unit_name", yep_unit_name);
}
}

+ 44
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.java Parādīt failu

@@ -0,0 +1,44 @@
package cc.smtweb.biz.mztb.web.base.partyDataFill;

import cc.smtweb.biz.mztb.web.base.FillOut;
import cc.smtweb.biz.mztb.web.tool.MztbEnum;
import cc.smtweb.framework.core.common.R;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.DbEngine;
import cc.smtweb.framework.core.db.EntityHelper;
import cc.smtweb.framework.core.mvc.service.AbstractHandler;
import cc.smtweb.framework.core.session.UserSession;

/**
* 机构填报自定义请求类
*/
public class PartyDataCustomHandler extends AbstractHandler {
// 逻辑删除
public R logicDel(SwMap params, UserSession us) {
DbEngine.getInstance().update(
"update "+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME) + " set fo_state = ? where fo_id = ? "
, MztbEnum.FoState.LOGIC.value,params.readLong("id"));
return R.success();
}

// 确认
public R affirm(SwMap params, UserSession us) {
DbEngine.getInstance().update(
"update "+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME) + " set fo_state = ? where fo_id = ? "
, MztbEnum.FoState.AFFIRM.value,params.readLong("id"));
return R.success();
}

// 取消确认
public R cancelAffirm(SwMap params, UserSession us) {
DbEngine.getInstance().update(
"update "+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME) + " set fo_state = ? where fo_id = ? "
, MztbEnum.FoState.WAIT_AFFIRM.value,params.readLong("id"));
return R.success();
}

// 推送数据到前置库
public R pushData(SwMap params, UserSession us) {
return null;
}
}

+ 149
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.java Parādīt failu

@@ -0,0 +1,149 @@
package cc.smtweb.biz.mztb.web.base.partyDataFill;

import cc.smtweb.biz.mztb.web.base.*;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.DbEngine;
import cc.smtweb.framework.core.db.EntityHelper;
import cc.smtweb.framework.core.db.impl.DefaultEntity;
import cc.smtweb.framework.core.util.DateUtil;
import cc.smtweb.framework.core.util.StringUtil;
import cc.smtweb.system.bpm.web.engine.dynPage.DynRetBean;
import cc.smtweb.system.bpm.web.engine.model.common.ModelListHandler;
import cc.smtweb.system.bpm.web.engine.model.listcard.lcms.LCMsLoadHandler;
import cc.smtweb.system.bpm.web.engine.model.listcard.lcms.LCMsSaveHandler;

import java.util.List;

public class PartyDataFillHandler {

protected static FinanceInfo financeInfo;
protected static YearEndPersons yearEndPersons;
protected static BusinessInfo businessInfo;
protected static PartyInfo partyInfo;

protected static final String YEAR_END_PERSONS_DS_NAME = "yearEndPersonsForm";
protected static final String FINANCE_DS_NAME = "financeForm";
protected static final String BUSINESS_DS_NAME = "businessForm";
protected static final String PARTY_DS_NAME = "partyForm";

static class PartyDataFillModelSaveHandler extends LCMsSaveHandler<FillOut> {
@Override
public void readFromPage(SwMap pageData, SwMap filter) {
super.readFromPage(pageData, filter);
if(bean.getType() == 2) {
yearEndPersons = readBeanFromPage(YEAR_END_PERSONS_DS_NAME, pageData, filter);// yearEndPersonsForm
}
financeInfo = readBeanFromPage(FINANCE_DS_NAME, pageData, filter);
businessInfo = readBeanFromPage(BUSINESS_DS_NAME, pageData, filter);
partyInfo = readBeanFromPage(PARTY_DS_NAME, pageData, filter);
}

@Override
public void doSave() {
super.doSave();
if(bean.getType() == 2) {
saveBean(yearEndPersons);
}
saveBean(financeInfo);
saveBean(businessInfo);
saveBean(partyInfo);
}
}

static class PartyDataFillModelLoadHandler extends LCMsLoadHandler<FillOut> {
@Override
protected void localLoad(SwMap filter) {
super.localLoad(filter);
if(bean.getType() == 2) {
loadViewBean(retMap,YEAR_END_PERSONS_DS_NAME,YearEndPersons.class," yep_fo_id = ?");
}
loadViewBean(retMap, FINANCE_DS_NAME,FinanceInfo.class," fi_fo_id = ?");
loadViewBean(retMap, BUSINESS_DS_NAME,BusinessInfo.class," bi_fo_id = ?");
// loadViewBean(retMap,filter, PARTY_DS_NAME,"");
}

// 自己处理页面数据加载
private void loadViewBean(SwMap retMap,String dsName, Class entityClass, String sqlWhere) {
Object o = DbEngine.getInstance().findDao(entityClass).queryEntityWhere(sqlWhere, bean.getId());
retMap.put(dsName,o);
}

@Override
protected void afterLoad(SwMap ret) {
super.afterLoad(ret);
Object card = ret.get("card");
SwMap beanData = this.bean.getData();// fo_task
((DynRetBean) card).getForm().put("fo_task_text",beanData.readString("fo_task").contains("99")
? beanData.readString("fo_task").replace("99","年")
: String.format("%d年%02d月",beanData.readLong("fo_task") / 100, beanData.readLong("fo_task") % 100));
}

@Override
protected void localAdd() {
super.localAdd();
bean.setDate(DateUtil.nowDateLong());
// bean.setUpdateAt(DateUtil.nowDateLong());
DbEngine instance = DbEngine.getInstance();
// bean.setUser(us.getUserId());
if(params.readString("outOldData").equals("1")) { // 如果带出上期数据 就不执行初始化
// 通过填报类型 找到最近填报的一条数据,
int state = params.readInt("type") == 1 ? 1 : 2;
String foIdStr = instance.queryString("select fo_id from "
+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME)+" where fo_type = ? order by fo_date desc limit 1",state); // todo 添加机构过滤
// 查询 关联表的数据
if(StringUtil.isEmpty(foIdStr)) { // 如果未找到同类型的填报数据 直接构建初始化数据
initPageDateset();
return;
}
long foId = Long.parseLong(foIdStr);
// 将关联表数据返回到页面
if(state == 2) {
yearEndPersons = addViewBean(retMap,YEAR_END_PERSONS_DS_NAME,new YearEndPersons(),foId," yep_fo_id = ? ");
yearEndPersons.setFoId(bean.getId());
}
financeInfo = addViewBean(retMap,FINANCE_DS_NAME, new FinanceInfo(),foId," fi_fo_id = ? ");
financeInfo.setFoId(bean.getId());
businessInfo = addViewBean(retMap,BUSINESS_DS_NAME,new BusinessInfo(), foId," bi_fo_id = ? ");
businessInfo.setFoId(bean.getId());
return;
}
initPageDateset();
}

private void initPageDateset() {
if(params.readInt("type") == 2) {
yearEndPersons = addBean(YEAR_END_PERSONS_DS_NAME, true);
yearEndPersons.setFoId(bean.getId());
}
financeInfo = addBean(FINANCE_DS_NAME, true);
financeInfo.setFoId(bean.getId());
businessInfo = addBean(BUSINESS_DS_NAME, true);
businessInfo.setFoId(bean.getId());
}

// 选择带出数据时,自己构建初始化数据
protected <E extends DefaultEntity> E addViewBean(SwMap retMap,String dsName,E cla ,long id,String whereSql) {
DefaultEntity entity = DbEngine.getInstance().findDao(cla.getClass()).queryEntityWhere(whereSql,id);
entity.setEntityId(DbEngine.getInstance().nextId());
entity.setIsNew(true);
retMap.put(dsName,entity);
return (E) entity;
}

}



public static class PartyDataFillModelListHandler extends ModelListHandler {
@Override
protected void afterQuery(List<SwMap> listData) {
listData.forEach(temp -> {
int anInt = temp.readInt("fo_type");
temp.put("fo_type_text",anInt == 1 ? "月报": "年报");
temp.put("fo_task_text",temp.readString("fo_task").contains("99") ? temp.readString("fo_task").replace("99","年(年报)")
: String.format("%d年%02d月 (月报)",temp.readLong("fo_task") / 100, temp.readLong("fo_task") % 100));
temp.put("fo_state_text",temp.readInt("fo_state") == 0 ? "待确认" : temp.readInt("fo_state") == 1 ? "已确认" : "已推送");
});
}
}
}

+ 56
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.java Parādīt failu

@@ -0,0 +1,56 @@
package cc.smtweb.biz.mztb.web.base.partyDataFill;

import cc.smtweb.framework.core.annotation.SwBody;
import cc.smtweb.framework.core.annotation.SwService;
import cc.smtweb.framework.core.common.R;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.session.UserSession;
import cc.smtweb.system.bpm.web.engine.model.listcard.lcms.LCMsService;
import cc.smtweb.framework.core.mvc.service.AbstractHandler;

/**
* Created by 1 at 2023-12-19 11:06:53
* 页面【[机构数据填报编辑]的服务类
*/
@SwService
public class PartyDataFillService extends LCMsService {
public final static String TYPE_CUSTOM = "custom";

@Override
public AbstractHandler createHandler(String type) {
switch (type) {
case TYPE_MODEL_SAVE:
return new PartyDataFillHandler.PartyDataFillModelSaveHandler();
case TYPE_MODEL_LOAD:
return new PartyDataFillHandler.PartyDataFillModelLoadHandler();
case TYPE_MODEL_LIST:
return new PartyDataFillHandler.PartyDataFillModelListHandler();
case TYPE_CUSTOM:
return new PartyDataCustomHandler();
}
return super.createHandler(type);
}

/* demo
//自定义
public R demo(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_DEMO, handler -> ((DemoHandler)handler).demo());
}
*/
public R logicDel(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_CUSTOM, handler -> ((PartyDataCustomHandler) handler).logicDel(params, us));
}

public R affirm(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_CUSTOM, handler -> ((PartyDataCustomHandler) handler).affirm(params, us));
}

public R cancelAffirm(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_CUSTOM, handler -> ((PartyDataCustomHandler) handler).cancelAffirm(params, us));
}

public R pushData(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_CUSTOM, handler -> ((PartyDataCustomHandler) handler).pushData(params, us));
}

}

+ 45
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.java Parādīt failu

@@ -0,0 +1,45 @@
package cc.smtweb.biz.mztb.web.base.prelibraryConfiguration;

import cc.smtweb.biz.mztb.web.base.DbSourceConfig;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.DbEngine;
import cc.smtweb.framework.core.db.EntityHelper;
import cc.smtweb.framework.core.db.impl.DefaultEntity;
import cc.smtweb.framework.core.exception.BizException;
import cc.smtweb.system.bpm.web.engine.model.common.ModelListHandler;
import cc.smtweb.system.bpm.web.engine.model.common.ModelLoadHandler;
import cc.smtweb.system.bpm.web.engine.model.common.ModelSaveHandler;

import java.util.List;

public class PrelibraryConfigurationHandler {
static class PrelibraryConfigurationLoadHandler extends ModelLoadHandler {

}

static class PrelibraryConfigurationListHandler extends ModelListHandler {

@Override
protected void afterQuery(List<SwMap> listData) {
super.afterQuery(listData);
listData.forEach(temp -> {
temp.put("dsc_use_state_text",temp.readInt("dsc_use_state") == 0 ? "当前使用" : "未使用");
temp.put("dsc_password","****");
});
}
}
static class PrelibraryConfigurationSaveHandler extends ModelSaveHandler<DbSourceConfig> {
@Override
protected void checkValid(DefaultEntity vo) {
super.checkValid(vo);
if(0 == vo.getInt("dsc_use_state")) { // 当前使用
List<DbSourceConfig> dbSourceConfigs = DbEngine.getInstance().findDao(DbSourceConfig.class)
.queryWhere(" dsc_id not in (?) and dsc_use_state = 0", vo.getEntityId());
// 判断是否只有一个当前使用
if(dbSourceConfigs != null && dbSourceConfigs.size() > 0) {
throw new BizException("只允许配置一个有效的前置库连接");
}
}
}
}
}

+ 38
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.java Parādīt failu

@@ -0,0 +1,38 @@
package cc.smtweb.biz.mztb.web.base.prelibraryConfiguration;

import cc.smtweb.framework.core.annotation.SwBody;
import cc.smtweb.framework.core.annotation.SwService;
import cc.smtweb.framework.core.common.R;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.system.bpm.web.engine.model.listcard.single.LCSingleService;
import cc.smtweb.framework.core.mvc.service.AbstractHandler;
import cc.smtweb.framework.core.session.UserSession;

/**
* Created by 1 at 2023-12-18 11:09:33
* 页面【[配置前置库连接列表]的服务类
*/
@SwService
public class PrelibraryConfigurationService extends LCSingleService {
//public final static String TYPE_DEMO = "demo";
@Override
protected AbstractHandler createHandler(String type) {
switch (type) {
case TYPE_MODEL_LOAD:
return new PrelibraryConfigurationHandler.PrelibraryConfigurationLoadHandler();
case TYPE_MODEL_LIST:
return new PrelibraryConfigurationHandler.PrelibraryConfigurationListHandler();
case TYPE_MODEL_SAVE:
return new PrelibraryConfigurationHandler.PrelibraryConfigurationSaveHandler();
}
return super.createHandler(type);
}

/* demo
//自定义
public R demo(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_DEMO, handler -> ((DemoHandler)handler).demo());
}
*/

}

+ 22
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/test/Test.java Parādīt failu

@@ -0,0 +1,22 @@
package cc.smtweb.biz.mztb.web.base.test;

import cc.smtweb.biz.mztb.web.base.DbSourceConfig;
import cc.smtweb.biz.mztb.web.domian.FillTask;
import cc.smtweb.biz.mztb.web.tool.DbUtil;
import cc.smtweb.framework.core.db.DbEngine;

import java.util.List;

public class Test {
public static void main(String[] args) {
// DbEngine preDbEngine = DbUtil
// .getInstance("jdbc:mysql://192.168.110.210:4418/mztb?"
// ,"root","Ncmz@2022_jjkj")
// .getDbEngine("mysql");
// List<DbSourceConfig> query = preDbEngine.query(DbSourceConfig.class);
// FillTask fillTask = new FillTask();
// fillTask.setFtId(121215646);
// fillTask.setFiTaskMonth("202303");
// preDbEngine.findDao(FillTask.class).insertEntity(fillTask);
}
}

+ 11
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/domian/FillTask.java Parādīt failu

@@ -0,0 +1,11 @@
package cc.smtweb.biz.mztb.web.domian;

import cc.smtweb.framework.core.annotation.SwTable;
import lombok.Data;

@Data
@SwTable("qz_fill_task")
public class FillTask {
private long ftId;
private String fiTaskMonth;
}

+ 48
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.java Parādīt failu

@@ -0,0 +1,48 @@
package cc.smtweb.biz.mztb.web.task;

import cc.smtweb.biz.mztb.web.base.DbSourceConfig;
import cc.smtweb.biz.mztb.web.tool.DbUtil;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.DbEngine;
import cc.smtweb.system.bpm.web.sys.base.job.BaseJob;
import com.alibaba.druid.pool.DruidPooledConnection;
import com.alibaba.druid.proxy.jdbc.ConnectionProxy;
import lombok.SneakyThrows;

import java.lang.invoke.SwitchPoint;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public class AddNewPartyAndAccountTask extends BaseJob {

@Override
protected String work() {
// 查询前置库推送的机构和账号信息
DbEngine instance = DbEngine.getInstance();
DbSourceConfig dbSourceConfig = instance.findDao(DbSourceConfig.class).queryEntityWhere("dsc_use_state = 0");
Connection connection = null;
ResultSet resultSet = null;
List<SwMap> partys = new ArrayList<>();
try {
connection = DriverManager.getConnection(dbSourceConfig.getWholeUrl(), dbSourceConfig.getUsername(), dbSourceConfig.getPassword());
DbUtil dbUtil = new DbUtil(connection);
resultSet = dbUtil.dbHandSql("", "query"); // 查询机构信息系
if(resultSet != null) {
while (resultSet.next()) {
SwMap party = new SwMap();
partys.add(party);
}
return null;
}
} catch (SQLException e) {
e.printStackTrace();
}

// 在当前系统 建立机构和账号数据,将账号信息写入缓存
return null;
}
}

+ 37
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.java Parādīt failu

@@ -0,0 +1,37 @@
package cc.smtweb.biz.mztb.web.task;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class JdbcBatchInsertExample {
public static void main(String[] args) throws SQLException {
String url = "jdbc:mysql://localhost:3306/mydatabase";
String username = "root";
String password = "password";
Connection connection = DriverManager.getConnection(url, username, password);
try {
connection.setAutoCommit(false); // 关闭自动提交,开启事务

String sql = "INSERT INTO mytable (column1, column2) VALUES (?, ?)";
try (PreparedStatement statement = connection.prepareStatement(sql)) {
for (int i = 1; i <= 1000; i++) {
statement.setString(1, "Value " + i);
statement.setInt(2, i);
statement.addBatch(); // 添加到批处理中
}
statement.executeBatch(); // 执行批处理
}
connection.commit(); // 提交事务
} catch (SQLException e) {
e.printStackTrace();
try {
// 如果出现异常,回滚事务
connection.rollback();
} catch (SQLException ex) {
ex.printStackTrace();
}
}
}
}

+ 139
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/task/PushTask.java Parādīt failu

@@ -0,0 +1,139 @@
package cc.smtweb.biz.mztb.web.task;

import cc.smtweb.biz.mztb.web.base.*;
import cc.smtweb.biz.mztb.web.tool.DbUtil;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.DbEngine;
import cc.smtweb.framework.core.db.EntityHelper;
import cc.smtweb.framework.core.exception.BizException;
import cc.smtweb.system.bpm.web.sys.base.job.BaseJob;

import java.sql.*;
import java.util.*;
import java.util.stream.Collectors;

public class PushTask extends BaseJob {
@Override
protected String work() {
DbEngine instance = DbEngine.getInstance();
//获取前置库配置
DbSourceConfig dbSourceConfig = instance.findDao(DbSourceConfig.class).queryEntityWhere("dsc_use_state=0");
if (dbSourceConfig == null) {
throw new BizException("请先进行前置库配置");
}

// 查询已确认 还未推送的数据
List<String> insertSql = new ArrayList<>();
List<SwMap> fillOutList = instance.query("select * from "+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME)+ " where fo_state = 1 ",SwMap.class);
if (fillOutList.size() == 0) {
return null;
}
List<String> ids = new ArrayList<>();
fillOutList.stream().forEach(temp -> {
ids.add(String.valueOf(temp.readLong("fo_id")));
});
fillOutList.forEach(temp->{
List<String> fields = new LinkedList<>();
List<String> value = new LinkedList<>();
for (String s : temp.keySet()) {
fields.add(s);
if (s.equals("fo_id")){
value.add(String.valueOf(instance.nextId()));
value.add(temp.readString(s));
}
}
insertSql.add("insert into tb_fill_out ("+fields.stream().collect(Collectors.joining(","))+") VALUES ("+value.stream().collect(Collectors.joining(","))+")");

});

// List<BusinessInfo> businessInfos = instance.findDao(BusinessInfo.class).queryWhere("bi_fo_id in (" + ids.stream().collect(Collectors.joining(",")) + ")");
// Map<Long, BusinessInfo> businessInfoMap = new HashMap<>();
// if (businessInfos.size() != 0) {
// businessInfos.forEach(temp -> {
// businessInfoMap.put(temp.getFoId(), temp);
// });
// }
List<SwMap> businessInfos = instance.query("select * from "+EntityHelper.getSchemaTableName(BusinessInfo.ENTITY_NAME)+ " where bi_fo_id in (" + ids.stream().collect(Collectors.joining(",")) + ")",SwMap.class);
if (businessInfos.size() !=0){
businessInfos.forEach(temp->{
List<String> fields = new LinkedList<>();
List<String> value = new LinkedList<>();
for (String s : temp.keySet()) {
fields.add(s);
value.add(temp.readString(s));
}
insertSql.add("insert into tb_business_info ("+fields.stream().collect(Collectors.joining(","))+") VALUES ("+value.stream().collect(Collectors.joining(","))+")");
});
}
List<SwMap> financeInfos = instance.query("select * from "+EntityHelper.getSchemaTableName(FinanceInfo.ENTITY_NAME)+" where fi_fo_id in (" + ids.stream().collect(Collectors.joining(",")) + ")",SwMap.class);
if (financeInfos.size() != 0){
financeInfos.forEach(temp->{
List<String> fields = new LinkedList<>();
List<String> value = new LinkedList<>();
for (String s : temp.keySet()) {
fields.add(s);
value.add(temp.readString(s));
}
insertSql.add("insert into tb_finance_info ("+fields.stream().collect(Collectors.joining(","))+") VALUES ("+value.stream().collect(Collectors.joining(","))+")");
});
}


List<SwMap> yearEndPersons = instance.query("select * from "+EntityHelper.getSchemaTableName(YearEndPersons.ENTITY_NAME)+" where yep_fo_id in (" + ids.stream().collect(Collectors.joining(",")) + ")",SwMap.class);
if (yearEndPersons.size() != 0){
yearEndPersons.forEach(temp->{
List<String> fields = new LinkedList<>();
List<String> value = new LinkedList<>();
for (String s : temp.keySet()) {
fields.add(s);
value.add(temp.readString(s));
}
insertSql.add("insert into tb_year_end_persons ("+fields.stream().collect(Collectors.joining(","))+") VALUES ("+value.stream().collect(Collectors.joining(","))+")");
});
}


Connection connection = null;
try {
connection = DriverManager.getConnection(dbSourceConfig.getWholeUrl(), dbSourceConfig.getUsername(), dbSourceConfig.getPassword());
} catch (SQLException e) {
e.printStackTrace();
}
if (connection == null){
throw new BizException("连接失败!");
}
try {
connection.setAutoCommit(false);
try (Statement statement = connection.createStatement()) {
for (int i = 0; i <insertSql.size(); i++) {
statement.addBatch(insertSql.get(i)); // 添加到批处理中
}
int[] updateCounts = statement.executeBatch(); // 执行批处理
if (updateCounts.length != insertSql.size()){
throw new BizException("数据数量异常");
}
connection.commit(); // 提交事务
statement.close();
} catch (SQLException e) {
e.printStackTrace();
try {
connection.rollback(); // 回滚事务
} catch (SQLException ex) {
ex.printStackTrace();
}
}
}catch (Exception e) {
e.printStackTrace();
}finally {
try {
connection.setAutoCommit(true); // 重新开启自动提交
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
return null;
}


}

+ 155
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/tool/DbUtil.java Parādīt failu

@@ -0,0 +1,155 @@
package cc.smtweb.biz.mztb.web.tool;

import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.DbEngine;
import cc.smtweb.framework.core.db.jdbc.IdGenerator;
import cc.smtweb.framework.core.exception.BizException;
import com.zaxxer.hikari.util.DriverDataSource;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;

import javax.sql.DataSource;
import java.sql.*;
import java.util.List;
import java.util.Properties;

public class DbUtil {
protected String jdbcUrl;
protected String username;
protected String password;
public Connection connection;
protected static DbUtil instance;


public DbUtil(String jdbcUrl,String username,String password) {
this.jdbcUrl = jdbcUrl;
this.username = username;
this.password = password;
try {
connection = DriverManager.getConnection(jdbcUrl,username,password);
} catch (SQLException e) {
e.printStackTrace();
}
}

public DbUtil(Connection connection) {
this.connection = connection;
}

// public static DbUtil getInstance(String jdbcUrl,String username,String password) {
// if(instance == null) {
// synchronized (DbUtil.class){
// if (instance== null){
// instance = new DbUtil(jdbcUrl,password,username);
// }
// }
// }
// return instance;
// }
// public static DbUtil getInstance(Connection connection) {
// if(instance == null) {
// synchronized (DbUtil.class){
// if (instance== null){
// instance = new DbUtil(connection);
// }
// }
// }
// return instance;
// }


public boolean insert(String sql) throws SQLException {
Statement statement = getStatement();
boolean execute = statement.execute(sql);
statement.close();
return execute;
}



public ResultSet dbHandSql( String sql, String handleType)
throws SQLException {
Statement stmt = getStatement();
switch (handleType) {
case "query" :return stmt.executeQuery(sql);
}
return stmt.executeQuery(sql);
}

/**
* 获取statement 对象
* @return statement
* @throws SQLException sql执行异常
*/
public Statement getStatement() throws SQLException {
connection.setAutoCommit(false);
Statement stmt = connection.createStatement(ResultSet.TYPE_FORWARD_ONLY,
ResultSet.CONCUR_READ_ONLY);
stmt.setFetchSize(Integer.MIN_VALUE);
stmt.setQueryTimeout(60);
return stmt;
}



//
// public DbEngine getDbEngine(String dbType) {
// if(dbEngine != null) {
// return dbEngine;
// }
// String driverClassname = getDriverClassNameWithDbType(dbType);
// DataSource dataSource = new DriverDataSource(jdbcUrl,driverClassname,new Properties(),username,password);
//// IdGenerator idGenerator = new IdGenerator(12);
// NamedParameterJdbcTemplate namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(dataSource);
// dbEngine = new DbEngine(namedParameterJdbcTemplate,idGenerator,dbType);
// return dbEngine;
// }
//
// private String getDriverClassNameWithDbType(String type) {
// switch (type) {
// case "mysql" : return "com.mysql.cj.jdbc.Driver";
// case "oracle" : return "com.mysql.cj.jdbc";
// default: return "";
// }
// }
public boolean batchInsert(List<String> insertSql){
if (connection == null){
throw new BizException("获取连接失败!");
}
try {
connection.setAutoCommit(false);
try (Statement statement = connection.createStatement()) {
for (int i = 0; i <insertSql.size(); i++) {
statement.addBatch(insertSql.get(i)); // 添加到批处理中
}
int[] updateCounts = statement.executeBatch(); // 执行批处理
if (updateCounts.length != insertSql.size()){
throw new BizException("数据数量异常");
}
connection.commit(); // 提交事务
statement.close();
} catch (SQLException e) {
e.printStackTrace();
try {
connection.rollback(); // 回滚事务
} catch (SQLException ex) {
ex.printStackTrace();
return false;
}
}
}catch (Exception e) {
e.printStackTrace();
return false;
}finally {
try {
connection.setAutoCommit(true); // 重新开启自动提交
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
return true;
}



}

+ 13
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/tool/MztbEnum.java Parādīt failu

@@ -0,0 +1,13 @@
package cc.smtweb.biz.mztb.web.tool;

import cc.smtweb.framework.core.common.IntEnum;

public interface MztbEnum {
class FoState extends IntEnum {
public static FoState instance=new FoState();
public static IntEnumBean LOGIC=instance.addEnum(-1,"逻辑删除");
public static IntEnumBean WAIT_AFFIRM =instance.addEnum(0,"待确认");
public static IntEnumBean AFFIRM =instance.addEnum(1,"已确认");
public static IntEnumBean PUSH=instance.addEnum(2,"已推送");
}
}

+ 1141
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/tool/UtilPub.java
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 86
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.java Parādīt failu

@@ -0,0 +1,86 @@
package cc.smtweb.biz.mztb.web.widgetManage;

import cc.smtweb.biz.mztb.web.base.DbSourceConfig;
import cc.smtweb.biz.mztb.web.domian.FillTask;
import cc.smtweb.biz.mztb.web.tool.DbUtil;
import cc.smtweb.biz.mztb.web.tool.UtilPub;
import cc.smtweb.framework.core.common.R;
import cc.smtweb.framework.core.common.SwEnum;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.DbEngine;
import cc.smtweb.framework.core.exception.BizException;
import cc.smtweb.framework.core.log.LogFactory;
import cc.smtweb.framework.core.mvc.service.SwListData;
import cc.smtweb.framework.core.session.UserSession;
import cc.smtweb.system.bpm.web.design.form.define.PageDataset;
import cc.smtweb.system.bpm.web.engine.dynPage.DynPageListHandler;
import cc.smtweb.system.bpm.web.engine.dynPage.DynPageLoadHandler;
import cc.smtweb.system.bpm.web.engine.dynPage.DynRetBean;

import java.sql.*;
import java.util.ArrayList;
import java.util.List;

public class TaskMonthHandler {
static class TaskMonthLoadHandler extends DynPageLoadHandler {

@Override
public DynPageListHandler getListWorker(SwMap filter, PageDataset pageDataSet) {
TaskMonthListHandler taskMonthListHandler = new TaskMonthListHandler(form.getId(), filter, pageDataSet);
taskMonthListHandler.init(filter, us);
return taskMonthListHandler;
}
}


static class TaskMonthListHandler extends DynPageListHandler {

@Override
public void init(SwMap params, UserSession us) {
this.params = params;
this.us = us;
}

@Override
public SwListData buildListData() {
List<SwMap> listData = new ArrayList<>();
List<DbSourceConfig> dbSourceConfigs = DbEngine.getInstance().queryWhere(DbSourceConfig.class, " dsc_use_state = 0");
if(dbSourceConfigs == null || dbSourceConfigs.size() < 1) {
throw new BizException("请联系管理员配置前置库连接");
}
DbSourceConfig dbSourceConfig = dbSourceConfigs.get(0);
getTaskMonth(dbSourceConfig,listData);
return SwListData.create(listData);
}

public TaskMonthListHandler(long pageId, SwMap filter, PageDataset pageDataSet) {
super(pageId, filter, pageDataSet);
}

private void getTaskMonth(DbSourceConfig dbSourceConfig, List<SwMap> listData) {
// 找到已填报的数据 过滤
// DbEngine preDbEngine = DbUtil.getInstance(dbSourceConfig.getWholeUrl(),dbSourceConfig.getUsername(),dbSourceConfig.getPassword())
// .getDbEngine(dbSourceConfig.getDbType());
Connection connection = null;
try {
connection = DriverManager
.getConnection(dbSourceConfig.getWholeUrl(),dbSourceConfig.getUsername(),dbSourceConfig.getPassword());
DbUtil dbUtil =new DbUtil(connection);
ResultSet query = dbUtil.dbHandSql("select * from qz_fill_task", "query");
while (query.next()) {
SwMap swMap = new SwMap();
swMap.put("id",query.getLong("ft_id"));
swMap.put("task",query.getString("fi_task_month"));
swMap.put("text",query.getString("fi_task_month").contains("99") ?
query.getString("fi_task_month").replace("99","年报")
: UtilPub.getDateStr(query.getString("fi_task_month")));
listData.add(swMap);
}
} catch (SQLException e) {
e.printStackTrace();
}
}


}
}

+ 33
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.java Parādīt failu

@@ -0,0 +1,33 @@
package cc.smtweb.biz.mztb.web.widgetManage;

import cc.smtweb.framework.core.annotation.SwBody;
import cc.smtweb.framework.core.annotation.SwService;
import cc.smtweb.framework.core.common.R;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.system.bpm.web.engine.dynPage.DynPageService;
import cc.smtweb.framework.core.mvc.service.AbstractHandler;
import cc.smtweb.framework.core.session.UserSession;

/**
* Created by 1 at 2023-12-19 17:27:11
* 页面【[任务月下拉列表]的服务类 暂时废弃
*/
@SwService
public class TaskMonthService extends DynPageService {
//public final static String TYPE_DEMO = "demo";
@Override
protected AbstractHandler createHandler(String type) {
if (TYPE_LOAD.equals(type)) {
return new TaskMonthHandler.TaskMonthLoadHandler();
}
return super.createHandler(type);
}

/* demo
//自定义
public R demo(@SwBody SwMap params, UserSession us) {
return pageHandler(params, us, TYPE_DEMO, handler -> ((DemoHandler)handler).demo());
}
*/

}

+ 2
- 0
mztb/src/main/resources/META-INF/spring.factories Parādīt failu

@@ -0,0 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cc.smtweb.biz.mztb.spring.MztbAutoConfiguration

+ 72
- 0
mztb/src/main/resources/config/application-dev.yaml Parādīt failu

@@ -0,0 +1,72 @@
smtweb:
machine-id: 1
enable-job: false
file:
#此配置用于系统底层附件上传方法配置,适用于本机上传,必须files/结尾
local-path: D:/jujia_git/files/
# url: ${smtweb.file.host}:${server.port}${server.servlet.context-path}/${smtweb.file.local-path}
url: 'http://127.0.0.1:8888/files/'

#访问路径,需/结尾
attach-http-path: 'http://bjjt.jujiatech.cn/files/'
#此配置原则上可以和local-path一致,可本机路径可ftp附件路径,需/结尾
attach-path: D:/jujia_git/files/
#临时文件路径,需/结尾
attach-temp-path: D:/jujia_git/tempFile/
#附件上传方式 sftp/ftp/local
attach-type: local
#ftp IP地址
attach-ftp-ip:
#ftp 端口
attach-ftp-port: 0
#ftp 用户名
attach-ftp-user:
#ftp 密码
attach-ftp-pwd:
bpm:
debug: true
code-java-path: 'C:\Users\65224\Desktop\mztb-parent'
mode: 1
db:
type: mysql
schema: mztb
default:
rule:
prefix: _smt_
replace: smt_

server:
port: 38888
servlet:
context-path: /test/
logging:
level:
root: INFO
cc.smtweb: DEBUG
spring:
redis:
host: 127.0.0.1
port: 6379
password:
database: 0
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://139.9.38.43:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://192.168.110.100/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
username: root
# password: Jujia_@)@!0427
password: Ncmz@2022_jjkj
# password: root
servlet:

multipart:
max-file-size: 104857600000
max-request-size: 10485760000000
cache:
type: caffeine
cache-names:
- core
- bpm
caffeine:
spec: maximumSize=1024,expireAfterWrite=2h

+ 77
- 0
mztb/src/main/resources/config/application-prod.yaml Parādīt failu

@@ -0,0 +1,77 @@
smtweb:
machine-id: 1
enable-job: true
file:
#此配置用于系统底层附件上传方法配置,适用于本机上传,必须files/结尾
local-path: /jujia_git/files/
# url: ${smtweb.file.host}:${server.port}${server.servlet.context-path}/${smtweb.file.local-path}
url: 'http://127.0.0.1:8888/files/'

#访问路径,需/结尾
attach-http-path: 'http://bjjt.jujiatech.cn/files/'
#此配置原则上可以和local-path一致,可本机路径可ftp附件路径,需/结尾
attach-path: /jujia_git/files/
#临时文件路径,需/结尾
attach-temp-path: /jujia_git/tempFile/
#附件上传方式 sftp/ftp/local
attach-type: local
#ftp IP地址
attach-ftp-ip:
#ftp 端口
attach-ftp-port: 0
#ftp 用户名
attach-ftp-user:
#ftp 密码
attach-ftp-pwd:
bpm:
debug: true
code-java-path: 'G:\jjkj\java\lrjx'
mode: 1
db:
type: mysql
# 人大金仓
#type: kbsql
schema: public
default:
rule:
prefix: _smt_
replace: smt_

server:
# 正式
port: 8236
#测试
#port: 8889
servlet:
context-path: /lrjx
logging:
level:
root: INFO
cc.smtweb: DEBUG
spring:
redis:
host: 127.0.0.1
port: 6379
password:
database: 0
datasource:
# 测试
driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://172.28.123.145:4418/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://139.9.38.43:6032/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://139.9.38.43:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
username: root
password: Ncmz@2022_jjkj
servlet:
multipart:
max-file-size: 104857600000
max-request-size: 10485760000000
cache:
type: caffeine
cache-names:
- core
- bpm
caffeine:
spec: maximumSize=1024,expireAfterWrite=2h

+ 40
- 0
mztb/src/main/resources/config/application.yaml Parādīt failu

@@ -0,0 +1,40 @@
spring:
profiles:
active: dev
include: baseparams
smtweb:
ocr:
url: ''
# 应用配置,用于前端初始化配置
app-config:
# 应用编码
code: mztb
# 应用名称
name: 民政统计数据填报系统(养老机构)
# 接口地址,前后端如果部署在一起直接配置成context-path一致,否则配置成完整的后端接口服务地址
api-url:
multi-online: true
# 登录页相关
group:
default:
# 应用名称
name: 民政统计数据填报系统(养老机构)
background: /static/images/login/bg.png
backgroundImg: /static/images/login/bg-img.png
# loginLogo: /static/images/login/login-logo.png
logoMain: /static/images/login/main-logo.png
ico: /static/favicon.ico
logoMainWithTitle: false
titleMainWithParty: false
logging:
level:
root: INFO
cc.smtweb: DEBUG
config: classpath:config/logback.xml
#mztb:
# map:
# centerAddr: '北京市通州区退役军人服务中心'
# ak: 's8CUBmzZTD3EDY3NZQapYUKhQOnt9Ff2'
#http-config:
# forbid: ''
# trusted-origin: 'http://localhost:3001,http://www.jujiaservice.com,https://www.jujiaservice.com,http://192.168.110.107:3001,http://localhost:8888,http://192.168.110.128:3001,http//:localhost:3000'

+ 74
- 0
mztb/src/main/resources/config/logback.xml Parādīt failu

@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" ?>

<configuration>
<property name="LOG_PATH" value="/logs"/>
<property name="LOG_FILE" value="${LOG_PATH}/smt.log"/>
<property name="LOG_FILE_ERROR" value="${LOG_PATH}/smt_error.log"/>
<property name="FILE_LOG_CHARSET" value="UTF-8"/>
<property name="LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN" value="${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.log.zip"/>
<property name="LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE" value="1GB"/>
<property name="LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP" value="50GB"/>
<property name="LOGBACK_ROLLINGPOLICY_MAX_HISTORY" value="30"/>

<!--springboot基础配置-->
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<include resource="org/springframework/boot/logging/logback/file-appender.xml" />

<!--错误日志-->
<appender name="FILE-ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder>
<pattern>${FILE_LOG_PATTERN}</pattern>
<charset>${FILE_LOG_CHARSET}</charset>
</encoder>
<file>${LOG_FILE_ERROR}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.error.log.zip</fileNamePattern>
<cleanHistoryOnStart>${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}</cleanHistoryOnStart>
<maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-1GB}</maxFileSize>
<totalSizeCap>${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-50GB}</totalSizeCap>
<maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}</maxHistory>
</rollingPolicy>
<!-- 只打印ERROR日志 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>

<!--远程日志-->
<appender name="SOCKET" class="cc.smtweb.framework.core.log.appender.SmtSocketAppender">
<remoteHost>localhost</remoteHost>
<port>21022</port>
<reconnectionDelay>10000</reconnectionDelay>
</appender>

<!--数据库日志-->
<!--ch.qos.logback.classic.db.DBAppender-->
<appender name="DB" class="cc.smtweb.framework.core.log.appender.SmtDBAppender">
<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">
<driverClass>com.mysql.cj.jdbc.Driver</driverClass>
<url>jdbc:mysql://192.168.110.210:4418/lrjx?useUnicode=true&amp;characterEncoding=utf-8&amp;allowMultiQueries=true&amp;useSSL=false</url>
<user>root</user>
<password>Ncmz@2022_jjkj</password>
<!-- <url>jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&amp;characterEncoding=utf-8&amp;allowMultiQueries=true&amp;useSSL=false</url>-->
<!-- <user>root</user>-->
<!-- <password>Jujia_@)@!0427</password>-->
</connectionSource>
<filter class="cc.smtweb.framework.core.log.filter.DBFilter"/>
</appender>

<!--显示JDBC日志-->
<logger name="org.springframework.jdbc.core" additivity="false" level="DEBUG" >
<appender-ref ref="CONSOLE" />
</logger>

<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
<appender-ref ref="FILE-ERROR" />
<appender-ref ref="SOCKET" />
<appender-ref ref="DB" />
</root>
</configuration>

+ 58
- 0
mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillCard.js Parādīt failu

@@ -0,0 +1,58 @@
/**
* Created by 1 at 2023-12-20 17:03:56
* 注册事件类【机构数据填报编辑】,参看event.defaultEvent.js
*/
window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillCard", {
setup(page){
const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {};
const { $$message, $$http, $$sys, $$UtilPub } = $utils || {};

// 示例
const demoFunc = () => {

};

$lifecycle.onLoad = () => {
if(!$params.id) {
$model.card.setFormVal("fo_type",Number($params.type))
$model.card.setFormVal("fo_task", Number($params.type) === 2 ? Number($params.task+"99") : Number($params.task)) //如果是年报 年份后面添加标识 99
$model.card.setFormVal("fo_task_text",$params.task_text)
}
$api.loadOne("partyForm")
if(Number($model.card.getFormVal("fo_state") === 2) || Number($model.card.getFormVal("fo_state") === 1)) {
$refs.saveButton.hide()
}
if(Number($model.card.getFormVal("fo_type")) === 1) { // 月报
$refs.yearEnd.hide()
}
}

Object.assign($engine, {
buildSaveParams(params) {
if(Number($model.card.getFormVal("fo_type")) === 2) { // 年报
params.yearEndPersonsForm = {
form : $model.yearEndPersonsForm.data.form
}
}
params.financeForm = {
form : $model.financeForm.data.form
}
params.businessForm = {
form : $model.businessForm.data.form
}
params.partyForm = {
form : $model.partyForm.data.form
}
}
})

const loadPageCard = () => {
// $api.loadCard()
}


return {
demoFunc,loadPageCard
}
}
});

+ 96
- 0
mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillList.js Parādīt failu

@@ -0,0 +1,96 @@
/**
* Created by 1 at 2023-12-19 11:06:39
* 注册事件类【机构数据填报列表】,参看event.defaultEvent.js
*/
window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillList", {
setup(page){
const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {};
const { $$message, $$http, $$sys, $$UtilPub } = $utils || {};

// 示例
const demoFunc = () => {

};

let task; // 填报月
let task_text; // 填报月格式化
let type; // 填报类型(2 年报 1 月报)

const setValue =(id,data) => {
task = data.task;
task_text = data.text;
type = data.task.includes("99") ? 2 : 1;
}
const toPageEdit = () =>{
if($model.ds_1.data.form.task === undefined) {
$$message.notify.warning("请选择任务")
return false
}
$api.toPage("mztb.partyDataFillCard",{
$fromAction: 'button:add'
,task:$model.ds_1.data.form.task
,type: $model.ds_1.data.form.month
,task_text : $model.ds_1.data.form.task_text
,outOldData : $model.ds_1.data.form.outOldData })
}

const selectHide =(data) => {
if(Number(data) === 1) { //月报
$refs.year.hide();
$refs.month1.show();
}else { // 年报
$refs.month1.hide();
$refs.year.show();
}
}

const setTypeDef =()=> {
$model.ds_1.data.form.month = 1
}

// 按钮显示隐藏
const edit_del_affirm_Hide = (data) => { // 编辑 删除 确认
return Number(data.scope.row.fo_state) === 0
}
const affirm_push_CancelHide= (data) => { // 取消确认 推送
return Number(data.scope.row.fo_state) === 1
}

// 自定义请求 逻辑删除 填报主表
const logicDel = async (data) => {
const rt = await $$http.post("mztb/partyDataFill/logicDel", {id: data.row.fo_id})
if (rt.code === 0) {
$api.loadList()
$$message.notify.success("删除完成")
}
}
// 自定义请求 确认
const affirm = async (data) => {
const rt =await $$http.post("mztb/partyDataFill/affirm",{id : data.row.fo_id})
if(rt.code === 0) {
$api.loadList()
$$message.notify.success("已确认")
}
}
// 自定义请求 取消确认
const cancelAffirm =async (data) => {
const rt = await $$http.post("mztb/partyDataFill/cancelAffirm",{id : data.row.fo_id})
if(rt.code === 0) {
$api.loadList()
$$message.notify.success("已取消确认")
}
}
// 自定义请求推送 数据
const pushData = (data) => {
const rt = $$http.post("mztb/partyDataFill/pushData",{id : data.row.fo_id})
if(rt.code === 0) {
$api.loadList()
}
}

return {
demoFunc,setValue,toPageEdit,selectHide,setTypeDef,edit_del_affirm_Hide,affirm_push_CancelHide
,logicDel,affirm,cancelAffirm,pushData
}
}
});

+ 18
- 0
mztb/src/main/resources/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js Parādīt failu

@@ -0,0 +1,18 @@
/**
* Created by 1 at 2023-12-18 11:09:35
* 注册事件类【配置前置库连接列表】,参看event.defaultEvent.js
*/
window.$swEvent.setup("mztb.base.prelibraryConfiguration.prelibraryConfigurationList", {
setup(page){
const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {};
const { $$message, $$http, $$sys, $$UtilPub } = $utils || {};

// 示例
const demoFunc = () => {

};
return {
demoFunc,
}
}
});

Binārs
mztb/src/main/resources/static/favicon.ico Parādīt failu

Pirms Pēc

Binārs
mztb/src/main/resources/static/images/login/bg-img.png Parādīt failu

Pirms Pēc
Platums: 795  |  Augstums: 86  |  Izmērs: 28 KiB

Binārs
mztb/src/main/resources/static/images/login/bg.png Parādīt failu

Pirms Pēc
Platums: 1920  |  Augstums: 1080  |  Izmērs: 1.5 MiB

Binārs
mztb/src/main/resources/static/images/login/main-logo.png Parādīt failu

Pirms Pēc
Platums: 419  |  Augstums: 46  |  Izmērs: 21 KiB

+ 2
- 0
mztb/target/classes/META-INF/spring.factories Parādīt failu

@@ -0,0 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
cc.smtweb.biz.mztb.spring.MztbAutoConfiguration

Binārs
mztb/target/classes/cc/smtweb/biz/mztb/MztbApplication.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/spring/MztbAutoConfiguration.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/MztbStartedListener.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/BusinessInfo.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/DbSourceConfig.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/FillOut.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/FinanceInfo.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/PartyInfo.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/YearEndPersons.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelListHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelLoadHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler$PartyDataFillModelSaveHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationListHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationLoadHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler$PrelibraryConfigurationSaveHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/prelibraryConfiguration/PrelibraryConfigurationService.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/base/test/Test.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/domian/FillTask.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/task/AddNewPartyAndAccountTask.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/task/JdbcBatchInsertExample.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/task/PushTask.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/tool/DbUtil.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum$FoState.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/tool/MztbEnum.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/tool/UtilPub.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthListHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler$TaskMonthLoadHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthHandler.class Parādīt failu


Binārs
mztb/target/classes/cc/smtweb/biz/mztb/web/widgetManage/TaskMonthService.class Parādīt failu


+ 72
- 0
mztb/target/classes/config/application-dev.yaml Parādīt failu

@@ -0,0 +1,72 @@
smtweb:
machine-id: 1
enable-job: false
file:
#此配置用于系统底层附件上传方法配置,适用于本机上传,必须files/结尾
local-path: D:/jujia_git/files/
# url: ${smtweb.file.host}:${server.port}${server.servlet.context-path}/${smtweb.file.local-path}
url: 'http://127.0.0.1:8888/files/'

#访问路径,需/结尾
attach-http-path: 'http://bjjt.jujiatech.cn/files/'
#此配置原则上可以和local-path一致,可本机路径可ftp附件路径,需/结尾
attach-path: D:/jujia_git/files/
#临时文件路径,需/结尾
attach-temp-path: D:/jujia_git/tempFile/
#附件上传方式 sftp/ftp/local
attach-type: local
#ftp IP地址
attach-ftp-ip:
#ftp 端口
attach-ftp-port: 0
#ftp 用户名
attach-ftp-user:
#ftp 密码
attach-ftp-pwd:
bpm:
debug: true
code-java-path: 'C:\Users\65224\Desktop\mztb-parent'
mode: 1
db:
type: mysql
schema: mztb
default:
rule:
prefix: _smt_
replace: smt_

server:
port: 38888
servlet:
context-path: /test/
logging:
level:
root: INFO
cc.smtweb: DEBUG
spring:
redis:
host: 127.0.0.1
port: 6379
password:
database: 0
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://139.9.38.43:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://192.168.110.100/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
username: root
# password: Jujia_@)@!0427
password: Ncmz@2022_jjkj
# password: root
servlet:

multipart:
max-file-size: 104857600000
max-request-size: 10485760000000
cache:
type: caffeine
cache-names:
- core
- bpm
caffeine:
spec: maximumSize=1024,expireAfterWrite=2h

+ 77
- 0
mztb/target/classes/config/application-prod.yaml Parādīt failu

@@ -0,0 +1,77 @@
smtweb:
machine-id: 1
enable-job: true
file:
#此配置用于系统底层附件上传方法配置,适用于本机上传,必须files/结尾
local-path: /jujia_git/files/
# url: ${smtweb.file.host}:${server.port}${server.servlet.context-path}/${smtweb.file.local-path}
url: 'http://127.0.0.1:8888/files/'

#访问路径,需/结尾
attach-http-path: 'http://bjjt.jujiatech.cn/files/'
#此配置原则上可以和local-path一致,可本机路径可ftp附件路径,需/结尾
attach-path: /jujia_git/files/
#临时文件路径,需/结尾
attach-temp-path: /jujia_git/tempFile/
#附件上传方式 sftp/ftp/local
attach-type: local
#ftp IP地址
attach-ftp-ip:
#ftp 端口
attach-ftp-port: 0
#ftp 用户名
attach-ftp-user:
#ftp 密码
attach-ftp-pwd:
bpm:
debug: true
code-java-path: 'G:\jjkj\java\lrjx'
mode: 1
db:
type: mysql
# 人大金仓
#type: kbsql
schema: public
default:
rule:
prefix: _smt_
replace: smt_

server:
# 正式
port: 8236
#测试
#port: 8889
servlet:
context-path: /lrjx
logging:
level:
root: INFO
cc.smtweb: DEBUG
spring:
redis:
host: 127.0.0.1
port: 6379
password:
database: 0
datasource:
# 测试
driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://172.28.123.145:4418/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://139.9.38.43:6032/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://139.9.38.43:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
# url: jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
username: root
password: Ncmz@2022_jjkj
servlet:
multipart:
max-file-size: 104857600000
max-request-size: 10485760000000
cache:
type: caffeine
cache-names:
- core
- bpm
caffeine:
spec: maximumSize=1024,expireAfterWrite=2h

+ 40
- 0
mztb/target/classes/config/application.yaml Parādīt failu

@@ -0,0 +1,40 @@
spring:
profiles:
active: dev
include: baseparams
smtweb:
ocr:
url: ''
# 应用配置,用于前端初始化配置
app-config:
# 应用编码
code: mztb
# 应用名称
name: 民政统计数据填报系统(养老机构)
# 接口地址,前后端如果部署在一起直接配置成context-path一致,否则配置成完整的后端接口服务地址
api-url:
multi-online: true
# 登录页相关
group:
default:
# 应用名称
name: 民政统计数据填报系统(养老机构)
background: /static/images/login/bg.png
backgroundImg: /static/images/login/bg-img.png
# loginLogo: /static/images/login/login-logo.png
logoMain: /static/images/login/main-logo.png
ico: /static/favicon.ico
logoMainWithTitle: false
titleMainWithParty: false
logging:
level:
root: INFO
cc.smtweb: DEBUG
config: classpath:config/logback.xml
#mztb:
# map:
# centerAddr: '北京市通州区退役军人服务中心'
# ak: 's8CUBmzZTD3EDY3NZQapYUKhQOnt9Ff2'
#http-config:
# forbid: ''
# trusted-origin: 'http://localhost:3001,http://www.jujiaservice.com,https://www.jujiaservice.com,http://192.168.110.107:3001,http://localhost:8888,http://192.168.110.128:3001,http//:localhost:3000'

+ 74
- 0
mztb/target/classes/config/logback.xml Parādīt failu

@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" ?>

<configuration>
<property name="LOG_PATH" value="/logs"/>
<property name="LOG_FILE" value="${LOG_PATH}/smt.log"/>
<property name="LOG_FILE_ERROR" value="${LOG_PATH}/smt_error.log"/>
<property name="FILE_LOG_CHARSET" value="UTF-8"/>
<property name="LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN" value="${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.log.zip"/>
<property name="LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE" value="1GB"/>
<property name="LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP" value="50GB"/>
<property name="LOGBACK_ROLLINGPOLICY_MAX_HISTORY" value="30"/>

<!--springboot基础配置-->
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<include resource="org/springframework/boot/logging/logback/file-appender.xml" />

<!--错误日志-->
<appender name="FILE-ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder>
<pattern>${FILE_LOG_PATTERN}</pattern>
<charset>${FILE_LOG_CHARSET}</charset>
</encoder>
<file>${LOG_FILE_ERROR}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.error.log.zip</fileNamePattern>
<cleanHistoryOnStart>${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}</cleanHistoryOnStart>
<maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-1GB}</maxFileSize>
<totalSizeCap>${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-50GB}</totalSizeCap>
<maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}</maxHistory>
</rollingPolicy>
<!-- 只打印ERROR日志 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>

<!--远程日志-->
<appender name="SOCKET" class="cc.smtweb.framework.core.log.appender.SmtSocketAppender">
<remoteHost>localhost</remoteHost>
<port>21022</port>
<reconnectionDelay>10000</reconnectionDelay>
</appender>

<!--数据库日志-->
<!--ch.qos.logback.classic.db.DBAppender-->
<appender name="DB" class="cc.smtweb.framework.core.log.appender.SmtDBAppender">
<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">
<driverClass>com.mysql.cj.jdbc.Driver</driverClass>
<url>jdbc:mysql://192.168.110.210:4418/lrjx?useUnicode=true&amp;characterEncoding=utf-8&amp;allowMultiQueries=true&amp;useSSL=false</url>
<user>root</user>
<password>Ncmz@2022_jjkj</password>
<!-- <url>jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&amp;characterEncoding=utf-8&amp;allowMultiQueries=true&amp;useSSL=false</url>-->
<!-- <user>root</user>-->
<!-- <password>Jujia_@)@!0427</password>-->
</connectionSource>
<filter class="cc.smtweb.framework.core.log.filter.DBFilter"/>
</appender>

<!--显示JDBC日志-->
<logger name="org.springframework.jdbc.core" additivity="false" level="DEBUG" >
<appender-ref ref="CONSOLE" />
</logger>

<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
<appender-ref ref="FILE-ERROR" />
<appender-ref ref="SOCKET" />
<appender-ref ref="DB" />
</root>
</configuration>

+ 58
- 0
mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillCard.js Parādīt failu

@@ -0,0 +1,58 @@
/**
* Created by 1 at 2023-12-20 17:03:56
* 注册事件类【机构数据填报编辑】,参看event.defaultEvent.js
*/
window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillCard", {
setup(page){
const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {};
const { $$message, $$http, $$sys, $$UtilPub } = $utils || {};

// 示例
const demoFunc = () => {

};

$lifecycle.onLoad = () => {
if(!$params.id) {
$model.card.setFormVal("fo_type",Number($params.type))
$model.card.setFormVal("fo_task", Number($params.type) === 2 ? Number($params.task+"99") : Number($params.task)) //如果是年报 年份后面添加标识 99
$model.card.setFormVal("fo_task_text",$params.task_text)
}
$api.loadOne("partyForm")
if(Number($model.card.getFormVal("fo_state") === 2) || Number($model.card.getFormVal("fo_state") === 1)) {
$refs.saveButton.hide()
}
if(Number($model.card.getFormVal("fo_type")) === 1) { // 月报
$refs.yearEnd.hide()
}
}

Object.assign($engine, {
buildSaveParams(params) {
if(Number($model.card.getFormVal("fo_type")) === 2) { // 年报
params.yearEndPersonsForm = {
form : $model.yearEndPersonsForm.data.form
}
}
params.financeForm = {
form : $model.financeForm.data.form
}
params.businessForm = {
form : $model.businessForm.data.form
}
params.partyForm = {
form : $model.partyForm.data.form
}
}
})

const loadPageCard = () => {
// $api.loadCard()
}


return {
demoFunc,loadPageCard
}
}
});

+ 96
- 0
mztb/target/classes/static/event/mztb/base/partyDataFill/partyDataFillList.js Parādīt failu

@@ -0,0 +1,96 @@
/**
* Created by 1 at 2023-12-19 11:06:39
* 注册事件类【机构数据填报列表】,参看event.defaultEvent.js
*/
window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillList", {
setup(page){
const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {};
const { $$message, $$http, $$sys, $$UtilPub } = $utils || {};

// 示例
const demoFunc = () => {

};

let task; // 填报月
let task_text; // 填报月格式化
let type; // 填报类型(2 年报 1 月报)

const setValue =(id,data) => {
task = data.task;
task_text = data.text;
type = data.task.includes("99") ? 2 : 1;
}
const toPageEdit = () =>{
if($model.ds_1.data.form.task === undefined) {
$$message.notify.warning("请选择任务")
return false
}
$api.toPage("mztb.partyDataFillCard",{
$fromAction: 'button:add'
,task:$model.ds_1.data.form.task
,type: $model.ds_1.data.form.month
,task_text : $model.ds_1.data.form.task_text
,outOldData : $model.ds_1.data.form.outOldData })
}

const selectHide =(data) => {
if(Number(data) === 1) { //月报
$refs.year.hide();
$refs.month1.show();
}else { // 年报
$refs.month1.hide();
$refs.year.show();
}
}

const setTypeDef =()=> {
$model.ds_1.data.form.month = 1
}

// 按钮显示隐藏
const edit_del_affirm_Hide = (data) => { // 编辑 删除 确认
return Number(data.scope.row.fo_state) === 0
}
const affirm_push_CancelHide= (data) => { // 取消确认 推送
return Number(data.scope.row.fo_state) === 1
}

// 自定义请求 逻辑删除 填报主表
const logicDel = async (data) => {
const rt = await $$http.post("mztb/partyDataFill/logicDel", {id: data.row.fo_id})
if (rt.code === 0) {
$api.loadList()
$$message.notify.success("删除完成")
}
}
// 自定义请求 确认
const affirm = async (data) => {
const rt =await $$http.post("mztb/partyDataFill/affirm",{id : data.row.fo_id})
if(rt.code === 0) {
$api.loadList()
$$message.notify.success("已确认")
}
}
// 自定义请求 取消确认
const cancelAffirm =async (data) => {
const rt = await $$http.post("mztb/partyDataFill/cancelAffirm",{id : data.row.fo_id})
if(rt.code === 0) {
$api.loadList()
$$message.notify.success("已取消确认")
}
}
// 自定义请求推送 数据
const pushData = (data) => {
const rt = $$http.post("mztb/partyDataFill/pushData",{id : data.row.fo_id})
if(rt.code === 0) {
$api.loadList()
}
}

return {
demoFunc,setValue,toPageEdit,selectHide,setTypeDef,edit_del_affirm_Hide,affirm_push_CancelHide
,logicDel,affirm,cancelAffirm,pushData
}
}
});

+ 18
- 0
mztb/target/classes/static/event/mztb/base/prelibraryConfiguration/prelibraryConfigurationList.js Parādīt failu

@@ -0,0 +1,18 @@
/**
* Created by 1 at 2023-12-18 11:09:35
* 注册事件类【配置前置库连接列表】,参看event.defaultEvent.js
*/
window.$swEvent.setup("mztb.base.prelibraryConfiguration.prelibraryConfigurationList", {
setup(page){
const { $params, $refs, $widgets, $model, $utils, $tabRouter, $api, $lifecycle, $engine, $parent } = page || {};
const { $$message, $$http, $$sys, $$UtilPub } = $utils || {};

// 示例
const demoFunc = () => {

};
return {
demoFunc,
}
}
});

Binārs
mztb/target/classes/static/favicon.ico Parādīt failu

Pirms Pēc

Binārs
mztb/target/classes/static/images/login/bg-img.png Parādīt failu

Pirms Pēc
Platums: 795  |  Augstums: 86  |  Izmērs: 28 KiB

Binārs
mztb/target/classes/static/images/login/bg.png Parādīt failu

Pirms Pēc
Platums: 1920  |  Augstums: 1080  |  Izmērs: 1.5 MiB

Binārs
mztb/target/classes/static/images/login/main-logo.png Parādīt failu

Pirms Pēc
Platums: 419  |  Augstums: 46  |  Izmērs: 21 KiB

+ 16
- 0
pom.xml Parādīt failu

@@ -0,0 +1,16 @@
<?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>

<groupId>cc.smtweb</groupId>
<artifactId>mztb-parent</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<modules>
<module>mztb</module>
</modules>


</project>

Notiek ielāde…
Atcelt
Saglabāt