Browse Source

first commit

shiyunlong 1 năm trước cách đây
commit
face4d7003
100 tập tin đã thay đổi với 6518 bổ sung0 xóa
  1. BIN
      .DS_Store
  2. 8 0
      .idea/.gitignore
  3. 37 0
      .idea/compiler.xml
  4. 19 0
      .idea/dataSources.xml
  5. 15 0
      .idea/encodings.xml
  6. 25 0
      .idea/jarRepositories.xml
  7. 18 0
      .idea/misc.xml
  8. 66 0
      .idea/mybatisx/templates.xml
  9. 124 0
      .idea/uiDesigner.xml
  10. 82 0
      admin/pom.xml
  11. 19 0
      admin/src/main/java/com/mofangchuxing/aska/admin/AdminApplication.java
  12. 23 0
      admin/src/main/java/com/mofangchuxing/aska/admin/Intercepter/RequestInterceptor.java
  13. 78 0
      admin/src/main/java/com/mofangchuxing/aska/admin/config/WebConfig.java
  14. 36 0
      admin/src/main/java/com/mofangchuxing/aska/admin/controller/AdminBaseController.java
  15. 88 0
      admin/src/main/java/com/mofangchuxing/aska/admin/controller/ChannelController.java
  16. 96 0
      admin/src/main/java/com/mofangchuxing/aska/admin/controller/RetailController.java
  17. 83 0
      admin/src/main/java/com/mofangchuxing/aska/admin/controller/SysUserController.java
  18. 46 0
      admin/src/main/resources/application.yml
  19. 67 0
      admin/src/main/resources/logback-prod.xml
  20. BIN
      admin/target/aska-admin.jar
  21. BIN
      admin/target/aska-admin.jar.original
  22. 46 0
      admin/target/classes/application.yml
  23. BIN
      admin/target/classes/com/mofangchuxing/aska/admin/AdminApplication.class
  24. BIN
      admin/target/classes/com/mofangchuxing/aska/admin/Intercepter/RequestInterceptor.class
  25. BIN
      admin/target/classes/com/mofangchuxing/aska/admin/config/WebConfig.class
  26. BIN
      admin/target/classes/com/mofangchuxing/aska/admin/controller/AdminBaseController.class
  27. BIN
      admin/target/classes/com/mofangchuxing/aska/admin/controller/ChannelController.class
  28. BIN
      admin/target/classes/com/mofangchuxing/aska/admin/controller/RetailController.class
  29. BIN
      admin/target/classes/com/mofangchuxing/aska/admin/controller/SysUserController.class
  30. 67 0
      admin/target/classes/logback-prod.xml
  31. 4 0
      admin/target/maven-archiver/pom.properties
  32. 7 0
      admin/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  33. 7 0
      admin/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  34. 0 0
      admin/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
  35. 46 0
      dao/pom.xml
  36. 45 0
      dao/src/main/java/com/mofangchuxing/aska/dao/config/SqlConfig.java
  37. 200 0
      dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaAccounts.java
  38. 351 0
      dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaChannels.java
  39. 417 0
      dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaRetails.java
  40. 265 0
      dao/src/main/java/com/mofangchuxing/aska/dao/domain/NotifyRecord.java
  41. 401 0
      dao/src/main/java/com/mofangchuxing/aska/dao/domain/PayRequest.java
  42. 187 0
      dao/src/main/java/com/mofangchuxing/aska/dao/domain/RefundOrder.java
  43. 418 0
      dao/src/main/java/com/mofangchuxing/aska/dao/domain/SysMenu.java
  44. 28 0
      dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaAccountsMapper.java
  45. 30 0
      dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaChannelsMapper.java
  46. 30 0
      dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaRetailsMapper.java
  47. 28 0
      dao/src/main/java/com/mofangchuxing/aska/dao/mapper/NotifyRecordMapper.java
  48. 35 0
      dao/src/main/java/com/mofangchuxing/aska/dao/mapper/PayRequestMapper.java
  49. 25 0
      dao/src/main/java/com/mofangchuxing/aska/dao/mapper/RefundOrderMapper.java
  50. 31 0
      dao/src/main/java/com/mofangchuxing/aska/dao/mapper/SysMenuMapper.java
  51. 105 0
      dao/src/main/resources/mapper/AskaAccountsMapper.xml
  52. 162 0
      dao/src/main/resources/mapper/AskaChannelsMapper.xml
  53. 183 0
      dao/src/main/resources/mapper/AskaRetailsMapper.xml
  54. 129 0
      dao/src/main/resources/mapper/NotifyRecordMapper.xml
  55. 199 0
      dao/src/main/resources/mapper/PayRequestMapper.xml
  56. 93 0
      dao/src/main/resources/mapper/RefundOrderMapper.xml
  57. 198 0
      dao/src/main/resources/mapper/SysMenuMapper.xml
  58. BIN
      dao/target/aska-dao-1.0.jar
  59. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/config/SqlConfig.class
  60. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/domain/AskaAccounts.class
  61. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/domain/AskaChannels.class
  62. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/domain/AskaRetails.class
  63. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/domain/NotifyRecord.class
  64. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/domain/PayRequest.class
  65. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/domain/RefundOrder.class
  66. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/domain/SysMenu.class
  67. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/mapper/AskaAccountsMapper.class
  68. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/mapper/AskaChannelsMapper.class
  69. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/mapper/AskaRetailsMapper.class
  70. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/mapper/NotifyRecordMapper.class
  71. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/mapper/PayRequestMapper.class
  72. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/mapper/RefundOrderMapper.class
  73. BIN
      dao/target/classes/com/mofangchuxing/aska/dao/mapper/SysMenuMapper.class
  74. 105 0
      dao/target/classes/mapper/AskaAccountsMapper.xml
  75. 162 0
      dao/target/classes/mapper/AskaChannelsMapper.xml
  76. 183 0
      dao/target/classes/mapper/AskaRetailsMapper.xml
  77. 129 0
      dao/target/classes/mapper/NotifyRecordMapper.xml
  78. 199 0
      dao/target/classes/mapper/PayRequestMapper.xml
  79. 93 0
      dao/target/classes/mapper/RefundOrderMapper.xml
  80. 198 0
      dao/target/classes/mapper/SysMenuMapper.xml
  81. 4 0
      dao/target/maven-archiver/pom.properties
  82. 15 0
      dao/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  83. 15 0
      dao/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  84. 0 0
      dao/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
  85. 41 0
      domain/pom.xml
  86. 53 0
      domain/src/main/java/com/mofangchuxing/aska/domain/BizException.java
  87. 36 0
      domain/src/main/java/com/mofangchuxing/aska/domain/Constant.java
  88. 26 0
      domain/src/main/java/com/mofangchuxing/aska/domain/DelayObjectWrapper.java
  89. 47 0
      domain/src/main/java/com/mofangchuxing/aska/domain/PayRequestDto.java
  90. 72 0
      domain/src/main/java/com/mofangchuxing/aska/domain/R.java
  91. 50 0
      domain/src/main/java/com/mofangchuxing/aska/domain/ResponseResult.java
  92. 22 0
      domain/src/main/java/com/mofangchuxing/aska/domain/dto/BaseDto.java
  93. 28 0
      domain/src/main/java/com/mofangchuxing/aska/domain/dto/ChannelDto.java
  94. 49 0
      domain/src/main/java/com/mofangchuxing/aska/domain/dto/LoginDto.java
  95. 38 0
      domain/src/main/java/com/mofangchuxing/aska/domain/dto/RetailDto.java
  96. 141 0
      domain/src/main/java/com/mofangchuxing/aska/domain/entity/SysMenuEntity.java
  97. 29 0
      domain/src/main/java/com/mofangchuxing/aska/domain/enums/ClientTypeEnum.java
  98. 36 0
      domain/src/main/java/com/mofangchuxing/aska/domain/enums/ItemTypeEnum.java
  99. 31 0
      domain/src/main/java/com/mofangchuxing/aska/domain/enums/PayStatusEnum.java
  100. 49 0
      domain/src/main/java/com/mofangchuxing/aska/domain/enums/ResultEnum.java

BIN
.DS_Store


+ 8 - 0
.idea/.gitignore

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

+ 37 - 0
.idea/compiler.xml

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="CompilerConfiguration">
+    <annotationProcessing>
+      <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="aska-service" />
+        <module name="aska-main" />
+        <module name="service" />
+        <module name="aska-admin" />
+        <module name="aska-domain" />
+        <module name="aska-dao" />
+      </profile>
+    </annotationProcessing>
+    <bytecodeTargetLevel>
+      <module name="dao" target="1.8" />
+      <module name="domain" target="1.8" />
+      <module name="main" target="1.8" />
+      <module name="service" target="1.8" />
+    </bytecodeTargetLevel>
+  </component>
+  <component name="JavacSettings">
+    <option name="ADDITIONAL_OPTIONS_OVERRIDE">
+      <module name="aska-admin" options="-parameters" />
+      <module name="aska-dao" options="-parameters" />
+      <module name="aska-domain" options="-parameters" />
+      <module name="aska-main" options="-parameters" />
+      <module name="aska-service" options="-parameters" />
+      <module name="dao" options="-parameters" />
+      <module name="domain" options="-parameters" />
+      <module name="main" options="-parameters" />
+      <module name="service" options="-parameters" />
+    </option>
+  </component>
+</project>

+ 19 - 0
.idea/dataSources.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
+    <data-source source="LOCAL" name="@localhost [2]" uuid="e87d2807-047d-4880-a9d8-7744473cf1c9">
+      <driver-ref>mysql.8</driver-ref>
+      <synchronize>true</synchronize>
+      <jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
+      <jdbc-url>jdbc:mysql://localhost:55000</jdbc-url>
+      <working-dir>$ProjectFileDir$</working-dir>
+    </data-source>
+    <data-source source="LOCAL" name="test" uuid="914a7dad-9646-4237-8b7c-cf45d759f773">
+      <driver-ref>mysql.8</driver-ref>
+      <synchronize>true</synchronize>
+      <jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
+      <jdbc-url>jdbc:mysql://127.0.0.1:3306</jdbc-url>
+      <working-dir>$ProjectFileDir$</working-dir>
+    </data-source>
+  </component>
+</project>

+ 15 - 0
.idea/encodings.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding">
+    <file url="file://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot-starter-parent/2.0.2.RELEASE/src/main/resources" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/admin/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/admin/src/main/resources" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/dao/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/domain/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/main/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/main/src/main/resources" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/service/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
+  </component>
+</project>

+ 25 - 0
.idea/jarRepositories.xml

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

+ 18 - 0
.idea/misc.xml

@@ -0,0 +1,18 @@
+<?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" />
+        <option value="$PROJECT_DIR$/main/pom.xml" />
+        <option value="$PROJECT_DIR$/service/pom.xml" />
+        <option value="$PROJECT_DIR$/domain/pom.xml" />
+        <option value="$PROJECT_DIR$/dao/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>

+ 66 - 0
.idea/mybatisx/templates.xml

@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="TemplatesSettings">
+    <option name="templateConfigs">
+      <TemplateContext>
+        <option name="generateConfig">
+          <GenerateConfig>
+            <option name="annotationType" value="NONE" />
+            <option name="basePackage" value="com.mofangchuxing.aska.dao" />
+            <option name="basePath" value="src/main/java" />
+            <option name="classNameStrategy" value="camel" />
+            <option name="encoding" value="UTF-8" />
+            <option name="extraClassSuffix" value="" />
+            <option name="ignoreFieldPrefix" value="" />
+            <option name="ignoreFieldSuffix" value="" />
+            <option name="ignoreTablePrefix" value="" />
+            <option name="ignoreTableSuffix" value="" />
+            <option name="moduleName" value="aska-dao" />
+            <option name="modulePath" value="$PROJECT_DIR$/dao" />
+            <option name="moduleUIInfoList">
+              <list>
+                <ModuleInfoGo>
+                  <option name="basePath" value="src/main/resources" />
+                  <option name="configFileName" value="mapperXml.ftl" />
+                  <option name="configName" value="mapperXml" />
+                  <option name="encoding" value="${domain.encoding}" />
+                  <option name="fileName" value="${domain.fileName}Mapper" />
+                  <option name="fileNameWithSuffix" value="${domain.fileName}Mapper.xml" />
+                  <option name="modulePath" value="$PROJECT_DIR$/dao" />
+                  <option name="packageName" value="mapper" />
+                </ModuleInfoGo>
+                <ModuleInfoGo>
+                  <option name="basePath" value="${domain.basePath}" />
+                  <option name="configFileName" value="mapperInterface.ftl" />
+                  <option name="configName" value="mapperInterface" />
+                  <option name="encoding" value="${domain.encoding}" />
+                  <option name="fileName" value="${domain.fileName}Mapper" />
+                  <option name="fileNameWithSuffix" value="${domain.fileName}Mapper.java" />
+                  <option name="modulePath" value="$PROJECT_DIR$/dao" />
+                  <option name="packageName" value="${domain.basePackage}.mapper" />
+                </ModuleInfoGo>
+              </list>
+            </option>
+            <option name="needToStringHashcodeEquals" value="true" />
+            <option name="needsComment" value="true" />
+            <option name="needsModel" value="true" />
+            <option name="relativePackage" value="domain" />
+            <option name="superClass" value="" />
+            <option name="tableUIInfoList">
+              <list>
+                <TableUIInfo>
+                  <option name="className" value="AskaChannels" />
+                  <option name="tableName" value="aska_channels" />
+                </TableUIInfo>
+              </list>
+            </option>
+            <option name="templatesName" value="default-all" />
+          </GenerateConfig>
+        </option>
+        <option name="moduleName" value="aska-dao" />
+        <option name="projectPath" value="$PROJECT_DIR$" />
+        <option name="templateName" value="default-all" />
+      </TemplateContext>
+    </option>
+  </component>
+</project>

+ 124 - 0
.idea/uiDesigner.xml

@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Palette2">
+    <group name="Swing">
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.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>

+ 82 - 0
admin/pom.xml

@@ -0,0 +1,82 @@
+<?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>aska</artifactId>
+        <groupId>com.mofangchuxing</groupId>
+        <version>1.0</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>aska-admin</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+            <exclusions>
+                <exclusion>
+                    <artifactId>hibernate-validator</artifactId>
+                    <groupId>org.hibernate</groupId>
+                </exclusion>
+            </exclusions>
+            <version>2.0.2.RELEASE</version>
+        </dependency>
+        <dependency>
+            <groupId>com.mofangchuxing</groupId>
+            <artifactId>aska-domain</artifactId>
+            <version>1.0</version>
+        </dependency>
+        <dependency>
+            <groupId>com.mofangchuxing</groupId>
+            <artifactId>aska-service</artifactId>
+            <version>1.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-autoconfigure</artifactId>
+        </dependency>
+    </dependencies>
+    <build>
+        <finalName>aska-admin</finalName>
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+                <includes>
+                    <include>**/*.xml</include>
+                </includes>
+                <filtering>false</filtering>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <configuration>
+                    <encoding>UTF-8</encoding>
+                    <!-- 过滤后缀为pem、pfx的证书文件 -->
+                    <nonFilteredFileExtensions>
+                        <nonFilteredFileExtension>pem</nonFilteredFileExtension>
+                        <nonFilteredFileExtension>pfx</nonFilteredFileExtension>
+                        <nonFilteredFileExtension>p12</nonFilteredFileExtension>
+                    </nonFilteredFileExtensions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+</project>

+ 19 - 0
admin/src/main/java/com/mofangchuxing/aska/admin/AdminApplication.java

@@ -0,0 +1,19 @@
+package com.mofangchuxing.aska.admin;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * @Author: syl
+ * @Date: 2023/7/28
+ * @Description:
+ */
+@SpringBootApplication(scanBasePackages = {"com.mofangchuxing.aska"})
+@MapperScan(basePackages = {"com.mofangchuxing.aska.dao"})
+public class AdminApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(AdminApplication.class);
+    }
+}

+ 23 - 0
admin/src/main/java/com/mofangchuxing/aska/admin/Intercepter/RequestInterceptor.java

@@ -0,0 +1,23 @@
+package com.mofangchuxing.aska.admin.Intercepter;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Component;
+import org.springframework.web.servlet.HandlerInterceptor;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * @Author: syl
+ * @Date: 2023/4/14
+ * @Description:
+ */
+@Slf4j
+@Component
+public class RequestInterceptor implements HandlerInterceptor {
+    @Override
+    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
+        request.setCharacterEncoding("UTF-8");
+        return true;
+    }
+}

+ 78 - 0
admin/src/main/java/com/mofangchuxing/aska/admin/config/WebConfig.java

@@ -0,0 +1,78 @@
+package com.mofangchuxing.aska.admin.config;
+
+import com.alibaba.fastjson.support.config.FastJsonConfig;
+import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter4;
+import com.mofangchuxing.aska.admin.Intercepter.RequestInterceptor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.http.MediaType;
+import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
+import org.springframework.http.converter.HttpMessageConverter;
+import org.springframework.http.converter.StringHttpMessageConverter;
+import org.springframework.web.client.RestTemplate;
+import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @Author: syl
+ * @Date: 2023/3/21
+ * @Description:
+ */
+@Configuration
+@Slf4j
+public class WebConfig extends WebMvcConfigurerAdapter {
+
+    @Resource
+    private RequestInterceptor requestInterceptor;
+
+    @Bean
+    public FastJsonHttpMessageConverter4 jsonHttpMessageConverter() {
+        FastJsonHttpMessageConverter4 converter = new FastJsonHttpMessageConverter4();
+        FastJsonConfig jsonConfig = new FastJsonConfig();
+        jsonConfig.setDateFormat("yyyy-MM-dd HH:mm:ss");
+        converter.setFastJsonConfig(jsonConfig);
+        List<MediaType> fastMediaTypes = new ArrayList<>();
+        fastMediaTypes.add(MediaType.APPLICATION_JSON_UTF8);
+        converter.setSupportedMediaTypes(fastMediaTypes);
+        return converter;
+    }
+
+    @Bean
+    public RestTemplate restTemplate() {
+        HttpComponentsClientHttpRequestFactory factory = new HttpComponentsClientHttpRequestFactory();
+        factory.setConnectTimeout(1000);
+        factory.setConnectionRequestTimeout(5000);
+        factory.setReadTimeout(5000);
+        List<HttpMessageConverter<?>> messageConverters = new ArrayList<>();
+        messageConverters.add(jsonHttpMessageConverter());
+        messageConverters.add(new StringHttpMessageConverter());
+        RestTemplate restTemplate = new RestTemplate(factory);
+        restTemplate.setMessageConverters(messageConverters);
+        return restTemplate;
+    }
+
+    @Override
+    public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
+        for (HttpMessageConverter converter : converters){
+            log.info("converter === {}",converter);
+        }
+        super.extendMessageConverters(converters);
+    }
+
+    @Override
+    public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
+        log.info("------ configureMessageConverters");
+        converters.add(jsonHttpMessageConverter());
+        super.configureMessageConverters(converters);
+    }
+
+    @Override
+    public void addInterceptors(InterceptorRegistry registry) {
+        registry.addInterceptor(requestInterceptor).addPathPatterns("/**");
+    }
+}

+ 36 - 0
admin/src/main/java/com/mofangchuxing/aska/admin/controller/AdminBaseController.java

@@ -0,0 +1,36 @@
+package com.mofangchuxing.aska.admin.controller;
+
+import com.alibaba.fastjson.JSON;
+import com.mofangchuxing.aska.dao.domain.AskaAccounts;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.core.ValueOperations;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.Resource;
+import java.util.concurrent.TimeUnit;
+
+@Component
+public class AdminBaseController {
+
+    protected static final String SYS_USER = "SYS_USER_";
+
+    @Resource
+    private RedisTemplate redisTemplate;
+
+    protected AskaAccounts getSysUser(String token){
+        ValueOperations<String, String> valueOps = redisTemplate.opsForValue();
+        String jsonStr = valueOps.get(SYS_USER + token);
+        if (jsonStr == null) {
+            return null;
+        } else {
+            AskaAccounts sysUser = JSON.parseObject(jsonStr, AskaAccounts.class);
+            if (sysUser == null) {
+                return null;
+            }
+            String userKey = SYS_USER + token;
+            redisTemplate.opsForValue().set(userKey, JSON.toJSONString(sysUser));
+            redisTemplate.expire(userKey, 43200, TimeUnit.SECONDS);
+            return sysUser;
+        }
+    }
+}

+ 88 - 0
admin/src/main/java/com/mofangchuxing/aska/admin/controller/ChannelController.java

@@ -0,0 +1,88 @@
+package com.mofangchuxing.aska.admin.controller;
+
+import com.mofangchuxing.aska.dao.domain.AskaAccounts;
+import com.mofangchuxing.aska.dao.domain.AskaChannels;
+import com.mofangchuxing.aska.domain.R;
+import com.mofangchuxing.aska.domain.dto.ChannelDto;
+import com.mofangchuxing.aska.domain.utils.PageUtils;
+import com.mofangchuxing.aska.service.ChannelService;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+/**
+ * @Author: syl
+ * @Date: 2023/8/4
+ * @Description:
+ */
+@RestController
+@RequestMapping("/ChannelMng")
+public class ChannelController extends AdminBaseController{
+
+    @Resource
+    private ChannelService channelService;
+
+    @PostMapping("/addChannel")
+    public R addChannel(@RequestBody ChannelDto channelDto) {
+        AskaAccounts askaAccounts = getSysUser(channelDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaChannels askaChannels = channelService.addChannel(channelDto);
+        return R.ok(askaChannels);
+    }
+
+    @PostMapping("/updateChannel")
+    public R updateChannel(@RequestBody ChannelDto channelDto) {
+        AskaAccounts askaAccounts = getSysUser(channelDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaChannels askaChannels = channelService.updateChannel(channelDto);
+        return R.ok(askaChannels);
+    }
+
+    @PostMapping("/stopChannel")
+    public R stopChannel(@RequestBody ChannelDto channelDto) {
+        AskaAccounts askaAccounts = getSysUser(channelDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaChannels askaChannels = channelService.stopChannel(channelDto);
+        return R.ok(askaChannels);
+    }
+
+    @PostMapping("/setCouponRule")
+    public R setCouponRule(@RequestBody ChannelDto channelDto) {
+        AskaAccounts askaAccounts = getSysUser(channelDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        channelService.setCouponRule();
+        return R.ok();
+    }
+
+    @PostMapping("/getAllChannels")
+    public R getAllChannels(@RequestBody ChannelDto channelDto) {
+        AskaAccounts askaAccounts = getSysUser(channelDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        PageUtils pageUtils = channelService.getAllChannels(channelDto);
+        return R.ok(pageUtils);
+    }
+
+    @PostMapping("/getChannelDetail")
+    public R getChannelDetail(@RequestBody ChannelDto channelDto) {
+        AskaAccounts askaAccounts = getSysUser(channelDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaChannels askaChannels = channelService.getChannelDetail(channelDto);
+        return R.ok(askaChannels);
+    }
+
+}

+ 96 - 0
admin/src/main/java/com/mofangchuxing/aska/admin/controller/RetailController.java

@@ -0,0 +1,96 @@
+package com.mofangchuxing.aska.admin.controller;
+
+import com.mofangchuxing.aska.dao.domain.AskaAccounts;
+import com.mofangchuxing.aska.dao.domain.AskaRetails;
+import com.mofangchuxing.aska.domain.R;
+import com.mofangchuxing.aska.domain.dto.RetailDto;
+import com.mofangchuxing.aska.domain.utils.PageUtils;
+import com.mofangchuxing.aska.service.RetailService;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+/**
+ * @Author: syl
+ * @Date: 2023/8/1
+ * @Description:
+ */
+@RestController
+@RequestMapping("/RetailMng")
+public class RetailController extends AdminBaseController {
+
+    @Resource
+    private RetailService retailService;
+
+    @PostMapping("/addRetail")
+    public R addRetail(@RequestBody RetailDto retailDto) {
+        AskaAccounts askaAccounts = getSysUser(retailDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaRetails askaRetails = retailService.addRetail(retailDto);
+        return R.ok(askaRetails);
+    }
+
+    @PostMapping("/updateRetail")
+    public R updateRetail(@RequestBody RetailDto retailDto) {
+        AskaAccounts askaAccounts = getSysUser(retailDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaRetails askaRetails = retailService.updateRetail(retailDto);
+        if (askaRetails == null) {
+            return R.error("门店不存在");
+        }
+        return R.ok(askaRetails);
+    }
+
+    @PostMapping("/stopRetail")
+    public R stopRetail(@RequestBody RetailDto retailDto) {
+        AskaAccounts askaAccounts = getSysUser(retailDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaRetails askaRetails = retailService.stopRetail(retailDto);
+        if (askaRetails == null) {
+            return R.error("门店不存在");
+        }
+        return R.ok(askaRetails);
+    }
+
+    @PostMapping("/setSplitRule")
+    public R setSplitRule(@RequestBody RetailDto retailDto) {
+        AskaAccounts askaAccounts = getSysUser(retailDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaRetails askaRetails = retailService.setSplitRule(retailDto);
+        if (askaRetails == null) {
+            return R.error("门店不存在");
+        }
+        return R.ok(askaRetails);
+    }
+
+    @PostMapping("/listAllRetails")
+    public R listAllRetails(@RequestBody RetailDto retailDto) {
+        AskaAccounts askaAccounts = getSysUser(retailDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        PageUtils pageUtils = retailService.listAllRetails(retailDto);
+        return R.ok(pageUtils);
+    }
+
+    @PostMapping("/getRetailDetail")
+    public R getRetailDetail(@RequestBody RetailDto retailDto) {
+        AskaAccounts askaAccounts = getSysUser(retailDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        AskaRetails askaRetails = retailService.getRetailDetail(retailDto);
+        return R.ok(askaRetails);
+    }
+}

+ 83 - 0
admin/src/main/java/com/mofangchuxing/aska/admin/controller/SysUserController.java

@@ -0,0 +1,83 @@
+package com.mofangchuxing.aska.admin.controller;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.mofangchuxing.aska.dao.domain.AskaAccounts;
+import com.mofangchuxing.aska.domain.R;
+import com.mofangchuxing.aska.domain.dto.LoginDto;
+import com.mofangchuxing.aska.domain.entity.SysMenuEntity;
+import com.mofangchuxing.aska.service.UserService;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.RandomStringUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.client.RestTemplate;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+
+import org.springframework.data.redis.core.RedisTemplate;
+
+/**
+ * @Author: syl
+ * @Date: 2023/7/27
+ * @Description:
+ */
+@RestController
+@RequestMapping("/Common")
+@Slf4j
+public class SysUserController extends AdminBaseController{
+
+    @Resource
+    private UserService userService;
+    @Resource
+    private RedisTemplate redisTemplate;
+
+    @RequestMapping(value = "/Login", method = {RequestMethod.POST, RequestMethod.GET})
+    public R login(@RequestBody LoginDto loginDto) {
+        log.info("登录用户信息=={}", JSON.toJSONString(loginDto));
+        Map<String, Object> result = new HashMap<>();
+        if (StringUtils.isEmpty(loginDto.getUsername()) || StringUtils.isEmpty(loginDto.getPassword())){
+            return R.error("用户名或密码不能为空");
+        }
+        AskaAccounts askaAccounts = userService.queryAccountByUsername(loginDto.getUsername());
+        if (askaAccounts == null){
+            return R.error("用户不存在");
+        }
+        if (!loginDto.getPassword().equals(askaAccounts.getPass())){
+            return R.error("密码错误");
+        }
+        String sessionId = RandomStringUtils.randomAlphanumeric(25);
+        String userKey = SYS_USER + sessionId;
+        redisTemplate.opsForValue().set(userKey, JSON.toJSONString(askaAccounts));
+        redisTemplate.expire(userKey, 43200, TimeUnit.SECONDS);
+        result.put("token", sessionId);
+        result.put("userid", askaAccounts.getId());
+        result.put("name", askaAccounts.getName());
+        result.put("type", askaAccounts.getRole());
+        return R.ok(result);
+    }
+
+    @PostMapping("/ListMenu")
+    public R ListMenu(@RequestBody LoginDto loginDto) {
+        AskaAccounts askaAccounts = getSysUser(loginDto.getT());
+        if (askaAccounts == null){
+            return R.error("token_expire");
+        }
+        log.info("accounts = {}", JSONObject.toJSONString(askaAccounts));
+        List<SysMenuEntity> menuList = userService.listUserMenu(askaAccounts);
+        Map<String, Object> result = new HashMap<>();
+        result.put("menuList", menuList);
+        return R.ok(result);
+    }
+
+    @RequestMapping("/Logout")
+    public R logout(String t) {
+        redisTemplate.delete(SYS_USER + t);
+        return R.ok();
+    }
+}

+ 46 - 0
admin/src/main/resources/application.yml

@@ -0,0 +1,46 @@
+server:
+  port: 8099
+  tomcat:
+    uri-encoding: UTF-8
+app.id: aska-admin
+
+
+mybatis:
+  typeAliasesPackage: com.mofangchuxing.aska.dao.domain
+  mapperLocations: classpath:mapper/*.xml
+
+spring:
+  redis:
+    open: true                    # 是否开启redis缓存  true开启   false关闭
+    database: 0
+    host: 127.0.0.1  # 测试环境redis
+    port: 6379
+    password:       # 密码(默认为空)
+    jedis:
+      pool:
+        max-wait: -1              # 连接池最大阻塞等待时间(使用负值表示没有限制)
+        max-idle: 10              # 连接池中的最大空闲连接
+        min-idle: 5
+        max-active: 1000          # 连接池中的最小空闲连接
+  datasource:
+    druid:
+        name: master
+        url: jdbc:mysql://localhost:55000/aska?&zeroDateTimeBehavior=convertToNull&useSSL=false
+        username: root
+        password: mysqlpw
+        driver-class-name: com.mysql.jdbc.Driver
+        type: com.alibaba.druid.pool.DruidDataSource
+        timeBetweenEvictionRunsMillis: 600000
+        validationQuery: select 1
+        initialSize: 20
+        minIdle: 5
+        maxActive: 20
+        maxWait: 3000
+
+#微信支付配置
+wx:
+  app-id: wxc6eeeba72fd3ed01
+  mch-id: 1641830577
+  api-key: a8babfa0d75ac878dd76dc905bf677e2
+  unified-order-url: https://api.mch.weixin.qq.com/pay/unifiedorder
+  notify-url: https://biketest.mofangchuxing.com/askay/notify

+ 67 - 0
admin/src/main/resources/logback-prod.xml

@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+    <!--info日志-->
+    <springProperty scope="context" name="LOG_HOME" source="logback.file"/>
+    <appender name="APP_INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <!--活动日志输出路径示例-->
+        <file>${LOG_HOME}/info.log</file>
+        <append>true</append>
+        <!--存档日志示例-->
+        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+            <fileNamePattern>${LOG_HOME}/%d{yyyy-MM-dd}/info-${HOSTNAME}.%i.log.gz</fileNamePattern>
+            <!--日志大小可自定义-->
+            <maxFileSize>50MB</maxFileSize>
+            <!--存档天数可自定义-->
+            <maxHistory>30</maxHistory>
+        </rollingPolicy>
+        <!--统一日志输出格式-->
+        <encoder charset="UTF-8">
+            <pattern>%date [%thread] %-5level %logger [%L] - %msg%n</pattern>
+        </encoder>
+    </appender>
+    <!--ERROR日志-->
+    <appender name="APP_ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <file>${LOG_HOME}/error.log</file>
+        <append>true</append>
+        <filter class="ch.qos.logback.classic.filter.LevelFilter">
+            <level>ERROR</level>
+            <onMatch>ACCEPT</onMatch>
+            <onMismatch>DENY</onMismatch>
+        </filter>
+        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+            <fileNamePattern>${LOG_HOME}/%d{yyyy-MM-dd}/error-${HOSTNAME}.%i.log.gz</fileNamePattern>
+            <!--日志大小可自定义-->
+            <maxFileSize>50MB</maxFileSize>
+            <!--存档天数可自定义-->
+            <maxHistory>30</maxHistory>
+        </rollingPolicy>
+
+        <encoder charset="UTF-8">
+            <pattern>%date [%thread] %-5level %logger [%L] - %msg%n</pattern>
+        </encoder>
+    </appender>
+    <!--<appender name="CatAppender" class="com.kaola.travel.travel.config.CatLogbackAppender"></appender>-->
+
+    <logger name="org.apache.ibatis" level="info" additivity="false">
+        <appender-ref ref="APP_INFO"/>
+        <appender-ref ref="APP_ERROR"/>
+        <!--<appender-ref ref="CatAppender" />-->
+    </logger>
+
+    <logger name="com.mofangchuxing.aska" level="INFO" additivity="false">
+        <appender-ref ref="APP_INFO"/>
+        <appender-ref ref="APP_ERROR"/>
+        <!--<appender-ref ref="CatAppender" />-->
+    </logger>
+    <logger name="com.alibaba.dubbo" level="INFO" additivity="false">
+        <appender-ref ref="APP_INFO"/>
+        <appender-ref ref="APP_ERROR"/>
+        <!--<appender-ref ref="CatAppender" />-->
+    </logger>
+
+    <root level="INFO">
+        <!--<appender-ref ref="CatAppender" />-->
+        <appender-ref ref="APP_INFO"/>
+        <appender-ref ref="APP_ERROR"/>
+    </root>
+</configuration>

BIN
admin/target/aska-admin.jar


BIN
admin/target/aska-admin.jar.original


+ 46 - 0
admin/target/classes/application.yml

@@ -0,0 +1,46 @@
+server:
+  port: 8099
+  tomcat:
+    uri-encoding: UTF-8
+app.id: aska-admin
+
+
+mybatis:
+  typeAliasesPackage: com.mofangchuxing.aska.dao.domain
+  mapperLocations: classpath:mapper/*.xml
+
+spring:
+  redis:
+    open: true                    # 是否开启redis缓存  true开启   false关闭
+    database: 0
+    host: 127.0.0.1  # 测试环境redis
+    port: 6379
+    password:       # 密码(默认为空)
+    jedis:
+      pool:
+        max-wait: -1              # 连接池最大阻塞等待时间(使用负值表示没有限制)
+        max-idle: 10              # 连接池中的最大空闲连接
+        min-idle: 5
+        max-active: 1000          # 连接池中的最小空闲连接
+  datasource:
+    druid:
+        name: master
+        url: jdbc:mysql://localhost:55000/aska?&zeroDateTimeBehavior=convertToNull&useSSL=false
+        username: root
+        password: mysqlpw
+        driver-class-name: com.mysql.jdbc.Driver
+        type: com.alibaba.druid.pool.DruidDataSource
+        timeBetweenEvictionRunsMillis: 600000
+        validationQuery: select 1
+        initialSize: 20
+        minIdle: 5
+        maxActive: 20
+        maxWait: 3000
+
+#微信支付配置
+wx:
+  app-id: wxc6eeeba72fd3ed01
+  mch-id: 1641830577
+  api-key: a8babfa0d75ac878dd76dc905bf677e2
+  unified-order-url: https://api.mch.weixin.qq.com/pay/unifiedorder
+  notify-url: https://biketest.mofangchuxing.com/askay/notify

BIN
admin/target/classes/com/mofangchuxing/aska/admin/AdminApplication.class


BIN
admin/target/classes/com/mofangchuxing/aska/admin/Intercepter/RequestInterceptor.class


BIN
admin/target/classes/com/mofangchuxing/aska/admin/config/WebConfig.class


BIN
admin/target/classes/com/mofangchuxing/aska/admin/controller/AdminBaseController.class


BIN
admin/target/classes/com/mofangchuxing/aska/admin/controller/ChannelController.class


BIN
admin/target/classes/com/mofangchuxing/aska/admin/controller/RetailController.class


BIN
admin/target/classes/com/mofangchuxing/aska/admin/controller/SysUserController.class


+ 67 - 0
admin/target/classes/logback-prod.xml

@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+    <!--info日志-->
+    <springProperty scope="context" name="LOG_HOME" source="logback.file"/>
+    <appender name="APP_INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <!--活动日志输出路径示例-->
+        <file>${LOG_HOME}/info.log</file>
+        <append>true</append>
+        <!--存档日志示例-->
+        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+            <fileNamePattern>${LOG_HOME}/%d{yyyy-MM-dd}/info-${HOSTNAME}.%i.log.gz</fileNamePattern>
+            <!--日志大小可自定义-->
+            <maxFileSize>50MB</maxFileSize>
+            <!--存档天数可自定义-->
+            <maxHistory>30</maxHistory>
+        </rollingPolicy>
+        <!--统一日志输出格式-->
+        <encoder charset="UTF-8">
+            <pattern>%date [%thread] %-5level %logger [%L] - %msg%n</pattern>
+        </encoder>
+    </appender>
+    <!--ERROR日志-->
+    <appender name="APP_ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <file>${LOG_HOME}/error.log</file>
+        <append>true</append>
+        <filter class="ch.qos.logback.classic.filter.LevelFilter">
+            <level>ERROR</level>
+            <onMatch>ACCEPT</onMatch>
+            <onMismatch>DENY</onMismatch>
+        </filter>
+        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+            <fileNamePattern>${LOG_HOME}/%d{yyyy-MM-dd}/error-${HOSTNAME}.%i.log.gz</fileNamePattern>
+            <!--日志大小可自定义-->
+            <maxFileSize>50MB</maxFileSize>
+            <!--存档天数可自定义-->
+            <maxHistory>30</maxHistory>
+        </rollingPolicy>
+
+        <encoder charset="UTF-8">
+            <pattern>%date [%thread] %-5level %logger [%L] - %msg%n</pattern>
+        </encoder>
+    </appender>
+    <!--<appender name="CatAppender" class="com.kaola.travel.travel.config.CatLogbackAppender"></appender>-->
+
+    <logger name="org.apache.ibatis" level="info" additivity="false">
+        <appender-ref ref="APP_INFO"/>
+        <appender-ref ref="APP_ERROR"/>
+        <!--<appender-ref ref="CatAppender" />-->
+    </logger>
+
+    <logger name="com.mofangchuxing.aska" level="INFO" additivity="false">
+        <appender-ref ref="APP_INFO"/>
+        <appender-ref ref="APP_ERROR"/>
+        <!--<appender-ref ref="CatAppender" />-->
+    </logger>
+    <logger name="com.alibaba.dubbo" level="INFO" additivity="false">
+        <appender-ref ref="APP_INFO"/>
+        <appender-ref ref="APP_ERROR"/>
+        <!--<appender-ref ref="CatAppender" />-->
+    </logger>
+
+    <root level="INFO">
+        <!--<appender-ref ref="CatAppender" />-->
+        <appender-ref ref="APP_INFO"/>
+        <appender-ref ref="APP_ERROR"/>
+    </root>
+</configuration>

+ 4 - 0
admin/target/maven-archiver/pom.properties

@@ -0,0 +1,4 @@
+#Created by Apache Maven 3.8.6
+version=1.0
+groupId=com.mofangchuxing
+artifactId=aska-admin

+ 7 - 0
admin/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@@ -0,0 +1,7 @@
+com/mofangchuxing/aska/admin/config/WebConfig.class
+com/mofangchuxing/aska/admin/controller/ChannelController.class
+com/mofangchuxing/aska/admin/Intercepter/RequestInterceptor.class
+com/mofangchuxing/aska/admin/controller/SysUserController.class
+com/mofangchuxing/aska/admin/controller/RetailController.class
+com/mofangchuxing/aska/admin/controller/AdminBaseController.class
+com/mofangchuxing/aska/admin/AdminApplication.class

+ 7 - 0
admin/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

@@ -0,0 +1,7 @@
+/Users/syl/Desktop/work/aska/admin/src/main/java/com/mofangchuxing/aska/admin/config/WebConfig.java
+/Users/syl/Desktop/work/aska/admin/src/main/java/com/mofangchuxing/aska/admin/AdminApplication.java
+/Users/syl/Desktop/work/aska/admin/src/main/java/com/mofangchuxing/aska/admin/controller/SysUserController.java
+/Users/syl/Desktop/work/aska/admin/src/main/java/com/mofangchuxing/aska/admin/controller/AdminBaseController.java
+/Users/syl/Desktop/work/aska/admin/src/main/java/com/mofangchuxing/aska/admin/Intercepter/RequestInterceptor.java
+/Users/syl/Desktop/work/aska/admin/src/main/java/com/mofangchuxing/aska/admin/controller/ChannelController.java
+/Users/syl/Desktop/work/aska/admin/src/main/java/com/mofangchuxing/aska/admin/controller/RetailController.java

+ 0 - 0
admin/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst


+ 46 - 0
dao/pom.xml

@@ -0,0 +1,46 @@
+<?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>aska</artifactId>
+        <groupId>com.mofangchuxing</groupId>
+        <version>1.0</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>aska-dao</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus</artifactId>
+        </dependency>
+        <!--数据库连接池-->
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>druid-spring-boot-starter</artifactId>
+        </dependency>
+        <!--MySQL 链接工具类-->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+        </dependency>
+        <!--Mybatis 相关工具类-->
+        <dependency>
+            <groupId>org.mybatis.spring.boot</groupId>
+            <artifactId>mybatis-spring-boot-starter</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.mofangchuxing</groupId>
+            <artifactId>aska-domain</artifactId>
+            <version>1.0</version>
+        </dependency>
+    </dependencies>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+</project>

+ 45 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/config/SqlConfig.java

@@ -0,0 +1,45 @@
+package com.mofangchuxing.aska.dao.config;
+
+import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
+import org.apache.ibatis.session.SqlSessionFactory;
+import org.mybatis.spring.SqlSessionFactoryBean;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Primary;
+import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
+import org.springframework.jdbc.datasource.DataSourceTransactionManager;
+
+import javax.sql.DataSource;
+
+/**
+ * @Author: syl
+ * @Date: 2023/3/21
+ * @Description:
+ */
+@Configuration
+public class SqlConfig {
+    @Primary
+    @Bean(name = "masterDataSource")
+    @ConfigurationProperties(prefix = "spring.datasource.druid")
+    public DataSource dataSource() {
+        return DruidDataSourceBuilder.create().build();
+    }
+
+    @Primary
+    @Bean(name = "masterTransactionManager")
+    public DataSourceTransactionManager transactionManager(@Qualifier("masterDataSource") DataSource dataSource) {
+        return new DataSourceTransactionManager(dataSource);
+    }
+    @Primary
+    @Bean(name = "sqlSessionFactory")
+    public SqlSessionFactory sqlSessionFactory(@Qualifier("masterDataSource") DataSource dataSource) throws Exception {
+        SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
+        factoryBean.setDataSource(dataSource);
+        factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources("classpath*:mapper/*.xml"));
+        // 加入sql语句拦截器
+        //factoryBean.setPlugins(new Interceptor[] {new CatMybatisPlugin()});
+        return factoryBean.getObject();
+    }
+}

+ 200 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaAccounts.java

@@ -0,0 +1,200 @@
+package com.mofangchuxing.aska.dao.domain;
+
+import java.io.Serializable;
+
+/**
+ * 
+ * @TableName aska_accounts
+ */
+public class AskaAccounts implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 
+     */
+    private String username;
+
+    /**
+     * 
+     */
+    private String name;
+
+    /**
+     * 
+     */
+    private String phone;
+
+    /**
+     * 
+     */
+    private String pass;
+
+    /**
+     * {retail,channel,financial,system,
+none}
+     */
+    private String role;
+
+    /**
+     * {start,stop}
+     */
+    private String status;
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 
+     */
+    public String getUsername() {
+        return username;
+    }
+
+    /**
+     * 
+     */
+    public void setUsername(String username) {
+        this.username = username;
+    }
+
+    /**
+     * 
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * 
+     */
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    /**
+     * 
+     */
+    public String getPhone() {
+        return phone;
+    }
+
+    /**
+     * 
+     */
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+
+    /**
+     * 
+     */
+    public String getPass() {
+        return pass;
+    }
+
+    /**
+     * 
+     */
+    public void setPass(String pass) {
+        this.pass = pass;
+    }
+
+    /**
+     * {retail,channel,financial,system,
+none}
+     */
+    public String getRole() {
+        return role;
+    }
+
+    /**
+     * {retail,channel,financial,system,
+none}
+     */
+    public void setRole(String role) {
+        this.role = role;
+    }
+
+    /**
+     * {start,stop}
+     */
+    public String getStatus() {
+        return status;
+    }
+
+    /**
+     * {start,stop}
+     */
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        AskaAccounts other = (AskaAccounts) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
+            && (this.getPass() == null ? other.getPass() == null : this.getPass().equals(other.getPass()))
+            && (this.getRole() == null ? other.getRole() == null : this.getRole().equals(other.getRole()))
+            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
+        result = prime * result + ((getPass() == null) ? 0 : getPass().hashCode());
+        result = prime * result + ((getRole() == null) ? 0 : getRole().hashCode());
+        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", username=").append(username);
+        sb.append(", name=").append(name);
+        sb.append(", phone=").append(phone);
+        sb.append(", pass=").append(pass);
+        sb.append(", role=").append(role);
+        sb.append(", status=").append(status);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 351 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaChannels.java

@@ -0,0 +1,351 @@
+package com.mofangchuxing.aska.dao.domain;
+
+import java.io.Serializable;
+
+/**
+ * 
+ * @TableName aska_channels
+ */
+public class AskaChannels implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 
+     */
+    private String name;
+
+    /**
+     * 
+     */
+    private String prefix;
+
+    /**
+     * 渠道负责人id
+     */
+    private Integer ownerId;
+
+    /**
+     * 
+     */
+    private String phone;
+
+    /**
+     * 备注
+     */
+    private String note;
+
+    /**
+     * 收款账号
+     */
+    private String account;
+
+    /**
+     * 
+     */
+    private String accountname;
+
+    /**
+     * 
+     */
+    private String apiv3;
+
+    /**
+     * 
+     */
+    private String certpath;
+
+    /**
+     * 分账方式{定额,定比}
+     */
+    private String tripartite;
+
+    /**
+     * 分账值{定额:分,定比:千分之一}
+     */
+    private Integer tripvalue;
+
+    /**
+     * 是否实时分账
+     */
+    private Integer realtimesplit;
+
+    /**
+     * 渠道可用状态
+     */
+    private String status;
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * 
+     */
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    /**
+     * 
+     */
+    public String getPrefix() {
+        return prefix;
+    }
+
+    /**
+     * 
+     */
+    public void setPrefix(String prefix) {
+        this.prefix = prefix;
+    }
+
+    /**
+     * 渠道负责人id
+     */
+    public Integer getOwnerId() {
+        return ownerId;
+    }
+
+    /**
+     * 渠道负责人id
+     */
+    public void setOwnerId(Integer ownerId) {
+        this.ownerId = ownerId;
+    }
+
+    /**
+     * 
+     */
+    public String getPhone() {
+        return phone;
+    }
+
+    /**
+     * 
+     */
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+
+    /**
+     * 备注
+     */
+    public String getNote() {
+        return note;
+    }
+
+    /**
+     * 备注
+     */
+    public void setNote(String note) {
+        this.note = note;
+    }
+
+    /**
+     * 收款账号
+     */
+    public String getAccount() {
+        return account;
+    }
+
+    /**
+     * 收款账号
+     */
+    public void setAccount(String account) {
+        this.account = account;
+    }
+
+    /**
+     * 
+     */
+    public String getAccountname() {
+        return accountname;
+    }
+
+    /**
+     * 
+     */
+    public void setAccountname(String accountname) {
+        this.accountname = accountname;
+    }
+
+    /**
+     * 
+     */
+    public String getApiv3() {
+        return apiv3;
+    }
+
+    /**
+     * 
+     */
+    public void setApiv3(String apiv3) {
+        this.apiv3 = apiv3;
+    }
+
+    /**
+     * 
+     */
+    public String getCertpath() {
+        return certpath;
+    }
+
+    /**
+     * 
+     */
+    public void setCertpath(String certpath) {
+        this.certpath = certpath;
+    }
+
+    /**
+     * 分账方式{定额,定比}
+     */
+    public String getTripartite() {
+        return tripartite;
+    }
+
+    /**
+     * 分账方式{定额,定比}
+     */
+    public void setTripartite(String tripartite) {
+        this.tripartite = tripartite;
+    }
+
+    /**
+     * 分账值{定额:分,定比:千分之一}
+     */
+    public Integer getTripvalue() {
+        return tripvalue;
+    }
+
+    /**
+     * 分账值{定额:分,定比:千分之一}
+     */
+    public void setTripvalue(Integer tripvalue) {
+        this.tripvalue = tripvalue;
+    }
+
+    /**
+     * 是否实时分账
+     */
+    public Integer getRealtimesplit() {
+        return realtimesplit;
+    }
+
+    /**
+     * 是否实时分账
+     */
+    public void setRealtimesplit(Integer realtimesplit) {
+        this.realtimesplit = realtimesplit;
+    }
+
+    /**
+     * 渠道可用状态
+     */
+    public String getStatus() {
+        return status;
+    }
+
+    /**
+     * 渠道可用状态
+     */
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        AskaChannels other = (AskaChannels) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getPrefix() == null ? other.getPrefix() == null : this.getPrefix().equals(other.getPrefix()))
+            && (this.getOwnerId() == null ? other.getOwnerId() == null : this.getOwnerId().equals(other.getOwnerId()))
+            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
+            && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
+            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
+            && (this.getAccountname() == null ? other.getAccountname() == null : this.getAccountname().equals(other.getAccountname()))
+            && (this.getApiv3() == null ? other.getApiv3() == null : this.getApiv3().equals(other.getApiv3()))
+            && (this.getCertpath() == null ? other.getCertpath() == null : this.getCertpath().equals(other.getCertpath()))
+            && (this.getTripartite() == null ? other.getTripartite() == null : this.getTripartite().equals(other.getTripartite()))
+            && (this.getTripvalue() == null ? other.getTripvalue() == null : this.getTripvalue().equals(other.getTripvalue()))
+            && (this.getRealtimesplit() == null ? other.getRealtimesplit() == null : this.getRealtimesplit().equals(other.getRealtimesplit()))
+            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getPrefix() == null) ? 0 : getPrefix().hashCode());
+        result = prime * result + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
+        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
+        result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
+        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
+        result = prime * result + ((getAccountname() == null) ? 0 : getAccountname().hashCode());
+        result = prime * result + ((getApiv3() == null) ? 0 : getApiv3().hashCode());
+        result = prime * result + ((getCertpath() == null) ? 0 : getCertpath().hashCode());
+        result = prime * result + ((getTripartite() == null) ? 0 : getTripartite().hashCode());
+        result = prime * result + ((getTripvalue() == null) ? 0 : getTripvalue().hashCode());
+        result = prime * result + ((getRealtimesplit() == null) ? 0 : getRealtimesplit().hashCode());
+        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", name=").append(name);
+        sb.append(", prefix=").append(prefix);
+        sb.append(", ownerid=").append(ownerId);
+        sb.append(", phone=").append(phone);
+        sb.append(", note=").append(note);
+        sb.append(", account=").append(account);
+        sb.append(", accountname=").append(accountname);
+        sb.append(", apiv3=").append(apiv3);
+        sb.append(", certpath=").append(certpath);
+        sb.append(", tripartite=").append(tripartite);
+        sb.append(", tripvalue=").append(tripvalue);
+        sb.append(", realtimesplit=").append(realtimesplit);
+        sb.append(", status=").append(status);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 417 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaRetails.java

@@ -0,0 +1,417 @@
+package com.mofangchuxing.aska.dao.domain;
+
+import java.io.Serializable;
+
+/**
+ * 
+ * @TableName aska_retails
+ */
+public class AskaRetails implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 
+     */
+    private String name;
+
+    /**
+     * 
+     */
+    private String address;
+
+    /**
+     * 
+     */
+    private String type;
+
+    /**
+     * 
+     */
+    private Double lat;
+
+    /**
+     * 
+     */
+    private Double lng;
+
+    /**
+     * 渠道负责人id
+     */
+    private Integer ownerid;
+
+    /**
+     * 
+     */
+    private String phone;
+
+    /**
+     * 备注
+     */
+    private String note;
+
+    /**
+     * 收款账号
+     */
+    private String account;
+
+    /**
+     * 
+     */
+    private String accountname;
+
+    /**
+     * 
+     */
+    private String apiv3;
+
+    /**
+     * 
+     */
+    private String certpath;
+
+    /**
+     * 分账方式{定额,定比}
+     */
+    private String tripartite;
+
+    /**
+     * 分账值{定额:分,定比:千分之一}
+     */
+    private Integer tripvalue;
+
+    /**
+     * 是否实时分账
+     */
+    private Integer realtimesplit;
+
+    /**
+     * 渠道可用状态{运营,暂停}
+     */
+    private String status;
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * 
+     */
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    /**
+     * 
+     */
+    public String getAddress() {
+        return address;
+    }
+
+    /**
+     * 
+     */
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    /**
+     * 
+     */
+    public String getType() {
+        return type;
+    }
+
+    /**
+     * 
+     */
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    /**
+     * 
+     */
+    public Double getLat() {
+        return lat;
+    }
+
+    /**
+     * 
+     */
+    public void setLat(Double lat) {
+        this.lat = lat;
+    }
+
+    /**
+     * 
+     */
+    public Double getLng() {
+        return lng;
+    }
+
+    /**
+     * 
+     */
+    public void setLng(Double lng) {
+        this.lng = lng;
+    }
+
+    /**
+     * 渠道负责人id
+     */
+    public Integer getOwnerid() {
+        return ownerid;
+    }
+
+    /**
+     * 渠道负责人id
+     */
+    public void setOwnerid(Integer ownerid) {
+        this.ownerid = ownerid;
+    }
+
+    /**
+     * 
+     */
+    public String getPhone() {
+        return phone;
+    }
+
+    /**
+     * 
+     */
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+
+    /**
+     * 备注
+     */
+    public String getNote() {
+        return note;
+    }
+
+    /**
+     * 备注
+     */
+    public void setNote(String note) {
+        this.note = note;
+    }
+
+    /**
+     * 收款账号
+     */
+    public String getAccount() {
+        return account;
+    }
+
+    /**
+     * 收款账号
+     */
+    public void setAccount(String account) {
+        this.account = account;
+    }
+
+    /**
+     * 
+     */
+    public String getAccountname() {
+        return accountname;
+    }
+
+    /**
+     * 
+     */
+    public void setAccountname(String accountname) {
+        this.accountname = accountname;
+    }
+
+    /**
+     * 
+     */
+    public String getApiv3() {
+        return apiv3;
+    }
+
+    /**
+     * 
+     */
+    public void setApiv3(String apiv3) {
+        this.apiv3 = apiv3;
+    }
+
+    /**
+     * 
+     */
+    public String getCertpath() {
+        return certpath;
+    }
+
+    /**
+     * 
+     */
+    public void setCertpath(String certpath) {
+        this.certpath = certpath;
+    }
+
+    /**
+     * 分账方式{定额,定比}
+     */
+    public String getTripartite() {
+        return tripartite;
+    }
+
+    /**
+     * 分账方式{定额,定比}
+     */
+    public void setTripartite(String tripartite) {
+        this.tripartite = tripartite;
+    }
+
+    /**
+     * 分账值{定额:分,定比:千分之一}
+     */
+    public Integer getTripvalue() {
+        return tripvalue;
+    }
+
+    /**
+     * 分账值{定额:分,定比:千分之一}
+     */
+    public void setTripvalue(Integer tripvalue) {
+        this.tripvalue = tripvalue;
+    }
+
+    /**
+     * 是否实时分账
+     */
+    public Integer getRealtimesplit() {
+        return realtimesplit;
+    }
+
+    /**
+     * 是否实时分账
+     */
+    public void setRealtimesplit(Integer realtimesplit) {
+        this.realtimesplit = realtimesplit;
+    }
+
+    /**
+     * 渠道可用状态{运营,暂停}
+     */
+    public String getStatus() {
+        return status;
+    }
+
+    /**
+     * 渠道可用状态{运营,暂停}
+     */
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        AskaRetails other = (AskaRetails) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
+            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
+            && (this.getLat() == null ? other.getLat() == null : this.getLat().equals(other.getLat()))
+            && (this.getLng() == null ? other.getLng() == null : this.getLng().equals(other.getLng()))
+            && (this.getOwnerid() == null ? other.getOwnerid() == null : this.getOwnerid().equals(other.getOwnerid()))
+            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
+            && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
+            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
+            && (this.getAccountname() == null ? other.getAccountname() == null : this.getAccountname().equals(other.getAccountname()))
+            && (this.getApiv3() == null ? other.getApiv3() == null : this.getApiv3().equals(other.getApiv3()))
+            && (this.getCertpath() == null ? other.getCertpath() == null : this.getCertpath().equals(other.getCertpath()))
+            && (this.getTripartite() == null ? other.getTripartite() == null : this.getTripartite().equals(other.getTripartite()))
+            && (this.getTripvalue() == null ? other.getTripvalue() == null : this.getTripvalue().equals(other.getTripvalue()))
+            && (this.getRealtimesplit() == null ? other.getRealtimesplit() == null : this.getRealtimesplit().equals(other.getRealtimesplit()))
+            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
+        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
+        result = prime * result + ((getLat() == null) ? 0 : getLat().hashCode());
+        result = prime * result + ((getLng() == null) ? 0 : getLng().hashCode());
+        result = prime * result + ((getOwnerid() == null) ? 0 : getOwnerid().hashCode());
+        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
+        result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
+        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
+        result = prime * result + ((getAccountname() == null) ? 0 : getAccountname().hashCode());
+        result = prime * result + ((getApiv3() == null) ? 0 : getApiv3().hashCode());
+        result = prime * result + ((getCertpath() == null) ? 0 : getCertpath().hashCode());
+        result = prime * result + ((getTripartite() == null) ? 0 : getTripartite().hashCode());
+        result = prime * result + ((getTripvalue() == null) ? 0 : getTripvalue().hashCode());
+        result = prime * result + ((getRealtimesplit() == null) ? 0 : getRealtimesplit().hashCode());
+        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", name=").append(name);
+        sb.append(", address=").append(address);
+        sb.append(", type=").append(type);
+        sb.append(", lat=").append(lat);
+        sb.append(", lng=").append(lng);
+        sb.append(", ownerid=").append(ownerid);
+        sb.append(", phone=").append(phone);
+        sb.append(", note=").append(note);
+        sb.append(", account=").append(account);
+        sb.append(", accountname=").append(accountname);
+        sb.append(", apiv3=").append(apiv3);
+        sb.append(", certpath=").append(certpath);
+        sb.append(", tripartite=").append(tripartite);
+        sb.append(", tripvalue=").append(tripvalue);
+        sb.append(", realtimesplit=").append(realtimesplit);
+        sb.append(", status=").append(status);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 265 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/domain/NotifyRecord.java

@@ -0,0 +1,265 @@
+package com.mofangchuxing.aska.dao.domain;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * 
+ * @TableName notify_record
+ */
+public class NotifyRecord implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 
+     */
+    private String orderSn;
+
+    /**
+     * 
+     */
+    private String mchId;
+
+    /**
+     * 
+     */
+    private String openId;
+
+    /**
+     * 
+     */
+    private String totalFee;
+
+    /**
+     * 
+     */
+    private String notifyUrl;
+
+    /**
+     * 
+     */
+    private Integer notifyTimes;
+
+    /**
+     * 
+     */
+    private Integer status;
+
+    /**
+     * 
+     */
+    private Date createTime;
+
+    /**
+     * 
+     */
+    private Date modifiedTime;
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 
+     */
+    public String getOrderSn() {
+        return orderSn;
+    }
+
+    /**
+     * 
+     */
+    public void setOrderSn(String orderSn) {
+        this.orderSn = orderSn;
+    }
+
+    /**
+     * 
+     */
+    public String getMchId() {
+        return mchId;
+    }
+
+    /**
+     * 
+     */
+    public void setMchId(String mchId) {
+        this.mchId = mchId;
+    }
+
+    /**
+     * 
+     */
+    public String getOpenId() {
+        return openId;
+    }
+
+    /**
+     * 
+     */
+    public void setOpenId(String openId) {
+        this.openId = openId;
+    }
+
+    /**
+     * 
+     */
+    public String getTotalFee() {
+        return totalFee;
+    }
+
+    /**
+     * 
+     */
+    public void setTotalFee(String totalFee) {
+        this.totalFee = totalFee;
+    }
+
+    /**
+     * 
+     */
+    public String getNotifyUrl() {
+        return notifyUrl;
+    }
+
+    /**
+     * 
+     */
+    public void setNotifyUrl(String notifyUrl) {
+        this.notifyUrl = notifyUrl;
+    }
+
+    /**
+     * 
+     */
+    public Integer getNotifyTimes() {
+        return notifyTimes;
+    }
+
+    /**
+     * 
+     */
+    public void setNotifyTimes(Integer notifyTimes) {
+        this.notifyTimes = notifyTimes;
+    }
+
+    /**
+     * 
+     */
+    public Integer getStatus() {
+        return status;
+    }
+
+    /**
+     * 
+     */
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    /**
+     * 
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * 
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * 
+     */
+    public Date getModifiedTime() {
+        return modifiedTime;
+    }
+
+    /**
+     * 
+     */
+    public void setModifiedTime(Date modifiedTime) {
+        this.modifiedTime = modifiedTime;
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        NotifyRecord other = (NotifyRecord) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getOrderSn() == null ? other.getOrderSn() == null : this.getOrderSn().equals(other.getOrderSn()))
+            && (this.getMchId() == null ? other.getMchId() == null : this.getMchId().equals(other.getMchId()))
+            && (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
+            && (this.getTotalFee() == null ? other.getTotalFee() == null : this.getTotalFee().equals(other.getTotalFee()))
+            && (this.getNotifyUrl() == null ? other.getNotifyUrl() == null : this.getNotifyUrl().equals(other.getNotifyUrl()))
+            && (this.getNotifyTimes() == null ? other.getNotifyTimes() == null : this.getNotifyTimes().equals(other.getNotifyTimes()))
+            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
+            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+            && (this.getModifiedTime() == null ? other.getModifiedTime() == null : this.getModifiedTime().equals(other.getModifiedTime()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getOrderSn() == null) ? 0 : getOrderSn().hashCode());
+        result = prime * result + ((getMchId() == null) ? 0 : getMchId().hashCode());
+        result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
+        result = prime * result + ((getTotalFee() == null) ? 0 : getTotalFee().hashCode());
+        result = prime * result + ((getNotifyUrl() == null) ? 0 : getNotifyUrl().hashCode());
+        result = prime * result + ((getNotifyTimes() == null) ? 0 : getNotifyTimes().hashCode());
+        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
+        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+        result = prime * result + ((getModifiedTime() == null) ? 0 : getModifiedTime().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", orderSn=").append(orderSn);
+        sb.append(", mchId=").append(mchId);
+        sb.append(", openId=").append(openId);
+        sb.append(", totalFee=").append(totalFee);
+        sb.append(", notifyUrl=").append(notifyUrl);
+        sb.append(", notifyTimes=").append(notifyTimes);
+        sb.append(", status=").append(status);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", modifiedTime=").append(modifiedTime);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 401 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/domain/PayRequest.java

@@ -0,0 +1,401 @@
+package com.mofangchuxing.aska.dao.domain;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * 
+ * @TableName pay_request
+ */
+public class PayRequest implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 
+     */
+    private String requestBody;
+
+    /**
+     * 
+     */
+    private String orderSn;
+
+    /**
+     * 
+     */
+    private String openId;
+
+    /**
+     * 
+     */
+    private String mobile;
+
+    /**
+     * 
+     */
+    private String orderId;
+
+    /**
+     * 
+     */
+    private BigDecimal amount;
+
+    /**
+     * 商品id
+     */
+    private String itemId;
+
+    /**
+     * 商品类型
+     */
+    private Integer itemType;
+
+    private String itemName;
+
+    /**
+     * 
+     */
+    private String itemChannel;
+
+    /**
+     * 支付渠道 1-微信 2-支付宝
+     */
+    private Integer payChannel;
+
+    private Integer payStatus;
+
+    private String responseBody;
+
+    private String useCouponId;
+
+    private BigDecimal payAmount;
+
+    private Date payTime;
+
+    private String callbackUrl;
+
+    /**
+     * 
+     */
+    private Date createTime;
+
+    /**
+     * 
+     */
+    private Date modifiedTime;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getPayStatus() {
+        return payStatus;
+    }
+
+    public void setPayStatus(Integer payStatus) {
+        this.payStatus = payStatus;
+    }
+
+    public String getResponseBody() {
+        return responseBody;
+    }
+
+    public void setResponseBody(String responseBody) {
+        this.responseBody = responseBody;
+    }
+
+    public String getUseCouponId() {
+        return useCouponId;
+    }
+
+    public void setUseCouponId(String useCouponId) {
+        this.useCouponId = useCouponId;
+    }
+
+    public BigDecimal getPayAmount() {
+        return payAmount;
+    }
+
+    public void setPayAmount(BigDecimal payAmount) {
+        this.payAmount = payAmount;
+    }
+
+    public Date getPayTime() {
+        return payTime;
+    }
+
+    public void setPayTime(Date payTime) {
+        this.payTime = payTime;
+    }
+
+    public String getCallbackUrl() {
+        return callbackUrl;
+    }
+
+    public void setCallbackUrl(String callbackUrl) {
+        this.callbackUrl = callbackUrl;
+    }
+
+    /**
+     * 
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 
+     */
+    public String getRequestBody() {
+        return requestBody;
+    }
+
+    /**
+     * 
+     */
+    public void setRequestBody(String requestBody) {
+        this.requestBody = requestBody;
+    }
+
+    /**
+     * 
+     */
+    public String getOrderSn() {
+        return orderSn;
+    }
+
+    /**
+     * 
+     */
+    public void setOrderSn(String orderSn) {
+        this.orderSn = orderSn;
+    }
+
+    /**
+     * 
+     */
+    public String getOpenId() {
+        return openId;
+    }
+
+    /**
+     * 
+     */
+    public void setOpenId(String openId) {
+        this.openId = openId;
+    }
+
+    /**
+     * 
+     */
+    public String getMobile() {
+        return mobile;
+    }
+
+    /**
+     * 
+     */
+    public void setMobile(String mobile) {
+        this.mobile = mobile;
+    }
+
+    /**
+     * 
+     */
+    public String getOrderId() {
+        return orderId;
+    }
+
+    /**
+     * 
+     */
+    public void setOrderId(String orderId) {
+        this.orderId = orderId;
+    }
+
+    /**
+     * 
+     */
+    public BigDecimal getAmount() {
+        return amount;
+    }
+
+    /**
+     * 
+     */
+    public void setAmount(BigDecimal amount) {
+        this.amount = amount;
+    }
+
+    /**
+     * 商品id
+     */
+    public String getItemId() {
+        return itemId;
+    }
+
+    /**
+     * 商品id
+     */
+    public void setItemId(String itemId) {
+        this.itemId = itemId;
+    }
+
+    /**
+     * 商品类型
+     */
+    public Integer getItemType() {
+        return itemType;
+    }
+
+    /**
+     * 商品类型
+     */
+    public void setItemType(Integer itemType) {
+        this.itemType = itemType;
+    }
+
+    /**
+     * 
+     */
+    public String getItemChannel() {
+        return itemChannel;
+    }
+
+    /**
+     * 
+     */
+    public void setItemChannel(String itemChannel) {
+        this.itemChannel = itemChannel;
+    }
+
+    /**
+     * 支付渠道 1-微信 2-支付宝
+     */
+    public Integer getPayChannel() {
+        return payChannel;
+    }
+
+    /**
+     * 支付渠道 1-微信 2-支付宝
+     */
+    public void setPayChannel(Integer payChannel) {
+        this.payChannel = payChannel;
+    }
+
+    /**
+     * 
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * 
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * 
+     */
+    public Date getModifiedTime() {
+        return modifiedTime;
+    }
+
+    /**
+     * 
+     */
+    public void setModifiedTime(Date modifiedTime) {
+        this.modifiedTime = modifiedTime;
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        PayRequest other = (PayRequest) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getRequestBody() == null ? other.getRequestBody() == null : this.getRequestBody().equals(other.getRequestBody()))
+            && (this.getOrderSn() == null ? other.getOrderSn() == null : this.getOrderSn().equals(other.getOrderSn()))
+            && (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
+            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
+            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
+            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
+            && (this.getItemId() == null ? other.getItemId() == null : this.getItemId().equals(other.getItemId()))
+            && (this.getItemType() == null ? other.getItemType() == null : this.getItemType().equals(other.getItemType()))
+            && (this.getItemChannel() == null ? other.getItemChannel() == null : this.getItemChannel().equals(other.getItemChannel()))
+            && (this.getPayChannel() == null ? other.getPayChannel() == null : this.getPayChannel().equals(other.getPayChannel()))
+            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+            && (this.getModifiedTime() == null ? other.getModifiedTime() == null : this.getModifiedTime().equals(other.getModifiedTime()));
+    }
+
+    public String getItemName() {
+        return itemName;
+    }
+
+    public void setItemName(String itemName) {
+        this.itemName = itemName;
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getRequestBody() == null) ? 0 : getRequestBody().hashCode());
+        result = prime * result + ((getOrderSn() == null) ? 0 : getOrderSn().hashCode());
+        result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
+        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
+        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
+        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
+        result = prime * result + ((getItemId() == null) ? 0 : getItemId().hashCode());
+        result = prime * result + ((getItemType() == null) ? 0 : getItemType().hashCode());
+        result = prime * result + ((getItemChannel() == null) ? 0 : getItemChannel().hashCode());
+        result = prime * result + ((getPayChannel() == null) ? 0 : getPayChannel().hashCode());
+        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+        result = prime * result + ((getModifiedTime() == null) ? 0 : getModifiedTime().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", requestBody=").append(requestBody);
+        sb.append(", orderSn=").append(orderSn);
+        sb.append(", openId=").append(openId);
+        sb.append(", mobile=").append(mobile);
+        sb.append(", orderId=").append(orderId);
+        sb.append(", amount=").append(amount);
+        sb.append(", itemId=").append(itemId);
+        sb.append(", itemType=").append(itemType);
+        sb.append(", itemChannel=").append(itemChannel);
+        sb.append(", payChannel=").append(payChannel);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", modifiedTime=").append(modifiedTime);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 187 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/domain/RefundOrder.java

@@ -0,0 +1,187 @@
+package com.mofangchuxing.aska.dao.domain;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * 退款订单
+ * @TableName refund_order
+ */
+public class RefundOrder implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 
+     */
+    private String orderSn;
+
+    /**
+     * 
+     */
+    private String refundOrderSn;
+
+    /**
+     * 
+     */
+    private BigDecimal refundAmount;
+
+    private String message;
+
+    /**
+     * 
+     */
+    private Date createTime;
+
+    /**
+     * 
+     */
+    private Date modifiedTime;
+
+    private static final long serialVersionUID = 1L;
+
+    public String getMessage() {
+        return message;
+    }
+
+    public void setMessage(String message) {
+        this.message = message;
+    }
+
+    /**
+     * 
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 
+     */
+    public String getOrderSn() {
+        return orderSn;
+    }
+
+    /**
+     * 
+     */
+    public void setOrderSn(String orderSn) {
+        this.orderSn = orderSn;
+    }
+
+    /**
+     * 
+     */
+    public String getRefundOrderSn() {
+        return refundOrderSn;
+    }
+
+    /**
+     * 
+     */
+    public void setRefundOrderSn(String refundOrderSn) {
+        this.refundOrderSn = refundOrderSn;
+    }
+
+    /**
+     * 
+     */
+    public BigDecimal getRefundAmount() {
+        return refundAmount;
+    }
+
+    /**
+     * 
+     */
+    public void setRefundAmount(BigDecimal refundAmount) {
+        this.refundAmount = refundAmount;
+    }
+
+    /**
+     * 
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * 
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * 
+     */
+    public Date getModifiedTime() {
+        return modifiedTime;
+    }
+
+    /**
+     * 
+     */
+    public void setModifiedTime(Date modifiedTime) {
+        this.modifiedTime = modifiedTime;
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        RefundOrder other = (RefundOrder) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getOrderSn() == null ? other.getOrderSn() == null : this.getOrderSn().equals(other.getOrderSn()))
+            && (this.getRefundOrderSn() == null ? other.getRefundOrderSn() == null : this.getRefundOrderSn().equals(other.getRefundOrderSn()))
+            && (this.getRefundAmount() == null ? other.getRefundAmount() == null : this.getRefundAmount().equals(other.getRefundAmount()))
+            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+            && (this.getModifiedTime() == null ? other.getModifiedTime() == null : this.getModifiedTime().equals(other.getModifiedTime()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getOrderSn() == null) ? 0 : getOrderSn().hashCode());
+        result = prime * result + ((getRefundOrderSn() == null) ? 0 : getRefundOrderSn().hashCode());
+        result = prime * result + ((getRefundAmount() == null) ? 0 : getRefundAmount().hashCode());
+        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+        result = prime * result + ((getModifiedTime() == null) ? 0 : getModifiedTime().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", orderSn=").append(orderSn);
+        sb.append(", refundOrderSn=").append(refundOrderSn);
+        sb.append(", refundAmount=").append(refundAmount);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", modifiedTime=").append(modifiedTime);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 418 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/domain/SysMenu.java

@@ -0,0 +1,418 @@
+package com.mofangchuxing.aska.dao.domain;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 菜单管理
+ * @TableName sys_menu
+ */
+public class SysMenu implements Serializable {
+    /**
+     * 
+     */
+    private Long menuId;
+
+    /**
+     * 父菜单ID,一级菜单为0
+     */
+    private Long parentId;
+
+    /**
+     * 菜单名称
+     */
+    private String name;
+
+    /**
+     * 菜单URL
+     */
+    private String url;
+
+    /**
+     * 授权(多个用逗号分隔,如:user:list,user:create)
+     */
+    private String perms;
+
+    /**
+     * 类型   0:目录   1:菜单   2:按钮
+     */
+    private Integer type;
+
+    /**
+     * 菜单图标
+     */
+    private String icon;
+
+    /**
+     * 排序
+     */
+    private Integer orderNum;
+
+    /**
+     * 前端路径
+     */
+    private String htmlPath;
+
+    /**
+     * html样式
+     */
+    private String htmlClass;
+
+    /**
+     * 启用状态 0-停用 1-启用
+     */
+    private Integer state;
+
+    /**
+     * 创建人id
+     */
+    private Long createId;
+
+    /**
+     * 创建人姓名
+     */
+    private String createName;
+
+    /**
+     * 创建时间
+     */
+    private Date createTime;
+
+    /**
+     * 菜单深度
+     */
+    private Integer menuLevel;
+
+    /**
+     * 英文名称
+     */
+    private String englishName;
+
+    /**
+     * 
+     */
+    private String role;
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 
+     */
+    public Long getMenuId() {
+        return menuId;
+    }
+
+    /**
+     * 
+     */
+    public void setMenuId(Long menuId) {
+        this.menuId = menuId;
+    }
+
+    /**
+     * 父菜单ID,一级菜单为0
+     */
+    public Long getParentId() {
+        return parentId;
+    }
+
+    /**
+     * 父菜单ID,一级菜单为0
+     */
+    public void setParentId(Long parentId) {
+        this.parentId = parentId;
+    }
+
+    /**
+     * 菜单名称
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * 菜单名称
+     */
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    /**
+     * 菜单URL
+     */
+    public String getUrl() {
+        return url;
+    }
+
+    /**
+     * 菜单URL
+     */
+    public void setUrl(String url) {
+        this.url = url;
+    }
+
+    /**
+     * 授权(多个用逗号分隔,如:user:list,user:create)
+     */
+    public String getPerms() {
+        return perms;
+    }
+
+    /**
+     * 授权(多个用逗号分隔,如:user:list,user:create)
+     */
+    public void setPerms(String perms) {
+        this.perms = perms;
+    }
+
+    /**
+     * 类型   0:目录   1:菜单   2:按钮
+     */
+    public Integer getType() {
+        return type;
+    }
+
+    /**
+     * 类型   0:目录   1:菜单   2:按钮
+     */
+    public void setType(Integer type) {
+        this.type = type;
+    }
+
+    /**
+     * 菜单图标
+     */
+    public String getIcon() {
+        return icon;
+    }
+
+    /**
+     * 菜单图标
+     */
+    public void setIcon(String icon) {
+        this.icon = icon;
+    }
+
+    /**
+     * 排序
+     */
+    public Integer getOrderNum() {
+        return orderNum;
+    }
+
+    /**
+     * 排序
+     */
+    public void setOrderNum(Integer orderNum) {
+        this.orderNum = orderNum;
+    }
+
+    /**
+     * 前端路径
+     */
+    public String getHtmlPath() {
+        return htmlPath;
+    }
+
+    /**
+     * 前端路径
+     */
+    public void setHtmlPath(String htmlPath) {
+        this.htmlPath = htmlPath;
+    }
+
+    /**
+     * html样式
+     */
+    public String getHtmlClass() {
+        return htmlClass;
+    }
+
+    /**
+     * html样式
+     */
+    public void setHtmlClass(String htmlClass) {
+        this.htmlClass = htmlClass;
+    }
+
+    /**
+     * 启用状态 0-停用 1-启用
+     */
+    public Integer getState() {
+        return state;
+    }
+
+    /**
+     * 启用状态 0-停用 1-启用
+     */
+    public void setState(Integer state) {
+        this.state = state;
+    }
+
+    /**
+     * 创建人id
+     */
+    public Long getCreateId() {
+        return createId;
+    }
+
+    /**
+     * 创建人id
+     */
+    public void setCreateId(Long createId) {
+        this.createId = createId;
+    }
+
+    /**
+     * 创建人姓名
+     */
+    public String getCreateName() {
+        return createName;
+    }
+
+    /**
+     * 创建人姓名
+     */
+    public void setCreateName(String createName) {
+        this.createName = createName;
+    }
+
+    /**
+     * 创建时间
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * 创建时间
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * 菜单深度
+     */
+    public Integer getMenuLevel() {
+        return menuLevel;
+    }
+
+    /**
+     * 菜单深度
+     */
+    public void setMenuLevel(Integer menuLevel) {
+        this.menuLevel = menuLevel;
+    }
+
+    /**
+     * 英文名称
+     */
+    public String getEnglishName() {
+        return englishName;
+    }
+
+    /**
+     * 英文名称
+     */
+    public void setEnglishName(String englishName) {
+        this.englishName = englishName;
+    }
+
+    /**
+     * 
+     */
+    public String getRole() {
+        return role;
+    }
+
+    /**
+     * 
+     */
+    public void setRole(String role) {
+        this.role = role;
+    }
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        SysMenu other = (SysMenu) that;
+        return (this.getMenuId() == null ? other.getMenuId() == null : this.getMenuId().equals(other.getMenuId()))
+            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
+            && (this.getPerms() == null ? other.getPerms() == null : this.getPerms().equals(other.getPerms()))
+            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
+            && (this.getIcon() == null ? other.getIcon() == null : this.getIcon().equals(other.getIcon()))
+            && (this.getOrderNum() == null ? other.getOrderNum() == null : this.getOrderNum().equals(other.getOrderNum()))
+            && (this.getHtmlPath() == null ? other.getHtmlPath() == null : this.getHtmlPath().equals(other.getHtmlPath()))
+            && (this.getHtmlClass() == null ? other.getHtmlClass() == null : this.getHtmlClass().equals(other.getHtmlClass()))
+            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
+            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
+            && (this.getCreateName() == null ? other.getCreateName() == null : this.getCreateName().equals(other.getCreateName()))
+            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
+            && (this.getMenuLevel() == null ? other.getMenuLevel() == null : this.getMenuLevel().equals(other.getMenuLevel()))
+            && (this.getEnglishName() == null ? other.getEnglishName() == null : this.getEnglishName().equals(other.getEnglishName()))
+            && (this.getRole() == null ? other.getRole() == null : this.getRole().equals(other.getRole()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getMenuId() == null) ? 0 : getMenuId().hashCode());
+        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
+        result = prime * result + ((getPerms() == null) ? 0 : getPerms().hashCode());
+        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
+        result = prime * result + ((getIcon() == null) ? 0 : getIcon().hashCode());
+        result = prime * result + ((getOrderNum() == null) ? 0 : getOrderNum().hashCode());
+        result = prime * result + ((getHtmlPath() == null) ? 0 : getHtmlPath().hashCode());
+        result = prime * result + ((getHtmlClass() == null) ? 0 : getHtmlClass().hashCode());
+        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
+        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
+        result = prime * result + ((getCreateName() == null) ? 0 : getCreateName().hashCode());
+        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
+        result = prime * result + ((getMenuLevel() == null) ? 0 : getMenuLevel().hashCode());
+        result = prime * result + ((getEnglishName() == null) ? 0 : getEnglishName().hashCode());
+        result = prime * result + ((getRole() == null) ? 0 : getRole().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", menuId=").append(menuId);
+        sb.append(", parentId=").append(parentId);
+        sb.append(", name=").append(name);
+        sb.append(", url=").append(url);
+        sb.append(", perms=").append(perms);
+        sb.append(", type=").append(type);
+        sb.append(", icon=").append(icon);
+        sb.append(", orderNum=").append(orderNum);
+        sb.append(", htmlPath=").append(htmlPath);
+        sb.append(", htmlClass=").append(htmlClass);
+        sb.append(", state=").append(state);
+        sb.append(", createId=").append(createId);
+        sb.append(", createName=").append(createName);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", menuLevel=").append(menuLevel);
+        sb.append(", englishName=").append(englishName);
+        sb.append(", role=").append(role);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 28 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaAccountsMapper.java

@@ -0,0 +1,28 @@
+package com.mofangchuxing.aska.dao.mapper;
+
+import com.mofangchuxing.aska.dao.domain.AskaAccounts;
+import org.apache.ibatis.annotations.Param;
+
+/**
+* @author syl
+* @description 针对表【aska_accounts】的数据库操作Mapper
+* @createDate 2023-07-27 16:42:56
+* @Entity com.mofangchuxing.aska.dao.domain.AskaAccounts
+*/
+public interface AskaAccountsMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(AskaAccounts record);
+
+    int insertSelective(AskaAccounts record);
+
+    AskaAccounts selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(AskaAccounts record);
+
+    int updateByPrimaryKey(AskaAccounts record);
+
+    AskaAccounts selectByUsername(@Param("username") String username);
+
+}

+ 30 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaChannelsMapper.java

@@ -0,0 +1,30 @@
+package com.mofangchuxing.aska.dao.mapper;
+
+import com.mofangchuxing.aska.dao.domain.AskaChannels;
+import com.mofangchuxing.aska.domain.dto.ChannelDto;
+
+import java.util.List;
+
+/**
+* @author syl
+* @description 针对表【aska_channels】的数据库操作Mapper
+* @createDate 2023-08-04 11:26:08
+* @Entity com.mofangchuxing.aska.dao.domain.AskaChannels
+*/
+public interface AskaChannelsMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(AskaChannels record);
+
+    int insertSelective(AskaChannels record);
+
+    AskaChannels selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(AskaChannels record);
+
+    int updateByPrimaryKey(AskaChannels record);
+
+    List<AskaChannels> getAllChannels(ChannelDto channelDto);
+
+}

+ 30 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaRetailsMapper.java

@@ -0,0 +1,30 @@
+package com.mofangchuxing.aska.dao.mapper;
+
+import com.mofangchuxing.aska.dao.domain.AskaRetails;
+import com.mofangchuxing.aska.domain.dto.RetailDto;
+import com.mofangchuxing.aska.domain.utils.PageUtils;
+
+import java.util.List;
+
+/**
+* @author syl
+* @description 针对表【aska_retails】的数据库操作Mapper
+* @createDate 2023-08-01 14:45:09
+* @Entity com.mofangchuxing.aska.dao.domain.AskaRetails
+*/
+public interface AskaRetailsMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(AskaRetails record);
+
+    int insertSelective(AskaRetails record);
+
+    AskaRetails selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(AskaRetails record);
+
+    int updateByPrimaryKey(AskaRetails record);
+
+    List<AskaRetails> listAllRetails(RetailDto retailDto);
+}

+ 28 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/mapper/NotifyRecordMapper.java

@@ -0,0 +1,28 @@
+package com.mofangchuxing.aska.dao.mapper;
+
+import com.mofangchuxing.aska.dao.domain.NotifyRecord;
+import org.apache.ibatis.annotations.Param;
+
+/**
+* @author syl
+* @description 针对表【notify_record】的数据库操作Mapper
+* @createDate 2023-04-11 18:09:32
+* @Entity com.mofangchuxing.aska.dao.domain.NotifyRecord
+*/
+public interface NotifyRecordMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(NotifyRecord record);
+
+    int insertSelective(NotifyRecord record);
+
+    NotifyRecord selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(NotifyRecord record);
+
+    int updateByPrimaryKey(NotifyRecord record);
+
+    NotifyRecord selectByOrderSn(@Param("orderSn")String orderSn);
+
+}

+ 35 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/mapper/PayRequestMapper.java

@@ -0,0 +1,35 @@
+package com.mofangchuxing.aska.dao.mapper;
+
+import com.mofangchuxing.aska.dao.domain.PayRequest;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+* @author syl
+* @description 针对表【pay_request】的数据库操作Mapper
+* @createDate 2023-03-20 15:28:56
+* @Entity generator.domain.PayRequest
+*/
+public interface PayRequestMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(PayRequest record);
+
+    int insertSelective(PayRequest record);
+
+    PayRequest selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(PayRequest record);
+
+    int updateByPrimaryKey(PayRequest record);
+
+    PayRequest selectByOrderSn(String orderSn);
+
+    PayRequest selectPaySuccessByOrderId(String orderId);
+
+    List<PayRequest> selectByUser(@Param("phoneNo")String mobile, @Param("payStatus") Integer payStatus, @Param("itemType")Integer itemType);
+
+    List<PayRequest> selectByOrderId(@Param("phoneNo")String mobile, @Param("orderId") String orderId);
+}

+ 25 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/mapper/RefundOrderMapper.java

@@ -0,0 +1,25 @@
+package com.mofangchuxing.aska.dao.mapper;
+
+import com.mofangchuxing.aska.dao.domain.RefundOrder;
+
+/**
+* @author syl
+* @description 针对表【refund_order(退款订单)】的数据库操作Mapper
+* @createDate 2023-03-23 17:36:40
+* @Entity com.mofangchuxing.aska.dao.domain.RefundOrder
+*/
+public interface RefundOrderMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(RefundOrder record);
+
+    int insertSelective(RefundOrder record);
+
+    RefundOrder selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(RefundOrder record);
+
+    int updateByPrimaryKey(RefundOrder record);
+
+}

+ 31 - 0
dao/src/main/java/com/mofangchuxing/aska/dao/mapper/SysMenuMapper.java

@@ -0,0 +1,31 @@
+package com.mofangchuxing.aska.dao.mapper;
+
+import com.mofangchuxing.aska.dao.domain.SysMenu;
+import com.mofangchuxing.aska.domain.entity.SysMenuEntity;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+* @author syl
+* @description 针对表【sys_menu(菜单管理)】的数据库操作Mapper
+* @createDate 2023-07-28 14:53:18
+* @Entity com.mofangchuxing.aska.dao.domain.SysMenu
+*/
+public interface SysMenuMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(SysMenu record);
+
+    int insertSelective(SysMenu record);
+
+    SysMenu selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(SysMenu record);
+
+    int updateByPrimaryKey(SysMenu record);
+
+    List<SysMenuEntity> listMenuAll(@Param("role") String role);
+
+}

+ 105 - 0
dao/src/main/resources/mapper/AskaAccountsMapper.xml

@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.AskaAccountsMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaAccounts">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="username" column="username" jdbcType="CHAR"/>
+            <result property="name" column="name" jdbcType="CHAR"/>
+            <result property="phone" column="phone" jdbcType="CHAR"/>
+            <result property="pass" column="pass" jdbcType="CHAR"/>
+            <result property="role" column="role" jdbcType="VARCHAR"/>
+            <result property="status" column="status" jdbcType="CHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,username,name,
+        phone,pass,role,
+        status
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_accounts
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="selectByUsername" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_accounts
+        where username = #{username} limit 1
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from aska_accounts
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaAccounts" useGeneratedKeys="true">
+        insert into aska_accounts
+        ( id,username,name
+        ,phone,pass,role
+        ,status)
+        values (#{id,jdbcType=INTEGER},#{username,jdbcType=CHAR},#{name,jdbcType=CHAR}
+        ,#{phone,jdbcType=CHAR},#{pass,jdbcType=CHAR},#{role,jdbcType=VARCHAR}
+        ,#{status,jdbcType=CHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaAccounts" useGeneratedKeys="true">
+        insert into aska_accounts
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="username != null">username,</if>
+                <if test="name != null">name,</if>
+                <if test="phone != null">phone,</if>
+                <if test="pass != null">pass,</if>
+                <if test="role != null">role,</if>
+                <if test="status != null">status,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="username != null">#{username,jdbcType=CHAR},</if>
+                <if test="name != null">#{name,jdbcType=CHAR},</if>
+                <if test="phone != null">#{phone,jdbcType=CHAR},</if>
+                <if test="pass != null">#{pass,jdbcType=CHAR},</if>
+                <if test="role != null">#{role,jdbcType=VARCHAR},</if>
+                <if test="status != null">#{status,jdbcType=CHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaAccounts">
+        update aska_accounts
+        <set>
+                <if test="username != null">
+                    username = #{username,jdbcType=CHAR},
+                </if>
+                <if test="name != null">
+                    name = #{name,jdbcType=CHAR},
+                </if>
+                <if test="phone != null">
+                    phone = #{phone,jdbcType=CHAR},
+                </if>
+                <if test="pass != null">
+                    pass = #{pass,jdbcType=CHAR},
+                </if>
+                <if test="role != null">
+                    role = #{role,jdbcType=VARCHAR},
+                </if>
+                <if test="status != null">
+                    status = #{status,jdbcType=CHAR},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaAccounts">
+        update aska_accounts
+        set 
+            username =  #{username,jdbcType=CHAR},
+            name =  #{name,jdbcType=CHAR},
+            phone =  #{phone,jdbcType=CHAR},
+            pass =  #{pass,jdbcType=CHAR},
+            role =  #{role,jdbcType=VARCHAR},
+            status =  #{status,jdbcType=CHAR}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 162 - 0
dao/src/main/resources/mapper/AskaChannelsMapper.xml

@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.AskaChannelsMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaChannels">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="name" column="name" jdbcType="CHAR"/>
+            <result property="prefix" column="prefix" jdbcType="CHAR"/>
+            <result property="ownerId" column="ownerId" jdbcType="INTEGER"/>
+            <result property="phone" column="phone" jdbcType="CHAR"/>
+            <result property="note" column="note" jdbcType="VARCHAR"/>
+            <result property="account" column="account" jdbcType="VARCHAR"/>
+            <result property="accountname" column="accountName" jdbcType="VARCHAR"/>
+            <result property="apiv3" column="apiv3" jdbcType="VARCHAR"/>
+            <result property="certpath" column="certPath" jdbcType="VARCHAR"/>
+            <result property="tripartite" column="tripartite" jdbcType="CHAR"/>
+            <result property="tripvalue" column="tripvalue" jdbcType="INTEGER"/>
+            <result property="realtimesplit" column="realtimeSplit" jdbcType="INTEGER"/>
+            <result property="status" column="status" jdbcType="CHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,name,prefix,
+        ownerId,phone,note,
+        account,accountName,apiv3,
+        certPath,tripartite,tripvalue,
+        realtimeSplit,status
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_channels
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="getAllChannels" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_channels
+        where 1=1 <if test="channelName != null">
+            and name = #{channelName,jdbcType=CHAR},
+        </if>
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from aska_channels
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaChannels" useGeneratedKeys="true">
+        insert into aska_channels
+        ( id,name,prefix
+        ,ownerId,phone,note
+        ,account,accountName,apiv3
+        ,certPath,tripartite,tripvalue
+        ,realtimeSplit,status)
+        values (#{id,jdbcType=INTEGER},#{name,jdbcType=CHAR},#{prefix,jdbcType=CHAR}
+        ,#{ownerid,jdbcType=INTEGER},#{phone,jdbcType=CHAR},#{note,jdbcType=VARCHAR}
+        ,#{account,jdbcType=VARCHAR},#{accountname,jdbcType=VARCHAR},#{apiv3,jdbcType=VARCHAR}
+        ,#{certpath,jdbcType=VARCHAR},#{tripartite,jdbcType=CHAR},#{tripvalue,jdbcType=INTEGER}
+        ,#{realtimesplit,jdbcType=INTEGER},#{status,jdbcType=CHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaChannels" useGeneratedKeys="true">
+        insert into aska_channels
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="name != null">name,</if>
+                <if test="prefix != null">prefix,</if>
+                <if test="ownerid != null">ownerId,</if>
+                <if test="phone != null">phone,</if>
+                <if test="note != null">note,</if>
+                <if test="account != null">account,</if>
+                <if test="accountname != null">accountName,</if>
+                <if test="apiv3 != null">apiv3,</if>
+                <if test="certpath != null">certPath,</if>
+                <if test="tripartite != null">tripartite,</if>
+                <if test="tripvalue != null">tripvalue,</if>
+                <if test="realtimesplit != null">realtimeSplit,</if>
+                <if test="status != null">status,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="name != null">#{name,jdbcType=CHAR},</if>
+                <if test="prefix != null">#{prefix,jdbcType=CHAR},</if>
+                <if test="ownerid != null">#{ownerid,jdbcType=INTEGER},</if>
+                <if test="phone != null">#{phone,jdbcType=CHAR},</if>
+                <if test="note != null">#{note,jdbcType=VARCHAR},</if>
+                <if test="account != null">#{account,jdbcType=VARCHAR},</if>
+                <if test="accountname != null">#{accountname,jdbcType=VARCHAR},</if>
+                <if test="apiv3 != null">#{apiv3,jdbcType=VARCHAR},</if>
+                <if test="certpath != null">#{certpath,jdbcType=VARCHAR},</if>
+                <if test="tripartite != null">#{tripartite,jdbcType=CHAR},</if>
+                <if test="tripvalue != null">#{tripvalue,jdbcType=INTEGER},</if>
+                <if test="realtimesplit != null">#{realtimesplit,jdbcType=INTEGER},</if>
+                <if test="status != null">#{status,jdbcType=CHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaChannels">
+        update aska_channels
+        <set>
+                <if test="name != null">
+                    name = #{name,jdbcType=CHAR},
+                </if>
+                <if test="prefix != null">
+                    prefix = #{prefix,jdbcType=CHAR},
+                </if>
+                <if test="ownerid != null">
+                    ownerId = #{ownerid,jdbcType=INTEGER},
+                </if>
+                <if test="phone != null">
+                    phone = #{phone,jdbcType=CHAR},
+                </if>
+                <if test="note != null">
+                    note = #{note,jdbcType=VARCHAR},
+                </if>
+                <if test="account != null">
+                    account = #{account,jdbcType=VARCHAR},
+                </if>
+                <if test="accountname != null">
+                    accountName = #{accountname,jdbcType=VARCHAR},
+                </if>
+                <if test="apiv3 != null">
+                    apiv3 = #{apiv3,jdbcType=VARCHAR},
+                </if>
+                <if test="certpath != null">
+                    certPath = #{certpath,jdbcType=VARCHAR},
+                </if>
+                <if test="tripartite != null">
+                    tripartite = #{tripartite,jdbcType=CHAR},
+                </if>
+                <if test="tripvalue != null">
+                    tripvalue = #{tripvalue,jdbcType=INTEGER},
+                </if>
+                <if test="realtimesplit != null">
+                    realtimeSplit = #{realtimesplit,jdbcType=INTEGER},
+                </if>
+                <if test="status != null">
+                    status = #{status,jdbcType=CHAR},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaChannels">
+        update aska_channels
+        set 
+            name =  #{name,jdbcType=CHAR},
+            prefix =  #{prefix,jdbcType=CHAR},
+            ownerId =  #{ownerid,jdbcType=INTEGER},
+            phone =  #{phone,jdbcType=CHAR},
+            note =  #{note,jdbcType=VARCHAR},
+            account =  #{account,jdbcType=VARCHAR},
+            accountName =  #{accountname,jdbcType=VARCHAR},
+            apiv3 =  #{apiv3,jdbcType=VARCHAR},
+            certPath =  #{certpath,jdbcType=VARCHAR},
+            tripartite =  #{tripartite,jdbcType=CHAR},
+            tripvalue =  #{tripvalue,jdbcType=INTEGER},
+            realtimeSplit =  #{realtimesplit,jdbcType=INTEGER},
+            status =  #{status,jdbcType=CHAR}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 183 - 0
dao/src/main/resources/mapper/AskaRetailsMapper.xml

@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.AskaRetailsMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaRetails">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="name" column="name" jdbcType="CHAR"/>
+            <result property="address" column="address" jdbcType="VARCHAR"/>
+            <result property="type" column="type" jdbcType="CHAR"/>
+            <result property="lat" column="lat" jdbcType="DOUBLE"/>
+            <result property="lng" column="lng" jdbcType="DOUBLE"/>
+            <result property="ownerid" column="ownerId" jdbcType="INTEGER"/>
+            <result property="phone" column="phone" jdbcType="CHAR"/>
+            <result property="note" column="note" jdbcType="VARCHAR"/>
+            <result property="account" column="account" jdbcType="VARCHAR"/>
+            <result property="accountname" column="accountName" jdbcType="VARCHAR"/>
+            <result property="apiv3" column="apiv3" jdbcType="VARCHAR"/>
+            <result property="certpath" column="certPath" jdbcType="VARCHAR"/>
+            <result property="tripartite" column="tripartite" jdbcType="CHAR"/>
+            <result property="tripvalue" column="tripvalue" jdbcType="INTEGER"/>
+            <result property="realtimesplit" column="realtimeSplit" jdbcType="INTEGER"/>
+            <result property="status" column="status" jdbcType="CHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,name,address,
+        type,lat,lng,
+        ownerId,phone,note,
+        account,accountName,apiv3,
+        certPath,tripartite,tripvalue,
+        realtimeSplit,status
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_retails
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="listAllRetails" resultType="com.mofangchuxing.aska.dao.domain.AskaRetails">
+        select
+        <include refid="Base_Column_List" />
+        from aska_retails
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from aska_retails
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails" useGeneratedKeys="true">
+        insert into aska_retails
+        ( id,name,address
+        ,type,lat,lng
+        ,ownerId,phone,note
+        ,account,accountName,apiv3
+        ,certPath,tripartite,tripvalue
+        ,realtimeSplit,status)
+        values (#{id,jdbcType=INTEGER},#{name,jdbcType=CHAR},#{address,jdbcType=VARCHAR}
+        ,#{type,jdbcType=CHAR},#{lat,jdbcType=DOUBLE},#{lng,jdbcType=DOUBLE}
+        ,#{ownerid,jdbcType=INTEGER},#{phone,jdbcType=CHAR},#{note,jdbcType=VARCHAR}
+        ,#{account,jdbcType=VARCHAR},#{accountname,jdbcType=VARCHAR},#{apiv3,jdbcType=VARCHAR}
+        ,#{certpath,jdbcType=VARCHAR},#{tripartite,jdbcType=CHAR},#{tripvalue,jdbcType=INTEGER}
+        ,#{realtimesplit,jdbcType=INTEGER},#{status,jdbcType=CHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails" useGeneratedKeys="true">
+        insert into aska_retails
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="name != null">name,</if>
+                <if test="address != null">address,</if>
+                <if test="type != null">type,</if>
+                <if test="lat != null">lat,</if>
+                <if test="lng != null">lng,</if>
+                <if test="ownerid != null">ownerId,</if>
+                <if test="phone != null">phone,</if>
+                <if test="note != null">note,</if>
+                <if test="account != null">account,</if>
+                <if test="accountname != null">accountName,</if>
+                <if test="apiv3 != null">apiv3,</if>
+                <if test="certpath != null">certPath,</if>
+                <if test="tripartite != null">tripartite,</if>
+                <if test="tripvalue != null">tripvalue,</if>
+                <if test="realtimesplit != null">realtimeSplit,</if>
+                <if test="status != null">status,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="name != null">#{name,jdbcType=CHAR},</if>
+                <if test="address != null">#{address,jdbcType=VARCHAR},</if>
+                <if test="type != null">#{type,jdbcType=CHAR},</if>
+                <if test="lat != null">#{lat,jdbcType=DOUBLE},</if>
+                <if test="lng != null">#{lng,jdbcType=DOUBLE},</if>
+                <if test="ownerid != null">#{ownerid,jdbcType=INTEGER},</if>
+                <if test="phone != null">#{phone,jdbcType=CHAR},</if>
+                <if test="note != null">#{note,jdbcType=VARCHAR},</if>
+                <if test="account != null">#{account,jdbcType=VARCHAR},</if>
+                <if test="accountname != null">#{accountname,jdbcType=VARCHAR},</if>
+                <if test="apiv3 != null">#{apiv3,jdbcType=VARCHAR},</if>
+                <if test="certpath != null">#{certpath,jdbcType=VARCHAR},</if>
+                <if test="tripartite != null">#{tripartite,jdbcType=CHAR},</if>
+                <if test="tripvalue != null">#{tripvalue,jdbcType=INTEGER},</if>
+                <if test="realtimesplit != null">#{realtimesplit,jdbcType=INTEGER},</if>
+                <if test="status != null">#{status,jdbcType=CHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails">
+        update aska_retails
+        <set>
+                <if test="name != null">
+                    name = #{name,jdbcType=CHAR},
+                </if>
+                <if test="address != null">
+                    address = #{address,jdbcType=VARCHAR},
+                </if>
+                <if test="type != null">
+                    type = #{type,jdbcType=CHAR},
+                </if>
+                <if test="lat != null">
+                    lat = #{lat,jdbcType=DOUBLE},
+                </if>
+                <if test="lng != null">
+                    lng = #{lng,jdbcType=DOUBLE},
+                </if>
+                <if test="ownerid != null">
+                    ownerId = #{ownerid,jdbcType=INTEGER},
+                </if>
+                <if test="phone != null">
+                    phone = #{phone,jdbcType=CHAR},
+                </if>
+                <if test="note != null">
+                    note = #{note,jdbcType=VARCHAR},
+                </if>
+                <if test="account != null">
+                    account = #{account,jdbcType=VARCHAR},
+                </if>
+                <if test="accountname != null">
+                    accountName = #{accountname,jdbcType=VARCHAR},
+                </if>
+                <if test="apiv3 != null">
+                    apiv3 = #{apiv3,jdbcType=VARCHAR},
+                </if>
+                <if test="certpath != null">
+                    certPath = #{certpath,jdbcType=VARCHAR},
+                </if>
+                <if test="tripartite != null">
+                    tripartite = #{tripartite,jdbcType=CHAR},
+                </if>
+                <if test="tripvalue != null">
+                    tripvalue = #{tripvalue,jdbcType=INTEGER},
+                </if>
+                <if test="realtimesplit != null">
+                    realtimeSplit = #{realtimesplit,jdbcType=INTEGER},
+                </if>
+                <if test="status != null">
+                    status = #{status,jdbcType=CHAR},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails">
+        update aska_retails
+        set 
+            name =  #{name,jdbcType=CHAR},
+            address =  #{address,jdbcType=VARCHAR},
+            type =  #{type,jdbcType=CHAR},
+            lat =  #{lat,jdbcType=DOUBLE},
+            lng =  #{lng,jdbcType=DOUBLE},
+            ownerId =  #{ownerid,jdbcType=INTEGER},
+            phone =  #{phone,jdbcType=CHAR},
+            note =  #{note,jdbcType=VARCHAR},
+            account =  #{account,jdbcType=VARCHAR},
+            accountName =  #{accountname,jdbcType=VARCHAR},
+            apiv3 =  #{apiv3,jdbcType=VARCHAR},
+            certPath =  #{certpath,jdbcType=VARCHAR},
+            tripartite =  #{tripartite,jdbcType=CHAR},
+            tripvalue =  #{tripvalue,jdbcType=INTEGER},
+            realtimeSplit =  #{realtimesplit,jdbcType=INTEGER},
+            status =  #{status,jdbcType=CHAR}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 129 - 0
dao/src/main/resources/mapper/NotifyRecordMapper.xml

@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.NotifyRecordMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.NotifyRecord">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="orderSn" column="order_sn" jdbcType="VARCHAR"/>
+            <result property="mchId" column="mch_id" jdbcType="VARCHAR"/>
+            <result property="openId" column="open_id" jdbcType="VARCHAR"/>
+            <result property="totalFee" column="total_fee" jdbcType="VARCHAR"/>
+            <result property="notifyUrl" column="notify_url" jdbcType="VARCHAR"/>
+            <result property="notifyTimes" column="notify_times" jdbcType="INTEGER"/>
+            <result property="status" column="status" jdbcType="INTEGER"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="modifiedTime" column="modified_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,order_sn,mch_id,
+        open_id,total_fee,notify_url,
+        notify_times,status,create_time,
+        modified_time
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from notify_record
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="selectByOrderSn" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from notify_record
+        where order_sn = #{orderSn} limit 1
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from notify_record
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.NotifyRecord" useGeneratedKeys="true">
+        insert into notify_record
+        ( id,order_sn,mch_id
+        ,open_id,total_fee,notify_url
+        ,notify_times,status,create_time
+        ,modified_time)
+        values (#{id,jdbcType=INTEGER},#{orderSn,jdbcType=VARCHAR},#{mchId,jdbcType=VARCHAR}
+        ,#{openId,jdbcType=VARCHAR},#{totalFee,jdbcType=VARCHAR},#{notifyUrl,jdbcType=VARCHAR}
+        ,#{notifyTimes,jdbcType=INTEGER},#{status,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP}
+        ,#{modifiedTime,jdbcType=TIMESTAMP})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.NotifyRecord" useGeneratedKeys="true">
+        insert into notify_record
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="orderSn != null">order_sn,</if>
+                <if test="mchId != null">mch_id,</if>
+                <if test="openId != null">open_id,</if>
+                <if test="totalFee != null">total_fee,</if>
+                <if test="notifyUrl != null">notify_url,</if>
+                <if test="notifyTimes != null">notify_times,</if>
+                <if test="status != null">status,</if>
+                <if test="createTime != null">create_time,</if>
+                <if test="modifiedTime != null">modified_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="orderSn != null">#{orderSn,jdbcType=VARCHAR},</if>
+                <if test="mchId != null">#{mchId,jdbcType=VARCHAR},</if>
+                <if test="openId != null">#{openId,jdbcType=VARCHAR},</if>
+                <if test="totalFee != null">#{totalFee,jdbcType=VARCHAR},</if>
+                <if test="notifyUrl != null">#{notifyUrl,jdbcType=VARCHAR},</if>
+                <if test="notifyTimes != null">#{notifyTimes,jdbcType=INTEGER},</if>
+                <if test="status != null">#{status,jdbcType=INTEGER},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+                <if test="modifiedTime != null">#{modifiedTime,jdbcType=TIMESTAMP},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.NotifyRecord">
+        update notify_record
+        <set>
+                <if test="orderSn != null">
+                    order_sn = #{orderSn,jdbcType=VARCHAR},
+                </if>
+                <if test="mchId != null">
+                    mch_id = #{mchId,jdbcType=VARCHAR},
+                </if>
+                <if test="openId != null">
+                    open_id = #{openId,jdbcType=VARCHAR},
+                </if>
+                <if test="totalFee != null">
+                    total_fee = #{totalFee,jdbcType=VARCHAR},
+                </if>
+                <if test="notifyUrl != null">
+                    notify_url = #{notifyUrl,jdbcType=VARCHAR},
+                </if>
+                <if test="notifyTimes != null">
+                    notify_times = #{notifyTimes,jdbcType=INTEGER},
+                </if>
+                <if test="status != null">
+                    status = #{status,jdbcType=INTEGER},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="modifiedTime != null">
+                    modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.NotifyRecord">
+        update notify_record
+        set 
+            order_sn =  #{orderSn,jdbcType=VARCHAR},
+            mch_id =  #{mchId,jdbcType=VARCHAR},
+            open_id =  #{openId,jdbcType=VARCHAR},
+            total_fee =  #{totalFee,jdbcType=VARCHAR},
+            notify_url =  #{notifyUrl,jdbcType=VARCHAR},
+            notify_times =  #{notifyTimes,jdbcType=INTEGER},
+            status =  #{status,jdbcType=INTEGER},
+            create_time =  #{createTime,jdbcType=TIMESTAMP},
+            modified_time =  #{modifiedTime,jdbcType=TIMESTAMP}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 199 - 0
dao/src/main/resources/mapper/PayRequestMapper.xml

@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.PayRequestMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.PayRequest">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="requestBody" column="request_body" jdbcType="VARCHAR"/>
+            <result property="orderSn" column="order_sn" jdbcType="VARCHAR"/>
+            <result property="openId" column="open_id" jdbcType="VARCHAR"/>
+            <result property="mobile" column="mobile" jdbcType="VARCHAR"/>
+            <result property="orderId" column="order_id" jdbcType="VARCHAR"/>
+            <result property="amount" column="amount" jdbcType="DECIMAL"/>
+            <result property="itemId" column="item_id" jdbcType="VARCHAR"/>
+            <result property="itemName" column="item_name" jdbcType="VARCHAR"/>
+            <result property="itemType" column="item_type" jdbcType="INTEGER"/>
+            <result property="itemChannel" column="item_channel" jdbcType="VARCHAR"/>
+            <result property="payChannel" column="pay_channel" jdbcType="INTEGER"/>
+            <result property="payStatus" column="pay_status" jdbcType="BIGINT"/>
+            <result property="payAmount" column="pay_amount" jdbcType="DECIMAL"/>
+            <result property="payTime" column="pay_time" jdbcType="TIMESTAMP"/>
+            <result property="callbackUrl" column="callback_url" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="modifiedTime" column="modified_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,request_body,order_sn,
+        open_id,mobile,order_id,
+        amount,item_id,item_name,item_type,
+        item_channel,pay_channel,pay_status,pay_amount,pay_time,callback_url,create_time,
+        modified_time
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from pay_request
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="selectByOrderSn" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from pay_request
+        where order_sn = #{orderSn} limit 1
+    </select>
+    <select id="selectPaySuccessByOrderId" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from pay_request
+        where order_id = #{orderId} and pay_status = 1 limit 1
+    </select>
+    <select id="selectByUser" resultMap="BaseResultMap">
+        select order_sn, order_id, item_id, item_name, pay_status
+        from pay_request
+        where mobile = #{phoneNo} and item_type = #{itemType}
+        <if test="payStatus != null">
+            and pay_status = #{payStatus}
+        </if>
+    </select>
+
+    <select id="selectByOrderId" resultMap="BaseResultMap">
+        select order_sn, order_id, item_id, item_name, pay_status
+        from pay_request
+        where mobile = #{phoneNo} and order_id = #{orderId}
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from pay_request
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.PayRequest" useGeneratedKeys="true">
+        insert into pay_request
+        ( id,request_body,order_sn
+        ,open_id,mobile,order_id
+        ,amount,item_id,item_type
+        ,item_channel,pay_channel,create_time
+        ,modified_time)
+        values (#{id,jdbcType=INTEGER},#{requestBody,jdbcType=VARCHAR},#{orderSn,jdbcType=VARCHAR}
+        ,#{openId,jdbcType=VARCHAR},#{mobile,jdbcType=VARCHAR},#{orderId,jdbcType=VARCHAR}
+        ,#{amount,jdbcType=DECIMAL},#{itemId,jdbcType=VARCHAR},#{itemType,jdbcType=INTEGER}
+        ,#{itemChannel,jdbcType=VARCHAR},#{payChannel,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP}
+        ,#{modifiedTime,jdbcType=TIMESTAMP})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.PayRequest" useGeneratedKeys="true">
+        insert into pay_request
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="requestBody != null">request_body,</if>
+                <if test="orderSn != null">order_sn,</if>
+                <if test="openId != null">open_id,</if>
+                <if test="mobile != null">mobile,</if>
+                <if test="orderId != null">order_id,</if>
+                <if test="amount != null">amount,</if>
+                <if test="itemId != null">item_id,</if>
+                <if test="itemType != null">item_type,</if>
+                <if test="itemChannel != null">item_channel,</if>
+                <if test="payChannel != null">pay_channel,</if>
+                <if test="itemName != null">item_name,</if>
+                <if test="responseBody != null">response_body,</if>
+                <if test="payStatus != null">pay_status,</if>
+                <if test="callbackUrl != null">callback_url,</if>
+                <if test="createTime != null">create_time,</if>
+                <if test="modifiedTime != null">modified_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="requestBody != null">#{requestBody,jdbcType=VARCHAR},</if>
+                <if test="orderSn != null">#{orderSn,jdbcType=VARCHAR},</if>
+                <if test="openId != null">#{openId,jdbcType=VARCHAR},</if>
+                <if test="mobile != null">#{mobile,jdbcType=VARCHAR},</if>
+                <if test="orderId != null">#{orderId,jdbcType=VARCHAR},</if>
+                <if test="amount != null">#{amount,jdbcType=DECIMAL},</if>
+                <if test="itemId != null">#{itemId,jdbcType=VARCHAR},</if>
+                <if test="itemType != null">#{itemType,jdbcType=INTEGER},</if>
+                <if test="itemChannel != null">#{itemChannel,jdbcType=VARCHAR},</if>
+                <if test="payChannel != null">#{payChannel,jdbcType=INTEGER},</if>
+                <if test="itemName != null">#{itemName,jdbcType=VARCHAR},</if>
+                <if test="responseBody != null">#{responseBody,jdbcType=VARCHAR},</if>
+                <if test="payStatus != null">#{payStatus,jdbcType=BIGINT},</if>
+                <if test="callbackUrl != null">#{callbackUrl,jdbcType=VARCHAR},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+                <if test="modifiedTime != null">#{modifiedTime,jdbcType=TIMESTAMP},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.PayRequest">
+        update pay_request
+        <set>
+                <if test="requestBody != null">
+                    request_body = #{requestBody,jdbcType=VARCHAR},
+                </if>
+                <if test="orderSn != null">
+                    order_sn = #{orderSn,jdbcType=VARCHAR},
+                </if>
+                <if test="openId != null">
+                    open_id = #{openId,jdbcType=VARCHAR},
+                </if>
+                <if test="mobile != null">
+                    mobile = #{mobile,jdbcType=VARCHAR},
+                </if>
+                <if test="orderId != null">
+                    order_id = #{orderId,jdbcType=VARCHAR},
+                </if>
+                <if test="amount != null">
+                    amount = #{amount,jdbcType=DECIMAL},
+                </if>
+                <if test="itemId != null">
+                    item_id = #{itemId,jdbcType=VARCHAR},
+                </if>
+                <if test="itemType != null">
+                    item_type = #{itemType,jdbcType=INTEGER},
+                </if>
+                <if test="itemChannel != null">
+                    item_channel = #{itemChannel,jdbcType=VARCHAR},
+                </if>
+                <if test="payChannel != null">
+                    pay_channel = #{payChannel,jdbcType=INTEGER},
+                </if>
+                <if test="responseBody != null">
+                    response_body = #{responseBody,jdbcType=VARCHAR},
+                </if>
+                <if test="payStatus != null">
+                    pay_status = #{payStatus,jdbcType=BIGINT},
+                </if>
+                <if test="payAmount != null">
+                    pay_amount = #{payAmount,jdbcType=DECIMAL},
+                </if>
+                <if test="payTime != null">
+                    pay_time = #{payTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="modifiedTime != null">
+                    modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.PayRequest">
+        update pay_request
+        set 
+            request_body =  #{requestBody,jdbcType=VARCHAR},
+            order_sn =  #{orderSn,jdbcType=VARCHAR},
+            open_id =  #{openId,jdbcType=VARCHAR},
+            mobile =  #{mobile,jdbcType=VARCHAR},
+            order_id =  #{orderId,jdbcType=VARCHAR},
+            amount =  #{amount,jdbcType=DECIMAL},
+            item_id =  #{itemId,jdbcType=VARCHAR},
+            item_type =  #{itemType,jdbcType=INTEGER},
+            item_channel =  #{itemChannel,jdbcType=VARCHAR},
+            pay_channel =  #{payChannel,jdbcType=INTEGER},
+            response_body = #{responseBody,jdbcType=VARCHAR},
+            create_time =  #{createTime,jdbcType=TIMESTAMP},
+            modified_time =  #{modifiedTime,jdbcType=TIMESTAMP}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 93 - 0
dao/src/main/resources/mapper/RefundOrderMapper.xml

@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.RefundOrderMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.RefundOrder">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="orderSn" column="order_sn" jdbcType="VARCHAR"/>
+            <result property="refundOrderSn" column="refund_order_sn" jdbcType="VARCHAR"/>
+            <result property="refundAmount" column="refund_amount" jdbcType="DECIMAL"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="modifiedTime" column="modified_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,order_sn,refund_order_sn,
+        refund_amount,create_time,modified_time
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from refund_order
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from refund_order
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder" useGeneratedKeys="true">
+        insert into refund_order
+        ( id,order_sn,refund_order_sn
+        ,refund_amount,create_time,modified_time
+        )
+        values (#{id,jdbcType=INTEGER},#{orderSn,jdbcType=VARCHAR},#{refundOrderSn,jdbcType=VARCHAR}
+        ,#{refundAmount,jdbcType=DECIMAL},#{createTime,jdbcType=TIMESTAMP},#{modifiedTime,jdbcType=TIMESTAMP}
+        )
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder" useGeneratedKeys="true">
+        insert into refund_order
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="orderSn != null">order_sn,</if>
+                <if test="refundOrderSn != null">refund_order_sn,</if>
+                <if test="refundAmount != null">refund_amount,</if>
+                <if test="message != null">message,</if>
+                <if test="createTime != null">create_time,</if>
+                <if test="modifiedTime != null">modified_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="orderSn != null">#{orderSn,jdbcType=VARCHAR},</if>
+                <if test="refundOrderSn != null">#{refundOrderSn,jdbcType=VARCHAR},</if>
+                <if test="refundAmount != null">#{refundAmount,jdbcType=DECIMAL},</if>
+                <if test="message != null">#{message,jdbcType=VARCHAR},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+                <if test="modifiedTime != null">#{modifiedTime,jdbcType=TIMESTAMP},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder">
+        update refund_order
+        <set>
+                <if test="orderSn != null">
+                    order_sn = #{orderSn,jdbcType=VARCHAR},
+                </if>
+                <if test="refundOrderSn != null">
+                    refund_order_sn = #{refundOrderSn,jdbcType=VARCHAR},
+                </if>
+                <if test="refundAmount != null">
+                    refund_amount = #{refundAmount,jdbcType=DECIMAL},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="modifiedTime != null">
+                    modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder">
+        update refund_order
+        set 
+            order_sn =  #{orderSn,jdbcType=VARCHAR},
+            refund_order_sn =  #{refundOrderSn,jdbcType=VARCHAR},
+            refund_amount =  #{refundAmount,jdbcType=DECIMAL},
+            create_time =  #{createTime,jdbcType=TIMESTAMP},
+            modified_time =  #{modifiedTime,jdbcType=TIMESTAMP}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 198 - 0
dao/src/main/resources/mapper/SysMenuMapper.xml

@@ -0,0 +1,198 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.SysMenuMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.SysMenu">
+            <id property="menuId" column="menu_id" jdbcType="BIGINT"/>
+            <result property="parentId" column="parent_id" jdbcType="BIGINT"/>
+            <result property="name" column="name" jdbcType="VARCHAR"/>
+            <result property="url" column="url" jdbcType="VARCHAR"/>
+            <result property="perms" column="perms" jdbcType="VARCHAR"/>
+            <result property="type" column="type" jdbcType="INTEGER"/>
+            <result property="icon" column="icon" jdbcType="VARCHAR"/>
+            <result property="orderNum" column="order_num" jdbcType="INTEGER"/>
+            <result property="htmlPath" column="html_path" jdbcType="VARCHAR"/>
+            <result property="htmlClass" column="html_class" jdbcType="VARCHAR"/>
+            <result property="state" column="state" jdbcType="TINYINT"/>
+            <result property="createId" column="create_id" jdbcType="BIGINT"/>
+            <result property="createName" column="create_name" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="menuLevel" column="menu_level" jdbcType="INTEGER"/>
+            <result property="englishName" column="english_name" jdbcType="VARCHAR"/>
+            <result property="role" column="role" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        menu_id,parent_id,name,
+        url,perms,type,
+        icon,order_num,html_path,
+        html_class,state,create_id,
+        create_name,create_time,menu_level,
+        english_name,role
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from sys_menu
+        where  menu_id = #{menuId,jdbcType=BIGINT} 
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from sys_menu
+        where  menu_id = #{menuId,jdbcType=BIGINT} 
+    </delete>
+    <insert id="insert" keyColumn="menu_id" keyProperty="menuId" parameterType="com.mofangchuxing.aska.dao.domain.SysMenu" useGeneratedKeys="true">
+        insert into sys_menu
+        ( menu_id,parent_id,name
+        ,url,perms,type
+        ,icon,order_num,html_path
+        ,html_class,state,create_id
+        ,create_name,create_time,menu_level
+        ,english_name,role)
+        values (#{menuId,jdbcType=BIGINT},#{parentId,jdbcType=BIGINT},#{name,jdbcType=VARCHAR}
+        ,#{url,jdbcType=VARCHAR},#{perms,jdbcType=VARCHAR},#{type,jdbcType=INTEGER}
+        ,#{icon,jdbcType=VARCHAR},#{orderNum,jdbcType=INTEGER},#{htmlPath,jdbcType=VARCHAR}
+        ,#{htmlClass,jdbcType=VARCHAR},#{state,jdbcType=TINYINT},#{createId,jdbcType=BIGINT}
+        ,#{createName,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{menuLevel,jdbcType=INTEGER}
+        ,#{englishName,jdbcType=VARCHAR},#{role,jdbcType=VARCHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="menu_id" keyProperty="menuId" parameterType="com.mofangchuxing.aska.dao.domain.SysMenu" useGeneratedKeys="true">
+        insert into sys_menu
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="menuId != null">menu_id,</if>
+                <if test="parentId != null">parent_id,</if>
+                <if test="name != null">name,</if>
+                <if test="url != null">url,</if>
+                <if test="perms != null">perms,</if>
+                <if test="type != null">type,</if>
+                <if test="icon != null">icon,</if>
+                <if test="orderNum != null">order_num,</if>
+                <if test="htmlPath != null">html_path,</if>
+                <if test="htmlClass != null">html_class,</if>
+                <if test="state != null">state,</if>
+                <if test="createId != null">create_id,</if>
+                <if test="createName != null">create_name,</if>
+                <if test="createTime != null">create_time,</if>
+                <if test="menuLevel != null">menu_level,</if>
+                <if test="englishName != null">english_name,</if>
+                <if test="role != null">role,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="menuId != null">#{menuId,jdbcType=BIGINT},</if>
+                <if test="parentId != null">#{parentId,jdbcType=BIGINT},</if>
+                <if test="name != null">#{name,jdbcType=VARCHAR},</if>
+                <if test="url != null">#{url,jdbcType=VARCHAR},</if>
+                <if test="perms != null">#{perms,jdbcType=VARCHAR},</if>
+                <if test="type != null">#{type,jdbcType=INTEGER},</if>
+                <if test="icon != null">#{icon,jdbcType=VARCHAR},</if>
+                <if test="orderNum != null">#{orderNum,jdbcType=INTEGER},</if>
+                <if test="htmlPath != null">#{htmlPath,jdbcType=VARCHAR},</if>
+                <if test="htmlClass != null">#{htmlClass,jdbcType=VARCHAR},</if>
+                <if test="state != null">#{state,jdbcType=TINYINT},</if>
+                <if test="createId != null">#{createId,jdbcType=BIGINT},</if>
+                <if test="createName != null">#{createName,jdbcType=VARCHAR},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+                <if test="menuLevel != null">#{menuLevel,jdbcType=INTEGER},</if>
+                <if test="englishName != null">#{englishName,jdbcType=VARCHAR},</if>
+                <if test="role != null">#{role,jdbcType=VARCHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.SysMenu">
+        update sys_menu
+        <set>
+                <if test="parentId != null">
+                    parent_id = #{parentId,jdbcType=BIGINT},
+                </if>
+                <if test="name != null">
+                    name = #{name,jdbcType=VARCHAR},
+                </if>
+                <if test="url != null">
+                    url = #{url,jdbcType=VARCHAR},
+                </if>
+                <if test="perms != null">
+                    perms = #{perms,jdbcType=VARCHAR},
+                </if>
+                <if test="type != null">
+                    type = #{type,jdbcType=INTEGER},
+                </if>
+                <if test="icon != null">
+                    icon = #{icon,jdbcType=VARCHAR},
+                </if>
+                <if test="orderNum != null">
+                    order_num = #{orderNum,jdbcType=INTEGER},
+                </if>
+                <if test="htmlPath != null">
+                    html_path = #{htmlPath,jdbcType=VARCHAR},
+                </if>
+                <if test="htmlClass != null">
+                    html_class = #{htmlClass,jdbcType=VARCHAR},
+                </if>
+                <if test="state != null">
+                    state = #{state,jdbcType=TINYINT},
+                </if>
+                <if test="createId != null">
+                    create_id = #{createId,jdbcType=BIGINT},
+                </if>
+                <if test="createName != null">
+                    create_name = #{createName,jdbcType=VARCHAR},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="menuLevel != null">
+                    menu_level = #{menuLevel,jdbcType=INTEGER},
+                </if>
+                <if test="englishName != null">
+                    english_name = #{englishName,jdbcType=VARCHAR},
+                </if>
+                <if test="role != null">
+                    role = #{role,jdbcType=VARCHAR},
+                </if>
+        </set>
+        where   menu_id = #{menuId,jdbcType=BIGINT} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.SysMenu">
+        update sys_menu
+        set 
+            parent_id =  #{parentId,jdbcType=BIGINT},
+            name =  #{name,jdbcType=VARCHAR},
+            url =  #{url,jdbcType=VARCHAR},
+            perms =  #{perms,jdbcType=VARCHAR},
+            type =  #{type,jdbcType=INTEGER},
+            icon =  #{icon,jdbcType=VARCHAR},
+            order_num =  #{orderNum,jdbcType=INTEGER},
+            html_path =  #{htmlPath,jdbcType=VARCHAR},
+            html_class =  #{htmlClass,jdbcType=VARCHAR},
+            state =  #{state,jdbcType=TINYINT},
+            create_id =  #{createId,jdbcType=BIGINT},
+            create_name =  #{createName,jdbcType=VARCHAR},
+            create_time =  #{createTime,jdbcType=TIMESTAMP},
+            menu_level =  #{menuLevel,jdbcType=INTEGER},
+            english_name =  #{englishName,jdbcType=VARCHAR},
+            role =  #{role,jdbcType=VARCHAR}
+        where   menu_id = #{menuId,jdbcType=BIGINT} 
+    </update>
+    <select id="listMenuAll" parameterType="java.util.Map"
+            resultType="com.mofangchuxing.aska.domain.entity.SysMenuEntity">
+        SELECT mu.menu_id               AS menuId,
+               mu.`name`                AS name,
+               mu.html_path             AS htmlPath,
+               mu.html_class            AS htmlClass,
+               mu.type                  AS type,
+               mu.order_num             as orderNum,
+               mu.state                 as state,
+               mu.url                   as url,
+               mu.perms                 as perms,
+               mu.menu_id               AS id,
+               mu.`name`                AS label,
+               mu.parent_id             AS parentId,
+               mu.menu_level            as menuLevel,
+               mu.english_name          as englishName
+        FROM sys_menu mu
+        WHERE mu.role = #{role}
+        ORDER BY mu.order_num ASC
+    </select>
+</mapper>

BIN
dao/target/aska-dao-1.0.jar


BIN
dao/target/classes/com/mofangchuxing/aska/dao/config/SqlConfig.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/domain/AskaAccounts.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/domain/AskaChannels.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/domain/AskaRetails.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/domain/NotifyRecord.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/domain/PayRequest.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/domain/RefundOrder.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/domain/SysMenu.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/mapper/AskaAccountsMapper.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/mapper/AskaChannelsMapper.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/mapper/AskaRetailsMapper.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/mapper/NotifyRecordMapper.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/mapper/PayRequestMapper.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/mapper/RefundOrderMapper.class


BIN
dao/target/classes/com/mofangchuxing/aska/dao/mapper/SysMenuMapper.class


+ 105 - 0
dao/target/classes/mapper/AskaAccountsMapper.xml

@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.AskaAccountsMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaAccounts">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="username" column="username" jdbcType="CHAR"/>
+            <result property="name" column="name" jdbcType="CHAR"/>
+            <result property="phone" column="phone" jdbcType="CHAR"/>
+            <result property="pass" column="pass" jdbcType="CHAR"/>
+            <result property="role" column="role" jdbcType="VARCHAR"/>
+            <result property="status" column="status" jdbcType="CHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,username,name,
+        phone,pass,role,
+        status
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_accounts
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="selectByUsername" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_accounts
+        where username = #{username} limit 1
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from aska_accounts
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaAccounts" useGeneratedKeys="true">
+        insert into aska_accounts
+        ( id,username,name
+        ,phone,pass,role
+        ,status)
+        values (#{id,jdbcType=INTEGER},#{username,jdbcType=CHAR},#{name,jdbcType=CHAR}
+        ,#{phone,jdbcType=CHAR},#{pass,jdbcType=CHAR},#{role,jdbcType=VARCHAR}
+        ,#{status,jdbcType=CHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaAccounts" useGeneratedKeys="true">
+        insert into aska_accounts
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="username != null">username,</if>
+                <if test="name != null">name,</if>
+                <if test="phone != null">phone,</if>
+                <if test="pass != null">pass,</if>
+                <if test="role != null">role,</if>
+                <if test="status != null">status,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="username != null">#{username,jdbcType=CHAR},</if>
+                <if test="name != null">#{name,jdbcType=CHAR},</if>
+                <if test="phone != null">#{phone,jdbcType=CHAR},</if>
+                <if test="pass != null">#{pass,jdbcType=CHAR},</if>
+                <if test="role != null">#{role,jdbcType=VARCHAR},</if>
+                <if test="status != null">#{status,jdbcType=CHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaAccounts">
+        update aska_accounts
+        <set>
+                <if test="username != null">
+                    username = #{username,jdbcType=CHAR},
+                </if>
+                <if test="name != null">
+                    name = #{name,jdbcType=CHAR},
+                </if>
+                <if test="phone != null">
+                    phone = #{phone,jdbcType=CHAR},
+                </if>
+                <if test="pass != null">
+                    pass = #{pass,jdbcType=CHAR},
+                </if>
+                <if test="role != null">
+                    role = #{role,jdbcType=VARCHAR},
+                </if>
+                <if test="status != null">
+                    status = #{status,jdbcType=CHAR},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaAccounts">
+        update aska_accounts
+        set 
+            username =  #{username,jdbcType=CHAR},
+            name =  #{name,jdbcType=CHAR},
+            phone =  #{phone,jdbcType=CHAR},
+            pass =  #{pass,jdbcType=CHAR},
+            role =  #{role,jdbcType=VARCHAR},
+            status =  #{status,jdbcType=CHAR}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 162 - 0
dao/target/classes/mapper/AskaChannelsMapper.xml

@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.AskaChannelsMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaChannels">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="name" column="name" jdbcType="CHAR"/>
+            <result property="prefix" column="prefix" jdbcType="CHAR"/>
+            <result property="ownerId" column="ownerId" jdbcType="INTEGER"/>
+            <result property="phone" column="phone" jdbcType="CHAR"/>
+            <result property="note" column="note" jdbcType="VARCHAR"/>
+            <result property="account" column="account" jdbcType="VARCHAR"/>
+            <result property="accountname" column="accountName" jdbcType="VARCHAR"/>
+            <result property="apiv3" column="apiv3" jdbcType="VARCHAR"/>
+            <result property="certpath" column="certPath" jdbcType="VARCHAR"/>
+            <result property="tripartite" column="tripartite" jdbcType="CHAR"/>
+            <result property="tripvalue" column="tripvalue" jdbcType="INTEGER"/>
+            <result property="realtimesplit" column="realtimeSplit" jdbcType="INTEGER"/>
+            <result property="status" column="status" jdbcType="CHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,name,prefix,
+        ownerId,phone,note,
+        account,accountName,apiv3,
+        certPath,tripartite,tripvalue,
+        realtimeSplit,status
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_channels
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="getAllChannels" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_channels
+        where 1=1 <if test="channelName != null">
+            and name = #{channelName,jdbcType=CHAR},
+        </if>
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from aska_channels
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaChannels" useGeneratedKeys="true">
+        insert into aska_channels
+        ( id,name,prefix
+        ,ownerId,phone,note
+        ,account,accountName,apiv3
+        ,certPath,tripartite,tripvalue
+        ,realtimeSplit,status)
+        values (#{id,jdbcType=INTEGER},#{name,jdbcType=CHAR},#{prefix,jdbcType=CHAR}
+        ,#{ownerid,jdbcType=INTEGER},#{phone,jdbcType=CHAR},#{note,jdbcType=VARCHAR}
+        ,#{account,jdbcType=VARCHAR},#{accountname,jdbcType=VARCHAR},#{apiv3,jdbcType=VARCHAR}
+        ,#{certpath,jdbcType=VARCHAR},#{tripartite,jdbcType=CHAR},#{tripvalue,jdbcType=INTEGER}
+        ,#{realtimesplit,jdbcType=INTEGER},#{status,jdbcType=CHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaChannels" useGeneratedKeys="true">
+        insert into aska_channels
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="name != null">name,</if>
+                <if test="prefix != null">prefix,</if>
+                <if test="ownerid != null">ownerId,</if>
+                <if test="phone != null">phone,</if>
+                <if test="note != null">note,</if>
+                <if test="account != null">account,</if>
+                <if test="accountname != null">accountName,</if>
+                <if test="apiv3 != null">apiv3,</if>
+                <if test="certpath != null">certPath,</if>
+                <if test="tripartite != null">tripartite,</if>
+                <if test="tripvalue != null">tripvalue,</if>
+                <if test="realtimesplit != null">realtimeSplit,</if>
+                <if test="status != null">status,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="name != null">#{name,jdbcType=CHAR},</if>
+                <if test="prefix != null">#{prefix,jdbcType=CHAR},</if>
+                <if test="ownerid != null">#{ownerid,jdbcType=INTEGER},</if>
+                <if test="phone != null">#{phone,jdbcType=CHAR},</if>
+                <if test="note != null">#{note,jdbcType=VARCHAR},</if>
+                <if test="account != null">#{account,jdbcType=VARCHAR},</if>
+                <if test="accountname != null">#{accountname,jdbcType=VARCHAR},</if>
+                <if test="apiv3 != null">#{apiv3,jdbcType=VARCHAR},</if>
+                <if test="certpath != null">#{certpath,jdbcType=VARCHAR},</if>
+                <if test="tripartite != null">#{tripartite,jdbcType=CHAR},</if>
+                <if test="tripvalue != null">#{tripvalue,jdbcType=INTEGER},</if>
+                <if test="realtimesplit != null">#{realtimesplit,jdbcType=INTEGER},</if>
+                <if test="status != null">#{status,jdbcType=CHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaChannels">
+        update aska_channels
+        <set>
+                <if test="name != null">
+                    name = #{name,jdbcType=CHAR},
+                </if>
+                <if test="prefix != null">
+                    prefix = #{prefix,jdbcType=CHAR},
+                </if>
+                <if test="ownerid != null">
+                    ownerId = #{ownerid,jdbcType=INTEGER},
+                </if>
+                <if test="phone != null">
+                    phone = #{phone,jdbcType=CHAR},
+                </if>
+                <if test="note != null">
+                    note = #{note,jdbcType=VARCHAR},
+                </if>
+                <if test="account != null">
+                    account = #{account,jdbcType=VARCHAR},
+                </if>
+                <if test="accountname != null">
+                    accountName = #{accountname,jdbcType=VARCHAR},
+                </if>
+                <if test="apiv3 != null">
+                    apiv3 = #{apiv3,jdbcType=VARCHAR},
+                </if>
+                <if test="certpath != null">
+                    certPath = #{certpath,jdbcType=VARCHAR},
+                </if>
+                <if test="tripartite != null">
+                    tripartite = #{tripartite,jdbcType=CHAR},
+                </if>
+                <if test="tripvalue != null">
+                    tripvalue = #{tripvalue,jdbcType=INTEGER},
+                </if>
+                <if test="realtimesplit != null">
+                    realtimeSplit = #{realtimesplit,jdbcType=INTEGER},
+                </if>
+                <if test="status != null">
+                    status = #{status,jdbcType=CHAR},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaChannels">
+        update aska_channels
+        set 
+            name =  #{name,jdbcType=CHAR},
+            prefix =  #{prefix,jdbcType=CHAR},
+            ownerId =  #{ownerid,jdbcType=INTEGER},
+            phone =  #{phone,jdbcType=CHAR},
+            note =  #{note,jdbcType=VARCHAR},
+            account =  #{account,jdbcType=VARCHAR},
+            accountName =  #{accountname,jdbcType=VARCHAR},
+            apiv3 =  #{apiv3,jdbcType=VARCHAR},
+            certPath =  #{certpath,jdbcType=VARCHAR},
+            tripartite =  #{tripartite,jdbcType=CHAR},
+            tripvalue =  #{tripvalue,jdbcType=INTEGER},
+            realtimeSplit =  #{realtimesplit,jdbcType=INTEGER},
+            status =  #{status,jdbcType=CHAR}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 183 - 0
dao/target/classes/mapper/AskaRetailsMapper.xml

@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.AskaRetailsMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaRetails">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="name" column="name" jdbcType="CHAR"/>
+            <result property="address" column="address" jdbcType="VARCHAR"/>
+            <result property="type" column="type" jdbcType="CHAR"/>
+            <result property="lat" column="lat" jdbcType="DOUBLE"/>
+            <result property="lng" column="lng" jdbcType="DOUBLE"/>
+            <result property="ownerid" column="ownerId" jdbcType="INTEGER"/>
+            <result property="phone" column="phone" jdbcType="CHAR"/>
+            <result property="note" column="note" jdbcType="VARCHAR"/>
+            <result property="account" column="account" jdbcType="VARCHAR"/>
+            <result property="accountname" column="accountName" jdbcType="VARCHAR"/>
+            <result property="apiv3" column="apiv3" jdbcType="VARCHAR"/>
+            <result property="certpath" column="certPath" jdbcType="VARCHAR"/>
+            <result property="tripartite" column="tripartite" jdbcType="CHAR"/>
+            <result property="tripvalue" column="tripvalue" jdbcType="INTEGER"/>
+            <result property="realtimesplit" column="realtimeSplit" jdbcType="INTEGER"/>
+            <result property="status" column="status" jdbcType="CHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,name,address,
+        type,lat,lng,
+        ownerId,phone,note,
+        account,accountName,apiv3,
+        certPath,tripartite,tripvalue,
+        realtimeSplit,status
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from aska_retails
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="listAllRetails" resultType="com.mofangchuxing.aska.dao.domain.AskaRetails">
+        select
+        <include refid="Base_Column_List" />
+        from aska_retails
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from aska_retails
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails" useGeneratedKeys="true">
+        insert into aska_retails
+        ( id,name,address
+        ,type,lat,lng
+        ,ownerId,phone,note
+        ,account,accountName,apiv3
+        ,certPath,tripartite,tripvalue
+        ,realtimeSplit,status)
+        values (#{id,jdbcType=INTEGER},#{name,jdbcType=CHAR},#{address,jdbcType=VARCHAR}
+        ,#{type,jdbcType=CHAR},#{lat,jdbcType=DOUBLE},#{lng,jdbcType=DOUBLE}
+        ,#{ownerid,jdbcType=INTEGER},#{phone,jdbcType=CHAR},#{note,jdbcType=VARCHAR}
+        ,#{account,jdbcType=VARCHAR},#{accountname,jdbcType=VARCHAR},#{apiv3,jdbcType=VARCHAR}
+        ,#{certpath,jdbcType=VARCHAR},#{tripartite,jdbcType=CHAR},#{tripvalue,jdbcType=INTEGER}
+        ,#{realtimesplit,jdbcType=INTEGER},#{status,jdbcType=CHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails" useGeneratedKeys="true">
+        insert into aska_retails
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="name != null">name,</if>
+                <if test="address != null">address,</if>
+                <if test="type != null">type,</if>
+                <if test="lat != null">lat,</if>
+                <if test="lng != null">lng,</if>
+                <if test="ownerid != null">ownerId,</if>
+                <if test="phone != null">phone,</if>
+                <if test="note != null">note,</if>
+                <if test="account != null">account,</if>
+                <if test="accountname != null">accountName,</if>
+                <if test="apiv3 != null">apiv3,</if>
+                <if test="certpath != null">certPath,</if>
+                <if test="tripartite != null">tripartite,</if>
+                <if test="tripvalue != null">tripvalue,</if>
+                <if test="realtimesplit != null">realtimeSplit,</if>
+                <if test="status != null">status,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="name != null">#{name,jdbcType=CHAR},</if>
+                <if test="address != null">#{address,jdbcType=VARCHAR},</if>
+                <if test="type != null">#{type,jdbcType=CHAR},</if>
+                <if test="lat != null">#{lat,jdbcType=DOUBLE},</if>
+                <if test="lng != null">#{lng,jdbcType=DOUBLE},</if>
+                <if test="ownerid != null">#{ownerid,jdbcType=INTEGER},</if>
+                <if test="phone != null">#{phone,jdbcType=CHAR},</if>
+                <if test="note != null">#{note,jdbcType=VARCHAR},</if>
+                <if test="account != null">#{account,jdbcType=VARCHAR},</if>
+                <if test="accountname != null">#{accountname,jdbcType=VARCHAR},</if>
+                <if test="apiv3 != null">#{apiv3,jdbcType=VARCHAR},</if>
+                <if test="certpath != null">#{certpath,jdbcType=VARCHAR},</if>
+                <if test="tripartite != null">#{tripartite,jdbcType=CHAR},</if>
+                <if test="tripvalue != null">#{tripvalue,jdbcType=INTEGER},</if>
+                <if test="realtimesplit != null">#{realtimesplit,jdbcType=INTEGER},</if>
+                <if test="status != null">#{status,jdbcType=CHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails">
+        update aska_retails
+        <set>
+                <if test="name != null">
+                    name = #{name,jdbcType=CHAR},
+                </if>
+                <if test="address != null">
+                    address = #{address,jdbcType=VARCHAR},
+                </if>
+                <if test="type != null">
+                    type = #{type,jdbcType=CHAR},
+                </if>
+                <if test="lat != null">
+                    lat = #{lat,jdbcType=DOUBLE},
+                </if>
+                <if test="lng != null">
+                    lng = #{lng,jdbcType=DOUBLE},
+                </if>
+                <if test="ownerid != null">
+                    ownerId = #{ownerid,jdbcType=INTEGER},
+                </if>
+                <if test="phone != null">
+                    phone = #{phone,jdbcType=CHAR},
+                </if>
+                <if test="note != null">
+                    note = #{note,jdbcType=VARCHAR},
+                </if>
+                <if test="account != null">
+                    account = #{account,jdbcType=VARCHAR},
+                </if>
+                <if test="accountname != null">
+                    accountName = #{accountname,jdbcType=VARCHAR},
+                </if>
+                <if test="apiv3 != null">
+                    apiv3 = #{apiv3,jdbcType=VARCHAR},
+                </if>
+                <if test="certpath != null">
+                    certPath = #{certpath,jdbcType=VARCHAR},
+                </if>
+                <if test="tripartite != null">
+                    tripartite = #{tripartite,jdbcType=CHAR},
+                </if>
+                <if test="tripvalue != null">
+                    tripvalue = #{tripvalue,jdbcType=INTEGER},
+                </if>
+                <if test="realtimesplit != null">
+                    realtimeSplit = #{realtimesplit,jdbcType=INTEGER},
+                </if>
+                <if test="status != null">
+                    status = #{status,jdbcType=CHAR},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails">
+        update aska_retails
+        set 
+            name =  #{name,jdbcType=CHAR},
+            address =  #{address,jdbcType=VARCHAR},
+            type =  #{type,jdbcType=CHAR},
+            lat =  #{lat,jdbcType=DOUBLE},
+            lng =  #{lng,jdbcType=DOUBLE},
+            ownerId =  #{ownerid,jdbcType=INTEGER},
+            phone =  #{phone,jdbcType=CHAR},
+            note =  #{note,jdbcType=VARCHAR},
+            account =  #{account,jdbcType=VARCHAR},
+            accountName =  #{accountname,jdbcType=VARCHAR},
+            apiv3 =  #{apiv3,jdbcType=VARCHAR},
+            certPath =  #{certpath,jdbcType=VARCHAR},
+            tripartite =  #{tripartite,jdbcType=CHAR},
+            tripvalue =  #{tripvalue,jdbcType=INTEGER},
+            realtimeSplit =  #{realtimesplit,jdbcType=INTEGER},
+            status =  #{status,jdbcType=CHAR}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 129 - 0
dao/target/classes/mapper/NotifyRecordMapper.xml

@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.NotifyRecordMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.NotifyRecord">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="orderSn" column="order_sn" jdbcType="VARCHAR"/>
+            <result property="mchId" column="mch_id" jdbcType="VARCHAR"/>
+            <result property="openId" column="open_id" jdbcType="VARCHAR"/>
+            <result property="totalFee" column="total_fee" jdbcType="VARCHAR"/>
+            <result property="notifyUrl" column="notify_url" jdbcType="VARCHAR"/>
+            <result property="notifyTimes" column="notify_times" jdbcType="INTEGER"/>
+            <result property="status" column="status" jdbcType="INTEGER"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="modifiedTime" column="modified_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,order_sn,mch_id,
+        open_id,total_fee,notify_url,
+        notify_times,status,create_time,
+        modified_time
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from notify_record
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="selectByOrderSn" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from notify_record
+        where order_sn = #{orderSn} limit 1
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from notify_record
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.NotifyRecord" useGeneratedKeys="true">
+        insert into notify_record
+        ( id,order_sn,mch_id
+        ,open_id,total_fee,notify_url
+        ,notify_times,status,create_time
+        ,modified_time)
+        values (#{id,jdbcType=INTEGER},#{orderSn,jdbcType=VARCHAR},#{mchId,jdbcType=VARCHAR}
+        ,#{openId,jdbcType=VARCHAR},#{totalFee,jdbcType=VARCHAR},#{notifyUrl,jdbcType=VARCHAR}
+        ,#{notifyTimes,jdbcType=INTEGER},#{status,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP}
+        ,#{modifiedTime,jdbcType=TIMESTAMP})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.NotifyRecord" useGeneratedKeys="true">
+        insert into notify_record
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="orderSn != null">order_sn,</if>
+                <if test="mchId != null">mch_id,</if>
+                <if test="openId != null">open_id,</if>
+                <if test="totalFee != null">total_fee,</if>
+                <if test="notifyUrl != null">notify_url,</if>
+                <if test="notifyTimes != null">notify_times,</if>
+                <if test="status != null">status,</if>
+                <if test="createTime != null">create_time,</if>
+                <if test="modifiedTime != null">modified_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="orderSn != null">#{orderSn,jdbcType=VARCHAR},</if>
+                <if test="mchId != null">#{mchId,jdbcType=VARCHAR},</if>
+                <if test="openId != null">#{openId,jdbcType=VARCHAR},</if>
+                <if test="totalFee != null">#{totalFee,jdbcType=VARCHAR},</if>
+                <if test="notifyUrl != null">#{notifyUrl,jdbcType=VARCHAR},</if>
+                <if test="notifyTimes != null">#{notifyTimes,jdbcType=INTEGER},</if>
+                <if test="status != null">#{status,jdbcType=INTEGER},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+                <if test="modifiedTime != null">#{modifiedTime,jdbcType=TIMESTAMP},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.NotifyRecord">
+        update notify_record
+        <set>
+                <if test="orderSn != null">
+                    order_sn = #{orderSn,jdbcType=VARCHAR},
+                </if>
+                <if test="mchId != null">
+                    mch_id = #{mchId,jdbcType=VARCHAR},
+                </if>
+                <if test="openId != null">
+                    open_id = #{openId,jdbcType=VARCHAR},
+                </if>
+                <if test="totalFee != null">
+                    total_fee = #{totalFee,jdbcType=VARCHAR},
+                </if>
+                <if test="notifyUrl != null">
+                    notify_url = #{notifyUrl,jdbcType=VARCHAR},
+                </if>
+                <if test="notifyTimes != null">
+                    notify_times = #{notifyTimes,jdbcType=INTEGER},
+                </if>
+                <if test="status != null">
+                    status = #{status,jdbcType=INTEGER},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="modifiedTime != null">
+                    modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.NotifyRecord">
+        update notify_record
+        set 
+            order_sn =  #{orderSn,jdbcType=VARCHAR},
+            mch_id =  #{mchId,jdbcType=VARCHAR},
+            open_id =  #{openId,jdbcType=VARCHAR},
+            total_fee =  #{totalFee,jdbcType=VARCHAR},
+            notify_url =  #{notifyUrl,jdbcType=VARCHAR},
+            notify_times =  #{notifyTimes,jdbcType=INTEGER},
+            status =  #{status,jdbcType=INTEGER},
+            create_time =  #{createTime,jdbcType=TIMESTAMP},
+            modified_time =  #{modifiedTime,jdbcType=TIMESTAMP}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 199 - 0
dao/target/classes/mapper/PayRequestMapper.xml

@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.PayRequestMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.PayRequest">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="requestBody" column="request_body" jdbcType="VARCHAR"/>
+            <result property="orderSn" column="order_sn" jdbcType="VARCHAR"/>
+            <result property="openId" column="open_id" jdbcType="VARCHAR"/>
+            <result property="mobile" column="mobile" jdbcType="VARCHAR"/>
+            <result property="orderId" column="order_id" jdbcType="VARCHAR"/>
+            <result property="amount" column="amount" jdbcType="DECIMAL"/>
+            <result property="itemId" column="item_id" jdbcType="VARCHAR"/>
+            <result property="itemName" column="item_name" jdbcType="VARCHAR"/>
+            <result property="itemType" column="item_type" jdbcType="INTEGER"/>
+            <result property="itemChannel" column="item_channel" jdbcType="VARCHAR"/>
+            <result property="payChannel" column="pay_channel" jdbcType="INTEGER"/>
+            <result property="payStatus" column="pay_status" jdbcType="BIGINT"/>
+            <result property="payAmount" column="pay_amount" jdbcType="DECIMAL"/>
+            <result property="payTime" column="pay_time" jdbcType="TIMESTAMP"/>
+            <result property="callbackUrl" column="callback_url" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="modifiedTime" column="modified_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,request_body,order_sn,
+        open_id,mobile,order_id,
+        amount,item_id,item_name,item_type,
+        item_channel,pay_channel,pay_status,pay_amount,pay_time,callback_url,create_time,
+        modified_time
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from pay_request
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+    <select id="selectByOrderSn" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from pay_request
+        where order_sn = #{orderSn} limit 1
+    </select>
+    <select id="selectPaySuccessByOrderId" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from pay_request
+        where order_id = #{orderId} and pay_status = 1 limit 1
+    </select>
+    <select id="selectByUser" resultMap="BaseResultMap">
+        select order_sn, order_id, item_id, item_name, pay_status
+        from pay_request
+        where mobile = #{phoneNo} and item_type = #{itemType}
+        <if test="payStatus != null">
+            and pay_status = #{payStatus}
+        </if>
+    </select>
+
+    <select id="selectByOrderId" resultMap="BaseResultMap">
+        select order_sn, order_id, item_id, item_name, pay_status
+        from pay_request
+        where mobile = #{phoneNo} and order_id = #{orderId}
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from pay_request
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.PayRequest" useGeneratedKeys="true">
+        insert into pay_request
+        ( id,request_body,order_sn
+        ,open_id,mobile,order_id
+        ,amount,item_id,item_type
+        ,item_channel,pay_channel,create_time
+        ,modified_time)
+        values (#{id,jdbcType=INTEGER},#{requestBody,jdbcType=VARCHAR},#{orderSn,jdbcType=VARCHAR}
+        ,#{openId,jdbcType=VARCHAR},#{mobile,jdbcType=VARCHAR},#{orderId,jdbcType=VARCHAR}
+        ,#{amount,jdbcType=DECIMAL},#{itemId,jdbcType=VARCHAR},#{itemType,jdbcType=INTEGER}
+        ,#{itemChannel,jdbcType=VARCHAR},#{payChannel,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP}
+        ,#{modifiedTime,jdbcType=TIMESTAMP})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.PayRequest" useGeneratedKeys="true">
+        insert into pay_request
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="requestBody != null">request_body,</if>
+                <if test="orderSn != null">order_sn,</if>
+                <if test="openId != null">open_id,</if>
+                <if test="mobile != null">mobile,</if>
+                <if test="orderId != null">order_id,</if>
+                <if test="amount != null">amount,</if>
+                <if test="itemId != null">item_id,</if>
+                <if test="itemType != null">item_type,</if>
+                <if test="itemChannel != null">item_channel,</if>
+                <if test="payChannel != null">pay_channel,</if>
+                <if test="itemName != null">item_name,</if>
+                <if test="responseBody != null">response_body,</if>
+                <if test="payStatus != null">pay_status,</if>
+                <if test="callbackUrl != null">callback_url,</if>
+                <if test="createTime != null">create_time,</if>
+                <if test="modifiedTime != null">modified_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="requestBody != null">#{requestBody,jdbcType=VARCHAR},</if>
+                <if test="orderSn != null">#{orderSn,jdbcType=VARCHAR},</if>
+                <if test="openId != null">#{openId,jdbcType=VARCHAR},</if>
+                <if test="mobile != null">#{mobile,jdbcType=VARCHAR},</if>
+                <if test="orderId != null">#{orderId,jdbcType=VARCHAR},</if>
+                <if test="amount != null">#{amount,jdbcType=DECIMAL},</if>
+                <if test="itemId != null">#{itemId,jdbcType=VARCHAR},</if>
+                <if test="itemType != null">#{itemType,jdbcType=INTEGER},</if>
+                <if test="itemChannel != null">#{itemChannel,jdbcType=VARCHAR},</if>
+                <if test="payChannel != null">#{payChannel,jdbcType=INTEGER},</if>
+                <if test="itemName != null">#{itemName,jdbcType=VARCHAR},</if>
+                <if test="responseBody != null">#{responseBody,jdbcType=VARCHAR},</if>
+                <if test="payStatus != null">#{payStatus,jdbcType=BIGINT},</if>
+                <if test="callbackUrl != null">#{callbackUrl,jdbcType=VARCHAR},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+                <if test="modifiedTime != null">#{modifiedTime,jdbcType=TIMESTAMP},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.PayRequest">
+        update pay_request
+        <set>
+                <if test="requestBody != null">
+                    request_body = #{requestBody,jdbcType=VARCHAR},
+                </if>
+                <if test="orderSn != null">
+                    order_sn = #{orderSn,jdbcType=VARCHAR},
+                </if>
+                <if test="openId != null">
+                    open_id = #{openId,jdbcType=VARCHAR},
+                </if>
+                <if test="mobile != null">
+                    mobile = #{mobile,jdbcType=VARCHAR},
+                </if>
+                <if test="orderId != null">
+                    order_id = #{orderId,jdbcType=VARCHAR},
+                </if>
+                <if test="amount != null">
+                    amount = #{amount,jdbcType=DECIMAL},
+                </if>
+                <if test="itemId != null">
+                    item_id = #{itemId,jdbcType=VARCHAR},
+                </if>
+                <if test="itemType != null">
+                    item_type = #{itemType,jdbcType=INTEGER},
+                </if>
+                <if test="itemChannel != null">
+                    item_channel = #{itemChannel,jdbcType=VARCHAR},
+                </if>
+                <if test="payChannel != null">
+                    pay_channel = #{payChannel,jdbcType=INTEGER},
+                </if>
+                <if test="responseBody != null">
+                    response_body = #{responseBody,jdbcType=VARCHAR},
+                </if>
+                <if test="payStatus != null">
+                    pay_status = #{payStatus,jdbcType=BIGINT},
+                </if>
+                <if test="payAmount != null">
+                    pay_amount = #{payAmount,jdbcType=DECIMAL},
+                </if>
+                <if test="payTime != null">
+                    pay_time = #{payTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="modifiedTime != null">
+                    modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.PayRequest">
+        update pay_request
+        set 
+            request_body =  #{requestBody,jdbcType=VARCHAR},
+            order_sn =  #{orderSn,jdbcType=VARCHAR},
+            open_id =  #{openId,jdbcType=VARCHAR},
+            mobile =  #{mobile,jdbcType=VARCHAR},
+            order_id =  #{orderId,jdbcType=VARCHAR},
+            amount =  #{amount,jdbcType=DECIMAL},
+            item_id =  #{itemId,jdbcType=VARCHAR},
+            item_type =  #{itemType,jdbcType=INTEGER},
+            item_channel =  #{itemChannel,jdbcType=VARCHAR},
+            pay_channel =  #{payChannel,jdbcType=INTEGER},
+            response_body = #{responseBody,jdbcType=VARCHAR},
+            create_time =  #{createTime,jdbcType=TIMESTAMP},
+            modified_time =  #{modifiedTime,jdbcType=TIMESTAMP}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 93 - 0
dao/target/classes/mapper/RefundOrderMapper.xml

@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.RefundOrderMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.RefundOrder">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="orderSn" column="order_sn" jdbcType="VARCHAR"/>
+            <result property="refundOrderSn" column="refund_order_sn" jdbcType="VARCHAR"/>
+            <result property="refundAmount" column="refund_amount" jdbcType="DECIMAL"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="modifiedTime" column="modified_time" jdbcType="TIMESTAMP"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,order_sn,refund_order_sn,
+        refund_amount,create_time,modified_time
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from refund_order
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from refund_order
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder" useGeneratedKeys="true">
+        insert into refund_order
+        ( id,order_sn,refund_order_sn
+        ,refund_amount,create_time,modified_time
+        )
+        values (#{id,jdbcType=INTEGER},#{orderSn,jdbcType=VARCHAR},#{refundOrderSn,jdbcType=VARCHAR}
+        ,#{refundAmount,jdbcType=DECIMAL},#{createTime,jdbcType=TIMESTAMP},#{modifiedTime,jdbcType=TIMESTAMP}
+        )
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder" useGeneratedKeys="true">
+        insert into refund_order
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="orderSn != null">order_sn,</if>
+                <if test="refundOrderSn != null">refund_order_sn,</if>
+                <if test="refundAmount != null">refund_amount,</if>
+                <if test="message != null">message,</if>
+                <if test="createTime != null">create_time,</if>
+                <if test="modifiedTime != null">modified_time,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="orderSn != null">#{orderSn,jdbcType=VARCHAR},</if>
+                <if test="refundOrderSn != null">#{refundOrderSn,jdbcType=VARCHAR},</if>
+                <if test="refundAmount != null">#{refundAmount,jdbcType=DECIMAL},</if>
+                <if test="message != null">#{message,jdbcType=VARCHAR},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+                <if test="modifiedTime != null">#{modifiedTime,jdbcType=TIMESTAMP},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder">
+        update refund_order
+        <set>
+                <if test="orderSn != null">
+                    order_sn = #{orderSn,jdbcType=VARCHAR},
+                </if>
+                <if test="refundOrderSn != null">
+                    refund_order_sn = #{refundOrderSn,jdbcType=VARCHAR},
+                </if>
+                <if test="refundAmount != null">
+                    refund_amount = #{refundAmount,jdbcType=DECIMAL},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="modifiedTime != null">
+                    modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.RefundOrder">
+        update refund_order
+        set 
+            order_sn =  #{orderSn,jdbcType=VARCHAR},
+            refund_order_sn =  #{refundOrderSn,jdbcType=VARCHAR},
+            refund_amount =  #{refundAmount,jdbcType=DECIMAL},
+            create_time =  #{createTime,jdbcType=TIMESTAMP},
+            modified_time =  #{modifiedTime,jdbcType=TIMESTAMP}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 198 - 0
dao/target/classes/mapper/SysMenuMapper.xml

@@ -0,0 +1,198 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.mofangchuxing.aska.dao.mapper.SysMenuMapper">
+
+    <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.SysMenu">
+            <id property="menuId" column="menu_id" jdbcType="BIGINT"/>
+            <result property="parentId" column="parent_id" jdbcType="BIGINT"/>
+            <result property="name" column="name" jdbcType="VARCHAR"/>
+            <result property="url" column="url" jdbcType="VARCHAR"/>
+            <result property="perms" column="perms" jdbcType="VARCHAR"/>
+            <result property="type" column="type" jdbcType="INTEGER"/>
+            <result property="icon" column="icon" jdbcType="VARCHAR"/>
+            <result property="orderNum" column="order_num" jdbcType="INTEGER"/>
+            <result property="htmlPath" column="html_path" jdbcType="VARCHAR"/>
+            <result property="htmlClass" column="html_class" jdbcType="VARCHAR"/>
+            <result property="state" column="state" jdbcType="TINYINT"/>
+            <result property="createId" column="create_id" jdbcType="BIGINT"/>
+            <result property="createName" column="create_name" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="menuLevel" column="menu_level" jdbcType="INTEGER"/>
+            <result property="englishName" column="english_name" jdbcType="VARCHAR"/>
+            <result property="role" column="role" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        menu_id,parent_id,name,
+        url,perms,type,
+        icon,order_num,html_path,
+        html_class,state,create_id,
+        create_name,create_time,menu_level,
+        english_name,role
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from sys_menu
+        where  menu_id = #{menuId,jdbcType=BIGINT} 
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from sys_menu
+        where  menu_id = #{menuId,jdbcType=BIGINT} 
+    </delete>
+    <insert id="insert" keyColumn="menu_id" keyProperty="menuId" parameterType="com.mofangchuxing.aska.dao.domain.SysMenu" useGeneratedKeys="true">
+        insert into sys_menu
+        ( menu_id,parent_id,name
+        ,url,perms,type
+        ,icon,order_num,html_path
+        ,html_class,state,create_id
+        ,create_name,create_time,menu_level
+        ,english_name,role)
+        values (#{menuId,jdbcType=BIGINT},#{parentId,jdbcType=BIGINT},#{name,jdbcType=VARCHAR}
+        ,#{url,jdbcType=VARCHAR},#{perms,jdbcType=VARCHAR},#{type,jdbcType=INTEGER}
+        ,#{icon,jdbcType=VARCHAR},#{orderNum,jdbcType=INTEGER},#{htmlPath,jdbcType=VARCHAR}
+        ,#{htmlClass,jdbcType=VARCHAR},#{state,jdbcType=TINYINT},#{createId,jdbcType=BIGINT}
+        ,#{createName,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{menuLevel,jdbcType=INTEGER}
+        ,#{englishName,jdbcType=VARCHAR},#{role,jdbcType=VARCHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="menu_id" keyProperty="menuId" parameterType="com.mofangchuxing.aska.dao.domain.SysMenu" useGeneratedKeys="true">
+        insert into sys_menu
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="menuId != null">menu_id,</if>
+                <if test="parentId != null">parent_id,</if>
+                <if test="name != null">name,</if>
+                <if test="url != null">url,</if>
+                <if test="perms != null">perms,</if>
+                <if test="type != null">type,</if>
+                <if test="icon != null">icon,</if>
+                <if test="orderNum != null">order_num,</if>
+                <if test="htmlPath != null">html_path,</if>
+                <if test="htmlClass != null">html_class,</if>
+                <if test="state != null">state,</if>
+                <if test="createId != null">create_id,</if>
+                <if test="createName != null">create_name,</if>
+                <if test="createTime != null">create_time,</if>
+                <if test="menuLevel != null">menu_level,</if>
+                <if test="englishName != null">english_name,</if>
+                <if test="role != null">role,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="menuId != null">#{menuId,jdbcType=BIGINT},</if>
+                <if test="parentId != null">#{parentId,jdbcType=BIGINT},</if>
+                <if test="name != null">#{name,jdbcType=VARCHAR},</if>
+                <if test="url != null">#{url,jdbcType=VARCHAR},</if>
+                <if test="perms != null">#{perms,jdbcType=VARCHAR},</if>
+                <if test="type != null">#{type,jdbcType=INTEGER},</if>
+                <if test="icon != null">#{icon,jdbcType=VARCHAR},</if>
+                <if test="orderNum != null">#{orderNum,jdbcType=INTEGER},</if>
+                <if test="htmlPath != null">#{htmlPath,jdbcType=VARCHAR},</if>
+                <if test="htmlClass != null">#{htmlClass,jdbcType=VARCHAR},</if>
+                <if test="state != null">#{state,jdbcType=TINYINT},</if>
+                <if test="createId != null">#{createId,jdbcType=BIGINT},</if>
+                <if test="createName != null">#{createName,jdbcType=VARCHAR},</if>
+                <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
+                <if test="menuLevel != null">#{menuLevel,jdbcType=INTEGER},</if>
+                <if test="englishName != null">#{englishName,jdbcType=VARCHAR},</if>
+                <if test="role != null">#{role,jdbcType=VARCHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.SysMenu">
+        update sys_menu
+        <set>
+                <if test="parentId != null">
+                    parent_id = #{parentId,jdbcType=BIGINT},
+                </if>
+                <if test="name != null">
+                    name = #{name,jdbcType=VARCHAR},
+                </if>
+                <if test="url != null">
+                    url = #{url,jdbcType=VARCHAR},
+                </if>
+                <if test="perms != null">
+                    perms = #{perms,jdbcType=VARCHAR},
+                </if>
+                <if test="type != null">
+                    type = #{type,jdbcType=INTEGER},
+                </if>
+                <if test="icon != null">
+                    icon = #{icon,jdbcType=VARCHAR},
+                </if>
+                <if test="orderNum != null">
+                    order_num = #{orderNum,jdbcType=INTEGER},
+                </if>
+                <if test="htmlPath != null">
+                    html_path = #{htmlPath,jdbcType=VARCHAR},
+                </if>
+                <if test="htmlClass != null">
+                    html_class = #{htmlClass,jdbcType=VARCHAR},
+                </if>
+                <if test="state != null">
+                    state = #{state,jdbcType=TINYINT},
+                </if>
+                <if test="createId != null">
+                    create_id = #{createId,jdbcType=BIGINT},
+                </if>
+                <if test="createName != null">
+                    create_name = #{createName,jdbcType=VARCHAR},
+                </if>
+                <if test="createTime != null">
+                    create_time = #{createTime,jdbcType=TIMESTAMP},
+                </if>
+                <if test="menuLevel != null">
+                    menu_level = #{menuLevel,jdbcType=INTEGER},
+                </if>
+                <if test="englishName != null">
+                    english_name = #{englishName,jdbcType=VARCHAR},
+                </if>
+                <if test="role != null">
+                    role = #{role,jdbcType=VARCHAR},
+                </if>
+        </set>
+        where   menu_id = #{menuId,jdbcType=BIGINT} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.SysMenu">
+        update sys_menu
+        set 
+            parent_id =  #{parentId,jdbcType=BIGINT},
+            name =  #{name,jdbcType=VARCHAR},
+            url =  #{url,jdbcType=VARCHAR},
+            perms =  #{perms,jdbcType=VARCHAR},
+            type =  #{type,jdbcType=INTEGER},
+            icon =  #{icon,jdbcType=VARCHAR},
+            order_num =  #{orderNum,jdbcType=INTEGER},
+            html_path =  #{htmlPath,jdbcType=VARCHAR},
+            html_class =  #{htmlClass,jdbcType=VARCHAR},
+            state =  #{state,jdbcType=TINYINT},
+            create_id =  #{createId,jdbcType=BIGINT},
+            create_name =  #{createName,jdbcType=VARCHAR},
+            create_time =  #{createTime,jdbcType=TIMESTAMP},
+            menu_level =  #{menuLevel,jdbcType=INTEGER},
+            english_name =  #{englishName,jdbcType=VARCHAR},
+            role =  #{role,jdbcType=VARCHAR}
+        where   menu_id = #{menuId,jdbcType=BIGINT} 
+    </update>
+    <select id="listMenuAll" parameterType="java.util.Map"
+            resultType="com.mofangchuxing.aska.domain.entity.SysMenuEntity">
+        SELECT mu.menu_id               AS menuId,
+               mu.`name`                AS name,
+               mu.html_path             AS htmlPath,
+               mu.html_class            AS htmlClass,
+               mu.type                  AS type,
+               mu.order_num             as orderNum,
+               mu.state                 as state,
+               mu.url                   as url,
+               mu.perms                 as perms,
+               mu.menu_id               AS id,
+               mu.`name`                AS label,
+               mu.parent_id             AS parentId,
+               mu.menu_level            as menuLevel,
+               mu.english_name          as englishName
+        FROM sys_menu mu
+        WHERE mu.role = #{role}
+        ORDER BY mu.order_num ASC
+    </select>
+</mapper>

+ 4 - 0
dao/target/maven-archiver/pom.properties

@@ -0,0 +1,4 @@
+#Created by Apache Maven 3.8.6
+version=1.0
+groupId=com.mofangchuxing
+artifactId=aska-dao

+ 15 - 0
dao/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@@ -0,0 +1,15 @@
+com/mofangchuxing/aska/dao/mapper/AskaRetailsMapper.class
+com/mofangchuxing/aska/dao/domain/RefundOrder.class
+com/mofangchuxing/aska/dao/domain/AskaChannels.class
+com/mofangchuxing/aska/dao/mapper/SysMenuMapper.class
+com/mofangchuxing/aska/dao/domain/NotifyRecord.class
+com/mofangchuxing/aska/dao/mapper/AskaAccountsMapper.class
+com/mofangchuxing/aska/dao/domain/AskaRetails.class
+com/mofangchuxing/aska/dao/config/SqlConfig.class
+com/mofangchuxing/aska/dao/mapper/NotifyRecordMapper.class
+com/mofangchuxing/aska/dao/domain/AskaAccounts.class
+com/mofangchuxing/aska/dao/mapper/RefundOrderMapper.class
+com/mofangchuxing/aska/dao/mapper/PayRequestMapper.class
+com/mofangchuxing/aska/dao/domain/SysMenu.class
+com/mofangchuxing/aska/dao/mapper/AskaChannelsMapper.class
+com/mofangchuxing/aska/dao/domain/PayRequest.class

+ 15 - 0
dao/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

@@ -0,0 +1,15 @@
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/config/SqlConfig.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/domain/PayRequest.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/mapper/SysMenuMapper.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaChannelsMapper.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/domain/SysMenu.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/mapper/PayRequestMapper.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaAccountsMapper.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/mapper/AskaRetailsMapper.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/domain/RefundOrder.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/domain/NotifyRecord.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaRetails.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaChannels.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/domain/AskaAccounts.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/mapper/RefundOrderMapper.java
+/Users/syl/Desktop/work/aska/dao/src/main/java/com/mofangchuxing/aska/dao/mapper/NotifyRecordMapper.java

+ 0 - 0
dao/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst


+ 41 - 0
domain/pom.xml

@@ -0,0 +1,41 @@
+<?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>aska</artifactId>
+        <groupId>com.mofangchuxing</groupId>
+        <version>1.0</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>aska-domain</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>javax.validation</groupId>
+            <artifactId>validation-api</artifactId>
+        </dependency>
+        <!--分页工具类-->
+        <dependency>
+            <groupId>com.github.pagehelper</groupId>
+            <artifactId>pagehelper-spring-boot-starter</artifactId>
+            <version>1.4.1</version>
+        </dependency>
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus</artifactId>
+            <version>${mybatisplus.version}</version>
+        </dependency>
+    </dependencies>
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+    </properties>
+
+</project>

+ 53 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/BizException.java

@@ -0,0 +1,53 @@
+package com.mofangchuxing.aska.domain;
+
+
+import com.mofangchuxing.aska.domain.enums.ResultEnum;
+
+public class BizException extends RuntimeException{
+    public static final long serialVersionUID = -1L;
+    private int code;
+    private String msg;
+
+    public BizException() {
+    }
+    public BizException(String msg) {
+        super(msg);
+        this.msg = msg;
+    }
+    public BizException(int code, String msg) {
+        super(msg);
+        this.code = code;
+        this.msg = msg;
+    }
+    public BizException(ResultEnum resultEnum) {
+        super(resultEnum.getMessage());
+        this.code = resultEnum.getCode();
+        this.msg = resultEnum.getMessage();
+    }
+    public BizException(Throwable cause, int code, String message) {
+        super(cause);
+        this.code = code;
+        this.msg = message;
+    }
+
+    public BizException(Throwable cause) {
+        super(cause);
+    }
+
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+}

+ 36 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/Constant.java

@@ -0,0 +1,36 @@
+package com.mofangchuxing.aska.domain;
+
+/**
+ * @Author: syl
+ * @Date: 2023/7/28
+ * @Description:
+ */
+public class Constant {
+    /**
+     * 菜单类型
+     */
+    public enum MenuType {
+        /**
+         * 目录
+         */
+        CATALOG(0),
+        /**
+         * 菜单
+         */
+        MENU(1),
+        /**
+         * 按钮
+         */
+        BUTTON(2);
+
+        private int value;
+
+        MenuType(int value) {
+            this.value = value;
+        }
+
+        public int getValue() {
+            return value;
+        }
+    }
+}

+ 26 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/DelayObjectWrapper.java

@@ -0,0 +1,26 @@
+package com.mofangchuxing.aska.domain;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @Author: syl
+ * @Date: 2023/4/11
+ * @Description:
+ */
+@Data
+public class DelayObjectWrapper<T> implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    //用于撤销定时任务,实际是到时间后判断有没有被删除的标志位, 根据此字段唯一对应消息
+    private String unionKey;
+
+    /**
+     * 事件事件
+     */
+    private Long timestamp;
+
+    private T data;
+
+}

+ 47 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/PayRequestDto.java

@@ -0,0 +1,47 @@
+package com.mofangchuxing.aska.domain;
+
+import lombok.Data;
+import lombok.NonNull;
+
+import javax.validation.constraints.NotNull;
+import java.math.BigDecimal;
+
+/**
+ * @Author: syl
+ * @Date: 2023/3/20
+ * @Description:
+ */
+@Data
+public class PayRequestDto {
+
+    @NotNull
+    private String userId;
+    @NotNull
+    private String phoneNo;
+    @NotNull
+    private String orderId;
+    @NotNull
+    private BigDecimal amount;
+
+    private String couponId;
+
+    private String couponType;
+
+    private String channel;
+
+    private String orderType;
+
+    private String itemId;
+
+    private String paymentId;
+
+    private String message;
+
+    private Boolean paySuccess;
+
+    private String retailId;
+
+    private String callBackUrl;
+
+    private String clientType;
+}

+ 72 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/R.java

@@ -0,0 +1,72 @@
+package com.mofangchuxing.aska.domain;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 返回数据
+ */
+public class R extends HashMap<String, Object> {
+	private static final long serialVersionUID = 1L;
+	
+	public R() {
+		put("code", "ok");
+		put("msg", "操作成功");
+	}
+
+	public static R error(Object obj) {
+		R r = new R();
+		r.put("code", "error");
+		r.put("msg", "");
+		r.put("data", obj);
+		return r;
+	}
+	
+	public static R error(String message) {
+		return error("error", message);
+	}
+	
+	public static R error(String code, String message) {
+		R r = new R();
+		r.put("code", code);
+		r.put("msg", message);
+		return r;
+	}
+
+
+	public static R ok(String message) {
+		R r = new R();
+		r.put("msg", message);
+		return r;
+	}
+	
+	public static R ok(Map<String, Object> map) {
+		R r = new R();
+		r.put("data", map);
+		return r;
+	}
+	
+	public static R ok() {
+		return new R();
+	}
+
+	@Override
+	public R put(String key, Object value) {
+		super.put(key, value);
+		return this;
+	}
+
+	public static R ok(Object object) {
+		R r = new R();
+		r.put("data", object);
+		return r;
+	}
+
+	public static R ok(Object object, String message) {
+		R r = new R();
+		r.put("data", object);
+		r.put("msg", message);
+		return r;
+	}
+
+}

+ 50 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/ResponseResult.java

@@ -0,0 +1,50 @@
+package com.mofangchuxing.aska.domain;
+
+
+import com.mofangchuxing.aska.domain.enums.ResultEnum;
+import lombok.Data;
+
+@Data
+public class ResponseResult<T> {
+    private int code;
+    private String message;
+    private T data;
+
+    public ResponseResult() {
+        this.code = ResultEnum.SUCCESS.getCode();
+        this.message = ResultEnum.SUCCESS.getMessage();
+    }
+
+    public ResponseResult(int code, String message) {
+        this.code = code;
+        this.message = message;
+    }
+
+    public ResponseResult(ResultEnum resultEnum ) {
+        this.code = resultEnum.getCode();
+        this.message = resultEnum.getMessage();
+    }
+
+    public ResponseResult(int code, String message, T data) {
+        this.code = code;
+        this.message = message;
+        this.data = data;
+    }
+
+    public ResponseResult(ResultEnum resultEnum , T data) {
+        this.code = resultEnum.getCode();
+        this.message = resultEnum.getMessage();
+        this.data = data;
+    }
+
+    public ResponseResult(T data) {
+        this.code = ResultEnum.SUCCESS.getCode();
+        this.message = ResultEnum.SUCCESS.getMessage();
+        this.data = data;
+    }
+
+    public static <T> ResponseResult<T> error(Integer code, String message) {
+        return new ResponseResult<>(code, message);
+    }
+
+}

+ 22 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/dto/BaseDto.java

@@ -0,0 +1,22 @@
+package com.mofangchuxing.aska.domain.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * @Author: syl
+ * @Date: 2023/8/1
+ * @Description:
+ */
+@Data
+public class BaseDto implements Serializable {
+    //第几页
+    private Integer pageNum = 1;
+    //每页几条
+    private Integer pageSize = 10;
+
+    //token
+    private String t;
+}

+ 28 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/dto/ChannelDto.java

@@ -0,0 +1,28 @@
+package com.mofangchuxing.aska.domain.dto;
+
+import lombok.Data;
+
+/**
+ * @Author: syl
+ * @Date: 2023/8/4
+ * @Description:
+ */
+@Data
+public class ChannelDto extends BaseDto{
+
+    private Integer channelId;
+
+    private String name;
+
+    private String prefix;
+
+    private String ownerId;
+
+    private String phone;
+
+    private String status;
+
+    private String note;
+
+    private String channelName;
+}

+ 49 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/dto/LoginDto.java

@@ -0,0 +1,49 @@
+package com.mofangchuxing.aska.domain.dto;
+
+public class LoginDto {
+    private String username;
+    private String password;
+    private String t;
+    private String productId;
+    private String vcode;
+
+    public String getVcode() {
+        return vcode;
+    }
+
+    public void setVcode(String vcode) {
+        this.vcode = vcode;
+    }
+
+    public String getUsername() {
+        return username;
+    }
+
+    public void setUsername(String username) {
+        this.username = username;
+    }
+
+    public String getPassword() {
+        return password;
+    }
+
+    public void setPassword(String password) {
+        this.password = password;
+    }
+
+    public String getT() {
+        return t;
+    }
+
+    public void setT(String t) {
+        this.t = t;
+    }
+
+    public String getProductId() {
+        return productId;
+    }
+
+    public void setProductId(String productId) {
+        this.productId = productId;
+    }
+}

+ 38 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/dto/RetailDto.java

@@ -0,0 +1,38 @@
+package com.mofangchuxing.aska.domain.dto;
+
+import lombok.Data;
+
+/**
+ * @Author: syl
+ * @Date: 2023/8/1
+ * @Description:
+ */
+@Data
+public class RetailDto extends BaseDto{
+
+    private Long retailId;
+
+    private String name;
+
+    private String address;
+
+    private String type;
+
+    private Float lat;
+
+    private Float lng;
+
+    private Integer ownerId;
+
+    private String phone;
+
+    private String note;
+
+    private String status;
+
+    private Boolean realtimeSplit;
+
+    private String tripartite;
+
+    private String tripvalue;
+}

+ 141 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/entity/SysMenuEntity.java

@@ -0,0 +1,141 @@
+package com.mofangchuxing.aska.domain.entity;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 菜单管理
+ */
+@Data
+@Builder(toBuilder = true)
+@NoArgsConstructor
+@AllArgsConstructor
+public class SysMenuEntity implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 菜单ID
+     */
+    private Long menuId;
+
+    /**
+     * 父菜单ID,一级菜单为0
+     */
+    private Long parentId;
+    /**
+     * 菜单英文名
+     */
+    private String englishName;
+
+    /**
+     * 父菜单名称
+     */
+    private String parentName;
+
+    /**
+     * 菜单名称
+     */
+    private String name;
+
+    /**
+     * 菜单URL
+     */
+    private String url;
+
+    /**
+     * 授权(多个用逗号分隔,如:user:list,user:create)
+     */
+    private String perms;
+
+    /**
+     * 类型     0:目录   1:菜单   2:按钮
+     */
+    private Integer type;
+
+    /**
+     * 菜单图标
+     */
+    private String icon;
+
+    /**
+     * 排序
+     */
+    private Integer orderNum;
+
+    /**
+     * ztree属性
+     */
+    private Boolean open;
+
+    private List<?> list;
+
+    private List<SysMenuEntity> buttonList;
+
+    private Map<String, SysMenuEntity> buttonNewList;
+
+    private List<SysMenuEntity> buttonRoleList;
+
+    private SysMenuEntity secondMenu;
+
+    private SysMenuEntity buttonMenu;
+
+    private String t;
+
+    private String productName;
+
+    /**
+     * 前端路径
+     */
+    private String htmlPath;
+    /**
+     * html样式
+     */
+    private String htmlClass;
+    /**
+     * 是否有权限  0-没有,1-有
+     */
+    private Integer isExist = 0;
+    /**
+     * 是否启用 0-停用 1-启用
+     */
+    private Integer state;
+    /**
+     * 产品--菜单所属产品
+     */
+    private Long productId;
+
+    /**
+     * 创建人id
+     */
+    private Long createId;
+
+    /**
+     * 创建人姓名
+     */
+    private String createName;
+
+    /**
+     * 创建时间
+     */
+    private Date createTime;
+
+    private Long id;
+
+    private String label;
+
+    private List<?> children;
+    /**
+     * 是否是要修改启用或停用 0-否 1-是
+     */
+    private Integer isDisable = 0;
+
+    private Integer menuLevel;
+
+}

+ 29 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/enums/ClientTypeEnum.java

@@ -0,0 +1,29 @@
+package com.mofangchuxing.aska.domain.enums;
+
+/**
+ * @Author: syl
+ * @Date: 2023/8/1
+ * @Description:
+ */
+public enum ClientTypeEnum {
+    wx("wx","微信JSAPI支付"),
+    alipay("alipay","支付宝支付"),
+    app("app","app支付"),
+    ;
+
+    ClientTypeEnum(String type, String desc) {
+        this.type = type;
+        this.desc = desc;
+    }
+
+    private String type;
+    private String desc;
+
+    public String getType() {
+        return type;
+    }
+
+    public String getDesc() {
+        return desc;
+    }
+}

+ 36 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/enums/ItemTypeEnum.java

@@ -0,0 +1,36 @@
+package com.mofangchuxing.aska.domain.enums;
+
+import lombok.AllArgsConstructor;
+
+/**
+ * @Author: syl
+ * @Date: 2023/3/22
+ * @Description:
+ */
+
+@AllArgsConstructor
+public enum ItemTypeEnum {
+    TYPE_COUPON(1,"礼券"),
+    TYPE_ORDER(2,"购车"),
+    ;
+
+    private int type;
+    private String name;
+
+    public int getType() {
+        return type;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public static ItemTypeEnum getEnum(Integer type) {
+        for (ItemTypeEnum scene : ItemTypeEnum.values()) {
+            if (scene.getType() == type.intValue()) {
+                return scene;
+            }
+        }
+        return null;
+    }
+}

+ 31 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/enums/PayStatusEnum.java

@@ -0,0 +1,31 @@
+package com.mofangchuxing.aska.domain.enums;
+
+/**
+ * @Author: syl
+ * @Date: 2023/3/24
+ * @Description:
+ */
+public enum PayStatusEnum {
+    not_pay(0,"未支付"),
+    pay_success(1,"支付成功"),
+    auditing(2,"退款审核中"),
+    refund_success(3,"退款成功"),
+    deduct_success(4,"扣款成功"),
+    ;
+
+    PayStatusEnum(Integer code, String desc) {
+        this.code = code;
+        this.desc = desc;
+    }
+
+    private Integer code;
+    private String desc;
+
+    public Integer getCode() {
+        return code;
+    }
+
+    public String getDesc() {
+        return desc;
+    }
+}

+ 49 - 0
domain/src/main/java/com/mofangchuxing/aska/domain/enums/ResultEnum.java

@@ -0,0 +1,49 @@
+package com.mofangchuxing.aska.domain.enums;
+
+/**
+ * 返回数据枚举
+ */
+public enum ResultEnum {
+
+    SUCCESS(200, "操作成功", "操作成功"),
+    NO_SERVICE(202, "您请求的区域不提供服务,或者服务器异常请稍后重试", "您请求的区域不提供服务,或者服务器异常请稍后重试"),
+    DATA_ERROR(203, "数据异常,请联系客服", "数据异常,请联系客服"),
+    NO_ORDER_ERROR(204, "订单不存在", "订单不存在"),
+    CANNOT_REFUND_ERROR(205, "订单状态错误,无法退款", "订单状态错误,无法退款"),
+    AMOUNT_ERROR(206, "金额不匹配,无法退款", "金额不匹配,无法退款"),
+    ORDER_PAID_ERROR(207, "订单已支付过", "订单已支付过"),
+    UNKNOWN_ERROR(-1, "程序出错了,联系客服吧", "未知异常错误"),
+    PARAMS_ERROR(-2, "参数错误", "参数错误"),
+    ;
+
+    private int code;
+    private String message;
+    private String notice;
+
+    ResultEnum(int code, String message, String notice) {
+        this.code = code;
+        this.message = message;
+        this.notice = notice;
+    }
+
+    public int getCode() {
+        return code;
+    }
+
+    public String getMessage() {
+        return message;
+    }
+
+    public String getNotice() {
+        return notice;
+    }
+
+    public static ResultEnum getEnum(Integer code) {
+        for (ResultEnum scene : ResultEnum.values()) {
+            if (scene.getCode() == code.intValue()) {
+                return scene;
+            }
+        }
+        return null;
+    }
+}

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác