浏览代码

first commit

张延森 3 年前
当前提交
43b38ac1f6
共有 100 个文件被更改,包括 8058 次插入0 次删除
  1. 41
    0
      .gitignore
  2. 7
    0
      deploy/bootstrap
  3. 24
    0
      deploy/template.yml
  4. 0
    0
      deploy/注意修改bootstrap文件中版本号.txt
  5. 310
    0
      mvnw
  6. 182
    0
      mvnw.cmd
  7. 213
    0
      pom.xml
  8. 16
    0
      src/main/java/com/yunzhi/shigongli/SpringApplication.java
  9. 68
    0
      src/main/java/com/yunzhi/shigongli/common/BaseController.java
  10. 9
    0
      src/main/java/com/yunzhi/shigongli/common/Constants.java
  11. 20
    0
      src/main/java/com/yunzhi/shigongli/common/CurrentContext.java
  12. 17
    0
      src/main/java/com/yunzhi/shigongli/common/DateUtils.java
  13. 17
    0
      src/main/java/com/yunzhi/shigongli/common/EncryptUtils.java
  14. 26
    0
      src/main/java/com/yunzhi/shigongli/common/ExcelUtils.java
  15. 107
    0
      src/main/java/com/yunzhi/shigongli/common/JWTUtils.java
  16. 11
    0
      src/main/java/com/yunzhi/shigongli/common/MathUtils.java
  17. 132
    0
      src/main/java/com/yunzhi/shigongli/common/OSSUtils.java
  18. 82
    0
      src/main/java/com/yunzhi/shigongli/common/ResponseBean.java
  19. 145
    0
      src/main/java/com/yunzhi/shigongli/common/SMSCaptcha.java
  20. 71
    0
      src/main/java/com/yunzhi/shigongli/common/SMSUtils.java
  21. 120
    0
      src/main/java/com/yunzhi/shigongli/common/StringUtils.java
  22. 34
    0
      src/main/java/com/yunzhi/shigongli/common/WxUtils.java
  23. 44
    0
      src/main/java/com/yunzhi/shigongli/config/AliyunConfig.java
  24. 35
    0
      src/main/java/com/yunzhi/shigongli/config/BaseConfig.java
  25. 34
    0
      src/main/java/com/yunzhi/shigongli/config/InterceptorConfig.java
  26. 14
    0
      src/main/java/com/yunzhi/shigongli/config/MybatisPlusConfig.java
  27. 24
    0
      src/main/java/com/yunzhi/shigongli/config/SwagggerConfig.java
  28. 24
    0
      src/main/java/com/yunzhi/shigongli/config/WeixinConfig.java
  29. 71
    0
      src/main/java/com/yunzhi/shigongli/controller/CommController.java
  30. 111
    0
      src/main/java/com/yunzhi/shigongli/controller/LoginController.java
  31. 60
    0
      src/main/java/com/yunzhi/shigongli/controller/SysUserController.java
  32. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaEvaluationController.java
  33. 123
    0
      src/main/java/com/yunzhi/shigongli/controller/TaExtendContentController.java
  34. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaFeedbackController.java
  35. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaHotelAccountController.java
  36. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaHotelAccountLogController.java
  37. 120
    0
      src/main/java/com/yunzhi/shigongli/controller/TaHotelController.java
  38. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaHotelWorkerController.java
  39. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaLikeController.java
  40. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaOrderCommissionController.java
  41. 120
    0
      src/main/java/com/yunzhi/shigongli/controller/TaOrderController.java
  42. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaOrderPayController.java
  43. 120
    0
      src/main/java/com/yunzhi/shigongli/controller/TaOrderSubController.java
  44. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaPersonAccountController.java
  45. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaPersonAccountLogController.java
  46. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaPersonController.java
  47. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaPersonRecommenderController.java
  48. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaPvController.java
  49. 124
    0
      src/main/java/com/yunzhi/shigongli/controller/TaRoomController.java
  50. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaRoomOrderController.java
  51. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaRoomOrderPersonController.java
  52. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaSearchController.java
  53. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaShopAccountController.java
  54. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaShopAccountLogController.java
  55. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaShopController.java
  56. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaShopImagesController.java
  57. 121
    0
      src/main/java/com/yunzhi/shigongli/controller/TaShopPackageController.java
  58. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaShopPackageSettingController.java
  59. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaShopPackageTimeController.java
  60. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaShopTagsController.java
  61. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaTouristController.java
  62. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TaUvController.java
  63. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TdCityController.java
  64. 119
    0
      src/main/java/com/yunzhi/shigongli/controller/TdDietMarkController.java
  65. 120
    0
      src/main/java/com/yunzhi/shigongli/controller/TdTypeController.java
  66. 122
    0
      src/main/java/com/yunzhi/shigongli/controller/WxMaController.java
  67. 52
    0
      src/main/java/com/yunzhi/shigongli/entity/SysLogin.java
  68. 52
    0
      src/main/java/com/yunzhi/shigongli/entity/SysUser.java
  69. 55
    0
      src/main/java/com/yunzhi/shigongli/entity/TaEvaluation.java
  70. 52
    0
      src/main/java/com/yunzhi/shigongli/entity/TaExtendContent.java
  71. 43
    0
      src/main/java/com/yunzhi/shigongli/entity/TaFeedback.java
  72. 49
    0
      src/main/java/com/yunzhi/shigongli/entity/TaHotel.java
  73. 49
    0
      src/main/java/com/yunzhi/shigongli/entity/TaHotelAccount.java
  74. 68
    0
      src/main/java/com/yunzhi/shigongli/entity/TaHotelAccountLog.java
  75. 52
    0
      src/main/java/com/yunzhi/shigongli/entity/TaHotelWorker.java
  76. 46
    0
      src/main/java/com/yunzhi/shigongli/entity/TaLike.java
  77. 46
    0
      src/main/java/com/yunzhi/shigongli/entity/TaOrder.java
  78. 53
    0
      src/main/java/com/yunzhi/shigongli/entity/TaOrderCommission.java
  79. 65
    0
      src/main/java/com/yunzhi/shigongli/entity/TaOrderPay.java
  80. 68
    0
      src/main/java/com/yunzhi/shigongli/entity/TaOrderSub.java
  81. 67
    0
      src/main/java/com/yunzhi/shigongli/entity/TaPerson.java
  82. 49
    0
      src/main/java/com/yunzhi/shigongli/entity/TaPersonAccount.java
  83. 68
    0
      src/main/java/com/yunzhi/shigongli/entity/TaPersonAccountLog.java
  84. 52
    0
      src/main/java/com/yunzhi/shigongli/entity/TaPersonRecommender.java
  85. 46
    0
      src/main/java/com/yunzhi/shigongli/entity/TaPv.java
  86. 70
    0
      src/main/java/com/yunzhi/shigongli/entity/TaRoom.java
  87. 58
    0
      src/main/java/com/yunzhi/shigongli/entity/TaRoomOrder.java
  88. 43
    0
      src/main/java/com/yunzhi/shigongli/entity/TaRoomOrderPerson.java
  89. 43
    0
      src/main/java/com/yunzhi/shigongli/entity/TaSearch.java
  90. 80
    0
      src/main/java/com/yunzhi/shigongli/entity/TaShop.java
  91. 49
    0
      src/main/java/com/yunzhi/shigongli/entity/TaShopAccount.java
  92. 68
    0
      src/main/java/com/yunzhi/shigongli/entity/TaShopAccountLog.java
  93. 46
    0
      src/main/java/com/yunzhi/shigongli/entity/TaShopImages.java
  94. 74
    0
      src/main/java/com/yunzhi/shigongli/entity/TaShopPackage.java
  95. 46
    0
      src/main/java/com/yunzhi/shigongli/entity/TaShopPackageSetting.java
  96. 36
    0
      src/main/java/com/yunzhi/shigongli/entity/TaShopPackageTime.java
  97. 42
    0
      src/main/java/com/yunzhi/shigongli/entity/TaShopTags.java
  98. 73
    0
      src/main/java/com/yunzhi/shigongli/entity/TaTourist.java
  99. 46
    0
      src/main/java/com/yunzhi/shigongli/entity/TaUv.java
  100. 0
    0
      src/main/java/com/yunzhi/shigongli/entity/TdCity.java

+ 41
- 0
.gitignore 查看文件

@@ -0,0 +1,41 @@
1
+HELP.md
2
+target/
3
+out/
4
+!.mvn/wrapper/maven-wrapper.jar
5
+!**/src/main/**/target/
6
+!**/src/test/**/target/
7
+
8
+### STS ###
9
+.apt_generated
10
+.classpath
11
+.factorypath
12
+.project
13
+.settings
14
+.springBeans
15
+.sts4-cache
16
+
17
+### IntelliJ IDEA ###
18
+.idea
19
+*.iws
20
+*.iml
21
+*.ipr
22
+
23
+### NetBeans ###
24
+/nbproject/private/
25
+/nbbuild/
26
+/dist/
27
+/nbdist/
28
+/.nb-gradle/
29
+build/
30
+!**/src/main/**/build/
31
+!**/src/test/**/build/
32
+
33
+### VS Code ###
34
+.vscode/
35
+
36
+
37
+### serverless ###
38
+/deploy/*.jar
39
+/deploy/*.zip
40
+/deploy/.fun/
41
+/deploy/.env

+ 7
- 0
deploy/bootstrap 查看文件

@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+#
3
+#
4
+
5
+appVer="0.0.3"
6
+
7
+java -jar ./medical-plat-${appVer}.jar

+ 24
- 0
deploy/template.yml 查看文件

@@ -0,0 +1,24 @@
1
+ROSTemplateFormatVersion: '2015-09-01'
2
+Transform: 'Aliyun::Serverless-2018-04-03'
3
+Resources:
4
+  medical-plat:
5
+    Type: 'Aliyun::Serverless::Service'
6
+    Properties:
7
+      InternetAccess: true
8
+      Description: '医疗平台'
9
+    medical-plat-fn:
10
+      Type: 'Aliyun::Serverless::Function'
11
+      Properties:
12
+        Handler: com.yunzhi.demo.SpringApplication::main
13
+        Runtime: custom
14
+        CodeUri: 'oss://yz-serverless/medical-plat/medical-plat-0.0.3.zip'
15
+        MemorySize: 1024
16
+        Timeout: 30
17
+        InitializationTimeout: 30
18
+        CAPort: 8822
19
+      Events:
20
+        http-medical-plat:
21
+          Type: HTTP
22
+          Properties:
23
+            AuthType: ANONYMOUS
24
+            Methods: [ 'GET', 'POST', 'PUT', 'DELETE' ]

+ 0
- 0
deploy/注意修改bootstrap文件中版本号.txt 查看文件


+ 310
- 0
mvnw 查看文件

@@ -0,0 +1,310 @@
1
+#!/bin/sh
2
+# ----------------------------------------------------------------------------
3
+# Licensed to the Apache Software Foundation (ASF) under one
4
+# or more contributor license agreements.  See the NOTICE file
5
+# distributed with this work for additional information
6
+# regarding copyright ownership.  The ASF licenses this file
7
+# to you under the Apache License, Version 2.0 (the
8
+# "License"); you may not use this file except in compliance
9
+# with the License.  You may obtain a copy of the License at
10
+#
11
+#    http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+# Unless required by applicable law or agreed to in writing,
14
+# software distributed under the License is distributed on an
15
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+# KIND, either express or implied.  See the License for the
17
+# specific language governing permissions and limitations
18
+# under the License.
19
+# ----------------------------------------------------------------------------
20
+
21
+# ----------------------------------------------------------------------------
22
+# Maven Start Up Batch script
23
+#
24
+# Required ENV vars:
25
+# ------------------
26
+#   JAVA_HOME - location of a JDK home dir
27
+#
28
+# Optional ENV vars
29
+# -----------------
30
+#   M2_HOME - location of maven2's installed home dir
31
+#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
+#     e.g. to debug Maven itself, use
33
+#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
+#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35
+# ----------------------------------------------------------------------------
36
+
37
+if [ -z "$MAVEN_SKIP_RC" ] ; then
38
+
39
+  if [ -f /etc/mavenrc ] ; then
40
+    . /etc/mavenrc
41
+  fi
42
+
43
+  if [ -f "$HOME/.mavenrc" ] ; then
44
+    . "$HOME/.mavenrc"
45
+  fi
46
+
47
+fi
48
+
49
+# OS specific support.  $var _must_ be set to either true or false.
50
+cygwin=false;
51
+darwin=false;
52
+mingw=false
53
+case "`uname`" in
54
+  CYGWIN*) cygwin=true ;;
55
+  MINGW*) mingw=true;;
56
+  Darwin*) darwin=true
57
+    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58
+    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59
+    if [ -z "$JAVA_HOME" ]; then
60
+      if [ -x "/usr/libexec/java_home" ]; then
61
+        export JAVA_HOME="`/usr/libexec/java_home`"
62
+      else
63
+        export JAVA_HOME="/Library/Java/Home"
64
+      fi
65
+    fi
66
+    ;;
67
+esac
68
+
69
+if [ -z "$JAVA_HOME" ] ; then
70
+  if [ -r /etc/gentoo-release ] ; then
71
+    JAVA_HOME=`java-config --jre-home`
72
+  fi
73
+fi
74
+
75
+if [ -z "$M2_HOME" ] ; then
76
+  ## resolve links - $0 may be a link to maven's home
77
+  PRG="$0"
78
+
79
+  # need this for relative symlinks
80
+  while [ -h "$PRG" ] ; do
81
+    ls=`ls -ld "$PRG"`
82
+    link=`expr "$ls" : '.*-> \(.*\)$'`
83
+    if expr "$link" : '/.*' > /dev/null; then
84
+      PRG="$link"
85
+    else
86
+      PRG="`dirname "$PRG"`/$link"
87
+    fi
88
+  done
89
+
90
+  saveddir=`pwd`
91
+
92
+  M2_HOME=`dirname "$PRG"`/..
93
+
94
+  # make it fully qualified
95
+  M2_HOME=`cd "$M2_HOME" && pwd`
96
+
97
+  cd "$saveddir"
98
+  # echo Using m2 at $M2_HOME
99
+fi
100
+
101
+# For Cygwin, ensure paths are in UNIX format before anything is touched
102
+if $cygwin ; then
103
+  [ -n "$M2_HOME" ] &&
104
+    M2_HOME=`cygpath --unix "$M2_HOME"`
105
+  [ -n "$JAVA_HOME" ] &&
106
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107
+  [ -n "$CLASSPATH" ] &&
108
+    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109
+fi
110
+
111
+# For Mingw, ensure paths are in UNIX format before anything is touched
112
+if $mingw ; then
113
+  [ -n "$M2_HOME" ] &&
114
+    M2_HOME="`(cd "$M2_HOME"; pwd)`"
115
+  [ -n "$JAVA_HOME" ] &&
116
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117
+fi
118
+
119
+if [ -z "$JAVA_HOME" ]; then
120
+  javaExecutable="`which javac`"
121
+  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
122
+    # readlink(1) is not available as standard on Solaris 10.
123
+    readLink=`which readlink`
124
+    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
125
+      if $darwin ; then
126
+        javaHome="`dirname \"$javaExecutable\"`"
127
+        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
128
+      else
129
+        javaExecutable="`readlink -f \"$javaExecutable\"`"
130
+      fi
131
+      javaHome="`dirname \"$javaExecutable\"`"
132
+      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
133
+      JAVA_HOME="$javaHome"
134
+      export JAVA_HOME
135
+    fi
136
+  fi
137
+fi
138
+
139
+if [ -z "$JAVACMD" ] ; then
140
+  if [ -n "$JAVA_HOME"  ] ; then
141
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
142
+      # IBM's JDK on AIX uses strange locations for the executables
143
+      JAVACMD="$JAVA_HOME/jre/sh/java"
144
+    else
145
+      JAVACMD="$JAVA_HOME/bin/java"
146
+    fi
147
+  else
148
+    JAVACMD="`which java`"
149
+  fi
150
+fi
151
+
152
+if [ ! -x "$JAVACMD" ] ; then
153
+  echo "Error: JAVA_HOME is not defined correctly." >&2
154
+  echo "  We cannot execute $JAVACMD" >&2
155
+  exit 1
156
+fi
157
+
158
+if [ -z "$JAVA_HOME" ] ; then
159
+  echo "Warning: JAVA_HOME environment variable is not set."
160
+fi
161
+
162
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
163
+
164
+# traverses directory structure from process work directory to filesystem root
165
+# first directory with .mvn subdirectory is considered project base directory
166
+find_maven_basedir() {
167
+
168
+  if [ -z "$1" ]
169
+  then
170
+    echo "Path not specified to find_maven_basedir"
171
+    return 1
172
+  fi
173
+
174
+  basedir="$1"
175
+  wdir="$1"
176
+  while [ "$wdir" != '/' ] ; do
177
+    if [ -d "$wdir"/.mvn ] ; then
178
+      basedir=$wdir
179
+      break
180
+    fi
181
+    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
182
+    if [ -d "${wdir}" ]; then
183
+      wdir=`cd "$wdir/.."; pwd`
184
+    fi
185
+    # end of workaround
186
+  done
187
+  echo "${basedir}"
188
+}
189
+
190
+# concatenates all lines of a file
191
+concat_lines() {
192
+  if [ -f "$1" ]; then
193
+    echo "$(tr -s '\n' ' ' < "$1")"
194
+  fi
195
+}
196
+
197
+BASE_DIR=`find_maven_basedir "$(pwd)"`
198
+if [ -z "$BASE_DIR" ]; then
199
+  exit 1;
200
+fi
201
+
202
+##########################################################################################
203
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
204
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
205
+##########################################################################################
206
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
207
+    if [ "$MVNW_VERBOSE" = true ]; then
208
+      echo "Found .mvn/wrapper/maven-wrapper.jar"
209
+    fi
210
+else
211
+    if [ "$MVNW_VERBOSE" = true ]; then
212
+      echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
213
+    fi
214
+    if [ -n "$MVNW_REPOURL" ]; then
215
+      jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
216
+    else
217
+      jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
218
+    fi
219
+    while IFS="=" read key value; do
220
+      case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
221
+      esac
222
+    done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
223
+    if [ "$MVNW_VERBOSE" = true ]; then
224
+      echo "Downloading from: $jarUrl"
225
+    fi
226
+    wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
227
+    if $cygwin; then
228
+      wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
229
+    fi
230
+
231
+    if command -v wget > /dev/null; then
232
+        if [ "$MVNW_VERBOSE" = true ]; then
233
+          echo "Found wget ... using wget"
234
+        fi
235
+        if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
236
+            wget "$jarUrl" -O "$wrapperJarPath"
237
+        else
238
+            wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
239
+        fi
240
+    elif command -v curl > /dev/null; then
241
+        if [ "$MVNW_VERBOSE" = true ]; then
242
+          echo "Found curl ... using curl"
243
+        fi
244
+        if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
245
+            curl -o "$wrapperJarPath" "$jarUrl" -f
246
+        else
247
+            curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
248
+        fi
249
+
250
+    else
251
+        if [ "$MVNW_VERBOSE" = true ]; then
252
+          echo "Falling back to using Java to download"
253
+        fi
254
+        javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
255
+        # For Cygwin, switch paths to Windows format before running javac
256
+        if $cygwin; then
257
+          javaClass=`cygpath --path --windows "$javaClass"`
258
+        fi
259
+        if [ -e "$javaClass" ]; then
260
+            if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
261
+                if [ "$MVNW_VERBOSE" = true ]; then
262
+                  echo " - Compiling MavenWrapperDownloader.java ..."
263
+                fi
264
+                # Compiling the Java class
265
+                ("$JAVA_HOME/bin/javac" "$javaClass")
266
+            fi
267
+            if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
268
+                # Running the downloader
269
+                if [ "$MVNW_VERBOSE" = true ]; then
270
+                  echo " - Running MavenWrapperDownloader.java ..."
271
+                fi
272
+                ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
273
+            fi
274
+        fi
275
+    fi
276
+fi
277
+##########################################################################################
278
+# End of extension
279
+##########################################################################################
280
+
281
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
282
+if [ "$MVNW_VERBOSE" = true ]; then
283
+  echo $MAVEN_PROJECTBASEDIR
284
+fi
285
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
286
+
287
+# For Cygwin, switch paths to Windows format before running java
288
+if $cygwin; then
289
+  [ -n "$M2_HOME" ] &&
290
+    M2_HOME=`cygpath --path --windows "$M2_HOME"`
291
+  [ -n "$JAVA_HOME" ] &&
292
+    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
293
+  [ -n "$CLASSPATH" ] &&
294
+    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
295
+  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
296
+    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
297
+fi
298
+
299
+# Provide a "standardized" way to retrieve the CLI args that will
300
+# work with both Windows and non-Windows executions.
301
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
302
+export MAVEN_CMD_LINE_ARGS
303
+
304
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
305
+
306
+exec "$JAVACMD" \
307
+  $MAVEN_OPTS \
308
+  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
309
+  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
310
+  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

+ 182
- 0
mvnw.cmd 查看文件

@@ -0,0 +1,182 @@
1
+@REM ----------------------------------------------------------------------------
2
+@REM Licensed to the Apache Software Foundation (ASF) under one
3
+@REM or more contributor license agreements.  See the NOTICE file
4
+@REM distributed with this work for additional information
5
+@REM regarding copyright ownership.  The ASF licenses this file
6
+@REM to you under the Apache License, Version 2.0 (the
7
+@REM "License"); you may not use this file except in compliance
8
+@REM with the License.  You may obtain a copy of the License at
9
+@REM
10
+@REM    http://www.apache.org/licenses/LICENSE-2.0
11
+@REM
12
+@REM Unless required by applicable law or agreed to in writing,
13
+@REM software distributed under the License is distributed on an
14
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+@REM KIND, either express or implied.  See the License for the
16
+@REM specific language governing permissions and limitations
17
+@REM under the License.
18
+@REM ----------------------------------------------------------------------------
19
+
20
+@REM ----------------------------------------------------------------------------
21
+@REM Maven Start Up Batch script
22
+@REM
23
+@REM Required ENV vars:
24
+@REM JAVA_HOME - location of a JDK home dir
25
+@REM
26
+@REM Optional ENV vars
27
+@REM M2_HOME - location of maven2's installed home dir
28
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
+@REM     e.g. to debug Maven itself, use
32
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
+@REM ----------------------------------------------------------------------------
35
+
36
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
+@echo off
38
+@REM set title of command window
39
+title %0
40
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41
+@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
42
+
43
+@REM set %HOME% to equivalent of $HOME
44
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45
+
46
+@REM Execute a user defined script before this one
47
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
49
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51
+:skipRcPre
52
+
53
+@setlocal
54
+
55
+set ERROR_CODE=0
56
+
57
+@REM To isolate internal variables from possible post scripts, we use another setlocal
58
+@setlocal
59
+
60
+@REM ==== START VALIDATION ====
61
+if not "%JAVA_HOME%" == "" goto OkJHome
62
+
63
+echo.
64
+echo Error: JAVA_HOME not found in your environment. >&2
65
+echo Please set the JAVA_HOME variable in your environment to match the >&2
66
+echo location of your Java installation. >&2
67
+echo.
68
+goto error
69
+
70
+:OkJHome
71
+if exist "%JAVA_HOME%\bin\java.exe" goto init
72
+
73
+echo.
74
+echo Error: JAVA_HOME is set to an invalid directory. >&2
75
+echo JAVA_HOME = "%JAVA_HOME%" >&2
76
+echo Please set the JAVA_HOME variable in your environment to match the >&2
77
+echo location of your Java installation. >&2
78
+echo.
79
+goto error
80
+
81
+@REM ==== END VALIDATION ====
82
+
83
+:init
84
+
85
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86
+@REM Fallback to current working directory if not found.
87
+
88
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90
+
91
+set EXEC_DIR=%CD%
92
+set WDIR=%EXEC_DIR%
93
+:findBaseDir
94
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
95
+cd ..
96
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
97
+set WDIR=%CD%
98
+goto findBaseDir
99
+
100
+:baseDirFound
101
+set MAVEN_PROJECTBASEDIR=%WDIR%
102
+cd "%EXEC_DIR%"
103
+goto endDetectBaseDir
104
+
105
+:baseDirNotFound
106
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107
+cd "%EXEC_DIR%"
108
+
109
+:endDetectBaseDir
110
+
111
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112
+
113
+@setlocal EnableExtensions EnableDelayedExpansion
114
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116
+
117
+:endReadAdditionalConfig
118
+
119
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122
+
123
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124
+
125
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126
+    IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127
+)
128
+
129
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131
+if exist %WRAPPER_JAR% (
132
+    if "%MVNW_VERBOSE%" == "true" (
133
+        echo Found %WRAPPER_JAR%
134
+    )
135
+) else (
136
+    if not "%MVNW_REPOURL%" == "" (
137
+        SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138
+    )
139
+    if "%MVNW_VERBOSE%" == "true" (
140
+        echo Couldn't find %WRAPPER_JAR%, downloading it ...
141
+        echo Downloading from: %DOWNLOAD_URL%
142
+    )
143
+
144
+    powershell -Command "&{"^
145
+		"$webclient = new-object System.Net.WebClient;"^
146
+		"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147
+		"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148
+		"}"^
149
+		"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150
+		"}"
151
+    if "%MVNW_VERBOSE%" == "true" (
152
+        echo Finished downloading %WRAPPER_JAR%
153
+    )
154
+)
155
+@REM End of extension
156
+
157
+@REM Provide a "standardized" way to retrieve the CLI args that will
158
+@REM work with both Windows and non-Windows executions.
159
+set MAVEN_CMD_LINE_ARGS=%*
160
+
161
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162
+if ERRORLEVEL 1 goto error
163
+goto end
164
+
165
+:error
166
+set ERROR_CODE=1
167
+
168
+:end
169
+@endlocal & set ERROR_CODE=%ERROR_CODE%
170
+
171
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
173
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175
+:skipRcPost
176
+
177
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
179
+
180
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181
+
182
+exit /B %ERROR_CODE%

+ 213
- 0
pom.xml 查看文件

@@ -0,0 +1,213 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4
+	<modelVersion>4.0.0</modelVersion>
5
+	<parent>
6
+		<groupId>org.springframework.boot</groupId>
7
+		<artifactId>spring-boot-starter-parent</artifactId>
8
+		<version>2.3.2.RELEASE</version>
9
+		<relativePath/> <!-- lookup parent from repository -->
10
+	</parent>
11
+	<groupId>com.yunzhi</groupId>
12
+	<artifactId>shigongli</artifactId>
13
+	<version>0.0.1</version>
14
+	<name>shigongli</name>
15
+	<description>Demo project for Spring Boot</description>
16
+
17
+	<properties>
18
+		<java.version>1.8</java.version>
19
+	</properties>
20
+
21
+	<dependencies>
22
+		<dependency>
23
+			<groupId>org.springframework.boot</groupId>
24
+			<artifactId>spring-boot-starter-web</artifactId>
25
+		</dependency>
26
+
27
+		<dependency>
28
+			<groupId>org.springframework.boot</groupId>
29
+			<artifactId>spring-boot-starter-test</artifactId>
30
+			<scope>test</scope>
31
+			<exclusions>
32
+				<exclusion>
33
+					<groupId>org.junit.vintage</groupId>
34
+					<artifactId>junit-vintage-engine</artifactId>
35
+				</exclusion>
36
+			</exclusions>
37
+		</dependency>
38
+
39
+		<!--shiro start-->
40
+		<!--		<dependency>-->
41
+		<!--			<groupId>org.apache.shiro</groupId>-->
42
+		<!--			<artifactId>shiro-spring-boot-starter</artifactId>-->
43
+		<!--			<version>1.7.1</version>-->
44
+		<!--		</dependency>-->
45
+		<!--shiro end-->
46
+
47
+		<!--mysql start-->
48
+		<dependency>
49
+			<groupId>mysql</groupId>
50
+			<artifactId>mysql-connector-java</artifactId>
51
+			<scope>runtime</scope>
52
+		</dependency>
53
+		<!--mysql end-->
54
+
55
+		<!--mybatis-plus start-->
56
+		<dependency>
57
+			<groupId>com.baomidou</groupId>
58
+			<artifactId>mybatis-plus-boot-starter</artifactId>
59
+			<version>3.1.1</version>
60
+		</dependency>
61
+		<!--mybatis-plus end-->
62
+
63
+		<!--fastjson start-->
64
+		<dependency>
65
+			<groupId>com.alibaba</groupId>
66
+			<artifactId>fastjson</artifactId>
67
+			<version>1.2.56</version>
68
+		</dependency>
69
+		<!--fastjson end-->
70
+
71
+		<!--jwt start-->
72
+		<dependency>
73
+			<groupId>io.jsonwebtoken</groupId>
74
+			<artifactId>jjwt-api</artifactId>
75
+			<version>0.11.2</version>
76
+		</dependency>
77
+		<dependency>
78
+			<groupId>io.jsonwebtoken</groupId>
79
+			<artifactId>jjwt-impl</artifactId>
80
+			<version>0.11.2</version>
81
+			<scope>runtime</scope>
82
+		</dependency>
83
+		<dependency>
84
+			<groupId>io.jsonwebtoken</groupId>
85
+			<artifactId>jjwt-jackson</artifactId> <!-- or jjwt-gson if Gson is preferred -->
86
+			<version>0.11.2</version>
87
+			<scope>runtime</scope>
88
+		</dependency>
89
+		<!--jwt end-->
90
+
91
+		<!--oss start-->
92
+		<dependency>
93
+			<groupId>com.aliyun.oss</groupId>
94
+			<artifactId>aliyun-sdk-oss</artifactId>
95
+			<version>2.8.3</version>
96
+		</dependency>
97
+		<!--oss end-->
98
+
99
+		<dependency>
100
+			<groupId>com.aliyun</groupId>
101
+			<artifactId>aliyun-java-sdk-core</artifactId>
102
+			<version>[4.4.9,5.0.0)</version>
103
+		</dependency>
104
+
105
+		<!--excel start-->
106
+		<dependency>
107
+			<groupId>com.alibaba</groupId>
108
+			<artifactId>easyexcel</artifactId>
109
+			<version>2.0.4</version>
110
+		</dependency>
111
+		<!--excel end-->
112
+
113
+		<!--weixin-miniapp start-->
114
+		<dependency>
115
+			<groupId>com.github.binarywang</groupId>
116
+			<artifactId>weixin-java-miniapp</artifactId>
117
+			<version>3.8.0</version>
118
+		</dependency>
119
+		<!--weixin-miniapp start-->
120
+
121
+		<!--lombok start-->
122
+		<dependency>
123
+			<groupId>org.projectlombok</groupId>
124
+			<artifactId>lombok</artifactId>
125
+			<optional>true</optional>
126
+		</dependency>
127
+		<!--lombok end-->
128
+
129
+		<!--swagger start-->
130
+		<dependency>
131
+			<groupId>io.springfox</groupId>
132
+			<artifactId>springfox-boot-starter</artifactId>
133
+			<version>3.0.0</version>
134
+		</dependency>
135
+		<!--swagger end-->
136
+	</dependencies>
137
+
138
+	<profiles>
139
+		<profile>
140
+			<id>dev</id>
141
+			<properties>
142
+				<profileActive>dev</profileActive>
143
+			</properties>
144
+			<activation>
145
+				<activeByDefault>true</activeByDefault>
146
+			</activation>
147
+
148
+			<build>
149
+				<plugins>
150
+					<plugin>
151
+						<groupId>org.springframework.boot</groupId>
152
+						<artifactId>spring-boot-maven-plugin</artifactId>
153
+					</plugin>
154
+				</plugins>
155
+				<resources>
156
+					<resource>
157
+						<directory>src/main/resources</directory>
158
+						<filtering>true</filtering>
159
+					</resource>
160
+				</resources>
161
+			</build>
162
+		</profile>
163
+
164
+		<profile>
165
+			<id>prod</id>
166
+			<properties>
167
+				<profileActive>prod</profileActive>
168
+			</properties>
169
+			<activation>
170
+				<activeByDefault>false</activeByDefault>
171
+			</activation>
172
+
173
+			<build>
174
+				<plugins>
175
+					<plugin>
176
+						<groupId>org.springframework.boot</groupId>
177
+						<artifactId>spring-boot-maven-plugin</artifactId>
178
+					</plugin>
179
+
180
+					<!-- 跳过测试 -->
181
+					<plugin>
182
+						<groupId>org.apache.maven.plugins</groupId>
183
+						<artifactId>maven-surefire-plugin</artifactId>
184
+						<configuration>
185
+							<skipTests>true</skipTests>
186
+							<testFailureIgnore>true</testFailureIgnore>
187
+						</configuration>
188
+					</plugin>
189
+				</plugins>
190
+				<resources>
191
+					<resource>
192
+						<directory>src/main/resources</directory>
193
+						<filtering>true</filtering>
194
+						<excludes>
195
+							<exclude>application.yml</exclude>
196
+							<exclude>application-*.yml</exclude>
197
+						</excludes>
198
+					</resource>
199
+					<resource>
200
+						<directory>src/main/resources</directory>
201
+						<filtering>true</filtering>
202
+						<includes>
203
+							<include>application.yml</include>
204
+							<include>application-${profileActive}.yml</include>
205
+						</includes>
206
+<!--						<targetPath>${project.build.directory}/config</targetPath>-->
207
+					</resource>
208
+				</resources>
209
+			</build>
210
+		</profile>
211
+	</profiles>
212
+
213
+</project>

+ 16
- 0
src/main/java/com/yunzhi/shigongli/SpringApplication.java 查看文件

@@ -0,0 +1,16 @@
1
+package com.yunzhi.shigongli;
2
+
3
+import org.springframework.boot.autoconfigure.SpringBootApplication;
4
+import org.springframework.scheduling.annotation.EnableAsync;
5
+import org.springframework.transaction.annotation.EnableTransactionManagement;
6
+
7
+@EnableAsync
8
+@EnableTransactionManagement
9
+@SpringBootApplication
10
+public class SpringApplication {
11
+
12
+	public static void main(String[] args) {
13
+		org.springframework.boot.SpringApplication.run(SpringApplication.class, args);
14
+	}
15
+
16
+}

+ 68
- 0
src/main/java/com/yunzhi/shigongli/common/BaseController.java 查看文件

@@ -0,0 +1,68 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import com.yunzhi.shigongli.entity.SysUser;
4
+import com.yunzhi.shigongli.entity.TaPerson;
5
+import com.yunzhi.shigongli.service.ISysUserService;
6
+import com.yunzhi.shigongli.service.ITaPersonService;
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.stereotype.Component;
9
+
10
+import java.util.Map;
11
+
12
+@Component
13
+public class BaseController {
14
+
15
+    @Autowired
16
+    ISysUserService iSysUserService;
17
+
18
+    @Autowired
19
+    ITaPersonService iTaPersonService;
20
+
21
+    /**
22
+     * 获取当前管理端人员
23
+     * @return
24
+     */
25
+    public SysUser getCurrentUser() {
26
+        Map<String, Object> tokenParam = CurrentContext.getTokenParam();
27
+        if (null == tokenParam) {
28
+            return null;
29
+        }
30
+
31
+        if (null != tokenParam.get("miniApp")) {
32
+            return null;
33
+        }
34
+
35
+        Object userId = tokenParam.get("userId");
36
+
37
+        SysUser sysUser = iSysUserService.getById((String) userId);
38
+        if (Constants.STATUS_DELETED.equals(sysUser.getStatus())) {
39
+            return null;
40
+        }
41
+
42
+        return sysUser;
43
+    }
44
+
45
+    /**
46
+     * 获取当前小程序端人员
47
+     * @return
48
+     */
49
+    public TaPerson getCurrentPerson() {
50
+        Map<String, Object> tokenParam = CurrentContext.getTokenParam();
51
+        if (null == tokenParam) {
52
+            return null;
53
+        }
54
+
55
+        if (null == tokenParam.get("miniApp")) {
56
+            return null;
57
+        }
58
+
59
+        Object personId = tokenParam.get("userId");
60
+
61
+        TaPerson taPerson = iTaPersonService.getById((String) personId);
62
+        if (Constants.STATUS_DELETED.equals(taPerson.getStatus())) {
63
+            return null;
64
+        }
65
+
66
+        return taPerson;
67
+    }
68
+}

+ 9
- 0
src/main/java/com/yunzhi/shigongli/common/Constants.java 查看文件

@@ -0,0 +1,9 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+public class Constants {
4
+    // 基本状态
5
+    public final static Integer STATUS_DELETED = -1;
6
+    public final static Integer STATUS_READY = 0;
7
+    public final static Integer STATUS_NORMAL = 1;
8
+
9
+}

+ 20
- 0
src/main/java/com/yunzhi/shigongli/common/CurrentContext.java 查看文件

@@ -0,0 +1,20 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import java.util.Map;
4
+
5
+public class CurrentContext {
6
+
7
+    /**
8
+     * TokenParam 相关
9
+     */
10
+    private static final ThreadLocal<Map<String, Object>> tokenParamHolder = new ThreadLocal<>();
11
+
12
+    public static void setTokenParam(Map<String, Object> tokenParam) {
13
+        tokenParamHolder.remove();
14
+        tokenParamHolder.set(tokenParam);
15
+    }
16
+
17
+    public static Map<String, Object> getTokenParam() {
18
+        return tokenParamHolder.get();
19
+    }
20
+}

+ 17
- 0
src/main/java/com/yunzhi/shigongli/common/DateUtils.java 查看文件

@@ -0,0 +1,17 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import java.time.Duration;
4
+import java.time.LocalDateTime;
5
+import java.time.format.DateTimeFormatter;
6
+
7
+public class DateUtils {
8
+    public static LocalDateTime from(String str, String formater) {
9
+        DateTimeFormatter fmt = DateTimeFormatter.ofPattern(formater);
10
+        return LocalDateTime.parse(str, fmt);
11
+    }
12
+
13
+    public static long daysBetween(LocalDateTime dt1, LocalDateTime dt2) {
14
+        Duration duration = Duration.between(dt1, dt2);
15
+        return duration.toDays();
16
+    }
17
+}

+ 17
- 0
src/main/java/com/yunzhi/shigongli/common/EncryptUtils.java 查看文件

@@ -0,0 +1,17 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import org.springframework.util.DigestUtils;
4
+
5
+public class EncryptUtils {
6
+
7
+    public static String md5(String str, String ...slats) {
8
+        String slat = "";
9
+        if (null != slats && slats.length > 0) {
10
+            slat = slats[0];
11
+        }
12
+
13
+        String base = str + slat;
14
+        String md5 = DigestUtils.md5DigestAsHex(base.getBytes());
15
+        return md5;
16
+    }
17
+}

+ 26
- 0
src/main/java/com/yunzhi/shigongli/common/ExcelUtils.java 查看文件

@@ -0,0 +1,26 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import com.alibaba.excel.EasyExcel;
4
+
5
+import javax.servlet.http.HttpServletResponse;
6
+import java.io.IOException;
7
+import java.util.List;
8
+
9
+public class ExcelUtils {
10
+
11
+    /**
12
+     * 发送 excel 到客户端
13
+     * 暂时只支持单 sheet 页
14
+     * @param response
15
+     * @param data
16
+     * @param fileName
17
+     * @throws IOException
18
+     */
19
+    public static void flush(HttpServletResponse response, Class dataClass, List data, String fileName) throws IOException {
20
+        response.setContentType("application/vnd.ms-excel");
21
+        response.setCharacterEncoding("utf-8");
22
+        response.setHeader("Content-disposition", "attachment;filename="+StringUtils.urlEncode(fileName)+".xlsx");
23
+
24
+        EasyExcel.write(response.getOutputStream(), dataClass).sheet("sheet1").doWrite(data);
25
+    }
26
+}

+ 107
- 0
src/main/java/com/yunzhi/shigongli/common/JWTUtils.java 查看文件

@@ -0,0 +1,107 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import io.jsonwebtoken.Claims;
4
+import io.jsonwebtoken.Jws;
5
+import io.jsonwebtoken.Jwts;
6
+import io.jsonwebtoken.security.Keys;
7
+import org.slf4j.Logger;
8
+import org.slf4j.LoggerFactory;
9
+
10
+import javax.crypto.SecretKey;
11
+import javax.servlet.http.HttpServletRequest;
12
+import javax.servlet.http.HttpServletResponse;
13
+import java.time.LocalDateTime;
14
+import java.time.ZoneId;
15
+import java.util.Base64;
16
+import java.util.Date;
17
+import java.util.Map;
18
+
19
+/**
20
+ * JWTUtils
21
+ * jwt 辅助类
22
+ * https://github.com/jwtk/jjwt
23
+ */
24
+public class JWTUtils {
25
+    private static final Logger log = LoggerFactory.getLogger(JWTUtils.class);
26
+
27
+    // 过期时间 30 分钟
28
+    public static final long EXPIRE_TIME = 30 * 60;
29
+
30
+    // 私钥
31
+    static final SecretKey SECRET_KEY = Keys.hmacShaKeyFor(Base64.getEncoder().encode("Yansen is so handsome. He is a good man. Everyone like him !!!".getBytes()));
32
+
33
+    // 请求头
34
+    public static final String AUTH_HEADER = "X-Authorization-JWT";
35
+
36
+    /**
37
+     * 生成 token, claims 里必须要有 userId
38
+     * @param claims
39
+     * @return
40
+     */
41
+    public static String encode(Map<String, Object> claims) {
42
+        Date[] datePair = getDatePair();
43
+        Date iat = datePair[0];
44
+        Date exp = datePair[1];
45
+
46
+        return Jwts.builder().setIssuer(claims.get("userId").toString()).setIssuedAt(iat).setExpiration(exp).addClaims(claims).signWith(SECRET_KEY).compact();
47
+    }
48
+
49
+    public static Map<String, Object> decode(String token) throws Exception {
50
+        return parse(token);
51
+    }
52
+
53
+    public static String refresh(String token) {
54
+        try {
55
+            Claims claims = parse(token);
56
+
57
+            Integer iat = (Integer) claims.get("iat");
58
+            if (null != iat) {
59
+                long currentTime = System.currentTimeMillis() / 1000;
60
+                int oneMinute = 60;
61
+                if (currentTime - iat < oneMinute) {
62
+                    return token;
63
+                }
64
+            }
65
+
66
+            claims.remove("iat");
67
+            claims.remove("exp");
68
+
69
+            return encode(claims);
70
+        } catch (Exception e) {
71
+            log.error("解析 JWT Token 失败: {}", e.getMessage());
72
+        }
73
+        return null;
74
+    }
75
+
76
+    public static void refresh(String jws, HttpServletResponse response) {
77
+        if (!StringUtils.isEmpty(jws)) {
78
+            String token =  refresh(jws);
79
+            response.addHeader(AUTH_HEADER, token);
80
+        }
81
+    }
82
+
83
+    public static String getToken(HttpServletRequest request) {
84
+        return request.getHeader(AUTH_HEADER);
85
+    }
86
+
87
+    public static void verify(String token) throws Exception {
88
+        parse(token);
89
+    }
90
+
91
+    private static Date[] getDatePair() {
92
+        LocalDateTime now = LocalDateTime.now();
93
+        Date iat = Date.from(now.atZone(ZoneId.systemDefault()).toInstant());
94
+        Date exp = Date.from(now.plusSeconds(EXPIRE_TIME).atZone(ZoneId.systemDefault()).toInstant());
95
+        return new Date[]{iat, exp};
96
+    }
97
+
98
+    private static Claims parse(String token) throws Exception {
99
+        if (token == null || "".equals(token)) {
100
+            throw new Exception("Token 不能为空");
101
+        }
102
+
103
+        long skew = 5;
104
+        Jws<Claims> claimsJws = Jwts.parserBuilder().setAllowedClockSkewSeconds(skew).setSigningKey(SECRET_KEY).build().parseClaimsJws(token);
105
+        return claimsJws.getBody();
106
+    }
107
+}

+ 11
- 0
src/main/java/com/yunzhi/shigongli/common/MathUtils.java 查看文件

@@ -0,0 +1,11 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import java.util.Random;
4
+
5
+public class MathUtils {
6
+
7
+    public static Integer getRand(int min, int max) {
8
+        Random random = new Random();
9
+        return random.nextInt(max) % (max - min + 1) + min;
10
+    }
11
+}

+ 132
- 0
src/main/java/com/yunzhi/shigongli/common/OSSUtils.java 查看文件

@@ -0,0 +1,132 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import com.aliyun.oss.OSSClient;
4
+import com.aliyuncs.DefaultAcsClient;
5
+import com.aliyuncs.auth.sts.AssumeRoleRequest;
6
+import com.aliyuncs.auth.sts.AssumeRoleResponse;
7
+import com.aliyuncs.exceptions.ClientException;
8
+import com.aliyuncs.http.MethodType;
9
+import com.aliyuncs.profile.DefaultProfile;
10
+import com.aliyuncs.profile.IClientProfile;
11
+import com.yunzhi.shigongli.config.AliyunConfig;
12
+import lombok.extern.slf4j.Slf4j;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.stereotype.Component;
15
+import org.springframework.web.multipart.MultipartFile;
16
+
17
+import java.io.*;
18
+import java.time.LocalDateTime;
19
+import java.time.format.DateTimeFormatter;
20
+import java.util.HashMap;
21
+import java.util.Map;
22
+
23
+@Slf4j
24
+@Component
25
+public class OSSUtils {
26
+
27
+    private final static String STS_ENDPOINT = "sts.aliyuncs.com";
28
+
29
+    @Autowired
30
+    AliyunConfig aliyunConfig;
31
+
32
+    private String getMonth() {
33
+        return DateTimeFormatter.ofPattern("yyyyMM").format(LocalDateTime.now());
34
+    }
35
+
36
+    private String getUploadPath(String[] toDirs) {
37
+        String path = toDirs.length > 0 ? toDirs[0] : "/";
38
+        if (!path.endsWith("/")) {
39
+            path += "/";
40
+        }
41
+
42
+        return path + getMonth() + "/";
43
+    }
44
+
45
+    /**
46
+     * 上传文件
47
+     * @param mf 上传的文件
48
+     * @param toDirs 上传到的目录
49
+     * @return
50
+     */
51
+    public String putObject(MultipartFile mf, String ... toDirs) throws IOException {
52
+        String fName = formatFileName(mf.getOriginalFilename());
53
+        String preFix = String.valueOf(System.currentTimeMillis());
54
+        String toDir = getUploadPath(toDirs);
55
+        String nwFName = toDir + preFix + "-" + fName;
56
+        nwFName = StringUtils.trim(nwFName,"/");
57
+
58
+        return putFile(nwFName, new ByteArrayInputStream(mf.getBytes()));
59
+    }
60
+
61
+    public String putObject(File f, String ... toDirs) throws FileNotFoundException {
62
+        String fName = formatFileName(f.getName());
63
+        String preFix = String.valueOf(System.currentTimeMillis());
64
+        String toDir = getUploadPath(toDirs);
65
+        String nwFName = toDir + preFix + "-" + fName;
66
+        nwFName = StringUtils.trim(nwFName,"/");
67
+
68
+        InputStream inputStream = new FileInputStream(f);
69
+        return putFile(nwFName, inputStream);
70
+    }
71
+
72
+    private String formatFileName(String fName) {
73
+        return StringUtils.ifNull(fName, StringUtils.random(16) + ".png");
74
+    }
75
+
76
+    private String putFile(String fname, InputStream input) {
77
+        OSSClient ossClient = new OSSClient(aliyunConfig.getOss().getEndpoint(), aliyunConfig.getAccessKeyId(), aliyunConfig.getAccessKeySecret());
78
+        ossClient.putObject(aliyunConfig.getOss().getBucketName(), fname, input);
79
+        ossClient.shutdown();
80
+
81
+        // String url = ossClient.generatePresignedUrl(AliOSSUtils.oss.getBucketName(), fname, expiration).toString();
82
+
83
+        String preURL = aliyunConfig.getOss().getBucketURL();
84
+        if (!preURL.endsWith("/")) {
85
+            preURL += "/";
86
+        }
87
+
88
+        return preURL + fname.replaceAll("\\ ", "%20").replaceAll("\\'", "%27");
89
+    }
90
+
91
+    /**
92
+     * 获取上传凭证
93
+     * @return
94
+     * @throws Exception
95
+     */
96
+    public Map<String, Object> getSTSAKToken() throws Exception {
97
+        AliyunConfig.Oss oss = aliyunConfig.getOss();
98
+
99
+        try {
100
+            // 添加endpoint(直接使用STS endpoint,无需添加region ID)
101
+            DefaultProfile.addEndpoint("", "Sts", STS_ENDPOINT);
102
+            // 构造default profile(参数留空,无需添加region ID)
103
+            IClientProfile profile = DefaultProfile.getProfile("", oss.getAccessKeyId(), oss.getAccessKeySecret());
104
+
105
+            // 用profile构造client
106
+            DefaultAcsClient client = new DefaultAcsClient(profile);
107
+            final AssumeRoleRequest request = new AssumeRoleRequest();
108
+            request.setSysMethod(MethodType.POST);
109
+            request.setRoleArn(oss.getArn());
110
+            request.setRoleSessionName(oss.getRoleSessionName());
111
+            request.setPolicy(null); // 若policy为空,则用户将获得该角色下所有权限
112
+            request.setDurationSeconds(30 * 60L); // 设置凭证有效时间 1800 秒 = 30 分钟
113
+            final AssumeRoleResponse response = client.getAcsResponse(request);
114
+
115
+            AssumeRoleResponse.Credentials credentials = response.getCredentials();
116
+
117
+            Map<String, Object> res = new HashMap<>();
118
+            res.put("stsToken", credentials.getSecurityToken());
119
+            res.put("accessKeySecret", credentials.getAccessKeySecret());
120
+            res.put("accessKeyId", credentials.getAccessKeyId());
121
+            res.put("expiration", credentials.getExpiration());
122
+
123
+            return res;
124
+        } catch (ClientException e) {
125
+            e.printStackTrace();
126
+            log.error("Error code: " + e.getErrCode());
127
+            log.error("Error message: " + e.getErrMsg());
128
+            log.error("RequestId: " + e.getRequestId());
129
+            throw new Exception(e.getMessage());
130
+        }
131
+    }
132
+}

+ 82
- 0
src/main/java/com/yunzhi/shigongli/common/ResponseBean.java 查看文件

@@ -0,0 +1,82 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import java.io.Serializable;
4
+import java.util.Map;
5
+
6
+/**
7
+ * 接口统一状态返回BEAN.
8
+ */
9
+public class ResponseBean<T> implements Serializable {
10
+
11
+    private static final long serialVersionUID = 3593827217136880822L;
12
+
13
+    public static final int CODE_SUCCESS = 1000;
14
+    public static final int ERROR_AUTH_FAIL = 1001;
15
+    public static final int ERROR_AUTH_EXPIRED = 1002;
16
+    public static final int ERROR_MISSING_PARAMS = 1003;
17
+    public static final int ERROR_ILLEGAL_PARAMS = 1004;
18
+    public static final int ERROR_UNAVAILABLE = 1005;
19
+
20
+    private int code;
21
+    private String message;
22
+    private T data;
23
+    private String token;
24
+
25
+    /**
26
+     * 禁止外部 new
27
+     */
28
+    private ResponseBean() {
29
+        code = ResponseBean.CODE_SUCCESS;
30
+    }
31
+
32
+    public static <T> ResponseBean success(T data, String ...msgs) {
33
+        ResponseBean responseBean = new ResponseBean();
34
+        responseBean.code = ResponseBean.CODE_SUCCESS;
35
+        responseBean.data = data;
36
+        responseBean.token = getContextToken();
37
+
38
+        if (null != msgs && msgs.length > 0) {
39
+            responseBean.message = msgs[0];
40
+        }
41
+
42
+        return responseBean;
43
+    }
44
+
45
+    private static String getContextToken() {
46
+        Map<String, Object> tokenParam = CurrentContext.getTokenParam();
47
+        return null != tokenParam ? (String) tokenParam.get("token") : null;
48
+    }
49
+
50
+    public static <T> ResponseBean error(String msg, int code, T ...datas) {
51
+        ResponseBean responseBean = new ResponseBean();
52
+        responseBean.code = code;
53
+        responseBean.message = msg;
54
+
55
+        if (null != datas && datas.length > 0) {
56
+            responseBean.data = datas[0];
57
+        }
58
+
59
+        return responseBean;
60
+    }
61
+
62
+    public int getCode() {
63
+        return code;
64
+    }
65
+
66
+    public String getMessage() {
67
+        return message;
68
+    }
69
+
70
+    public T getData() {
71
+        return data;
72
+    }
73
+
74
+    public String getToken() {
75
+        return token;
76
+    }
77
+    
78
+    @Override
79
+    public String toString() {
80
+        return  "{ code: "+code+", message: "+message+", data: <T> }";
81
+    }
82
+}

+ 145
- 0
src/main/java/com/yunzhi/shigongli/common/SMSCaptcha.java 查看文件

@@ -0,0 +1,145 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import com.yunzhi.shigongli.config.AliyunConfig;
4
+import lombok.Data;
5
+import lombok.experimental.Accessors;
6
+import lombok.extern.slf4j.Slf4j;
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.scheduling.annotation.EnableScheduling;
9
+import org.springframework.scheduling.annotation.Scheduled;
10
+import org.springframework.stereotype.Component;
11
+
12
+import java.time.LocalDateTime;
13
+import java.util.Hashtable;
14
+import java.util.Random;
15
+
16
+@Slf4j
17
+@Component
18
+@EnableScheduling
19
+public class SMSCaptcha {
20
+    @Autowired
21
+    AliyunConfig aliyunConfig;
22
+
23
+    @Autowired
24
+    SMSUtils smsUtils;
25
+
26
+    // 默认超时时间, 单位秒
27
+    Integer expireSec = 5 * 60;
28
+
29
+    // 缓存电话列表
30
+    Hashtable<String, Phone> allPhones = new Hashtable<>();
31
+
32
+    /**
33
+     * 发送验证码
34
+     * @param tel
35
+     * @param captcha
36
+     * @throws Exception
37
+     */
38
+    public void send(String tel, String captcha) throws Exception {
39
+        if (null == captcha) {
40
+            throw new Exception("没有有效的验证码");
41
+        }
42
+
43
+        Phone phone = new Phone()
44
+                .setNumber(tel)
45
+                .setCaptcha(captcha)
46
+                .setExpire(expireTime());
47
+
48
+
49
+        SMSUtils.Message message = new SMSUtils.Message()
50
+                .setCode(aliyunConfig.getSms().getCaptcha().getCode())
51
+                .setSign(aliyunConfig.getSms().getCaptcha().getSign())
52
+                .setTel(tel)
53
+                .setContent("{ \"code\": \"" + captcha + "\" }");
54
+
55
+        try {
56
+            smsUtils.sendMessage(message);
57
+        } catch (Exception e) {
58
+            // 修改友好点的错误
59
+            throw new Exception("发送验证码失败");
60
+        }
61
+
62
+        log.info(String.format("发送验证码 %s 到手机 %s", captcha, tel));
63
+
64
+        // 发送成功, 写入缓存
65
+        toCache(phone);
66
+    }
67
+
68
+    /**
69
+     * 校验验证码
70
+     * @param tel
71
+     * @param captcha
72
+     * @return
73
+     */
74
+    public boolean validate(String tel, String captcha) {
75
+        Phone phone = fromCache(tel);
76
+        if (null == phone) {
77
+            return false;
78
+        }
79
+
80
+        if (null == captcha || !captcha.equals(phone.getCaptcha())) {
81
+            return false;
82
+        }
83
+
84
+        // 过期则清除缓存
85
+        boolean res = checkExpire(phone);
86
+        if (res) {
87
+            clearCache(phone);
88
+        }
89
+
90
+        return !res;
91
+    }
92
+
93
+    /**
94
+     * 辅助方法: 随机生成验证码
95
+     * @param length
96
+     * @return
97
+     */
98
+    public String randCaptcha(int length) {
99
+        Random random = new Random();
100
+        String res = "";
101
+        for (int i = 0; i < length; i ++) {
102
+            int num = random.nextInt(10);
103
+            res += String.valueOf(num);
104
+        }
105
+        return res;
106
+    }
107
+
108
+    /**
109
+     * 定时任务 每半小时 清除一次不用的手机号
110
+     */
111
+    @Scheduled(fixedRate = 1000 * 60 * 30)
112
+    public void clearUnused() {
113
+        for (Phone phone: allPhones.values()) {
114
+            if (checkExpire(phone)) {
115
+                clearCache(phone);
116
+            }
117
+        }
118
+    }
119
+
120
+    private Phone fromCache(String phone) {
121
+        return allPhones.get(phone);
122
+    }
123
+    private void toCache(Phone phone) {
124
+        allPhones.put(phone.getNumber(), phone);
125
+    }
126
+    private void clearCache(Phone phone) { allPhones.remove(phone); }
127
+
128
+    private LocalDateTime expireTime() {
129
+        return LocalDateTime.now().plusSeconds(expireSec);
130
+    }
131
+
132
+    // 过期返回 true
133
+    private boolean checkExpire(Phone phone) {
134
+        return LocalDateTime.now().isAfter(phone.getExpire());
135
+    }
136
+
137
+    @Data
138
+    @Accessors(chain = true)
139
+    public static class Phone {
140
+        String number;
141
+        String captcha;
142
+        LocalDateTime expire;
143
+    }
144
+
145
+}

+ 71
- 0
src/main/java/com/yunzhi/shigongli/common/SMSUtils.java 查看文件

@@ -0,0 +1,71 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import com.aliyuncs.CommonRequest;
4
+import com.aliyuncs.CommonResponse;
5
+import com.aliyuncs.DefaultAcsClient;
6
+import com.aliyuncs.IAcsClient;
7
+import com.aliyuncs.http.MethodType;
8
+import com.aliyuncs.profile.DefaultProfile;
9
+import com.yunzhi.shigongli.config.AliyunConfig;
10
+import lombok.Data;
11
+import lombok.experimental.Accessors;
12
+import lombok.extern.slf4j.Slf4j;
13
+import org.springframework.beans.factory.InitializingBean;
14
+import org.springframework.beans.factory.annotation.Autowired;
15
+import org.springframework.stereotype.Component;
16
+
17
+@Slf4j
18
+@Component
19
+public class SMSUtils implements InitializingBean {
20
+
21
+    IAcsClient acsClient;
22
+
23
+    //产品名称:云通信短信API产品,开发者无需替换
24
+    static final String product = "Dysmsapi";
25
+    //产品域名,开发者无需替换
26
+    static final String domain = "dysmsapi.aliyuncs.com";
27
+    //API 的名称,开发者无需替换
28
+    static final String action = "SendSms";
29
+    //API RegionId,开发者无需替换
30
+    static final String regionId = "cn-hangzhou";
31
+    //API 版本,开发者无需替换
32
+    static final String verison = "2017-05-25";
33
+
34
+    @Autowired
35
+    AliyunConfig aliyunConfig;
36
+
37
+    public void sendMessage(Message message) throws Exception {
38
+        request(message);
39
+    }
40
+
41
+    private CommonResponse request(Message message) throws Exception {
42
+        CommonRequest request = new CommonRequest();
43
+        request.setSysMethod(MethodType.POST);
44
+        request.setSysDomain(domain);
45
+        request.setSysVersion(verison);
46
+        request.setSysAction(action);
47
+        request.putQueryParameter("RegionId", regionId);
48
+        request.putQueryParameter("PhoneNumbers", message.getTel());
49
+        request.putQueryParameter("SignName", message.getSign());
50
+        request.putQueryParameter("TemplateCode", message.getCode());
51
+        request.putQueryParameter("TemplateParam", message.getContent());
52
+
53
+        return acsClient.getCommonResponse(request);
54
+    }
55
+
56
+    @Override
57
+    public void afterPropertiesSet() throws Exception {
58
+        AliyunConfig.Sms sms = aliyunConfig.getSms();
59
+        DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", aliyunConfig.getAccessKeyId(), aliyunConfig.getAccessKeySecret());
60
+        acsClient = new DefaultAcsClient(profile);
61
+    }
62
+
63
+    @Data
64
+    @Accessors(chain = true)
65
+    public static class Message {
66
+        String code;
67
+        String tel;
68
+        String sign;
69
+        String content;
70
+    }
71
+}

+ 120
- 0
src/main/java/com/yunzhi/shigongli/common/StringUtils.java 查看文件

@@ -0,0 +1,120 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import java.io.UnsupportedEncodingException;
4
+import java.net.URLEncoder;
5
+import java.util.Random;
6
+import java.util.regex.Matcher;
7
+import java.util.regex.Pattern;
8
+
9
+public class StringUtils {
10
+    private static Pattern humpPattern = Pattern.compile("[A-Z]");
11
+
12
+    public static boolean isEmpty(String str) {
13
+        return null == str || "".equals(str.trim()) || "null".equals(str) || "undefined".equals(str);
14
+    }
15
+
16
+    public static String trim(String src, String...st) {
17
+        if (null == src) return src;
18
+        if (null == st || st.length == 0) return src.trim();
19
+
20
+        String start = st[0];
21
+        if (!src.startsWith(start)) {
22
+            return src;
23
+        }
24
+
25
+        return src.substring(start.length());
26
+    }
27
+
28
+    public static String trimEnd(String src, String str) {
29
+        if (null == src || null == str) {
30
+            return src;
31
+        }
32
+
33
+        if (src.endsWith(str)) {
34
+            return src.substring(0, src.length() - str.length());
35
+        }
36
+
37
+        return src;
38
+    }
39
+
40
+    public static String ifNull(String src, String defaultVal) {
41
+        return isEmpty(src) ? defaultVal : src;
42
+    }
43
+
44
+    public static String random(int length) {
45
+        String str="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
46
+        Random random = new Random();
47
+        StringBuffer sb = new StringBuffer();
48
+        for(int i=0;i<length;i++){
49
+            int number=random.nextInt(62);
50
+            sb.append(str.charAt(number));
51
+        }
52
+        return sb.toString();
53
+    }
54
+
55
+    public static String urlEncode(String str) {
56
+        try {
57
+            return URLEncoder.encode(str, "UTF-8");
58
+        } catch (UnsupportedEncodingException e) {
59
+            e.printStackTrace();
60
+            return str;
61
+        }
62
+    }
63
+
64
+    public static String humpToLine(String str) {
65
+        if (null == str || "".equals(str)) return "";
66
+
67
+        Matcher matcher = humpPattern.matcher(str);
68
+        StringBuffer sb = new StringBuffer();
69
+        while (matcher.find()) {
70
+            matcher.appendReplacement(sb, "_" + matcher.group(0).toLowerCase());
71
+        }
72
+        matcher.appendTail(sb);
73
+        return sb.toString();
74
+    }
75
+
76
+    public static String strToUnicode(String str) {
77
+        char[] chars = str.toCharArray();
78
+        String returnStr = "";
79
+        for (int i = 0; i < chars.length; i++) {
80
+            returnStr += "\\u" + Integer.toString(chars[i], 16);
81
+        }
82
+        return returnStr;
83
+    }
84
+
85
+    public static String repeat(String src, int len) {
86
+        if (null == src) {
87
+            return null;
88
+        }
89
+
90
+        if (len <= 0) {
91
+            return src;
92
+        }
93
+
94
+        String res = "";
95
+        for (int i = 0; i < len; i ++) {
96
+            res += src;
97
+        }
98
+
99
+        return res;
100
+    }
101
+
102
+    public static String lpad(String src, String padStr, int len) {
103
+        if (null == src) {
104
+            return null;
105
+        }
106
+
107
+        if (len <= 0 || src.length() >= len) {
108
+            return src;
109
+        }
110
+
111
+        if (null == padStr) {
112
+            padStr = "";
113
+        }
114
+
115
+        int padLen = len - src.length();
116
+        String prefix = repeat(padStr, padLen);
117
+        prefix = prefix.substring(0, padLen);
118
+        return prefix + src;
119
+    }
120
+}

+ 34
- 0
src/main/java/com/yunzhi/shigongli/common/WxUtils.java 查看文件

@@ -0,0 +1,34 @@
1
+package com.yunzhi.shigongli.common;
2
+
3
+import cn.binarywang.wx.miniapp.api.WxMaService;
4
+import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
5
+import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl;
6
+import com.yunzhi.shigongli.config.WeixinConfig;
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.stereotype.Component;
9
+
10
+@Component
11
+public class WxUtils {
12
+    private static WxMaService service;
13
+
14
+    @Autowired
15
+    public WxUtils(WeixinConfig config) {
16
+        setService(config);
17
+    }
18
+
19
+    private void setService(WeixinConfig config) {
20
+        WxMaDefaultConfigImpl conf = new WxMaDefaultConfigImpl();
21
+        conf.setAppid(config.getMiniapp().getAppid());
22
+        conf.setSecret(config.getMiniapp().getSecret());
23
+        conf.setToken(config.getMiniapp().getToken());
24
+        conf.setAesKey(config.getMiniapp().getAesKey());
25
+        conf.setMsgDataFormat(config.getMiniapp().getMsgDataFormat());
26
+
27
+        service = new WxMaServiceImpl();
28
+        service.setWxMaConfig(conf);
29
+    }
30
+
31
+    public WxMaService getService() {
32
+        return service;
33
+    }
34
+}

+ 44
- 0
src/main/java/com/yunzhi/shigongli/config/AliyunConfig.java 查看文件

@@ -0,0 +1,44 @@
1
+package com.yunzhi.shigongli.config;
2
+
3
+import lombok.Data;
4
+import org.springframework.boot.context.properties.ConfigurationProperties;
5
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
6
+import org.springframework.stereotype.Component;
7
+
8
+@Data
9
+@Component
10
+@ConfigurationProperties(prefix = "aliyun")
11
+public class AliyunConfig {
12
+    private String accessKeyId;
13
+    private String accessKeySecret;
14
+
15
+    @NestedConfigurationProperty
16
+    private Oss oss = new Oss();
17
+
18
+    @NestedConfigurationProperty
19
+    private Sms sms = new Sms();
20
+
21
+    @Data
22
+    public  static class Oss {
23
+        private String roleSessionName;
24
+        private String accessKeyId;
25
+        private String accessKeySecret;
26
+        private String arn;
27
+        private String region;
28
+        private String endpoint;
29
+        private String bucketName;
30
+        private String bucketURL;
31
+    }
32
+
33
+    @Data
34
+    public static class Sms {
35
+        @NestedConfigurationProperty
36
+        private Captcha captcha = new Captcha();
37
+    }
38
+
39
+    @Data
40
+    public static class Captcha {
41
+        private String code;
42
+        private String sign;
43
+    }
44
+}

+ 35
- 0
src/main/java/com/yunzhi/shigongli/config/BaseConfig.java 查看文件

@@ -0,0 +1,35 @@
1
+package com.yunzhi.shigongli.config;
2
+
3
+import com.yunzhi.shigongli.interceptor.PermissionInterceptor;
4
+import lombok.Data;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.context.annotation.Configuration;
7
+import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
8
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
9
+
10
+import javax.annotation.PostConstruct;
11
+
12
+@Data
13
+@Configuration
14
+public class BaseConfig implements WebMvcConfigurer {
15
+
16
+    @Autowired
17
+    private PermissionInterceptor permissionInterceptor;
18
+
19
+    @Autowired
20
+    private InterceptorConfig interceptorConfig;
21
+
22
+    @PostConstruct
23
+    public void init() {
24
+    }
25
+
26
+    @Override
27
+    public void addInterceptors(InterceptorRegistry registry) {
28
+        // 自定义拦截器,添加拦截路径和排除拦截路径
29
+        if (interceptorConfig.getPermission().isEnable()) {
30
+            registry.addInterceptor(permissionInterceptor)
31
+                    .addPathPatterns(interceptorConfig.getPermission().getIncludePaths())
32
+                    .excludePathPatterns(interceptorConfig.getPermission().getExcludePaths());
33
+        }
34
+    }
35
+}

+ 34
- 0
src/main/java/com/yunzhi/shigongli/config/InterceptorConfig.java 查看文件

@@ -0,0 +1,34 @@
1
+package com.yunzhi.shigongli.config;
2
+
3
+import lombok.Data;
4
+import org.springframework.boot.context.properties.ConfigurationProperties;
5
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
6
+import org.springframework.stereotype.Component;
7
+
8
+@Data
9
+@Component
10
+@ConfigurationProperties(prefix = "interceptor")
11
+public class InterceptorConfig {
12
+
13
+    @NestedConfigurationProperty
14
+    private Config permission = new Config();
15
+
16
+    @Data
17
+    public static class Config {
18
+
19
+        /**
20
+         * 是否启用
21
+         */
22
+        private boolean enable;
23
+
24
+        /**
25
+         * 包含的路径
26
+         */
27
+        private String[] includePaths = new String[]{};
28
+
29
+        /**
30
+         * 排除路径
31
+         */
32
+        private String[] excludePaths = new String[]{};
33
+    }
34
+}

+ 14
- 0
src/main/java/com/yunzhi/shigongli/config/MybatisPlusConfig.java 查看文件

@@ -0,0 +1,14 @@
1
+package com.yunzhi.shigongli.config;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
4
+import org.springframework.context.annotation.Bean;
5
+import org.springframework.context.annotation.Configuration;
6
+
7
+@Configuration
8
+public class MybatisPlusConfig {
9
+
10
+    @Bean
11
+    public PaginationInterceptor paginationInterceptor() {
12
+        return new PaginationInterceptor();
13
+    }
14
+}

+ 24
- 0
src/main/java/com/yunzhi/shigongli/config/SwagggerConfig.java 查看文件

@@ -0,0 +1,24 @@
1
+package com.yunzhi.shigongli.config;
2
+
3
+import io.swagger.annotations.Api;
4
+import org.springframework.context.annotation.Bean;
5
+import org.springframework.context.annotation.Configuration;
6
+import springfox.documentation.builders.PathSelectors;
7
+import springfox.documentation.builders.RequestHandlerSelectors;
8
+import springfox.documentation.spi.DocumentationType;
9
+import springfox.documentation.spring.web.plugins.Docket;
10
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
11
+
12
+@Configuration
13
+@EnableSwagger2
14
+public class SwagggerConfig {
15
+    @Bean
16
+    public Docket docket() {
17
+        return new Docket(DocumentationType.SWAGGER_2)
18
+                .select()
19
+                .apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
20
+                .paths(PathSelectors.any())
21
+                .build();
22
+
23
+    }
24
+}

+ 24
- 0
src/main/java/com/yunzhi/shigongli/config/WeixinConfig.java 查看文件

@@ -0,0 +1,24 @@
1
+package com.yunzhi.shigongli.config;
2
+
3
+import lombok.Data;
4
+import org.springframework.boot.context.properties.ConfigurationProperties;
5
+import org.springframework.boot.context.properties.NestedConfigurationProperty;
6
+import org.springframework.stereotype.Component;
7
+
8
+@Data
9
+@Component
10
+@ConfigurationProperties(prefix = "weixin")
11
+public class WeixinConfig {
12
+
13
+    @NestedConfigurationProperty
14
+    private Miniapp miniapp = new Miniapp();
15
+
16
+    @Data
17
+    public static class Miniapp {
18
+        private String appid;
19
+        private String secret;
20
+        private String token;
21
+        private String aesKey;
22
+        private String msgDataFormat;
23
+    }
24
+}

+ 71
- 0
src/main/java/com/yunzhi/shigongli/controller/CommController.java 查看文件

@@ -0,0 +1,71 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.yunzhi.shigongli.common.BaseController;
4
+import com.yunzhi.shigongli.common.OSSUtils;
5
+import com.yunzhi.shigongli.common.ResponseBean;
6
+import com.yunzhi.shigongli.config.AliyunConfig;
7
+import io.swagger.annotations.Api;
8
+import io.swagger.annotations.ApiOperation;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.web.bind.annotation.*;
11
+import org.springframework.web.multipart.MultipartFile;
12
+
13
+import java.io.IOException;
14
+import java.time.LocalDateTime;
15
+import java.time.format.DateTimeFormatter;
16
+import java.util.Map;
17
+
18
+@Api(tags = "通用")
19
+@RestController
20
+@RequestMapping("/")
21
+public class CommController extends BaseController {
22
+
23
+    @Autowired
24
+    OSSUtils ossUtils;
25
+
26
+    @Autowired
27
+    AliyunConfig aliyunConfig;
28
+
29
+    /**
30
+     * 图片
31
+     * @param multipartFile
32
+     * @return
33
+     */
34
+    @ApiOperation(value = "图片上传", notes = "图片上传")
35
+    @PostMapping("/{plat}/image")
36
+    public ResponseBean uploadImage(@RequestParam("file") MultipartFile multipartFile) {
37
+        try {
38
+            String img = ossUtils.putObject(multipartFile);
39
+            return ResponseBean.success(img);
40
+        } catch (IOException e) {
41
+            return ResponseBean.error("上传图片失败: " + e.getMessage(), ResponseBean.ERROR_UNAVAILABLE);
42
+        }
43
+    }
44
+
45
+    /**
46
+     * 获取文件上传凭证
47
+     * @return
48
+     */
49
+    @ApiOperation(value = "获取文件上传凭证", notes = "获取文件上传凭证")
50
+    @GetMapping("/{plat}/oss-sts")
51
+    public ResponseBean getOSSSTS() {
52
+        AliyunConfig.Oss oss = aliyunConfig.getOss();
53
+
54
+        try {
55
+            Map<String, Object> res = ossUtils.getSTSAKToken();
56
+            res.put("endpoint", oss.getEndpoint());
57
+            res.put("bucket", oss.getBucketName());
58
+            res.put("bucketURL", oss.getBucketURL());
59
+            res.put("region", oss.getRegion());
60
+            res.put("path", getMonth());
61
+
62
+            return ResponseBean.success(res);
63
+        } catch (Exception e) {
64
+            return ResponseBean.error("获取上传凭证失败! ", ResponseBean.ERROR_UNAVAILABLE);
65
+        }
66
+    }
67
+
68
+    private String getMonth() {
69
+        return DateTimeFormatter.ofPattern("yyyy-MM").format(LocalDateTime.now());
70
+    }
71
+}

+ 111
- 0
src/main/java/com/yunzhi/shigongli/controller/LoginController.java 查看文件

@@ -0,0 +1,111 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.yunzhi.shigongli.common.*;
4
+import com.yunzhi.shigongli.entity.SysLogin;
5
+import com.yunzhi.shigongli.entity.SysUser;
6
+import com.yunzhi.shigongli.service.ISysLoginService;
7
+import com.yunzhi.shigongli.service.ISysUserService;
8
+import com.yunzhi.shigongli.vo.ChangePassword;
9
+import com.yunzhi.shigongli.vo.LoginParam;
10
+import com.yunzhi.shigongli.vo.TokenParam;
11
+import io.swagger.annotations.Api;
12
+import io.swagger.annotations.ApiOperation;
13
+import io.swagger.annotations.ApiParam;
14
+import org.springframework.beans.factory.annotation.Autowired;
15
+import org.springframework.web.bind.annotation.*;
16
+
17
+import java.util.HashMap;
18
+import java.util.Map;
19
+
20
+@Api(tags = "登入/登出")
21
+@RestController
22
+public class LoginController extends BaseController {
23
+
24
+    @Autowired
25
+    ISysLoginService iSysLoginService;
26
+
27
+    @Autowired
28
+    ISysUserService iSysUserService;
29
+
30
+    @PostMapping("/admin/login")
31
+    @ApiOperation(value="登录", notes = "登录", httpMethod = "POST", response = ResponseBean.class)
32
+    public ResponseBean login(@ApiParam("登录参数") @RequestBody LoginParam loginParam) throws Exception {
33
+        if (null == loginParam) {
34
+            return ResponseBean.error("账户或密码不能为空", ResponseBean.ERROR_ILLEGAL_PARAMS);
35
+        }
36
+
37
+        String userName = loginParam.getUserName();
38
+        String password = loginParam.getPassword();
39
+
40
+        if (StringUtils.isEmpty(userName) || StringUtils.isEmpty(password)) {
41
+            return ResponseBean.error("账户或密码不能为空", ResponseBean.ERROR_ILLEGAL_PARAMS);
42
+        }
43
+
44
+        SysLogin sysLogin = iSysLoginService.getByLoginName(userName);
45
+        if (null == sysLogin) {
46
+            return ResponseBean.error("账户或密码不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
47
+        }
48
+
49
+        SysUser sysUser = iSysUserService.getById(sysLogin.getUserId());
50
+        if (null == sysUser) {
51
+            return ResponseBean.error("账户或密码不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
52
+        }
53
+
54
+        if (!checkPassword(password, sysLogin.getPassword(), sysLogin.getUserId())) {
55
+            return ResponseBean.error("账户或密码不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
56
+        }
57
+
58
+        if (!Constants.STATUS_NORMAL.equals(sysUser.getStatus())) {
59
+            return ResponseBean.error("用户状态不正确, 请联系管理人员", ResponseBean.ERROR_UNAVAILABLE);
60
+        }
61
+
62
+        // 生成 token
63
+        TokenParam tokenParam = new TokenParam()
64
+                .setUserId(sysUser.getUserId())
65
+                .setOrgId("0");
66
+        String token = JWTUtils.encode(tokenParam.toMap());
67
+
68
+        Map<String, Object> res = new HashMap<String, Object>() {{
69
+            put("user", sysUser);
70
+            put("token", token);
71
+        }};
72
+        return ResponseBean.success(res);
73
+    }
74
+
75
+
76
+    @PutMapping("/admin/change-password")
77
+    @ApiOperation(value="修改密码", notes = "修改密码", httpMethod = "PUT", response = ResponseBean.class)
78
+    public ResponseBean changePassword(@ApiParam("修改密码参数") @RequestBody ChangePassword param) throws Exception {
79
+        if (StringUtils.isEmpty(param.getOriginPassword()) || StringUtils.isEmpty(param.getNewPassword())) {
80
+            return ResponseBean.error("原始密码或新密码不能为空", ResponseBean.ERROR_ILLEGAL_PARAMS);
81
+        }
82
+
83
+        SysUser currentUser = getCurrentUser();
84
+        SysLogin sysLogin = iSysLoginService.getByUser(currentUser.getUserId());
85
+
86
+        if (!checkPassword(param.getOriginPassword(), sysLogin.getPassword(), currentUser.getUserId())) {
87
+            return ResponseBean.error("原始密码不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
88
+        }
89
+
90
+        sysLogin.setPassword(EncryptUtils.md5(param.getNewPassword(), currentUser.getUserId()));
91
+        iSysLoginService.updateById(sysLogin);
92
+
93
+        return ResponseBean.success("密码修改成功");
94
+    }
95
+
96
+//    @PutMapping("/admin/reset-password/{userId}")
97
+//    @ApiOperation(value="重置密码", notes = "重置密码", httpMethod = "PUT", response = ResponseBean.class)
98
+//    public ResponseBean resetPassword(@ApiParam("用户ID") @PathVariable String userId) throws Exception {
99
+//        SysLogin sysLogin = iSysLoginService.getByUser(userId);
100
+//
101
+//        String newPassword = EncryptUtils.md5(EncryptUtils.md5(Constants.DEFAULT_PASSWORD), userId);
102
+//        sysLogin.setPassword(newPassword);
103
+//        iSysLoginService.updateById(sysLogin);
104
+//
105
+//        return ResponseBean.success("重置密码成功");
106
+//    }
107
+
108
+    private boolean checkPassword(String src, String targ, String salt) {
109
+        return EncryptUtils.md5(src, salt).equals(targ);
110
+    }
111
+}

+ 60
- 0
src/main/java/com/yunzhi/shigongli/controller/SysUserController.java 查看文件

@@ -0,0 +1,60 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ISysUserService;
20
+import com.yunzhi.shigongli.entity.SysUser;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+import java.util.HashMap;
24
+import java.util.Map;
25
+
26
+/**
27
+ * <p>
28
+    * 用户 前端控制器
29
+    * </p>
30
+ *
31
+ * @author yansen
32
+ * @since 2021-08-17
33
+ */
34
+
35
+@Api(tags = "用户")
36
+@RestController
37
+@RequestMapping("/")
38
+public class SysUserController extends BaseController {
39
+
40
+    private final Logger logger = LoggerFactory.getLogger(SysUserController.class);
41
+
42
+    @Autowired
43
+    public ISysUserService iSysUserService;
44
+
45
+
46
+    /**
47
+     * 当前用户
48
+     */
49
+    @RequestMapping(value="/admin/currentUser",method= RequestMethod.GET)
50
+    @ApiOperation(value="当前用户", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean currentUser() throws Exception{
52
+        SysUser sysUser = getCurrentUser();
53
+
54
+        Map<String, Object> result = new HashMap<String, Object>() {{
55
+            put("user", sysUser);
56
+        }};
57
+
58
+        return ResponseBean.success(result);
59
+    }
60
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaEvaluationController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaEvaluationService;
20
+import com.yunzhi.shigongli.entity.TaEvaluation;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 评价表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "评价表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaEvaluationController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaEvaluationController.class);
38
+
39
+    @Autowired
40
+    public ITaEvaluationService iTaEvaluationService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taEvaluation",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taEvaluationList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaEvaluation> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaEvaluation> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaEvaluation> result = iTaEvaluationService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taEvaluation 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/wx/taEvaluation",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taEvaluationAdd(@ApiParam("保存内容") @RequestBody TaEvaluation taEvaluation) throws Exception{
70
+
71
+        if (iTaEvaluationService.save(taEvaluation)){
72
+            return ResponseBean.success(taEvaluation);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taEvaluation/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taEvaluationDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaEvaluationService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taEvaluation 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taEvaluation/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taEvaluationUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaEvaluation taEvaluation) throws Exception{
102
+//
103
+//        if (iTaEvaluationService.updateById(taEvaluation)){
104
+//            return ResponseBean.success(iTaEvaluationService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/wx/taEvaluation/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taEvaluationGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaEvaluationService.getById(id));
118
+    }
119
+}

+ 123
- 0
src/main/java/com/yunzhi/shigongli/controller/TaExtendContentController.java 查看文件

@@ -0,0 +1,123 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaExtendContentService;
20
+import com.yunzhi.shigongli.entity.TaExtendContent;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+import javax.servlet.http.HttpServletRequest;
24
+
25
+/**
26
+ * <p>
27
+    * 扩展内容 前端控制器
28
+    * </p>
29
+ *
30
+ * @author yansen
31
+ * @since 2021-08-17
32
+ */
33
+
34
+@Api(tags = "扩展内容")
35
+@RestController
36
+@RequestMapping("/")
37
+public class TaExtendContentController extends BaseController {
38
+
39
+    private final Logger logger = LoggerFactory.getLogger(TaExtendContentController.class);
40
+
41
+    @Autowired
42
+    public ITaExtendContentService iTaExtendContentService;
43
+
44
+
45
+    /**
46
+     * 分页查询列表
47
+     * @param pageNum
48
+     * @param pageSize
49
+     * @return
50
+     */
51
+    @RequestMapping(value="/{plat}/taExtendContent",method= RequestMethod.GET)
52
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
53
+    public ResponseBean taExtendContentList(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
54
+                                            @ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
55
+                                            @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
56
+                                            HttpServletRequest request) throws Exception{
57
+
58
+		    IPage<TaExtendContent> pg = new Page<>(pageNum, pageSize);
59
+            QueryWrapper<TaExtendContent> queryWrapper = new QueryWrapper<>();
60
+            queryWrapper.orderByDesc("create_date");
61
+
62
+            IPage<TaExtendContent> result = iTaExtendContentService.page(pg, queryWrapper);
63
+            return ResponseBean.success(result);
64
+    }
65
+
66
+    /**
67
+     * 保存对象
68
+     * @param taExtendContent 实体对象
69
+     * @return
70
+     */
71
+    @RequestMapping(value="/admin/taExtendContent",method= RequestMethod.POST)
72
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
73
+    public ResponseBean taExtendContentAdd(@ApiParam("保存内容") @RequestBody TaExtendContent taExtendContent) throws Exception{
74
+
75
+        if (iTaExtendContentService.save(taExtendContent)){
76
+            return ResponseBean.success(taExtendContent);
77
+        }else {
78
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
79
+        }
80
+    }
81
+
82
+    /**
83
+     * 根据id删除对象
84
+     * @param id  实体ID
85
+     */
86
+    @RequestMapping(value="/admin/taExtendContent/{id}", method= RequestMethod.DELETE)
87
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
88
+    public ResponseBean taExtendContentDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
89
+        if(iTaExtendContentService.removeById(id)){
90
+            return ResponseBean.success("success");
91
+        }else {
92
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
93
+        }
94
+    }
95
+
96
+//    /**
97
+//     * 修改对象
98
+//     * @param id  实体ID
99
+//     * @param taExtendContent 实体对象
100
+//     * @return
101
+//     */
102
+//    @RequestMapping(value="/admin/taExtendContent/{id}",method= RequestMethod.PUT)
103
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
104
+//    public ResponseBean taExtendContentUpdate(@ApiParam("对象ID") @PathVariable Integer id,
105
+//                                        @ApiParam("更新内容") @RequestBody TaExtendContent taExtendContent) throws Exception{
106
+//
107
+//        if (iTaExtendContentService.updateById(taExtendContent)){
108
+//            return ResponseBean.success(iTaExtendContentService.getById(id));
109
+//        }else {
110
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
111
+//        }
112
+//    }
113
+
114
+    /**
115
+     * 根据id查询对象
116
+     * @param id  实体ID
117
+     */
118
+    @RequestMapping(value="/admin/taExtendContent/{id}",method= RequestMethod.GET)
119
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
120
+    public ResponseBean taExtendContentGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
121
+        return ResponseBean.success(iTaExtendContentService.getById(id));
122
+    }
123
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaFeedbackController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaFeedbackService;
20
+import com.yunzhi.shigongli.entity.TaFeedback;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 意见反馈 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "意见反馈")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaFeedbackController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaFeedbackController.class);
38
+
39
+    @Autowired
40
+    public ITaFeedbackService iTaFeedbackService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taFeedback",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taFeedbackList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaFeedback> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaFeedback> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaFeedback> result = iTaFeedbackService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taFeedback 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/wx/taFeedback",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taFeedbackAdd(@ApiParam("保存内容") @RequestBody TaFeedback taFeedback) throws Exception{
70
+
71
+        if (iTaFeedbackService.save(taFeedback)){
72
+            return ResponseBean.success(taFeedback);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taFeedback/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taFeedbackDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaFeedbackService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taFeedback 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taFeedback/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taFeedbackUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaFeedback taFeedback) throws Exception{
102
+//
103
+//        if (iTaFeedbackService.updateById(taFeedback)){
104
+//            return ResponseBean.success(iTaFeedbackService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/admin/taFeedback/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taFeedbackGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaFeedbackService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaHotelAccountController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaHotelAccountService;
20
+import com.yunzhi.shigongli.entity.TaHotelAccount;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 民宿账户 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "民宿账户")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaHotelAccountController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaHotelAccountController.class);
38
+
39
+    @Autowired
40
+    public ITaHotelAccountService iTaHotelAccountService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taHotelAccount",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taHotelAccountList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaHotelAccount> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaHotelAccount> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaHotelAccount> result = iTaHotelAccountService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taHotelAccount 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taHotelAccount",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taHotelAccountAdd(@ApiParam("保存内容") @RequestBody TaHotelAccount taHotelAccount) throws Exception{
70
+
71
+        if (iTaHotelAccountService.save(taHotelAccount)){
72
+            return ResponseBean.success(taHotelAccount);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taHotelAccount/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taHotelAccountDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaHotelAccountService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taHotelAccount 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taHotelAccount/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taHotelAccountUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaHotelAccount taHotelAccount) throws Exception{
102
+
103
+        if (iTaHotelAccountService.updateById(taHotelAccount)){
104
+            return ResponseBean.success(iTaHotelAccountService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taHotelAccount/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taHotelAccountGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaHotelAccountService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaHotelAccountLogController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaHotelAccountLogService;
20
+import com.yunzhi.shigongli.entity.TaHotelAccountLog;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 民宿账户流水 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "民宿账户流水")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaHotelAccountLogController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaHotelAccountLogController.class);
38
+
39
+    @Autowired
40
+    public ITaHotelAccountLogService iTaHotelAccountLogService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/taHotelAccountLog",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taHotelAccountLogList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaHotelAccountLog> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaHotelAccountLog> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaHotelAccountLog> result = iTaHotelAccountLogService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taHotelAccountLog 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/taHotelAccountLog",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taHotelAccountLogAdd(@ApiParam("保存内容") @RequestBody TaHotelAccountLog taHotelAccountLog) throws Exception{
70
+
71
+        if (iTaHotelAccountLogService.save(taHotelAccountLog)){
72
+            return ResponseBean.success(taHotelAccountLog);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/taHotelAccountLog/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taHotelAccountLogDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaHotelAccountLogService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taHotelAccountLog 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/taHotelAccountLog/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taHotelAccountLogUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaHotelAccountLog taHotelAccountLog) throws Exception{
102
+
103
+        if (iTaHotelAccountLogService.updateById(taHotelAccountLog)){
104
+            return ResponseBean.success(iTaHotelAccountLogService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/taHotelAccountLog/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taHotelAccountLogGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaHotelAccountLogService.getById(id));
118
+    }
119
+}

+ 120
- 0
src/main/java/com/yunzhi/shigongli/controller/TaHotelController.java 查看文件

@@ -0,0 +1,120 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaHotelService;
20
+import com.yunzhi.shigongli.entity.TaHotel;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 民宿 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "民宿")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaHotelController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaHotelController.class);
38
+
39
+    @Autowired
40
+    public ITaHotelService iTaHotelService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/{plat}/taHotel",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taHotelList(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
52
+                                    @ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
53
+                                    @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
54
+
55
+		    IPage<TaHotel> pg = new Page<>(pageNum, pageSize);
56
+            QueryWrapper<TaHotel> queryWrapper = new QueryWrapper<>();
57
+            queryWrapper.orderByDesc("create_date");
58
+
59
+            IPage<TaHotel> result = iTaHotelService.page(pg, queryWrapper);
60
+            return ResponseBean.success(result);
61
+    }
62
+
63
+    /**
64
+     * 保存对象
65
+     * @param taHotel 实体对象
66
+     * @return
67
+     */
68
+    @RequestMapping(value="/admin/taHotel",method= RequestMethod.POST)
69
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
70
+    public ResponseBean taHotelAdd(@ApiParam("保存内容") @RequestBody TaHotel taHotel) throws Exception{
71
+
72
+        if (iTaHotelService.save(taHotel)){
73
+            return ResponseBean.success(taHotel);
74
+        }else {
75
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
76
+        }
77
+    }
78
+
79
+    /**
80
+     * 根据id删除对象
81
+     * @param id  实体ID
82
+     */
83
+    @RequestMapping(value="/admin/taHotel/{id}", method= RequestMethod.DELETE)
84
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
85
+    public ResponseBean taHotelDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
86
+        if(iTaHotelService.removeById(id)){
87
+            return ResponseBean.success("success");
88
+        }else {
89
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
90
+        }
91
+    }
92
+
93
+    /**
94
+     * 修改对象
95
+     * @param id  实体ID
96
+     * @param taHotel 实体对象
97
+     * @return
98
+     */
99
+    @RequestMapping(value="/admin/taHotel/{id}",method= RequestMethod.PUT)
100
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
101
+    public ResponseBean taHotelUpdate(@ApiParam("对象ID") @PathVariable Integer id,
102
+                                        @ApiParam("更新内容") @RequestBody TaHotel taHotel) throws Exception{
103
+
104
+        if (iTaHotelService.updateById(taHotel)){
105
+            return ResponseBean.success(iTaHotelService.getById(id));
106
+        }else {
107
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
108
+        }
109
+    }
110
+
111
+    /**
112
+     * 根据id查询对象
113
+     * @param id  实体ID
114
+     */
115
+    @RequestMapping(value="/admin/taHotel/{id}",method= RequestMethod.GET)
116
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
117
+    public ResponseBean taHotelGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
118
+        return ResponseBean.success(iTaHotelService.getById(id));
119
+    }
120
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaHotelWorkerController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaHotelWorkerService;
20
+import com.yunzhi.shigongli.entity.TaHotelWorker;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 民宿员工 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "民宿员工")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaHotelWorkerController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaHotelWorkerController.class);
38
+
39
+    @Autowired
40
+    public ITaHotelWorkerService iTaHotelWorkerService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taHotelWorker",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taHotelWorkerList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaHotelWorker> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaHotelWorker> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaHotelWorker> result = iTaHotelWorkerService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taHotelWorker 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/admin/taHotelWorker",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taHotelWorkerAdd(@ApiParam("保存内容") @RequestBody TaHotelWorker taHotelWorker) throws Exception{
70
+
71
+        if (iTaHotelWorkerService.save(taHotelWorker)){
72
+            return ResponseBean.success(taHotelWorker);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/admin/taHotelWorker/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taHotelWorkerDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaHotelWorkerService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taHotelWorker 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/admin/taHotelWorker/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taHotelWorkerUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaHotelWorker taHotelWorker) throws Exception{
102
+
103
+        if (iTaHotelWorkerService.updateById(taHotelWorker)){
104
+            return ResponseBean.success(iTaHotelWorkerService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/admin/taHotelWorker/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taHotelWorkerGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+        return ResponseBean.success(iTaHotelWorkerService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaLikeController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaLikeService;
20
+import com.yunzhi.shigongli.entity.TaLike;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 点赞表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "点赞表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaLikeController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaLikeController.class);
38
+
39
+    @Autowired
40
+    public ITaLikeService iTaLikeService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taLike",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taLikeList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaLike> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaLike> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaLike> result = iTaLikeService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taLike 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/wx/taLike",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taLikeAdd(@ApiParam("保存内容") @RequestBody TaLike taLike) throws Exception{
70
+
71
+        if (iTaLikeService.save(taLike)){
72
+            return ResponseBean.success(taLike);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/wx/taLike/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taLikeDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaLikeService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taLike 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taLike/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taLikeUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaLike taLike) throws Exception{
102
+//
103
+//        if (iTaLikeService.updateById(taLike)){
104
+//            return ResponseBean.success(iTaLikeService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taLike/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taLikeGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaLikeService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaOrderCommissionController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaOrderCommissionService;
20
+import com.yunzhi.shigongli.entity.TaOrderCommission;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 订单抽成 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "订单抽成")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaOrderCommissionController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaOrderCommissionController.class);
38
+
39
+    @Autowired
40
+    public ITaOrderCommissionService iTaOrderCommissionService;
41
+
42
+
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taOrderCommission",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taOrderCommissionList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaOrderCommission> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaOrderCommission> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaOrderCommission> result = iTaOrderCommissionService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taOrderCommission 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taOrderCommission",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taOrderCommissionAdd(@ApiParam("保存内容") @RequestBody TaOrderCommission taOrderCommission) throws Exception{
70
+//
71
+//        if (iTaOrderCommissionService.save(taOrderCommission)){
72
+//            return ResponseBean.success(taOrderCommission);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taOrderCommission/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taOrderCommissionDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaOrderCommissionService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taOrderCommission 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taOrderCommission/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taOrderCommissionUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaOrderCommission taOrderCommission) throws Exception{
102
+//
103
+//        if (iTaOrderCommissionService.updateById(taOrderCommission)){
104
+//            return ResponseBean.success(iTaOrderCommissionService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taOrderCommission/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taOrderCommissionGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaOrderCommissionService.getById(id));
118
+//    }
119
+}

+ 120
- 0
src/main/java/com/yunzhi/shigongli/controller/TaOrderController.java 查看文件

@@ -0,0 +1,120 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaOrderService;
20
+import com.yunzhi.shigongli.entity.TaOrder;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 订单表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "订单表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaOrderController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaOrderController.class);
38
+
39
+    @Autowired
40
+    public ITaOrderService iTaOrderService;
41
+
42
+
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taOrder",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taOrderList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaOrder> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaOrder> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaOrder> result = iTaOrderService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taOrder 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/wx/taOrder",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taOrderAdd(@ApiParam("保存内容") @RequestBody TaOrder taOrder) throws Exception{
70
+
71
+        if (iTaOrderService.save(taOrder)){
72
+            return ResponseBean.success(taOrder);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taOrder/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taOrderDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaOrderService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taOrder 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/wx/taOrder/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taOrderUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+                                        @ApiParam("更新内容") @RequestBody TaOrder taOrder) throws Exception{
102
+
103
+        if (iTaOrderService.updateById(taOrder)){
104
+            return ResponseBean.success(iTaOrderService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/{plat}/taOrder/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taOrderGet(@ApiParam("客户端") @PathVariable String plat,
117
+                                   @ApiParam("对象ID") @PathVariable Integer id) throws Exception{
118
+        return ResponseBean.success(iTaOrderService.getById(id));
119
+    }
120
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaOrderPayController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaOrderPayService;
20
+import com.yunzhi.shigongli.entity.TaOrderPay;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 订单支付 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "订单支付")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaOrderPayController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaOrderPayController.class);
38
+
39
+    @Autowired
40
+    public ITaOrderPayService iTaOrderPayService;
41
+
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taOrderPay",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taOrderPayList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaOrderPay> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaOrderPay> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaOrderPay> result = iTaOrderPayService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taOrderPay 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taOrderPay",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taOrderPayAdd(@ApiParam("保存内容") @RequestBody TaOrderPay taOrderPay) throws Exception{
70
+//
71
+//        if (iTaOrderPayService.save(taOrderPay)){
72
+//            return ResponseBean.success(taOrderPay);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taOrderPay/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taOrderPayDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaOrderPayService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taOrderPay 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taOrderPay/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taOrderPayUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaOrderPay taOrderPay) throws Exception{
102
+//
103
+//        if (iTaOrderPayService.updateById(taOrderPay)){
104
+//            return ResponseBean.success(iTaOrderPayService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taOrderPay/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taOrderPayGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaOrderPayService.getById(id));
118
+//    }
119
+}

+ 120
- 0
src/main/java/com/yunzhi/shigongli/controller/TaOrderSubController.java 查看文件

@@ -0,0 +1,120 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaOrderSubService;
20
+import com.yunzhi.shigongli.entity.TaOrderSub;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 子订单表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "子订单表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaOrderSubController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaOrderSubController.class);
38
+
39
+    @Autowired
40
+    public ITaOrderSubService iTaOrderSubService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/{plat}/taOrderSub",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taOrderSubList(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
52
+                                       @ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
53
+                                       @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
54
+
55
+		    IPage<TaOrderSub> pg = new Page<>(pageNum, pageSize);
56
+            QueryWrapper<TaOrderSub> queryWrapper = new QueryWrapper<>();
57
+            queryWrapper.orderByDesc("create_date");
58
+
59
+            IPage<TaOrderSub> result = iTaOrderSubService.page(pg, queryWrapper);
60
+            return ResponseBean.success(result);
61
+    }
62
+
63
+    /**
64
+     * 保存对象
65
+     * @param taOrderSub 实体对象
66
+     * @return
67
+     */
68
+    @RequestMapping(value="/wx/taOrderSub",method= RequestMethod.POST)
69
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
70
+    public ResponseBean taOrderSubAdd(@ApiParam("保存内容") @RequestBody TaOrderSub taOrderSub) throws Exception{
71
+
72
+        if (iTaOrderSubService.save(taOrderSub)){
73
+            return ResponseBean.success(taOrderSub);
74
+        }else {
75
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
76
+        }
77
+    }
78
+
79
+    /**
80
+     * 根据id删除对象
81
+     * @param id  实体ID
82
+     */
83
+    @RequestMapping(value="/wx/taOrderSub/{id}", method= RequestMethod.DELETE)
84
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
85
+    public ResponseBean taOrderSubDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
86
+        if(iTaOrderSubService.removeById(id)){
87
+            return ResponseBean.success("success");
88
+        }else {
89
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
90
+        }
91
+    }
92
+
93
+//    /**
94
+//     * 修改对象
95
+//     * @param id  实体ID
96
+//     * @param taOrderSub 实体对象
97
+//     * @return
98
+//     */
99
+//    @RequestMapping(value="/taOrderSub/{id}",method= RequestMethod.PUT)
100
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
101
+//    public ResponseBean taOrderSubUpdate(@ApiParam("对象ID") @PathVariable Integer id,
102
+//                                        @ApiParam("更新内容") @RequestBody TaOrderSub taOrderSub) throws Exception{
103
+//
104
+//        if (iTaOrderSubService.updateById(taOrderSub)){
105
+//            return ResponseBean.success(iTaOrderSubService.getById(id));
106
+//        }else {
107
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
108
+//        }
109
+//    }
110
+
111
+//    /**
112
+//     * 根据id查询对象
113
+//     * @param id  实体ID
114
+//     */
115
+//    @RequestMapping(value="/taOrderSub/{id}",method= RequestMethod.GET)
116
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
117
+//    public ResponseBean taOrderSubGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
118
+//        return ResponseBean.success(iTaOrderSubService.getById(id));
119
+//    }
120
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaPersonAccountController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaPersonAccountService;
20
+import com.yunzhi.shigongli.entity.TaPersonAccount;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 小程序人员账户 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "小程序人员账户")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaPersonAccountController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaPersonAccountController.class);
38
+
39
+    @Autowired
40
+    public ITaPersonAccountService iTaPersonAccountService;
41
+
42
+
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taPersonAccount",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taPersonAccountList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaPersonAccount> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaPersonAccount> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaPersonAccount> result = iTaPersonAccountService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taPersonAccount 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taPersonAccount",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taPersonAccountAdd(@ApiParam("保存内容") @RequestBody TaPersonAccount taPersonAccount) throws Exception{
70
+//
71
+//        if (iTaPersonAccountService.save(taPersonAccount)){
72
+//            return ResponseBean.success(taPersonAccount);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taPersonAccount/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taPersonAccountDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaPersonAccountService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taPersonAccount 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taPersonAccount/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taPersonAccountUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaPersonAccount taPersonAccount) throws Exception{
102
+//
103
+//        if (iTaPersonAccountService.updateById(taPersonAccount)){
104
+//            return ResponseBean.success(iTaPersonAccountService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taPersonAccount/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taPersonAccountGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaPersonAccountService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaPersonAccountLogController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaPersonAccountLogService;
20
+import com.yunzhi.shigongli.entity.TaPersonAccountLog;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 人员账户流水 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "人员账户流水")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaPersonAccountLogController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaPersonAccountLogController.class);
38
+
39
+    @Autowired
40
+    public ITaPersonAccountLogService iTaPersonAccountLogService;
41
+
42
+
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taPersonAccountLog",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taPersonAccountLogList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaPersonAccountLog> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaPersonAccountLog> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaPersonAccountLog> result = iTaPersonAccountLogService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taPersonAccountLog 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taPersonAccountLog",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taPersonAccountLogAdd(@ApiParam("保存内容") @RequestBody TaPersonAccountLog taPersonAccountLog) throws Exception{
70
+//
71
+//        if (iTaPersonAccountLogService.save(taPersonAccountLog)){
72
+//            return ResponseBean.success(taPersonAccountLog);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taPersonAccountLog/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taPersonAccountLogDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaPersonAccountLogService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taPersonAccountLog 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taPersonAccountLog/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taPersonAccountLogUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaPersonAccountLog taPersonAccountLog) throws Exception{
102
+//
103
+//        if (iTaPersonAccountLogService.updateById(taPersonAccountLog)){
104
+//            return ResponseBean.success(iTaPersonAccountLogService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taPersonAccountLog/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taPersonAccountLogGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaPersonAccountLogService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaPersonController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaPersonService;
20
+import com.yunzhi.shigongli.entity.TaPerson;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 小程序人员表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "小程序人员表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaPersonController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaPersonController.class);
38
+
39
+    @Autowired
40
+    public ITaPersonService iTaPersonService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taPerson",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taPersonList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaPerson> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaPerson> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaPerson> result = iTaPersonService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taPerson 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taPerson",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taPersonAdd(@ApiParam("保存内容") @RequestBody TaPerson taPerson) throws Exception{
70
+//
71
+//        if (iTaPersonService.save(taPerson)){
72
+//            return ResponseBean.success(taPerson);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taPerson/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taPersonDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaPersonService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taPerson 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taPerson/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taPersonUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaPerson taPerson) throws Exception{
102
+//
103
+//        if (iTaPersonService.updateById(taPerson)){
104
+//            return ResponseBean.success(iTaPersonService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taPerson/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taPersonGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaPersonService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaPersonRecommenderController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaPersonRecommenderService;
20
+import com.yunzhi.shigongli.entity.TaPersonRecommender;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 用户推广人 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "用户推广人")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaPersonRecommenderController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaPersonRecommenderController.class);
38
+
39
+    @Autowired
40
+    public ITaPersonRecommenderService iTaPersonRecommenderService;
41
+
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taPersonRecommender",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taPersonRecommenderList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaPersonRecommender> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaPersonRecommender> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaPersonRecommender> result = iTaPersonRecommenderService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taPersonRecommender 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taPersonRecommender",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taPersonRecommenderAdd(@ApiParam("保存内容") @RequestBody TaPersonRecommender taPersonRecommender) throws Exception{
70
+//
71
+//        if (iTaPersonRecommenderService.save(taPersonRecommender)){
72
+//            return ResponseBean.success(taPersonRecommender);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taPersonRecommender/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taPersonRecommenderDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaPersonRecommenderService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taPersonRecommender 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taPersonRecommender/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taPersonRecommenderUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaPersonRecommender taPersonRecommender) throws Exception{
102
+//
103
+//        if (iTaPersonRecommenderService.updateById(taPersonRecommender)){
104
+//            return ResponseBean.success(iTaPersonRecommenderService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taPersonRecommender/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taPersonRecommenderGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaPersonRecommenderService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaPvController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaPvService;
20
+import com.yunzhi.shigongli.entity.TaPv;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 访问人次 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "访问人次")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaPvController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaPvController.class);
38
+
39
+    @Autowired
40
+    public ITaPvService iTaPvService;
41
+
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taPv",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taPvList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaPv> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaPv> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaPv> result = iTaPvService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taPv 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taPv",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taPvAdd(@ApiParam("保存内容") @RequestBody TaPv taPv) throws Exception{
70
+//
71
+//        if (iTaPvService.save(taPv)){
72
+//            return ResponseBean.success(taPv);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taPv/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taPvDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaPvService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taPv 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taPv/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taPvUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaPv taPv) throws Exception{
102
+//
103
+//        if (iTaPvService.updateById(taPv)){
104
+//            return ResponseBean.success(iTaPvService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taPv/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taPvGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaPvService.getById(id));
118
+//    }
119
+}

+ 124
- 0
src/main/java/com/yunzhi/shigongli/controller/TaRoomController.java 查看文件

@@ -0,0 +1,124 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaRoomService;
20
+import com.yunzhi.shigongli.entity.TaRoom;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 房源 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "房源")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaRoomController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaRoomController.class);
38
+
39
+    @Autowired
40
+    public ITaRoomService iTaRoomService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/{plat}/taRoom",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taRoomList(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
52
+                                   @ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
53
+                                   @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
54
+
55
+		    IPage<TaRoom> pg = new Page<>(pageNum, pageSize);
56
+            QueryWrapper<TaRoom> queryWrapper = new QueryWrapper<>();
57
+            queryWrapper.orderByDesc("create_date");
58
+
59
+            IPage<TaRoom> result = iTaRoomService.page(pg, queryWrapper);
60
+            return ResponseBean.success(result);
61
+    }
62
+
63
+    /**
64
+     * 保存对象
65
+     * @param taRoom 实体对象
66
+     * @return
67
+     */
68
+    @RequestMapping(value="/{plat}//taRoom",method= RequestMethod.POST)
69
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
70
+    public ResponseBean taRoomAdd(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
71
+                                  @ApiParam("保存内容") @RequestBody TaRoom taRoom) throws Exception{
72
+
73
+        if (iTaRoomService.save(taRoom)){
74
+            return ResponseBean.success(taRoom);
75
+        }else {
76
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
77
+        }
78
+    }
79
+
80
+    /**
81
+     * 根据id删除对象
82
+     * @param id  实体ID
83
+     */
84
+    @RequestMapping(value="/{plat}//taRoom/{id}", method= RequestMethod.DELETE)
85
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
86
+    public ResponseBean taRoomDelete(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
87
+                                     @ApiParam("对象ID") @PathVariable Integer id) throws Exception{
88
+        if(iTaRoomService.removeById(id)){
89
+            return ResponseBean.success("success");
90
+        }else {
91
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
92
+        }
93
+    }
94
+
95
+    /**
96
+     * 修改对象
97
+     * @param id  实体ID
98
+     * @param taRoom 实体对象
99
+     * @return
100
+     */
101
+    @RequestMapping(value="/{plat}/taRoom/{id}",method= RequestMethod.PUT)
102
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
103
+    public ResponseBean taRoomUpdate(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
104
+                                     @ApiParam("对象ID") @PathVariable Integer id,
105
+                                     @ApiParam("更新内容") @RequestBody TaRoom taRoom) throws Exception{
106
+
107
+        if (iTaRoomService.updateById(taRoom)){
108
+            return ResponseBean.success(iTaRoomService.getById(id));
109
+        }else {
110
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
111
+        }
112
+    }
113
+
114
+    /**
115
+     * 根据id查询对象
116
+     * @param id  实体ID
117
+     */
118
+    @RequestMapping(value="/{plat}/taRoom/{id}",method= RequestMethod.GET)
119
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
120
+    public ResponseBean taRoomGet(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
121
+                                  @ApiParam("对象ID") @PathVariable Integer id) throws Exception{
122
+        return ResponseBean.success(iTaRoomService.getById(id));
123
+    }
124
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaRoomOrderController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaRoomOrderService;
20
+import com.yunzhi.shigongli.entity.TaRoomOrder;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 房源订单 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "房源订单")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaRoomOrderController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaRoomOrderController.class);
38
+
39
+    @Autowired
40
+    public ITaRoomOrderService iTaRoomOrderService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taRoomOrder",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taRoomOrderList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaRoomOrder> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaRoomOrder> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaRoomOrder> result = iTaRoomOrderService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taRoomOrder 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/admin/taRoomOrder",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taRoomOrderAdd(@ApiParam("保存内容") @RequestBody TaRoomOrder taRoomOrder) throws Exception{
70
+
71
+        if (iTaRoomOrderService.save(taRoomOrder)){
72
+            return ResponseBean.success(taRoomOrder);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taRoomOrder/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taRoomOrderDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaRoomOrderService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taRoomOrder 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taRoomOrder/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taRoomOrderUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaRoomOrder taRoomOrder) throws Exception{
102
+//
103
+//        if (iTaRoomOrderService.updateById(taRoomOrder)){
104
+//            return ResponseBean.success(iTaRoomOrderService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taRoomOrder/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taRoomOrderGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaRoomOrderService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaRoomOrderPersonController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaRoomOrderPersonService;
20
+import com.yunzhi.shigongli.entity.TaRoomOrderPerson;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 房源订单打开人 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "房源订单打开人")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaRoomOrderPersonController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaRoomOrderPersonController.class);
38
+
39
+    @Autowired
40
+    public ITaRoomOrderPersonService iTaRoomOrderPersonService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taRoomOrderPerson",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taRoomOrderPersonList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaRoomOrderPerson> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaRoomOrderPerson> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaRoomOrderPerson> result = iTaRoomOrderPersonService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taRoomOrderPerson 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/wx/taRoomOrderPerson",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taRoomOrderPersonAdd(@ApiParam("保存内容") @RequestBody TaRoomOrderPerson taRoomOrderPerson) throws Exception{
70
+
71
+        if (iTaRoomOrderPersonService.save(taRoomOrderPerson)){
72
+            return ResponseBean.success(taRoomOrderPerson);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taRoomOrderPerson/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taRoomOrderPersonDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaRoomOrderPersonService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taRoomOrderPerson 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taRoomOrderPerson/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taRoomOrderPersonUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaRoomOrderPerson taRoomOrderPerson) throws Exception{
102
+//
103
+//        if (iTaRoomOrderPersonService.updateById(taRoomOrderPerson)){
104
+//            return ResponseBean.success(iTaRoomOrderPersonService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taRoomOrderPerson/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taRoomOrderPersonGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaRoomOrderPersonService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaSearchController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaSearchService;
20
+import com.yunzhi.shigongli.entity.TaSearch;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 搜索日志 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "搜索日志")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaSearchController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaSearchController.class);
38
+
39
+    @Autowired
40
+    public ITaSearchService iTaSearchService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/wx/taSearch",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taSearchList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaSearch> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaSearch> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaSearch> result = iTaSearchService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taSearch 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/wx/taSearch",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taSearchAdd(@ApiParam("保存内容") @RequestBody TaSearch taSearch) throws Exception{
70
+
71
+        if (iTaSearchService.save(taSearch)){
72
+            return ResponseBean.success(taSearch);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taSearch/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taSearchDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaSearchService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taSearch 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taSearch/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taSearchUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaSearch taSearch) throws Exception{
102
+//
103
+//        if (iTaSearchService.updateById(taSearch)){
104
+//            return ResponseBean.success(iTaSearchService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taSearch/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taSearchGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaSearchService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaShopAccountController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaShopAccountService;
20
+import com.yunzhi.shigongli.entity.TaShopAccount;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 民宿账户 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "民宿账户")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaShopAccountController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaShopAccountController.class);
38
+
39
+    @Autowired
40
+    public ITaShopAccountService iTaShopAccountService;
41
+//
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taShopAccount",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taShopAccountList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaShopAccount> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaShopAccount> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaShopAccount> result = iTaShopAccountService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taShopAccount 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taShopAccount",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taShopAccountAdd(@ApiParam("保存内容") @RequestBody TaShopAccount taShopAccount) throws Exception{
70
+//
71
+//        if (iTaShopAccountService.save(taShopAccount)){
72
+//            return ResponseBean.success(taShopAccount);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taShopAccount/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taShopAccountDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaShopAccountService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taShopAccount 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taShopAccount/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taShopAccountUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaShopAccount taShopAccount) throws Exception{
102
+//
103
+//        if (iTaShopAccountService.updateById(taShopAccount)){
104
+//            return ResponseBean.success(iTaShopAccountService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taShopAccount/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taShopAccountGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaShopAccountService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaShopAccountLogController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaShopAccountLogService;
20
+import com.yunzhi.shigongli.entity.TaShopAccountLog;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 商户账户流水 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "商户账户流水")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaShopAccountLogController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaShopAccountLogController.class);
38
+
39
+    @Autowired
40
+    public ITaShopAccountLogService iTaShopAccountLogService;
41
+
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taShopAccountLog",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taShopAccountLogList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaShopAccountLog> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaShopAccountLog> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaShopAccountLog> result = iTaShopAccountLogService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taShopAccountLog 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taShopAccountLog",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taShopAccountLogAdd(@ApiParam("保存内容") @RequestBody TaShopAccountLog taShopAccountLog) throws Exception{
70
+//
71
+//        if (iTaShopAccountLogService.save(taShopAccountLog)){
72
+//            return ResponseBean.success(taShopAccountLog);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taShopAccountLog/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taShopAccountLogDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaShopAccountLogService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taShopAccountLog 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taShopAccountLog/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taShopAccountLogUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaShopAccountLog taShopAccountLog) throws Exception{
102
+//
103
+//        if (iTaShopAccountLogService.updateById(taShopAccountLog)){
104
+//            return ResponseBean.success(iTaShopAccountLogService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taShopAccountLog/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taShopAccountLogGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaShopAccountLogService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaShopController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaShopService;
20
+import com.yunzhi.shigongli.entity.TaShop;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 商铺 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "商铺")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaShopController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaShopController.class);
38
+
39
+    @Autowired
40
+    public ITaShopService iTaShopService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taShop",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taShopList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaShop> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaShop> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaShop> result = iTaShopService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taShop 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/admin/taShop",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taShopAdd(@ApiParam("保存内容") @RequestBody TaShop taShop) throws Exception{
70
+
71
+        if (iTaShopService.save(taShop)){
72
+            return ResponseBean.success(taShop);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/admin/taShop/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taShopDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
85
+        if(iTaShopService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taShop 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/admin/taShop/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taShopUpdate(@ApiParam("对象ID") @PathVariable String id,
101
+                                        @ApiParam("更新内容") @RequestBody TaShop taShop) throws Exception{
102
+
103
+        if (iTaShopService.updateById(taShop)){
104
+            return ResponseBean.success(iTaShopService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/admin/taShop/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taShopGet(@ApiParam("对象ID") @PathVariable String id) throws Exception{
117
+        return ResponseBean.success(iTaShopService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaShopImagesController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaShopImagesService;
20
+import com.yunzhi.shigongli.entity.TaShopImages;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 商铺图片 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "商铺图片")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaShopImagesController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaShopImagesController.class);
38
+
39
+    @Autowired
40
+    public ITaShopImagesService iTaShopImagesService;
41
+
42
+
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taShopImages",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taShopImagesList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaShopImages> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaShopImages> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaShopImages> result = iTaShopImagesService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taShopImages 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taShopImages",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taShopImagesAdd(@ApiParam("保存内容") @RequestBody TaShopImages taShopImages) throws Exception{
70
+//
71
+//        if (iTaShopImagesService.save(taShopImages)){
72
+//            return ResponseBean.success(taShopImages);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taShopImages/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taShopImagesDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaShopImagesService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taShopImages 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taShopImages/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taShopImagesUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaShopImages taShopImages) throws Exception{
102
+//
103
+//        if (iTaShopImagesService.updateById(taShopImages)){
104
+//            return ResponseBean.success(iTaShopImagesService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taShopImages/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taShopImagesGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaShopImagesService.getById(id));
118
+//    }
119
+}

+ 121
- 0
src/main/java/com/yunzhi/shigongli/controller/TaShopPackageController.java 查看文件

@@ -0,0 +1,121 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaShopPackageService;
20
+import com.yunzhi.shigongli.entity.TaShopPackage;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 商铺套餐 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "商铺套餐")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaShopPackageController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaShopPackageController.class);
38
+
39
+    @Autowired
40
+    public ITaShopPackageService iTaShopPackageService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taShopPackage",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taShopPackageList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+                                          @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
53
+                                          @ApiParam("商铺") @RequestParam(value ="shopId") String shopId) throws Exception{
54
+
55
+		    IPage<TaShopPackage> pg = new Page<>(pageNum, pageSize);
56
+            QueryWrapper<TaShopPackage> queryWrapper = new QueryWrapper<>();
57
+        queryWrapper.eq("shop_id", shopId);
58
+            queryWrapper.orderByDesc("create_date");
59
+
60
+            IPage<TaShopPackage> result = iTaShopPackageService.page(pg, queryWrapper);
61
+            return ResponseBean.success(result);
62
+    }
63
+
64
+    /**
65
+     * 保存对象
66
+     * @param taShopPackage 实体对象
67
+     * @return
68
+     */
69
+    @RequestMapping(value="/admin/taShopPackage",method= RequestMethod.POST)
70
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
71
+    public ResponseBean taShopPackageAdd(@ApiParam("保存内容") @RequestBody TaShopPackage taShopPackage) throws Exception{
72
+
73
+        if (iTaShopPackageService.save(taShopPackage)){
74
+            return ResponseBean.success(taShopPackage);
75
+        }else {
76
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
77
+        }
78
+    }
79
+
80
+    /**
81
+     * 根据id删除对象
82
+     * @param id  实体ID
83
+     */
84
+    @RequestMapping(value="/admin/taShopPackage/{id}", method= RequestMethod.DELETE)
85
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
86
+    public ResponseBean taShopPackageDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
87
+        if(iTaShopPackageService.removeById(id)){
88
+            return ResponseBean.success("success");
89
+        }else {
90
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
91
+        }
92
+    }
93
+
94
+    /**
95
+     * 修改对象
96
+     * @param id  实体ID
97
+     * @param taShopPackage 实体对象
98
+     * @return
99
+     */
100
+    @RequestMapping(value="/admin/taShopPackage/{id}",method= RequestMethod.PUT)
101
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
102
+    public ResponseBean taShopPackageUpdate(@ApiParam("对象ID") @PathVariable Integer id,
103
+                                        @ApiParam("更新内容") @RequestBody TaShopPackage taShopPackage) throws Exception{
104
+
105
+        if (iTaShopPackageService.updateById(taShopPackage)){
106
+            return ResponseBean.success(iTaShopPackageService.getById(id));
107
+        }else {
108
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
109
+        }
110
+    }
111
+
112
+    /**
113
+     * 根据id查询对象
114
+     * @param id  实体ID
115
+     */
116
+    @RequestMapping(value="/admin/taShopPackage/{id}",method= RequestMethod.GET)
117
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
118
+    public ResponseBean taShopPackageGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
119
+        return ResponseBean.success(iTaShopPackageService.getById(id));
120
+    }
121
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaShopPackageSettingController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaShopPackageSettingService;
20
+import com.yunzhi.shigongli.entity.TaShopPackageSetting;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 套餐设置 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "套餐设置")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaShopPackageSettingController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaShopPackageSettingController.class);
38
+
39
+    @Autowired
40
+    public ITaShopPackageSettingService iTaShopPackageSettingService;
41
+
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taShopPackageSetting",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taShopPackageSettingList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaShopPackageSetting> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaShopPackageSetting> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaShopPackageSetting> result = iTaShopPackageSettingService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taShopPackageSetting 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taShopPackageSetting",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taShopPackageSettingAdd(@ApiParam("保存内容") @RequestBody TaShopPackageSetting taShopPackageSetting) throws Exception{
70
+//
71
+//        if (iTaShopPackageSettingService.save(taShopPackageSetting)){
72
+//            return ResponseBean.success(taShopPackageSetting);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taShopPackageSetting/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taShopPackageSettingDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaShopPackageSettingService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taShopPackageSetting 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taShopPackageSetting/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taShopPackageSettingUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaShopPackageSetting taShopPackageSetting) throws Exception{
102
+//
103
+//        if (iTaShopPackageSettingService.updateById(taShopPackageSetting)){
104
+//            return ResponseBean.success(iTaShopPackageSettingService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taShopPackageSetting/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taShopPackageSettingGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaShopPackageSettingService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaShopPackageTimeController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaShopPackageTimeService;
20
+import com.yunzhi.shigongli.entity.TaShopPackageTime;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 商铺套餐类型 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "商铺套餐类型")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaShopPackageTimeController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaShopPackageTimeController.class);
38
+
39
+    @Autowired
40
+    public ITaShopPackageTimeService iTaShopPackageTimeService;
41
+
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taShopPackageTime",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taShopPackageTimeList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaShopPackageTime> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaShopPackageTime> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaShopPackageTime> result = iTaShopPackageTimeService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taShopPackageTime 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taShopPackageTime",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taShopPackageTimeAdd(@ApiParam("保存内容") @RequestBody TaShopPackageTime taShopPackageTime) throws Exception{
70
+//
71
+//        if (iTaShopPackageTimeService.save(taShopPackageTime)){
72
+//            return ResponseBean.success(taShopPackageTime);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taShopPackageTime/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taShopPackageTimeDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaShopPackageTimeService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taShopPackageTime 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taShopPackageTime/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taShopPackageTimeUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaShopPackageTime taShopPackageTime) throws Exception{
102
+//
103
+//        if (iTaShopPackageTimeService.updateById(taShopPackageTime)){
104
+//            return ResponseBean.success(iTaShopPackageTimeService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taShopPackageTime/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taShopPackageTimeGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaShopPackageTimeService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaShopTagsController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaShopTagsService;
20
+import com.yunzhi.shigongli.entity.TaShopTags;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 商铺标签 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "商铺标签")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaShopTagsController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaShopTagsController.class);
38
+
39
+    @Autowired
40
+    public ITaShopTagsService iTaShopTagsService;
41
+
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taShopTags",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taShopTagsList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaShopTags> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaShopTags> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaShopTags> result = iTaShopTagsService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param taShopTags 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/taShopTags",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean taShopTagsAdd(@ApiParam("保存内容") @RequestBody TaShopTags taShopTags) throws Exception{
70
+//
71
+//        if (iTaShopTagsService.save(taShopTags)){
72
+//            return ResponseBean.success(taShopTags);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/taShopTags/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean taShopTagsDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTaShopTagsService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taShopTags 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taShopTags/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taShopTagsUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaShopTags taShopTags) throws Exception{
102
+//
103
+//        if (iTaShopTagsService.updateById(taShopTags)){
104
+//            return ResponseBean.success(iTaShopTagsService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taShopTags/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taShopTagsGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaShopTagsService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaTouristController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaTouristService;
20
+import com.yunzhi.shigongli.entity.TaTourist;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 旅游景点 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "旅游景点")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaTouristController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaTouristController.class);
38
+
39
+    @Autowired
40
+    public ITaTouristService iTaTouristService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/admin/taTourist",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean taTouristList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+
54
+		    IPage<TaTourist> pg = new Page<>(pageNum, pageSize);
55
+            QueryWrapper<TaTourist> queryWrapper = new QueryWrapper<>();
56
+            queryWrapper.orderByDesc("create_date");
57
+
58
+            IPage<TaTourist> result = iTaTouristService.page(pg, queryWrapper);
59
+            return ResponseBean.success(result);
60
+    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taTourist 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/admin/taTourist",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taTouristAdd(@ApiParam("保存内容") @RequestBody TaTourist taTourist) throws Exception{
70
+
71
+        if (iTaTouristService.save(taTourist)){
72
+            return ResponseBean.success(taTourist);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/admin/taTourist/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taTouristDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
85
+        if(iTaTouristService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+    /**
93
+     * 修改对象
94
+     * @param id  实体ID
95
+     * @param taTourist 实体对象
96
+     * @return
97
+     */
98
+    @RequestMapping(value="/admin/taTourist/{id}",method= RequestMethod.PUT)
99
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+    public ResponseBean taTouristUpdate(@ApiParam("对象ID") @PathVariable String id,
101
+                                        @ApiParam("更新内容") @RequestBody TaTourist taTourist) throws Exception{
102
+
103
+        if (iTaTouristService.updateById(taTourist)){
104
+            return ResponseBean.success(iTaTouristService.getById(id));
105
+        }else {
106
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+        }
108
+    }
109
+
110
+    /**
111
+     * 根据id查询对象
112
+     * @param id  实体ID
113
+     */
114
+    @RequestMapping(value="/admin/taTourist/{id}",method= RequestMethod.GET)
115
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+    public ResponseBean taTouristGet(@ApiParam("对象ID") @PathVariable String id) throws Exception{
117
+        return ResponseBean.success(iTaTouristService.getById(id));
118
+    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TaUvController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITaUvService;
20
+import com.yunzhi.shigongli.entity.TaUv;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 访问人 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "访问人")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TaUvController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TaUvController.class);
38
+
39
+    @Autowired
40
+    public ITaUvService iTaUvService;
41
+
42
+
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/taUv",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean taUvList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TaUv> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TaUv> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TaUv> result = iTaUvService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+
62
+    /**
63
+     * 保存对象
64
+     * @param taUv 实体对象
65
+     * @return
66
+     */
67
+    @RequestMapping(value="/wx/taUv",method= RequestMethod.POST)
68
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+    public ResponseBean taUvAdd(@ApiParam("保存内容") @RequestBody TaUv taUv) throws Exception{
70
+
71
+        if (iTaUvService.save(taUv)){
72
+            return ResponseBean.success(taUv);
73
+        }else {
74
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+        }
76
+    }
77
+
78
+    /**
79
+     * 根据id删除对象
80
+     * @param id  实体ID
81
+     */
82
+    @RequestMapping(value="/wx/taUv/{id}", method= RequestMethod.DELETE)
83
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+    public ResponseBean taUvDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+        if(iTaUvService.removeById(id)){
86
+            return ResponseBean.success("success");
87
+        }else {
88
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+        }
90
+    }
91
+
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param taUv 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/taUv/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean taUvUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TaUv taUv) throws Exception{
102
+//
103
+//        if (iTaUvService.updateById(taUv)){
104
+//            return ResponseBean.success(iTaUvService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/taUv/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean taUvGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTaUvService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TdCityController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITdCityService;
20
+import com.yunzhi.shigongli.entity.TdCity;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 城市表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "城市表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TdCityController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TdCityController.class);
38
+
39
+    @Autowired
40
+    public ITdCityService iTdCityService;
41
+
42
+
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/tdCity",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean tdCityList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TdCity> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TdCity> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TdCity> result = iTdCityService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param tdCity 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/tdCity",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean tdCityAdd(@ApiParam("保存内容") @RequestBody TdCity tdCity) throws Exception{
70
+//
71
+//        if (iTdCityService.save(tdCity)){
72
+//            return ResponseBean.success(tdCity);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/tdCity/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean tdCityDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTdCityService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param tdCity 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/tdCity/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean tdCityUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TdCity tdCity) throws Exception{
102
+//
103
+//        if (iTdCityService.updateById(tdCity)){
104
+//            return ResponseBean.success(iTdCityService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/tdCity/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean tdCityGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTdCityService.getById(id));
118
+//    }
119
+}

+ 119
- 0
src/main/java/com/yunzhi/shigongli/controller/TdDietMarkController.java 查看文件

@@ -0,0 +1,119 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITdDietMarkService;
20
+import com.yunzhi.shigongli.entity.TdDietMark;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 饮食时刻表 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "饮食时刻表")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TdDietMarkController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TdDietMarkController.class);
38
+
39
+    @Autowired
40
+    public ITdDietMarkService iTdDietMarkService;
41
+
42
+//
43
+//    /**
44
+//     * 分页查询列表
45
+//     * @param pageNum
46
+//     * @param pageSize
47
+//     * @return
48
+//     */
49
+//    @RequestMapping(value="/admin/tdDietMark",method= RequestMethod.GET)
50
+//    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+//    public ResponseBean tdDietMarkList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52
+//									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
53
+//
54
+//		    IPage<TdDietMark> pg = new Page<>(pageNum, pageSize);
55
+//            QueryWrapper<TdDietMark> queryWrapper = new QueryWrapper<>();
56
+//            queryWrapper.orderByDesc("create_date");
57
+//
58
+//            IPage<TdDietMark> result = iTdDietMarkService.page(pg, queryWrapper);
59
+//            return ResponseBean.success(result);
60
+//    }
61
+//
62
+//    /**
63
+//     * 保存对象
64
+//     * @param tdDietMark 实体对象
65
+//     * @return
66
+//     */
67
+//    @RequestMapping(value="/admin/tdDietMark",method= RequestMethod.POST)
68
+//    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69
+//    public ResponseBean tdDietMarkAdd(@ApiParam("保存内容") @RequestBody TdDietMark tdDietMark) throws Exception{
70
+//
71
+//        if (iTdDietMarkService.save(tdDietMark)){
72
+//            return ResponseBean.success(tdDietMark);
73
+//        }else {
74
+//            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
75
+//        }
76
+//    }
77
+//
78
+//    /**
79
+//     * 根据id删除对象
80
+//     * @param id  实体ID
81
+//     */
82
+//    @RequestMapping(value="/admin/tdDietMark/{id}", method= RequestMethod.DELETE)
83
+//    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84
+//    public ResponseBean tdDietMarkDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+//        if(iTdDietMarkService.removeById(id)){
86
+//            return ResponseBean.success("success");
87
+//        }else {
88
+//            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
89
+//        }
90
+//    }
91
+//
92
+//    /**
93
+//     * 修改对象
94
+//     * @param id  实体ID
95
+//     * @param tdDietMark 实体对象
96
+//     * @return
97
+//     */
98
+//    @RequestMapping(value="/admin/tdDietMark/{id}",method= RequestMethod.PUT)
99
+//    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100
+//    public ResponseBean tdDietMarkUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+//                                        @ApiParam("更新内容") @RequestBody TdDietMark tdDietMark) throws Exception{
102
+//
103
+//        if (iTdDietMarkService.updateById(tdDietMark)){
104
+//            return ResponseBean.success(iTdDietMarkService.getById(id));
105
+//        }else {
106
+//            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
107
+//        }
108
+//    }
109
+//
110
+//    /**
111
+//     * 根据id查询对象
112
+//     * @param id  实体ID
113
+//     */
114
+//    @RequestMapping(value="/tdDietMark/{id}",method= RequestMethod.GET)
115
+//    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116
+//    public ResponseBean tdDietMarkGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+//        return ResponseBean.success(iTdDietMarkService.getById(id));
118
+//    }
119
+}

+ 120
- 0
src/main/java/com/yunzhi/shigongli/controller/TdTypeController.java 查看文件

@@ -0,0 +1,120 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.shigongli.common.BaseController;
7
+import com.yunzhi.shigongli.common.ResponseBean;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiOperation;
10
+import io.swagger.annotations.ApiParam;
11
+import org.slf4j.Logger;
12
+import org.slf4j.LoggerFactory;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.web.bind.annotation.PathVariable;
15
+import org.springframework.web.bind.annotation.RequestBody;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RequestParam;
19
+import com.yunzhi.shigongli.service.ITdTypeService;
20
+import com.yunzhi.shigongli.entity.TdType;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+/**
24
+ * <p>
25
+    * 分类标签 前端控制器
26
+    * </p>
27
+ *
28
+ * @author yansen
29
+ * @since 2021-08-17
30
+ */
31
+
32
+@Api(tags = "分类标签")
33
+@RestController
34
+@RequestMapping("/")
35
+public class TdTypeController extends BaseController {
36
+
37
+    private final Logger logger = LoggerFactory.getLogger(TdTypeController.class);
38
+
39
+    @Autowired
40
+    public ITdTypeService iTdTypeService;
41
+
42
+
43
+    /**
44
+     * 分页查询列表
45
+     * @param pageNum
46
+     * @param pageSize
47
+     * @return
48
+     */
49
+    @RequestMapping(value="/{plat}/tdType",method= RequestMethod.GET)
50
+    @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51
+    public ResponseBean tdTypeList(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
52
+                                   @ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
53
+                                   @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
54
+
55
+		    IPage<TdType> pg = new Page<>(pageNum, pageSize);
56
+            QueryWrapper<TdType> queryWrapper = new QueryWrapper<>();
57
+            queryWrapper.orderByDesc("create_date");
58
+
59
+            IPage<TdType> result = iTdTypeService.page(pg, queryWrapper);
60
+            return ResponseBean.success(result);
61
+    }
62
+
63
+    /**
64
+     * 保存对象
65
+     * @param tdType 实体对象
66
+     * @return
67
+     */
68
+    @RequestMapping(value="/admin/tdType",method= RequestMethod.POST)
69
+    @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
70
+    public ResponseBean tdTypeAdd(@ApiParam("保存内容") @RequestBody TdType tdType) throws Exception{
71
+
72
+        if (iTdTypeService.save(tdType)){
73
+            return ResponseBean.success(tdType);
74
+        }else {
75
+            return ResponseBean.error("保存失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
76
+        }
77
+    }
78
+
79
+    /**
80
+     * 根据id删除对象
81
+     * @param id  实体ID
82
+     */
83
+    @RequestMapping(value="/admin/tdType/{id}", method= RequestMethod.DELETE)
84
+    @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
85
+    public ResponseBean tdTypeDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
86
+        if(iTdTypeService.removeById(id)){
87
+            return ResponseBean.success("success");
88
+        }else {
89
+            return ResponseBean.error("删除失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
90
+        }
91
+    }
92
+
93
+    /**
94
+     * 修改对象
95
+     * @param id  实体ID
96
+     * @param tdType 实体对象
97
+     * @return
98
+     */
99
+    @RequestMapping(value="/admin/tdType/{id}",method= RequestMethod.PUT)
100
+    @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
101
+    public ResponseBean tdTypeUpdate(@ApiParam("对象ID") @PathVariable String id,
102
+                                        @ApiParam("更新内容") @RequestBody TdType tdType) throws Exception{
103
+
104
+        if (iTdTypeService.updateById(tdType)){
105
+            return ResponseBean.success(iTdTypeService.getById(id));
106
+        }else {
107
+            return ResponseBean.error("修改失败, 请重试", ResponseBean.ERROR_UNAVAILABLE);
108
+        }
109
+    }
110
+
111
+    /**
112
+     * 根据id查询对象
113
+     * @param id  实体ID
114
+     */
115
+    @RequestMapping(value="/admin/tdType/{id}",method= RequestMethod.GET)
116
+    @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
117
+    public ResponseBean tdTypeGet(@ApiParam("对象ID") @PathVariable String id) throws Exception{
118
+        return ResponseBean.success(iTdTypeService.getById(id));
119
+    }
120
+}

+ 122
- 0
src/main/java/com/yunzhi/shigongli/controller/WxMaController.java 查看文件

@@ -0,0 +1,122 @@
1
+package com.yunzhi.shigongli.controller;
2
+
3
+import com.yunzhi.shigongli.common.*;
4
+import com.yunzhi.shigongli.service.ITaPersonService;
5
+import io.swagger.annotations.Api;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.*;
8
+
9
+
10
+@Api(tags = "微信小程序")
11
+@RestController
12
+@RequestMapping("/ma")
13
+public class WxMaController extends BaseController {
14
+
15
+    @Autowired
16
+    WxUtils wxUtils;
17
+
18
+    @Autowired
19
+    ITaPersonService iTaPersonService;
20
+
21
+//    @PostMapping("/login")
22
+//    @ApiOperation(value="登录", notes = "登录", httpMethod = "POST", response = ResponseBean.class)
23
+//    public ResponseBean login(@ApiParam("登录参数") @RequestParam String code) throws Exception {
24
+//        WxMaJscode2SessionResult info = wxUtils.getService().getUserService().getSessionInfo(code);
25
+//
26
+//        String openid = info.getOpenid();
27
+//        TaPerson taPerson = iTaPersonService.getByOpenid(openid);
28
+//        if (null == taPerson) {
29
+//            taPerson = new TaPerson();
30
+//            taPerson.setOpenid(openid);
31
+//            iTaPersonService.save(taPerson);
32
+//
33
+//            TaPersonData taPersonData = new TaPersonData();
34
+//            taPersonData.setPersonId(taPerson.getPersonId());
35
+//            iTaPersonDataService.save(taPersonData);
36
+//        }
37
+//
38
+//        // 查询学生
39
+//        TaStudent taStudent = iTaStudentService.getByPersonId(taPerson.getPersonId());
40
+//        taPerson.setStudent(taStudent);
41
+//
42
+//        Map<String, Object> tokenClaims = new HashMap<>();
43
+//        tokenClaims.put("userId", taPerson.getPersonId());
44
+////        tokenClaims.put("sessionKey", info.getSessionKey());
45
+//        tokenClaims.put("miniApp", true);
46
+//        String token = JWTUtils.encode(tokenClaims);
47
+//
48
+//        Map<String, Object> rtn = new HashMap<>();
49
+//        rtn.put("person", taPerson);
50
+//        rtn.put("sessionKey", info.getSessionKey());
51
+//        rtn.put("token", token);
52
+//
53
+//        return ResponseBean.success(rtn);
54
+//    }
55
+//
56
+//    @PutMapping("/auth-user")
57
+//    @ApiOperation(value="授权头像", notes = "授权头像", httpMethod = "PUT", response = TaPerson.class)
58
+//    public ResponseBean updateUserInfo(@ApiParam("授权头像的参数") @RequestBody WxMaAuthParam params) throws Exception {
59
+//        checkAuthParams(params);
60
+//
61
+//        // 解密用户信息
62
+//        WxMaUserInfo userInfo = wxUtils.getService().getUserService().getUserInfo(params.getSessionKey(), params.getEncryptedData(), params.getIv());
63
+//
64
+//        TaPerson taPerson = getCurrentPerson();
65
+//        if (null == taPerson) {
66
+//            throw new Exception("校验当前人员失败, 请重试");
67
+//        }
68
+//
69
+//        taPerson.setAvatar(userInfo.getAvatarUrl());
70
+//        taPerson.setNickName(userInfo.getNickName());
71
+//        taPerson.setSex(Integer.parseInt(userInfo.getGender()));
72
+//
73
+//        iTaPersonService.updateById(taPerson);
74
+//
75
+//        return ResponseBean.success(taPerson);
76
+//    }
77
+//
78
+//    @ApiOperation(value="授权手机", notes = "授权手机", httpMethod = "PUT", response = TaPerson.class)
79
+//    @PutMapping("/auth-phone")
80
+//    public ResponseBean updateUserPhone(@ApiParam("授权手机的参数") @RequestBody WxMaAuthParam params) throws Exception {
81
+////        checkAuthParams(params);
82
+//
83
+//        // 解密
84
+//        WxMaPhoneNumberInfo phoneNoInfo = wxUtils.getService().getUserService().getPhoneNoInfo(params.getSessionKey(), params.getEncryptedData(), params.getIv());
85
+//
86
+//        TaPerson taPerson = getCurrentPerson();
87
+//        if (null == taPerson) {
88
+//            throw new Exception("校验当前人员失败, 请重试");
89
+//        }
90
+//
91
+//        taPerson.setPhone(phoneNoInfo.getPhoneNumber());
92
+//        iTaPersonService.updateById(taPerson);
93
+//
94
+//        // 查询学生
95
+//        TaStudent taStudent = iTaStudentService.getByPhone(taPerson.getPhone());
96
+//        if (null != taStudent) {
97
+//            taStudent.setPersonId(taPerson.getPersonId());
98
+//            iTaStudentService.updateById(taStudent);
99
+//        }
100
+//
101
+//        return ResponseBean.success(taPerson);
102
+//    }
103
+//
104
+//    private void checkAuthParams(WxMaAuthParam params) throws Exception {
105
+//        String signature = params.getSignature();
106
+//        String rawData = params.getRawData();
107
+//        String encryptedData = params.getEncryptedData();
108
+//        String iv = params.getIv();
109
+//        String sessionKey = params.getSessionKey();
110
+//
111
+//        if (StringUtils.isEmpty(signature) || StringUtils.isEmpty(rawData) || StringUtils.isEmpty(encryptedData) || StringUtils.isEmpty(iv) || StringUtils.isEmpty(sessionKey)) {
112
+//            throw new Exception("缺失授权参数");
113
+//        }
114
+//
115
+//        boolean isValid = wxUtils.getService().getUserService().checkUserInfo(sessionKey, rawData, signature);
116
+//        if (!isValid) {
117
+//            throw new Exception("校验授权参数失败, 请重试");
118
+//        }
119
+//
120
+//        return;
121
+//    }
122
+}

+ 52
- 0
src/main/java/com/yunzhi/shigongli/entity/SysLogin.java 查看文件

@@ -0,0 +1,52 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 登录
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="SysLogin对象", description="登录")
25
+public class SysLogin implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "主键")
30
+    @TableId(value = "login_id", type = IdType.AUTO)
31
+    private Integer loginId;
32
+
33
+    @ApiModelProperty(value = "用户ID")
34
+    private String userId;
35
+
36
+    @ApiModelProperty(value = "登录名")
37
+    private String loginName;
38
+
39
+    @ApiModelProperty(value = "密码")
40
+    private String password;
41
+
42
+    @ApiModelProperty(value = "状态")
43
+    private Integer status;
44
+
45
+    @ApiModelProperty(value = "创建时间")
46
+    private LocalDateTime createDate;
47
+
48
+    @ApiModelProperty(value = "更新时间")
49
+    private LocalDateTime updateDate;
50
+
51
+
52
+}

+ 52
- 0
src/main/java/com/yunzhi/shigongli/entity/SysUser.java 查看文件

@@ -0,0 +1,52 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 用户
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="SysUser对象", description="用户")
25
+public class SysUser implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "用户ID")
30
+    @TableId(value = "user_id", type = IdType.UUID)
31
+    private String userId;
32
+
33
+    @ApiModelProperty(value = "用户名")
34
+    private String userName;
35
+
36
+    @ApiModelProperty(value = "头像")
37
+    private String avatar;
38
+
39
+    @ApiModelProperty(value = "手机号")
40
+    private String phone;
41
+
42
+    @ApiModelProperty(value = "状态")
43
+    private Integer status;
44
+
45
+    @ApiModelProperty(value = "创建时间")
46
+    private LocalDateTime createDate;
47
+
48
+    @ApiModelProperty(value = "更新时间")
49
+    private LocalDateTime updateDate;
50
+
51
+
52
+}

+ 55
- 0
src/main/java/com/yunzhi/shigongli/entity/TaEvaluation.java 查看文件

@@ -0,0 +1,55 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 评价表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaEvaluation对象", description="评价表")
25
+public class TaEvaluation implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "评价ID")
30
+    @TableId(value = "evaluate_id", type = IdType.AUTO)
31
+    private Integer evaluateId;
32
+
33
+    @ApiModelProperty(value = "被评对象类型")
34
+    private String targetType;
35
+
36
+    @ApiModelProperty(value = "被评对象ID")
37
+    private String targetId;
38
+
39
+    @ApiModelProperty(value = "评价类型")
40
+    private String evaluateType;
41
+
42
+    @ApiModelProperty(value = "评分")
43
+    private Integer score;
44
+
45
+    @ApiModelProperty(value = "评价内容")
46
+    private String content;
47
+
48
+    @ApiModelProperty(value = "评价人")
49
+    private String personId;
50
+
51
+    @ApiModelProperty(value = "评价时间")
52
+    private LocalDateTime createDate;
53
+
54
+
55
+}

+ 52
- 0
src/main/java/com/yunzhi/shigongli/entity/TaExtendContent.java 查看文件

@@ -0,0 +1,52 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 扩展内容
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaExtendContent对象", description="扩展内容")
25
+public class TaExtendContent implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "内容ID")
30
+    @TableId(value = "ext_id", type = IdType.AUTO)
31
+    private Integer extId;
32
+
33
+    @ApiModelProperty(value = "扩展对象类型")
34
+    private String targetType;
35
+
36
+    @ApiModelProperty(value = "扩展对象ID")
37
+    private String targetId;
38
+
39
+    @ApiModelProperty(value = "内容类型")
40
+    private String contentType;
41
+
42
+    @ApiModelProperty(value = "内容详情")
43
+    private String content;
44
+
45
+    @ApiModelProperty(value = "排序")
46
+    private Integer sort;
47
+
48
+    @ApiModelProperty(value = "创建时间")
49
+    private LocalDateTime createDate;
50
+
51
+
52
+}

+ 43
- 0
src/main/java/com/yunzhi/shigongli/entity/TaFeedback.java 查看文件

@@ -0,0 +1,43 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 意见反馈
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaFeedback对象", description="意见反馈")
25
+public class TaFeedback implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "反馈ID")
30
+    @TableId(value = "feedback_id", type = IdType.AUTO)
31
+    private Integer feedbackId;
32
+
33
+    @ApiModelProperty(value = "反馈内容")
34
+    private String content;
35
+
36
+    @ApiModelProperty(value = "反馈人")
37
+    private String personId;
38
+
39
+    @ApiModelProperty(value = "时间")
40
+    private LocalDateTime createDate;
41
+
42
+
43
+}

+ 49
- 0
src/main/java/com/yunzhi/shigongli/entity/TaHotel.java 查看文件

@@ -0,0 +1,49 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 民宿
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaHotel对象", description="民宿")
25
+public class TaHotel implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "民宿ID")
30
+    @TableId(value = "hotel_id", type = IdType.UUID)
31
+    private String hotelId;
32
+
33
+    @ApiModelProperty(value = "名称")
34
+    private String hotelName;
35
+
36
+    @ApiModelProperty(value = "logo")
37
+    private String logo;
38
+
39
+    @ApiModelProperty(value = "状态")
40
+    private Integer status;
41
+
42
+    @ApiModelProperty(value = "创建时间")
43
+    private LocalDateTime createDate;
44
+
45
+    @ApiModelProperty(value = "更新时间")
46
+    private LocalDateTime updateDate;
47
+
48
+
49
+}

+ 49
- 0
src/main/java/com/yunzhi/shigongli/entity/TaHotelAccount.java 查看文件

@@ -0,0 +1,49 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.time.LocalDateTime;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 民宿账户
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaHotelAccount对象", description="民宿账户")
26
+public class TaHotelAccount implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "账户ID")
31
+    @TableId(value = "account_id", type = IdType.UUID)
32
+    private String accountId;
33
+
34
+    @ApiModelProperty(value = "民宿ID")
35
+    private String hotelId;
36
+
37
+    @ApiModelProperty(value = "总金额")
38
+    private BigDecimal amounts;
39
+
40
+    @ApiModelProperty(value = "佣金")
41
+    private BigDecimal brokerageCharges;
42
+
43
+    @ApiModelProperty(value = "已结佣金")
44
+    private BigDecimal paidCharges;
45
+
46
+    private LocalDateTime createDate;
47
+
48
+
49
+}

+ 68
- 0
src/main/java/com/yunzhi/shigongli/entity/TaHotelAccountLog.java 查看文件

@@ -0,0 +1,68 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.time.LocalDateTime;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 民宿账户流水
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaHotelAccountLog对象", description="民宿账户流水")
26
+public class TaHotelAccountLog implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "流水ID")
31
+    @TableId(value = "log_id", type = IdType.AUTO)
32
+    private Integer logId;
33
+
34
+    @ApiModelProperty(value = "账户ID")
35
+    private String accountId;
36
+
37
+    @ApiModelProperty(value = "民宿ID")
38
+    private String hotelId;
39
+
40
+    @ApiModelProperty(value = "收支类型;-1支出, 1收入")
41
+    private Integer signType;
42
+
43
+    @ApiModelProperty(value = "金额类型")
44
+    private String amountType;
45
+
46
+    @ApiModelProperty(value = "金额")
47
+    private BigDecimal amount;
48
+
49
+    @ApiModelProperty(value = "关联类型")
50
+    private String targetType;
51
+
52
+    @ApiModelProperty(value = "关联对象ID")
53
+    private String targetId;
54
+
55
+    @ApiModelProperty(value = "关联人")
56
+    private String targetPerson;
57
+
58
+    @ApiModelProperty(value = "主订单")
59
+    private String orderId;
60
+
61
+    @ApiModelProperty(value = "子订单")
62
+    private String subOrderId;
63
+
64
+    @ApiModelProperty(value = "创建时间")
65
+    private LocalDateTime createDate;
66
+
67
+
68
+}

+ 52
- 0
src/main/java/com/yunzhi/shigongli/entity/TaHotelWorker.java 查看文件

@@ -0,0 +1,52 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 民宿员工
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaHotelWorker对象", description="民宿员工")
25
+public class TaHotelWorker implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "员工ID")
30
+    @TableId(value = "worker_id", type = IdType.UUID)
31
+    private String workerId;
32
+
33
+    @ApiModelProperty(value = "名称")
34
+    private String workerName;
35
+
36
+    @ApiModelProperty(value = "手机号")
37
+    private String phone;
38
+
39
+    @ApiModelProperty(value = "关联人员")
40
+    private String personId;
41
+
42
+    @ApiModelProperty(value = "是否管理员")
43
+    private Integer isManager;
44
+
45
+    @ApiModelProperty(value = "状态")
46
+    private Integer status;
47
+
48
+    @ApiModelProperty(value = "创建时间")
49
+    private LocalDateTime createDate;
50
+
51
+
52
+}

+ 46
- 0
src/main/java/com/yunzhi/shigongli/entity/TaLike.java 查看文件

@@ -0,0 +1,46 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 点赞表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaLike对象", description="点赞表")
25
+public class TaLike implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "赞ID")
30
+    @TableId(value = "like_id", type = IdType.AUTO)
31
+    private Integer likeId;
32
+
33
+    @ApiModelProperty(value = "赞对象类型")
34
+    private String targetType;
35
+
36
+    @ApiModelProperty(value = "赞对象ID")
37
+    private String targetId;
38
+
39
+    @ApiModelProperty(value = "点赞人")
40
+    private String personId;
41
+
42
+    @ApiModelProperty(value = "点赞时间")
43
+    private LocalDateTime createDate;
44
+
45
+
46
+}

+ 46
- 0
src/main/java/com/yunzhi/shigongli/entity/TaOrder.java 查看文件

@@ -0,0 +1,46 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.time.LocalDateTime;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 订单表
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaOrder对象", description="订单表")
26
+public class TaOrder implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @TableId(value = "order_id", type = IdType.INPUT)
31
+    private String orderId;
32
+
33
+    private String orderType;
34
+
35
+    private String personId;
36
+
37
+    private String strategyId;
38
+
39
+    private BigDecimal charges;
40
+
41
+    private Integer status;
42
+
43
+    private LocalDateTime createDate;
44
+
45
+
46
+}

+ 53
- 0
src/main/java/com/yunzhi/shigongli/entity/TaOrderCommission.java 查看文件

@@ -0,0 +1,53 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.time.LocalDateTime;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 订单抽成
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaOrderCommission对象", description="订单抽成")
26
+public class TaOrderCommission implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "抽成ID")
31
+    @TableId(value = "commission_id", type = IdType.AUTO)
32
+    private Integer commissionId;
33
+
34
+    @ApiModelProperty(value = "主订单")
35
+    private String orderId;
36
+
37
+    @ApiModelProperty(value = "子订单")
38
+    private String subOrderId;
39
+
40
+    @ApiModelProperty(value = "抽成类型")
41
+    private String commissionType;
42
+
43
+    @ApiModelProperty(value = "抽成比例")
44
+    private BigDecimal commissionRate;
45
+
46
+    @ApiModelProperty(value = "抽成金额")
47
+    private BigDecimal charge;
48
+
49
+    @ApiModelProperty(value = "时间")
50
+    private LocalDateTime createDate;
51
+
52
+
53
+}

+ 65
- 0
src/main/java/com/yunzhi/shigongli/entity/TaOrderPay.java 查看文件

@@ -0,0 +1,65 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.time.LocalDateTime;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 订单支付
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaOrderPay对象", description="订单支付")
26
+public class TaOrderPay implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "支付ID")
31
+    @TableId(value = "pay_id", type = IdType.UUID)
32
+    private String payId;
33
+
34
+    @ApiModelProperty(value = "订单ID")
35
+    private String orderId;
36
+
37
+    @ApiModelProperty(value = "子订单ID")
38
+    private String subOrderId;
39
+
40
+    @ApiModelProperty(value = "支付人")
41
+    private String personId;
42
+
43
+    @ApiModelProperty(value = "支付类型")
44
+    private String payType;
45
+
46
+    @ApiModelProperty(value = "是否退款")
47
+    private Integer isRefund;
48
+
49
+    @ApiModelProperty(value = "prepay_id")
50
+    private String prepayId;
51
+
52
+    @ApiModelProperty(value = "支付金额")
53
+    private BigDecimal charges;
54
+
55
+    @ApiModelProperty(value = "状态")
56
+    private Integer status;
57
+
58
+    @ApiModelProperty(value = "创建时间")
59
+    private LocalDateTime createDate;
60
+
61
+    @ApiModelProperty(value = "支付时间")
62
+    private LocalDateTime payDate;
63
+
64
+
65
+}

+ 68
- 0
src/main/java/com/yunzhi/shigongli/entity/TaOrderSub.java 查看文件

@@ -0,0 +1,68 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.time.LocalDateTime;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 子订单表
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaOrderSub对象", description="子订单表")
26
+public class TaOrderSub implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "子订单ID")
31
+    @TableId(value = "sub_order_id", type = IdType.UUID)
32
+    private String subOrderId;
33
+
34
+    @ApiModelProperty(value = "主订单ID")
35
+    private String orderId;
36
+
37
+    @ApiModelProperty(value = "商铺ID")
38
+    private String shopId;
39
+
40
+    @ApiModelProperty(value = "套餐ID")
41
+    private String packageId;
42
+
43
+    @ApiModelProperty(value = "总金额")
44
+    private BigDecimal charges;
45
+
46
+    @ApiModelProperty(value = "数量")
47
+    private Integer amount;
48
+
49
+    @ApiModelProperty(value = "单价")
50
+    private BigDecimal unitPrice;
51
+
52
+    @ApiModelProperty(value = "抽成")
53
+    private BigDecimal commissionCharge;
54
+
55
+    @ApiModelProperty(value = "返现金额")
56
+    private BigDecimal cashback;
57
+
58
+    @ApiModelProperty(value = "是否核销")
59
+    private Integer isVerified;
60
+
61
+    @ApiModelProperty(value = "状态")
62
+    private Integer status;
63
+
64
+    @ApiModelProperty(value = "创建时间")
65
+    private LocalDateTime createDate;
66
+
67
+
68
+}

+ 67
- 0
src/main/java/com/yunzhi/shigongli/entity/TaPerson.java 查看文件

@@ -0,0 +1,67 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 小程序人员表
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaPerson对象", description="小程序人员表")
25
+public class TaPerson implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "人员ID")
30
+    @TableId(value = "person_id", type = IdType.UUID)
31
+    private String personId;
32
+
33
+    @ApiModelProperty(value = "类型")
34
+    private String personType;
35
+
36
+    @ApiModelProperty(value = "openid")
37
+    private String openid;
38
+
39
+    @ApiModelProperty(value = "unionid")
40
+    private String unionid;
41
+
42
+    @ApiModelProperty(value = "性别")
43
+    private Integer sex;
44
+
45
+    @ApiModelProperty(value = "昵称")
46
+    private String nickName;
47
+
48
+    @ApiModelProperty(value = "头像")
49
+    private String avatar;
50
+
51
+    @ApiModelProperty(value = "手机")
52
+    private String phone;
53
+
54
+    @ApiModelProperty(value = "状态")
55
+    private Integer status;
56
+
57
+    @ApiModelProperty(value = "创建时间")
58
+    private LocalDateTime createDate;
59
+
60
+    @ApiModelProperty(value = "来源类型")
61
+    private String fromType;
62
+
63
+    @ApiModelProperty(value = "推广ID")
64
+    private String recommender;
65
+
66
+
67
+}

+ 49
- 0
src/main/java/com/yunzhi/shigongli/entity/TaPersonAccount.java 查看文件

@@ -0,0 +1,49 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.time.LocalDateTime;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 小程序人员账户
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaPersonAccount对象", description="小程序人员账户")
26
+public class TaPersonAccount implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "账户ID")
31
+    @TableId(value = "account_id", type = IdType.UUID)
32
+    private String accountId;
33
+
34
+    @ApiModelProperty(value = "民宿ID")
35
+    private String personId;
36
+
37
+    @ApiModelProperty(value = "总金额")
38
+    private BigDecimal amounts;
39
+
40
+    @ApiModelProperty(value = "返现总金额")
41
+    private BigDecimal cashbackCharges;
42
+
43
+    @ApiModelProperty(value = "消费总金额")
44
+    private BigDecimal paidCharges;
45
+
46
+    private LocalDateTime createDate;
47
+
48
+
49
+}

+ 68
- 0
src/main/java/com/yunzhi/shigongli/entity/TaPersonAccountLog.java 查看文件

@@ -0,0 +1,68 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.time.LocalDateTime;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 人员账户流水
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaPersonAccountLog对象", description="人员账户流水")
26
+public class TaPersonAccountLog implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "流水ID")
31
+    @TableId(value = "log_id", type = IdType.AUTO)
32
+    private Integer logId;
33
+
34
+    @ApiModelProperty(value = "账户ID")
35
+    private String accountId;
36
+
37
+    @ApiModelProperty(value = "民宿ID")
38
+    private String personId;
39
+
40
+    @ApiModelProperty(value = "收支类型;-1支出, 1收入")
41
+    private Integer signType;
42
+
43
+    @ApiModelProperty(value = "金额类型")
44
+    private String amountType;
45
+
46
+    @ApiModelProperty(value = "金额")
47
+    private BigDecimal amount;
48
+
49
+    @ApiModelProperty(value = "关联类型")
50
+    private String targetType;
51
+
52
+    @ApiModelProperty(value = "关联对象ID")
53
+    private String targetId;
54
+
55
+    @ApiModelProperty(value = "关联人")
56
+    private String targetPerson;
57
+
58
+    @ApiModelProperty(value = "主订单")
59
+    private String orderId;
60
+
61
+    @ApiModelProperty(value = "子订单")
62
+    private String subOrderId;
63
+
64
+    @ApiModelProperty(value = "创建时间")
65
+    private LocalDateTime createDate;
66
+
67
+
68
+}

+ 52
- 0
src/main/java/com/yunzhi/shigongli/entity/TaPersonRecommender.java 查看文件

@@ -0,0 +1,52 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 用户推广人
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaPersonRecommender对象", description="用户推广人")
25
+public class TaPersonRecommender implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "流水ID")
30
+    @TableId(value = "recommend_id", type = IdType.AUTO)
31
+    private Integer recommendId;
32
+
33
+    @ApiModelProperty(value = "人员ID")
34
+    private String personId;
35
+
36
+    @ApiModelProperty(value = "来源类型")
37
+    private String fromType;
38
+
39
+    @ApiModelProperty(value = "推荐人")
40
+    private String recommender;
41
+
42
+    @ApiModelProperty(value = "推荐时间")
43
+    private LocalDateTime createDate;
44
+
45
+    @ApiModelProperty(value = "失效日期")
46
+    private LocalDateTime expireDate;
47
+
48
+    @ApiModelProperty(value = "当前状态")
49
+    private Integer status;
50
+
51
+
52
+}

+ 46
- 0
src/main/java/com/yunzhi/shigongli/entity/TaPv.java 查看文件

@@ -0,0 +1,46 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 访问人次
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaPv对象", description="访问人次")
25
+public class TaPv implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "pvID")
30
+    @TableId(value = "pv_id", type = IdType.AUTO)
31
+    private Integer pvId;
32
+
33
+    @ApiModelProperty(value = "人员ID")
34
+    private String personId;
35
+
36
+    @ApiModelProperty(value = "访问对象类型")
37
+    private String targetType;
38
+
39
+    @ApiModelProperty(value = "访问对象ID")
40
+    private String targetId;
41
+
42
+    @ApiModelProperty(value = "访问时间")
43
+    private LocalDateTime createDate;
44
+
45
+
46
+}

+ 70
- 0
src/main/java/com/yunzhi/shigongli/entity/TaRoom.java 查看文件

@@ -0,0 +1,70 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 房源
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaRoom对象", description="房源")
25
+public class TaRoom implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "房源ID")
30
+    @TableId(value = "room_id", type = IdType.UUID)
31
+    private String roomId;
32
+
33
+    @ApiModelProperty(value = "房源名称")
34
+    private String roomName;
35
+
36
+    @ApiModelProperty(value = "民宿ID")
37
+    private String hotelId;
38
+
39
+    @ApiModelProperty(value = "主图")
40
+    private String poster;
41
+
42
+    @ApiModelProperty(value = "定位")
43
+    private String location;
44
+
45
+    @ApiModelProperty(value = "地址")
46
+    private String address;
47
+
48
+    @ApiModelProperty(value = "停车场定位")
49
+    private String parkingLocation;
50
+
51
+    @ApiModelProperty(value = "停车场位置")
52
+    private String parkingAddress;
53
+
54
+    @ApiModelProperty(value = "WIFI名称")
55
+    private String wifiName;
56
+
57
+    @ApiModelProperty(value = "WIFI密码")
58
+    private String wifiPassword;
59
+
60
+    @ApiModelProperty(value = "权重")
61
+    private Integer weight;
62
+
63
+    @ApiModelProperty(value = "状态")
64
+    private Integer status;
65
+
66
+    @ApiModelProperty(value = "创建时间")
67
+    private LocalDateTime createDate;
68
+
69
+
70
+}

+ 58
- 0
src/main/java/com/yunzhi/shigongli/entity/TaRoomOrder.java 查看文件

@@ -0,0 +1,58 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 房源订单
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaRoomOrder对象", description="房源订单")
25
+public class TaRoomOrder implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "订单ID")
30
+    @TableId(value = "room_order_id", type = IdType.UUID)
31
+    private String roomOrderId;
32
+
33
+    @ApiModelProperty(value = "房源ID")
34
+    private String roomId;
35
+
36
+    @ApiModelProperty(value = "民宿ID")
37
+    private String hotelId;
38
+
39
+    @ApiModelProperty(value = "分享人")
40
+    private String sharePerson;
41
+
42
+    @ApiModelProperty(value = "开始时间")
43
+    private String startDate;
44
+
45
+    @ApiModelProperty(value = "结束时间")
46
+    private String endDate;
47
+
48
+    @ApiModelProperty(value = "人数")
49
+    private Integer personNum;
50
+
51
+    @ApiModelProperty(value = "状态")
52
+    private Integer status;
53
+
54
+    @ApiModelProperty(value = "创建时间")
55
+    private LocalDateTime createDate;
56
+
57
+
58
+}

+ 43
- 0
src/main/java/com/yunzhi/shigongli/entity/TaRoomOrderPerson.java 查看文件

@@ -0,0 +1,43 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 房源订单打开人
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaRoomOrderPerson对象", description="房源订单打开人")
25
+public class TaRoomOrderPerson implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "ID")
30
+    @TableId(value = "opener_id", type = IdType.AUTO)
31
+    private Integer openerId;
32
+
33
+    @ApiModelProperty(value = "房源订单ID")
34
+    private String roomOrderId;
35
+
36
+    @ApiModelProperty(value = "打开人")
37
+    private String personId;
38
+
39
+    @ApiModelProperty(value = "创建时间")
40
+    private LocalDateTime createDate;
41
+
42
+
43
+}

+ 43
- 0
src/main/java/com/yunzhi/shigongli/entity/TaSearch.java 查看文件

@@ -0,0 +1,43 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 搜索日志
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaSearch对象", description="搜索日志")
25
+public class TaSearch implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "搜索ID")
30
+    @TableId(value = "search_id", type = IdType.AUTO)
31
+    private Integer searchId;
32
+
33
+    @ApiModelProperty(value = "关键词")
34
+    private String keyword;
35
+
36
+    @ApiModelProperty(value = "人员ID")
37
+    private String personId;
38
+
39
+    @ApiModelProperty(value = "搜索时间")
40
+    private LocalDateTime createDate;
41
+
42
+
43
+}

+ 80
- 0
src/main/java/com/yunzhi/shigongli/entity/TaShop.java 查看文件

@@ -0,0 +1,80 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.time.LocalDateTime;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 商铺
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaShop对象", description="商铺")
26
+public class TaShop implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "商铺ID")
31
+    @TableId(value = "shop_id", type = IdType.UUID)
32
+    private String shopId;
33
+
34
+    @ApiModelProperty(value = "商铺名称")
35
+    private String shopName;
36
+
37
+    @ApiModelProperty(value = "logo")
38
+    private String logo;
39
+
40
+    @ApiModelProperty(value = "所属区")
41
+    private String cityId;
42
+
43
+    @ApiModelProperty(value = "定位")
44
+    private String locaton;
45
+
46
+    @ApiModelProperty(value = "地址")
47
+    private String address;
48
+
49
+    @ApiModelProperty(value = "人均消费")
50
+    private BigDecimal averagePrice;
51
+
52
+    @ApiModelProperty(value = "营业时间")
53
+    private String businessHours;
54
+
55
+    @ApiModelProperty(value = "口味评分")
56
+    private BigDecimal sweetScore;
57
+
58
+    @ApiModelProperty(value = "环境评分")
59
+    private BigDecimal environmentScore;
60
+
61
+    @ApiModelProperty(value = "服务评分")
62
+    private BigDecimal serviceScore;
63
+
64
+    @ApiModelProperty(value = "点赞数")
65
+    private Integer likeNum;
66
+
67
+    @ApiModelProperty(value = "浏览量")
68
+    private Integer pvNum;
69
+
70
+    @ApiModelProperty(value = "用户数")
71
+    private Integer uvNum;
72
+
73
+    @ApiModelProperty(value = "状态")
74
+    private Integer status;
75
+
76
+    @ApiModelProperty(value = "创建时间")
77
+    private LocalDateTime createDate;
78
+
79
+
80
+}

+ 49
- 0
src/main/java/com/yunzhi/shigongli/entity/TaShopAccount.java 查看文件

@@ -0,0 +1,49 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.time.LocalDateTime;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 民宿账户
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaShopAccount对象", description="民宿账户")
26
+public class TaShopAccount implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "账户ID")
31
+    @TableId(value = "account_id", type = IdType.UUID)
32
+    private String accountId;
33
+
34
+    @ApiModelProperty(value = "民宿ID")
35
+    private String shopId;
36
+
37
+    @ApiModelProperty(value = "总金额")
38
+    private BigDecimal amounts;
39
+
40
+    @ApiModelProperty(value = "佣金")
41
+    private BigDecimal brokerageCharges;
42
+
43
+    @ApiModelProperty(value = "已结佣金")
44
+    private BigDecimal paidCharges;
45
+
46
+    private LocalDateTime createDate;
47
+
48
+
49
+}

+ 68
- 0
src/main/java/com/yunzhi/shigongli/entity/TaShopAccountLog.java 查看文件

@@ -0,0 +1,68 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.time.LocalDateTime;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 商户账户流水
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaShopAccountLog对象", description="商户账户流水")
26
+public class TaShopAccountLog implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "流水ID")
31
+    @TableId(value = "log_id", type = IdType.AUTO)
32
+    private Integer logId;
33
+
34
+    @ApiModelProperty(value = "账户ID")
35
+    private String accountId;
36
+
37
+    @ApiModelProperty(value = "民宿ID")
38
+    private String shopId;
39
+
40
+    @ApiModelProperty(value = "收支类型;-1支出, 1收入")
41
+    private Integer signType;
42
+
43
+    @ApiModelProperty(value = "金额类型")
44
+    private String amountType;
45
+
46
+    @ApiModelProperty(value = "金额")
47
+    private BigDecimal amount;
48
+
49
+    @ApiModelProperty(value = "关联类型")
50
+    private String targetType;
51
+
52
+    @ApiModelProperty(value = "关联对象ID")
53
+    private String targetId;
54
+
55
+    @ApiModelProperty(value = "关联人")
56
+    private String targetPerson;
57
+
58
+    @ApiModelProperty(value = "主订单")
59
+    private String orderId;
60
+
61
+    @ApiModelProperty(value = "子订单")
62
+    private String subOrderId;
63
+
64
+    @ApiModelProperty(value = "创建时间")
65
+    private LocalDateTime createDate;
66
+
67
+
68
+}

+ 46
- 0
src/main/java/com/yunzhi/shigongli/entity/TaShopImages.java 查看文件

@@ -0,0 +1,46 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 商铺图片
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaShopImages对象", description="商铺图片")
25
+public class TaShopImages implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "图片ID")
30
+    @TableId(value = "image_id", type = IdType.AUTO)
31
+    private Integer imageId;
32
+
33
+    @ApiModelProperty(value = "商铺ID")
34
+    private String shopId;
35
+
36
+    @ApiModelProperty(value = "图片类型")
37
+    private String imageType;
38
+
39
+    @ApiModelProperty(value = "图片地址")
40
+    private String url;
41
+
42
+    @ApiModelProperty(value = "创建时间")
43
+    private LocalDateTime createDate;
44
+
45
+
46
+}

+ 74
- 0
src/main/java/com/yunzhi/shigongli/entity/TaShopPackage.java 查看文件

@@ -0,0 +1,74 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.time.LocalDateTime;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import java.io.Serializable;
8
+import io.swagger.annotations.ApiModel;
9
+import io.swagger.annotations.ApiModelProperty;
10
+import lombok.Data;
11
+import lombok.EqualsAndHashCode;
12
+import lombok.experimental.Accessors;
13
+
14
+/**
15
+ * <p>
16
+ * 商铺套餐
17
+ * </p>
18
+ *
19
+ * @author yansen
20
+ * @since 2021-08-17
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@ApiModel(value="TaShopPackage对象", description="商铺套餐")
26
+public class TaShopPackage implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "套餐ID")
31
+    @TableId(value = "package_id", type = IdType.UUID)
32
+    private String packageId;
33
+
34
+    @ApiModelProperty(value = "商铺ID")
35
+    private String shopId;
36
+
37
+    @ApiModelProperty(value = "类型")
38
+    private String packageCategory;
39
+
40
+    @ApiModelProperty(value = "描述")
41
+    private String description;
42
+
43
+    @ApiModelProperty(value = "适用人数")
44
+    private Integer personNum;
45
+
46
+    @ApiModelProperty(value = "主图")
47
+    private String poster;
48
+
49
+    @ApiModelProperty(value = "门市价格")
50
+    private BigDecimal standardPrice;
51
+
52
+    @ApiModelProperty(value = "实售价格")
53
+    private BigDecimal actualPrice;
54
+
55
+    @ApiModelProperty(value = "返现")
56
+    private BigDecimal cashback;
57
+
58
+    @ApiModelProperty(value = "有效期始")
59
+    private LocalDateTime startTime;
60
+
61
+    @ApiModelProperty(value = "有效期止")
62
+    private LocalDateTime endTime;
63
+
64
+    @ApiModelProperty(value = "权重")
65
+    private Integer weight;
66
+
67
+    @ApiModelProperty(value = "状态")
68
+    private Integer status;
69
+
70
+    @ApiModelProperty(value = "创建时间")
71
+    private LocalDateTime createDate;
72
+
73
+
74
+}

+ 46
- 0
src/main/java/com/yunzhi/shigongli/entity/TaShopPackageSetting.java 查看文件

@@ -0,0 +1,46 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 套餐设置
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaShopPackageSetting对象", description="套餐设置")
25
+public class TaShopPackageSetting implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "套餐ID")
30
+    @TableId(value = "package_id", type = IdType.INPUT)
31
+    private String packageId;
32
+
33
+    @ApiModelProperty(value = "引流分成")
34
+    private BigDecimal trafficRate;
35
+
36
+    @ApiModelProperty(value = "平台分成")
37
+    private BigDecimal platformRate;
38
+
39
+    @ApiModelProperty(value = "参与攻略")
40
+    private Integer isStrategy;
41
+
42
+    @ApiModelProperty(value = "推荐等级")
43
+    private String strategyLevel;
44
+
45
+
46
+}

+ 36
- 0
src/main/java/com/yunzhi/shigongli/entity/TaShopPackageTime.java 查看文件

@@ -0,0 +1,36 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.io.Serializable;
6
+import io.swagger.annotations.ApiModel;
7
+import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+
12
+/**
13
+ * <p>
14
+ * 商铺套餐类型
15
+ * </p>
16
+ *
17
+ * @author yansen
18
+ * @since 2021-08-17
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@ApiModel(value="TaShopPackageTime对象", description="商铺套餐类型")
24
+public class TaShopPackageTime implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @TableId(value = "type_id", type = IdType.AUTO)
29
+    private Integer typeId;
30
+
31
+    private String packageId;
32
+
33
+    private String markId;
34
+
35
+
36
+}

+ 42
- 0
src/main/java/com/yunzhi/shigongli/entity/TaShopTags.java 查看文件

@@ -0,0 +1,42 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.io.Serializable;
6
+import io.swagger.annotations.ApiModel;
7
+import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Data;
9
+import lombok.EqualsAndHashCode;
10
+import lombok.experimental.Accessors;
11
+
12
+/**
13
+ * <p>
14
+ * 商铺标签
15
+ * </p>
16
+ *
17
+ * @author yansen
18
+ * @since 2021-08-17
19
+ */
20
+@Data
21
+@EqualsAndHashCode(callSuper = false)
22
+@Accessors(chain = true)
23
+@ApiModel(value="TaShopTags对象", description="商铺标签")
24
+public class TaShopTags implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @ApiModelProperty(value = "ID")
29
+    @TableId(value = "tag_id", type = IdType.AUTO)
30
+    private Integer tagId;
31
+
32
+    @ApiModelProperty(value = "商铺ID")
33
+    private String shopId;
34
+
35
+    @ApiModelProperty(value = "类型ID")
36
+    private String typeId;
37
+
38
+    @ApiModelProperty(value = "类型名称")
39
+    private String typeName;
40
+
41
+
42
+}

+ 73
- 0
src/main/java/com/yunzhi/shigongli/entity/TaTourist.java 查看文件

@@ -0,0 +1,73 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import java.time.LocalDateTime;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 旅游景点
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaTourist对象", description="旅游景点")
25
+public class TaTourist implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "景区ID")
30
+    @TableId(value = "tourist_id", type = IdType.UUID)
31
+    private String touristId;
32
+
33
+    @ApiModelProperty(value = "景区名称")
34
+    private String touristName;
35
+
36
+    @ApiModelProperty(value = "简介")
37
+    private String description;
38
+
39
+    @ApiModelProperty(value = "logo")
40
+    private String logo;
41
+
42
+    @ApiModelProperty(value = "所属区")
43
+    private String cityId;
44
+
45
+    @ApiModelProperty(value = "定位")
46
+    private String locaton;
47
+
48
+    @ApiModelProperty(value = "地址")
49
+    private String address;
50
+
51
+    @ApiModelProperty(value = "点赞数")
52
+    private Integer likeNum;
53
+
54
+    @ApiModelProperty(value = "浏览量")
55
+    private Integer pvNum;
56
+
57
+    @ApiModelProperty(value = "用户数")
58
+    private Integer uvNum;
59
+
60
+    @ApiModelProperty(value = "权重")
61
+    private Integer weight;
62
+
63
+    @ApiModelProperty(value = "推荐等级")
64
+    private String strategyLevel;
65
+
66
+    @ApiModelProperty(value = "状态")
67
+    private Integer status;
68
+
69
+    @ApiModelProperty(value = "创建时间")
70
+    private LocalDateTime createDate;
71
+
72
+
73
+}

+ 46
- 0
src/main/java/com/yunzhi/shigongli/entity/TaUv.java 查看文件

@@ -0,0 +1,46 @@
1
+package com.yunzhi.shigongli.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import java.time.LocalDateTime;
6
+import java.io.Serializable;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+
13
+/**
14
+ * <p>
15
+ * 访问人
16
+ * </p>
17
+ *
18
+ * @author yansen
19
+ * @since 2021-08-17
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@ApiModel(value="TaUv对象", description="访问人")
25
+public class TaUv implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @ApiModelProperty(value = "uvID")
30
+    @TableId(value = "uv_id", type = IdType.AUTO)
31
+    private Integer uvId;
32
+
33
+    @ApiModelProperty(value = "人员ID")
34
+    private String personId;
35
+
36
+    @ApiModelProperty(value = "访问对象类型")
37
+    private String targetType;
38
+
39
+    @ApiModelProperty(value = "访问对象ID")
40
+    private String targetId;
41
+
42
+    @ApiModelProperty(value = "访问时间")
43
+    private LocalDateTime createDate;
44
+
45
+
46
+}

+ 0
- 0
src/main/java/com/yunzhi/shigongli/entity/TdCity.java 查看文件


部分文件因为文件数量过多而无法显示