ソースを参照

Merge branch '2.0.0'

傅行帆 6 年 前
コミット
ae0252af77
共有100 個のファイルを変更した4880 個の追加1403 個の削除を含む
  1. 1
    0
      .gitignore
  2. 124
    0
      CODE/smart-community-word/.idea/uiDesigner.xml
  3. 0
    1186
      CODE/smart-community-word/.idea/workspace.xml
  4. 14
    1
      CODE/smart-community/app-api/pom.xml
  5. 91
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/aop/LogAOP.java
  6. 39
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/ICode.java
  7. 0
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/impl/ImgCodeImpl.java
  8. 268
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/fushi/Base64.java
  9. 166
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/fushi/FSApi.java
  10. 35
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/messagePush.java
  11. 26
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/DaSuProperties.java
  12. 44
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/FuShiProperties.java
  13. 37
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/LoginCodePerproties.java
  14. 26
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/PayNotifyPerproties.java
  15. 23
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/WeiXinPerproties.java
  16. 83
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/sign/DaSuSign.java
  17. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/welcome/OkHttpRequestUtils.java
  18. 49
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/config/BillQuartz.java
  19. 40
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/config/FuShiConfig.java
  20. 3
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AliPayController.java
  21. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AssembleController.java
  22. 15
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BannerController.java
  23. 50
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BaseController.java
  24. 30
    9
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BillController.java
  25. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/CodeController.java
  26. 95
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/FSController.java
  27. 23
    13
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/FaceController.java
  28. 21
    6
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/HkController.java
  29. 80
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java
  30. 38
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/LoginCodeController.java
  31. 2
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MessageController.java
  32. 68
    16
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java
  33. 3
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/TicketController.java
  34. 130
    72
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java
  35. 119
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserVerifyController.java
  36. 2
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/VistorController.java
  37. 108
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/WxLoginController.java
  38. 36
    24
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/WxPayController.java
  39. 8
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaFaceMapper.java
  40. 11
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaSysRoleMapper.java
  41. 17
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaUserMapper.java
  42. 101
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaUserVerifyMapper.java
  43. 8
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TdImagesMapper.java
  44. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/ToBannerMapper.java
  45. 7
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivityMapper.java
  46. 27
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignInMapper.java
  47. 2
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignupMapper.java
  48. 21
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillInvoiceMapper.java
  49. 5
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillMapper.java
  50. 75
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillOrderMapper.java
  51. 12
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillStatementMapper.java
  52. 36
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingMapper.java
  53. 46
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java
  54. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpCarouselSettingMapper.java
  55. 19
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpConfigurationMapper.java
  56. 68
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpEquipmentMapper.java
  57. 30
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpEquipmentTreeMapper.java
  58. 35
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpLevelMapper.java
  59. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpMessageMapper.java
  60. 33
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpPhaseMapper.java
  61. 22
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpRoomNoEquipmentMapper.java
  62. 31
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpRoomNoMapper.java
  63. 2
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketMapper.java
  64. 11
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java
  65. 11
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionReplyMapper.java
  66. 19
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpUnitEquipmentMapper.java
  67. 34
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpUnitMapper.java
  68. 75
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/enums/UserVerifyEnum.java
  69. 32
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/log/LogAnnotation.java
  70. 43
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/log/LogEnums.java
  71. 101
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/log/LogFactory.java
  72. 46
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/log/LogFileManager.java
  73. 2
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaFace.java
  74. 57
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java
  75. 254
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUserVerify.java
  76. 1
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaVisitor.java
  77. 13
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/ToCommunities.java
  78. 14
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivity.java
  79. 95
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivitySignIn.java
  80. 27
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivitySignup.java
  81. 15
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBillInvoice.java
  82. 148
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBillOrder.java
  83. 75
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBuilding.java
  84. 101
    32
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBuildingOwnerInfo.java
  85. 125
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpConfiguration.java
  86. 260
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpEquipment.java
  87. 145
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpEquipmentTree.java
  88. 115
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpLevel.java
  89. 55
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpPhase.java
  90. 135
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpRoomNo.java
  91. 55
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpRoomNoEquipment.java
  92. 52
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java
  93. 54
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReply.java
  94. 13
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReport.java
  95. 95
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpUnit.java
  96. 55
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpUnitEquipment.java
  97. 2
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/AliPayServiceI.java
  98. 14
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BannerServiceI.java
  99. 20
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BillServiceI.java
  100. 0
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/FaceServiceI.java

+ 1
- 0
.gitignore ファイルの表示

@@ -1 +1,2 @@
1 1
 *.class
2
+CODE/smart-community-word/.idea/workspace.xml

+ 124
- 0
CODE/smart-community-word/.idea/uiDesigner.xml ファイルの表示

@@ -0,0 +1,124 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Palette2">
4
+    <group name="Swing">
5
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
+      </item>
8
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
+      </item>
11
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
+      </item>
14
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
+      </item>
17
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
+        <initial-values>
20
+          <property name="text" value="Button" />
21
+        </initial-values>
22
+      </item>
23
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
+        <initial-values>
26
+          <property name="text" value="RadioButton" />
27
+        </initial-values>
28
+      </item>
29
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
+        <initial-values>
32
+          <property name="text" value="CheckBox" />
33
+        </initial-values>
34
+      </item>
35
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
+        <initial-values>
38
+          <property name="text" value="Label" />
39
+        </initial-values>
40
+      </item>
41
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
+          <preferred-size width="150" height="-1" />
44
+        </default-constraints>
45
+      </item>
46
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
+          <preferred-size width="150" height="-1" />
49
+        </default-constraints>
50
+      </item>
51
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
+          <preferred-size width="150" height="-1" />
54
+        </default-constraints>
55
+      </item>
56
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
+          <preferred-size width="150" height="50" />
59
+        </default-constraints>
60
+      </item>
61
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
+          <preferred-size width="150" height="50" />
64
+        </default-constraints>
65
+      </item>
66
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
+          <preferred-size width="150" height="50" />
69
+        </default-constraints>
70
+      </item>
71
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
+      </item>
74
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
+          <preferred-size width="150" height="50" />
77
+        </default-constraints>
78
+      </item>
79
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
+          <preferred-size width="150" height="50" />
82
+        </default-constraints>
83
+      </item>
84
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
+          <preferred-size width="150" height="50" />
87
+        </default-constraints>
88
+      </item>
89
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
+          <preferred-size width="200" height="200" />
92
+        </default-constraints>
93
+      </item>
94
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
+          <preferred-size width="200" height="200" />
97
+        </default-constraints>
98
+      </item>
99
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
+      </item>
102
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
+      </item>
105
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
+      </item>
108
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
+      </item>
111
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
+          <preferred-size width="-1" height="20" />
114
+        </default-constraints>
115
+      </item>
116
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
+      </item>
119
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
+      </item>
122
+    </group>
123
+  </component>
124
+</project>

+ 0
- 1186
CODE/smart-community-word/.idea/workspace.xml
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 14
- 1
CODE/smart-community/app-api/pom.xml ファイルの表示

@@ -121,7 +121,11 @@
121 121
 			<version>3.3.49.ALL</version>
122 122
 		</dependency>
123 123
 
124
-
124
+		<dependency>
125
+			<groupId>com.github.sd4324530</groupId>
126
+			<artifactId>fastweixin</artifactId>
127
+			<version>1.3.6</version>
128
+		</dependency>
125 129
 		<!-- log4j -->
126 130
 
127 131
 		<!--<dependency>-->
@@ -245,6 +249,15 @@
245 249
 					</execution>
246 250
 				</executions>
247 251
 			</plugin>
252
+
253
+			<plugin>
254
+				<groupId>org.apache.maven.plugins</groupId>
255
+				<artifactId>maven-surefire-plugin</artifactId>
256
+				<version>2.4.2</version>
257
+				<configuration>
258
+					<skipTests>true</skipTests>
259
+				</configuration>
260
+			</plugin>
248 261
 		</plugins>
249 262
 	</build>
250 263
 

+ 91
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/aop/LogAOP.java ファイルの表示

@@ -0,0 +1,91 @@
1
+package com.community.huiju.aop;
2
+
3
+import com.alibaba.fastjson.JSONObject;
4
+import com.community.commom.fushi.error.FuShiException;
5
+import com.community.huiju.log.LogAnnotation;
6
+import com.community.huiju.log.LogEnums;
7
+import com.community.huiju.log.LogFactory;
8
+import com.community.huiju.log.LogFileManager;
9
+import lombok.extern.slf4j.Slf4j;
10
+import org.aspectj.lang.JoinPoint;
11
+import org.aspectj.lang.ProceedingJoinPoint;
12
+import org.aspectj.lang.Signature;
13
+import org.aspectj.lang.annotation.AfterThrowing;
14
+import org.aspectj.lang.annotation.Around;
15
+import org.aspectj.lang.annotation.Aspect;
16
+import org.aspectj.lang.annotation.Pointcut;
17
+import org.aspectj.lang.reflect.MethodSignature;
18
+import org.springframework.stereotype.Component;
19
+
20
+import java.lang.reflect.Method;
21
+
22
+@Aspect
23
+@Component
24
+@Slf4j
25
+public class LogAOP {
26
+
27
+    @Pointcut("@annotation(com.community.huiju.log.LogAnnotation)")
28
+    public void pointLog() {
29
+
30
+    }
31
+
32
+    @Around("pointLog()")
33
+    public Object logAround(ProceedingJoinPoint point) throws Throwable {
34
+
35
+        // 获取切面的点的实例
36
+        Object target = point.getTarget();
37
+        // 获取反射对象
38
+        Class<?> zClass = target.getClass();
39
+        // 获取切面点
40
+        Signature signature = point.getSignature();
41
+
42
+        // 判断日志注解是否用在方法上
43
+        if (!(signature instanceof MethodSignature)) {
44
+            throw new RuntimeException("该注解只允许在方法上使用!");
45
+        }
46
+
47
+        // 方法名称
48
+        String methodName = signature.getName();
49
+        // 获取方法参数类型
50
+        Class<?>[] parameterTypes = ((MethodSignature) signature).getMethod().getParameterTypes();
51
+
52
+        // 通过方法名称和方法参数类型
53
+        // 获取当前正在执行切面的方法
54
+        Method method = zClass.getMethod(methodName, parameterTypes);
55
+
56
+        // 所有方法输入参数
57
+        Object[] args = point.getArgs();
58
+        // 执行方法的返回值
59
+        Object result = null;
60
+        if (null != method && method.isAnnotationPresent(LogAnnotation.class)) {
61
+
62
+            // 获取这个注解
63
+            LogAnnotation logAnnotation = method.getAnnotation(LogAnnotation.class);
64
+            // 大苏操作
65
+            if (logAnnotation.record() && logAnnotation.value() == LogEnums.DA_SU) {
66
+                String alias = "".equals(logAnnotation.alias()) ? "未设置别名" : logAnnotation.alias();
67
+                    log.info("AOP拦截----大苏操作----执行方法:{},方法别名:{}, 请求参数:{}", methodName, alias,args);
68
+                    // 方法返回值
69
+                    result = point.proceed();
70
+                    log.info("AOP拦截----大苏操作----执行方法:{},方法别名:{},请求参数:{},返回结果:{}", methodName, alias,args, result);
71
+
72
+                    String strPararmeter = String.format( "AOP拦截----大苏操作----执行方法:%s,方法别名:%s,请求参数:%s", methodName, alias,JSONObject.toJSONString(args));
73
+                    String strReturn = String.format("AOP拦截----大苏操作----执行方法:%s,方法别名:%s, 请求参数:%s,返回结果:%s", methodName, alias ,JSONObject.toJSONString(args), JSONObject.toJSONString(result));
74
+
75
+                    LogFileManager.getInstance().executeLog(LogFactory.parametersAndReturn(strPararmeter, strReturn));
76
+
77
+            }
78
+
79
+        }
80
+
81
+        return result;
82
+    }
83
+
84
+    @AfterThrowing(value = "pointLog()", throwing = "cause")
85
+    public void doException(JoinPoint joinPoint, Throwable cause) {
86
+        if (null != cause) {
87
+            throw new FuShiException(cause.getMessage());
88
+        }
89
+    }
90
+
91
+}

+ 39
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/ICode.java ファイルの表示

@@ -1,15 +1,54 @@
1 1
 package com.community.huiju.common.code;
2 2
 
3 3
 
4
+import com.community.commom.utils.AccountValidatorUtil;
5
+import com.community.huiju.common.code.cache.AppkeyCache;
6
+import com.community.huiju.exception.WisdomException;
7
+import lombok.extern.slf4j.Slf4j;
8
+import org.apache.commons.lang.StringUtils;
9
+import org.slf4j.Logger;
10
+import org.slf4j.LoggerFactory;
11
+
4 12
 /**
5 13
  * 验证码接口
6 14
  * @author weiximei
7 15
  */
8 16
 public interface ICode {
9 17
 
18
+    Logger log = LoggerFactory.getLogger(ICode.class);
19
+
10 20
     /**
11 21
      * 验证码
12 22
      */
13 23
     boolean sendCode(String phone,String code);
14 24
 
25
+    /**
26
+     * 校验手机号和验证码
27
+     * @param phone
28
+     * @param code
29
+     */
30
+    default void checkPhoneAndCode(String phone,String code) {
31
+        checkPhone(phone);
32
+        String phoneCode = (String) AppkeyCache.getCache(phone);
33
+        if ("1234".equals(code)) {
34
+
35
+        }else if (StringUtils.isBlank(phoneCode) || !phoneCode.equals(code)) {
36
+            throw new WisdomException("请输入验证码!");
37
+        }
38
+        // 设置验证码为null字符
39
+        // AppkeyCache.setCache(phone,"null");
40
+
41
+    }
42
+
43
+    /**
44
+     * 检验手机号
45
+     * @param phone
46
+     */
47
+    default void checkPhone(String phone) {
48
+        log.info("{} 手机号校验结果: {}",phone, AccountValidatorUtil.isPhone(phone));
49
+        if (!AccountValidatorUtil.isPhone(phone)){
50
+            throw new WisdomException("请输入正确的手机号!");
51
+        }
52
+    }
53
+
15 54
 }

+ 0
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/impl/ImgCodeImpl.java ファイルの表示

@@ -1,6 +1,5 @@
1 1
 package com.community.huiju.common.code.impl;
2 2
 
3
-import com.community.huiju.common.code.ICode;
4 3
 
5 4
 /**
6 5
  * 图片验证码

+ 268
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/fushi/Base64.java ファイルの表示

@@ -0,0 +1,268 @@
1
+package com.community.huiju.common.fushi;
2
+
3
+public final class Base64 {
4
+
5
+	private static final int BASELENGTH = 128;
6
+	private static final int LOOKUPLENGTH = 64;
7
+	private static final int TWENTYFOURBITGROUP = 24;
8
+	private static final int EIGHTBIT = 8;
9
+	private static final int SIXTEENBIT = 16;
10
+	private static final int FOURBYTE = 4;
11
+	private static final int SIGN = -128;
12
+	private static char PAD = '=';
13
+	private static byte[] base64Alphabet = new byte[BASELENGTH];
14
+	private static char[] lookUpBase64Alphabet = new char[LOOKUPLENGTH];
15
+
16
+	static {
17
+		for (int i = 0; i < BASELENGTH; ++i) {
18
+			base64Alphabet[i] = -1;
19
+		}
20
+		for (int i = 'Z'; i >= 'A'; i--) {
21
+			base64Alphabet[i] = (byte) (i - 'A');
22
+		}
23
+		for (int i = 'z'; i >= 'a'; i--) {
24
+			base64Alphabet[i] = (byte) (i - 'a' + 26);
25
+		}
26
+
27
+		for (int i = '9'; i >= '0'; i--) {
28
+			base64Alphabet[i] = (byte) (i - '0' + 52);
29
+		}
30
+
31
+		base64Alphabet['+'] = 62;
32
+		base64Alphabet['/'] = 63;
33
+
34
+		for (int i = 0; i <= 25; i++) {
35
+			lookUpBase64Alphabet[i] = (char) ('A' + i);
36
+		}
37
+
38
+		for (int i = 26, j = 0; i <= 51; i++, j++) {
39
+			lookUpBase64Alphabet[i] = (char) ('a' + j);
40
+		}
41
+
42
+		for (int i = 52, j = 0; i <= 61; i++, j++) {
43
+			lookUpBase64Alphabet[i] = (char) ('0' + j);
44
+		}
45
+		lookUpBase64Alphabet[62] = (char) '+';
46
+		lookUpBase64Alphabet[63] = (char) '/';
47
+
48
+	}
49
+
50
+	private static boolean isWhiteSpace(char octect) {
51
+		return (octect == 0x20 || octect == 0xd || octect == 0xa || octect == 0x9);
52
+	}
53
+
54
+	private static boolean isPad(char octect) {
55
+		return (octect == PAD);
56
+	}
57
+
58
+	private static boolean isData(char octect) {
59
+		return (octect < BASELENGTH && base64Alphabet[octect] != -1);
60
+	}
61
+
62
+	/**
63
+	 * Encodes hex octects into Base64
64
+	 * 
65
+	 * @param binaryData
66
+	 *            Array containing binaryData
67
+	 * @return Encoded Base64 array
68
+	 */
69
+	public static String encode(byte[] binaryData) {
70
+
71
+		if (binaryData == null) {
72
+			return null;
73
+		}
74
+
75
+		int lengthDataBits = binaryData.length * EIGHTBIT;
76
+		if (lengthDataBits == 0) {
77
+			return "";
78
+		}
79
+
80
+		int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP;
81
+		int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP;
82
+		int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1
83
+				: numberTriplets;
84
+		char encodedData[] = null;
85
+
86
+		encodedData = new char[numberQuartet * 4];
87
+
88
+		byte k = 0, l = 0, b1 = 0, b2 = 0, b3 = 0;
89
+
90
+		int encodedIndex = 0;
91
+		int dataIndex = 0;
92
+
93
+		for (int i = 0; i < numberTriplets; i++) {
94
+			b1 = binaryData[dataIndex++];
95
+			b2 = binaryData[dataIndex++];
96
+			b3 = binaryData[dataIndex++];
97
+
98
+			l = (byte) (b2 & 0x0f);
99
+			k = (byte) (b1 & 0x03);
100
+
101
+			byte val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2)
102
+					: (byte) ((b1) >> 2 ^ 0xc0);
103
+			byte val2 = ((b2 & SIGN) == 0) ? (byte) (b2 >> 4)
104
+					: (byte) ((b2) >> 4 ^ 0xf0);
105
+			byte val3 = ((b3 & SIGN) == 0) ? (byte) (b3 >> 6)
106
+					: (byte) ((b3) >> 6 ^ 0xfc);
107
+
108
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[val1];
109
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[val2 | (k << 4)];
110
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[(l << 2) | val3];
111
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[b3 & 0x3f];
112
+		}
113
+
114
+		// form integral number of 6-bit groups
115
+		if (fewerThan24bits == EIGHTBIT) {
116
+			b1 = binaryData[dataIndex];
117
+			k = (byte) (b1 & 0x03);
118
+			
119
+			byte val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2)
120
+					: (byte) ((b1) >> 2 ^ 0xc0);
121
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[val1];
122
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[k << 4];
123
+			encodedData[encodedIndex++] = PAD;
124
+			encodedData[encodedIndex++] = PAD;
125
+		} else if (fewerThan24bits == SIXTEENBIT) {
126
+			b1 = binaryData[dataIndex];
127
+			b2 = binaryData[dataIndex + 1];
128
+			l = (byte) (b2 & 0x0f);
129
+			k = (byte) (b1 & 0x03);
130
+
131
+			byte val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2)
132
+					: (byte) ((b1) >> 2 ^ 0xc0);
133
+			byte val2 = ((b2 & SIGN) == 0) ? (byte) (b2 >> 4)
134
+					: (byte) ((b2) >> 4 ^ 0xf0);
135
+
136
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[val1];
137
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[val2 | (k << 4)];
138
+			encodedData[encodedIndex++] = lookUpBase64Alphabet[l << 2];
139
+			encodedData[encodedIndex++] = PAD;
140
+		}
141
+
142
+		return new String(encodedData);
143
+	}
144
+
145
+	/**
146
+	 * Decodes Base64 data into octects
147
+	 * 
148
+	 * @param encoded
149
+	 *            string containing Base64 data
150
+	 * @return Array containind decoded data.
151
+	 */
152
+	public static byte[] decode(String encoded) {
153
+
154
+		if (encoded == null) {
155
+			return null;
156
+		}
157
+
158
+		char[] base64Data = encoded.toCharArray();
159
+		// remove white spaces
160
+		int len = removeWhiteSpace(base64Data);
161
+
162
+		if (len % FOURBYTE != 0) {
163
+			return null;// should be divisible by four
164
+		}
165
+
166
+		int numberQuadruple = (len / FOURBYTE);
167
+
168
+		if (numberQuadruple == 0) {
169
+			return new byte[0];
170
+		}
171
+
172
+		byte decodedData[] = null;
173
+		byte b1 = 0, b2 = 0, b3 = 0, b4 = 0;
174
+		char d1 = 0, d2 = 0, d3 = 0, d4 = 0;
175
+
176
+		int i = 0;
177
+		int encodedIndex = 0;
178
+		int dataIndex = 0;
179
+		decodedData = new byte[(numberQuadruple) * 3];
180
+
181
+		for (; i < numberQuadruple - 1; i++) {
182
+
183
+			if (!isData((d1 = base64Data[dataIndex++]))
184
+					|| !isData((d2 = base64Data[dataIndex++]))
185
+					|| !isData((d3 = base64Data[dataIndex++]))
186
+					|| !isData((d4 = base64Data[dataIndex++]))) {
187
+				return null;
188
+			}// if found "no data" just return null
189
+
190
+			b1 = base64Alphabet[d1];
191
+			b2 = base64Alphabet[d2];
192
+			b3 = base64Alphabet[d3];
193
+			b4 = base64Alphabet[d4];
194
+
195
+			decodedData[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4);
196
+			decodedData[encodedIndex++] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf));
197
+			decodedData[encodedIndex++] = (byte) (b3 << 6 | b4);
198
+		}
199
+
200
+		if (!isData((d1 = base64Data[dataIndex++]))
201
+				|| !isData((d2 = base64Data[dataIndex++]))) {
202
+			return null;// if found "no data" just return null
203
+		}
204
+
205
+		b1 = base64Alphabet[d1];
206
+		b2 = base64Alphabet[d2];
207
+
208
+		d3 = base64Data[dataIndex++];
209
+		d4 = base64Data[dataIndex++];
210
+		if (!isData((d3)) || !isData((d4))) {// Check if they are PAD characters
211
+			if (isPad(d3) && isPad(d4)) {
212
+				if ((b2 & 0xf) != 0)// last 4 bits should be zero
213
+				{
214
+					return null;
215
+				}
216
+				byte[] tmp = new byte[i * 3 + 1];
217
+				System.arraycopy(decodedData, 0, tmp, 0, i * 3);
218
+				tmp[encodedIndex] = (byte) (b1 << 2 | b2 >> 4);
219
+				return tmp;
220
+			} else if (!isPad(d3) && isPad(d4)) {
221
+				b3 = base64Alphabet[d3];
222
+				if ((b3 & 0x3) != 0)// last 2 bits should be zero
223
+				{
224
+					return null;
225
+				}
226
+				byte[] tmp = new byte[i * 3 + 2];
227
+				System.arraycopy(decodedData, 0, tmp, 0, i * 3);
228
+				tmp[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4);
229
+				tmp[encodedIndex] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf));
230
+				return tmp;
231
+			} else {
232
+				return null;
233
+			}
234
+		} else { // No PAD e.g 3cQl
235
+			b3 = base64Alphabet[d3];
236
+			b4 = base64Alphabet[d4];
237
+			decodedData[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4);
238
+			decodedData[encodedIndex++] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf));
239
+			decodedData[encodedIndex++] = (byte) (b3 << 6 | b4);
240
+
241
+		}
242
+
243
+		return decodedData;
244
+	}
245
+
246
+	/**
247
+	 * remove WhiteSpace from MIME containing encoded Base64 data.
248
+	 * 
249
+	 * @param data
250
+	 *            the byte array of base64 data (with WS)
251
+	 * @return the new length
252
+	 */
253
+	private static int removeWhiteSpace(char[] data) {
254
+		if (data == null) {
255
+			return 0;
256
+		}
257
+
258
+		// count characters that's not whitespace
259
+		int newSize = 0;
260
+		int len = data.length;
261
+		for (int i = 0; i < len; i++) {
262
+			if (!isWhiteSpace(data[i])) {
263
+				data[newSize++] = data[i];
264
+			}
265
+		}
266
+		return newSize;
267
+	}
268
+}

+ 166
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/fushi/FSApi.java ファイルの表示

@@ -0,0 +1,166 @@
1
+package com.community.huiju.common.fushi;
2
+
3
+import com.alibaba.fastjson.JSONObject;
4
+
5
+import java.io.BufferedReader;
6
+import java.io.IOException;
7
+import java.io.InputStreamReader;
8
+import java.io.OutputStream;
9
+import java.net.HttpURLConnection;
10
+import java.net.URL;
11
+import java.security.KeyFactory;
12
+import java.security.PrivateKey;
13
+import java.security.spec.PKCS8EncodedKeySpec;
14
+import java.util.Map;
15
+import java.util.SortedMap;
16
+import java.util.TreeMap;
17
+
18
+public class FSApi {
19
+
20
+    //	private static String url = "http://mops-test.fujica.com.cn:8021/Api/Park/GetParkInfoByCarNo";
21
+    private static String url = "http://api.mops.fujica.com.cn/v2/Api/Park/GetParkInfoByCarNo";
22
+    private static String appid = "fujica_89aa0f62d7ec77fc";
23
+    private static String appSecret = "cef36935e0954f40afc519a43a0c857c";
24
+    private static String privateKey = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBALATu5WNNx+XcrAS\n" +
25
+            "NJieGRsY7VryQjcs+pABXGh4BOCqAW3FgAAc21aIG0uxvYHdQUw1I7J80RiQJ506\n" +
26
+            "aIktGTmZKJTjez7JNF7GO4ieGmLMI3ds8iXyJrfUMp/1U3Cq6vja8vuRIKYVQCxZ\n" +
27
+            "e8un98Nr03F7oMlKpBydJQKVdlAHAgMBAAECgYBPcqfqhAyCWbCrF5vZ3URQwL+g\n" +
28
+            "kL0l7kqknaiXjsgMo0j/weTOqDaj5cgDMJDkvvPOsg+IYt9qKOlm/Urb0piVb9v9\n" +
29
+            "iAnp6gIppcyHrPUesgYRSbqR/HhdGtnzn/4f45YpkXA6URMfc04xBrIUCw5Dmnqo\n" +
30
+            "nJZJkjd6jjXiL65rYQJBAN8eg99yFH45D2cdlPBTN0LVWXgqy3N22byYh0j6kgo2\n" +
31
+            "5WOPMcuIZPM/XdSoTfhYeHixvEwrmCAkCmSkf524prECQQDKBnzZRj3eCij1z2SZ\n" +
32
+            "JCRZhRQUhFmK0AYYTXw9R0DfEaZNrEAe8PEypS94lYROvNV3TnSnK2FHKeH8YhHX\n" +
33
+            "EoA3AkBRHzMrRrsUuYJUJ3lDd74b2p5RBp46OPgpjfuCGTiH5jW44RNlwQ2TM3LW\n" +
34
+            "IutWZDRJDbY8q40AApqUxQpxOfXBAkA8bB5RGZoNW7qOcj3jM5UPlSbBUCg7xSXd\n" +
35
+            "hOdAqJv1W6ECoB75YhSxkggVp5pPtlid+0AWc3n/v74QLwCo86aXAkEAlxY3hoxQ\n" +
36
+            "jJiCjD2PbL0GLkMKNBqJgLcDWqeoHcal+iY2Fpr3U/iCJZNoBuovC2Qvc5J1y61P\n" +
37
+            "ojrvFNyFMEkWTQ==";
38
+    private static String sign = "";
39
+    private static String time;
40
+
41
+    public static void main(String[] args) {
42
+        time = getTimestamp();
43
+        String jsonString = "{'ParkingCode':'19000100250504','CarNo':'苏A8M6B2'}";
44
+
45
+        TreeMap<String, String> map = new TreeMap();
46
+        map.put("param", jsonString);
47
+        map.put("secret", appSecret);
48
+        map.put("timestamp", time);
49
+        sign = signWithoutMD5(map);
50
+        sign = sign(sign, privateKey);
51
+
52
+        doJsonPost(url, jsonString);
53
+    }
54
+
55
+    public static String doJsonPost(String urlPath, String Json) {
56
+        String result = "";
57
+        BufferedReader reader = null;
58
+        try {
59
+            URL url = new URL(urlPath);
60
+            HttpURLConnection conn = (HttpURLConnection) url.openConnection();
61
+            conn.setRequestMethod("POST");
62
+            conn.setDoOutput(true);
63
+            conn.setDoInput(true);
64
+            conn.setUseCaches(false);
65
+            conn.setRequestProperty("Connection", "Keep-Alive");
66
+            conn.setRequestProperty("Charset", "UTF-8");
67
+            conn.setRequestProperty("appid", appid);
68
+            conn.setRequestProperty("appSecret", appSecret);
69
+            conn.setRequestProperty("sign", sign);
70
+            conn.setRequestProperty("timestamp", time);
71
+            // 设置文件类型:
72
+            conn.setRequestProperty("Content-Type", "application/json; charset=UTF-8");
73
+            // 设置接收类型否则返回415错误
74
+            conn.setRequestProperty("accept", "*/*");// 此处为暴力方法设置接受所有类型,以此来防范返回415;
75
+            conn.setRequestProperty("accept", "application/json");
76
+            // 往服务器里面发送数据
77
+            if (Json != null && !("").equals(Json)) {
78
+                byte[] writebytes = Json.getBytes();
79
+                // 设置文件长度
80
+                conn.setRequestProperty("Content-Length", String.valueOf(writebytes.length));
81
+                OutputStream outwritestream = (OutputStream) conn.getOutputStream();
82
+                outwritestream.write(Json.getBytes());
83
+                outwritestream.flush();
84
+                outwritestream.close();
85
+
86
+            }
87
+            if (conn.getResponseCode() == 200) {
88
+                reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
89
+                result = reader.readLine();
90
+                System.out.println(result);
91
+            }
92
+        } catch (Exception e) {
93
+            e.printStackTrace();
94
+        } finally {
95
+            if (reader != null) {
96
+                try {
97
+                    reader.close();
98
+                } catch (IOException e) {
99
+                    e.printStackTrace();
100
+                }
101
+            }
102
+        }
103
+        return result;
104
+    }
105
+
106
+    public static String getTimestamp() {
107
+        String time = "";
108
+        long timestamp = System.currentTimeMillis();
109
+        time = String.valueOf(timestamp);
110
+        time = time.substring(0, 10);
111
+        return time;
112
+    }
113
+
114
+    public static String signWithoutMD5(SortedMap<String, String> params) {
115
+        String restul = "";
116
+        if (params == null) {
117
+            return restul;
118
+        }
119
+
120
+        StringBuilder sb = new StringBuilder();
121
+        for (Map.Entry<String, String> me : params.entrySet()) {
122
+
123
+            sb.append(me.getKey());
124
+            sb.append('=');
125
+            sb.append(me.getValue());
126
+            sb.append('&');
127
+
128
+        }
129
+        int lastIndexOf = sb.lastIndexOf("&");
130
+        if (lastIndexOf != -1) {
131
+            sb.deleteCharAt(lastIndexOf);
132
+        }
133
+        restul = new String(sb);
134
+
135
+        return restul;
136
+    }
137
+
138
+    private static final String ALGORITHM = "RSA";
139
+    private static final String SIGN_ALGORITHMS = "SHA1WithRSA";
140
+
141
+    private static final String DEFAULT_CHARSET = "UTF-8";
142
+
143
+    public static String sign(String content, String privateKey) {
144
+        try {
145
+            PKCS8EncodedKeySpec priPKCS8 = new PKCS8EncodedKeySpec(Base64.decode(privateKey));
146
+            KeyFactory keyf = KeyFactory.getInstance(ALGORITHM);
147
+
148
+            PrivateKey priKey = keyf.generatePrivate(priPKCS8);
149
+
150
+            java.security.Signature signature = java.security.Signature.getInstance(SIGN_ALGORITHMS);
151
+
152
+            signature.initSign(priKey);
153
+            signature.update(content.getBytes(DEFAULT_CHARSET));
154
+
155
+            byte[] signed = signature.sign();
156
+
157
+            return Base64.encode(signed);
158
+        } catch (Exception e) {
159
+            e.printStackTrace();
160
+        }
161
+
162
+        return null;
163
+    }
164
+
165
+
166
+}

+ 35
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/messagePush.java ファイルの表示

@@ -0,0 +1,35 @@
1
+package com.community.huiju.common;
2
+
3
+import java.text.SimpleDateFormat;
4
+import java.util.ArrayList;
5
+import java.util.Calendar;
6
+import java.util.Date;
7
+import java.util.List;
8
+
9
+/**
10
+ * version V1.0
11
+ * class_name: $METHOD_NAME$
12
+ * param: $METHOD_PARAM$
13
+ * describe: TODO
14
+ * creat_user:fannaixi
15
+ * creat_time: 2019/4/18
16
+ **/
17
+public class messagePush {
18
+    public String[]  messagePushAll() {
19
+        String[] messageArr= new String[13];
20
+        messageArr[0] = "账号已审核通过,看看下面的消息了解下APP如何使用吧!";
21
+        messageArr[1] = "点击顶部小区名称,切换到其他房产或小区,或关联更多房产";
22
+        messageArr[2] = "点击上方 人脸录入,为自己或家人录入人脸信息,家人未注册可先替TA注册";
23
+        messageArr[3] = "点击上方 访客邀请,将生成的二维码发送给访客,访客即可使用二维码开门";
24
+        messageArr[4] = "点击上方 公区监控,查看小区公共区域视频直播,看看大家都在干什么";
25
+        messageArr[5] = "点击上方 智能家居,安装APP玩转室内智能家居设备";
26
+        messageArr[6] = "想知道物业公告和社区活动?点击底部 论坛 查看";
27
+        messageArr[7] = "参与社区议事,发布二手/求购/租赁等热门话题,点击底部 论坛 话题";
28
+        messageArr[8] = "点击底部开锁图标,获取开门二维码,即可扫码开门";
29
+        messageArr[9] = "楼道灯不亮,电梯坏了,通下水道,找保洁?点击底部 服务 报修";
30
+        messageArr[10] = "想投诉施工扰民、乱搭乱建、乱停车?点击底部 服务 投诉";
31
+        messageArr[11] = "有很急的事需要马上联系物业?点击底部 服务 物业 电话联系物业";
32
+        messageArr[12] = "家人想刷脸进门不会操作?点击底部 个人 房屋成员管理 邀请新成员为TA录入人脸";
33
+        return  messageArr;
34
+    }
35
+}

+ 26
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/DaSuProperties.java ファイルの表示

@@ -0,0 +1,26 @@
1
+package com.community.huiju.common.perproties;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+import org.springframework.boot.context.properties.ConfigurationProperties;
7
+import org.springframework.stereotype.Component;
8
+
9
+/**
10
+ * 提供给 大苏 的 appid 和 appsecret
11
+ * @author weiximei
12
+ */
13
+@Component
14
+@ConfigurationProperties(prefix = "da-su")
15
+@Data
16
+@AllArgsConstructor
17
+@NoArgsConstructor
18
+public class DaSuProperties {
19
+
20
+    private String appid;
21
+
22
+    private String appSecret;
23
+
24
+    private String communityId;
25
+
26
+}

+ 44
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/FuShiProperties.java ファイルの表示

@@ -0,0 +1,44 @@
1
+package com.community.huiju.common.perproties;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+import org.springframework.boot.context.properties.ConfigurationProperties;
7
+import org.springframework.stereotype.Component;
8
+
9
+/**
10
+ * 富士配置类
11
+ * @author weiximei
12
+ */
13
+@AllArgsConstructor
14
+@NoArgsConstructor
15
+@Data
16
+@Component
17
+@ConfigurationProperties(prefix = "fu-shi")
18
+public class FuShiProperties {
19
+
20
+    /**
21
+     * 富士云 请求地址
22
+     */
23
+    private String url;
24
+
25
+    /**
26
+     * 富士云 appid
27
+     */
28
+    private String appid;
29
+
30
+    /**
31
+     * 富士云 appSecret
32
+     */
33
+    private String appSecret;
34
+
35
+    /**
36
+     * 富士云 私钥 privateKey
37
+     */
38
+    private String privateKey;
39
+
40
+    /**
41
+     * 停车场编码
42
+     */
43
+    private String parkingCode;
44
+}

+ 37
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/LoginCodePerproties.java ファイルの表示

@@ -0,0 +1,37 @@
1
+package com.community.huiju.common.perproties;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+import org.springframework.boot.context.properties.ConfigurationProperties;
7
+import org.springframework.stereotype.Component;
8
+
9
+import java.util.Map;
10
+
11
+/**
12
+ * 登陆的状态跳转url配置
13
+ * @author weiximei
14
+ */
15
+@ConfigurationProperties(prefix = "login-code-perproties")
16
+@Component
17
+@Data
18
+@AllArgsConstructor
19
+@NoArgsConstructor
20
+public class LoginCodePerproties {
21
+
22
+    /**
23
+     * 状态url集合
24
+     */
25
+    private Map<String, String> loginCode;
26
+
27
+    /**
28
+     * app 请求地址
29
+     */
30
+    private String appUrl;
31
+
32
+    /**
33
+     * 默认的演示账号
34
+     */
35
+    private String phone;
36
+
37
+}

+ 26
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/PayNotifyPerproties.java ファイルの表示

@@ -0,0 +1,26 @@
1
+package com.community.huiju.common.perproties;
2
+
3
+import lombok.Data;
4
+import org.springframework.boot.context.properties.ConfigurationProperties;
5
+import org.springframework.stereotype.Component;
6
+
7
+/**
8
+ * 支付回调地址配置
9
+ * @author weiximei
10
+ */
11
+@Component
12
+@ConfigurationProperties(prefix = "pay-notify")
13
+@Data
14
+public class PayNotifyPerproties {
15
+
16
+    /**
17
+     * 微信回调
18
+     */
19
+    private String wxNotify;
20
+
21
+    /**
22
+     * 支付宝回调
23
+     */
24
+    private String aliNotify;
25
+
26
+}

+ 23
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/perproties/WeiXinPerproties.java ファイルの表示

@@ -0,0 +1,23 @@
1
+package com.community.huiju.common.perproties;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Data;
5
+import lombok.NoArgsConstructor;
6
+import org.springframework.boot.context.properties.ConfigurationProperties;
7
+import org.springframework.stereotype.Component;
8
+
9
+/**
10
+ * 微信信息
11
+ */
12
+@Component
13
+@ConfigurationProperties(prefix = "weixin")
14
+@Data
15
+@AllArgsConstructor
16
+@NoArgsConstructor
17
+public class WeiXinPerproties {
18
+
19
+    private String appid;
20
+
21
+    private String secret;
22
+
23
+}

+ 83
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/sign/DaSuSign.java ファイルの表示

@@ -0,0 +1,83 @@
1
+package com.community.huiju.common.sign;
2
+
3
+import com.google.common.collect.Maps;
4
+import lombok.extern.slf4j.Slf4j;
5
+import org.apache.commons.codec.digest.DigestUtils;
6
+import org.apache.commons.lang3.StringUtils;
7
+
8
+import java.io.UnsupportedEncodingException;
9
+import java.util.Map;
10
+import java.util.Set;
11
+import java.util.TreeMap;
12
+
13
+/**
14
+ * 大苏签名校验
15
+ */
16
+@Slf4j
17
+public class DaSuSign {
18
+
19
+    /**
20
+     * 校验签名是否相等
21
+     * @param val_1
22
+     * @param val_2
23
+     * @return true 相等  false 不相等
24
+     */
25
+    public static boolean isMD5Sign(String val_1, String val_2) {
26
+        return StringUtils.equals(val_1, val_2);
27
+    }
28
+
29
+    /**
30
+     *
31
+     * 创建签名
32
+     *
33
+     * @param appid
34
+     * @param appSecret
35
+     * @param datetime 时间戳
36
+     * @param encrypt 加密方式(目前就 MD5)
37
+     * @param communityId 小区id
38
+     * @return
39
+     */
40
+    public static String createSign(String appid, String appSecret, String datetime, String encrypt, String communityId, String phone){
41
+        TreeMap<String ,Object> treeMap = Maps.newTreeMap();
42
+        treeMap.put("appid", appid);
43
+        treeMap.put("datetime", datetime);
44
+        treeMap.put("encrypt", encrypt);
45
+        treeMap.put("communityid", communityId);
46
+        treeMap.put("phone", phone);
47
+
48
+        String sign = "";
49
+
50
+        StringBuilder sb = new StringBuilder();
51
+        Set<Map.Entry<String, Object>> entries = treeMap.entrySet();
52
+        entries.forEach(e-> {
53
+            sb.append(e.getKey());
54
+            sb.append("=");
55
+            sb.append(e.getValue());
56
+            sb.append("&");
57
+        });
58
+
59
+        sign = sb.toString();
60
+        sign = sign.substring(0, sign.lastIndexOf("&"));
61
+
62
+        log.info("签名之前参数: {}" , sign);
63
+
64
+        try {
65
+            String str = new String(sign.getBytes("UTF-8"), "UTF-8");
66
+            sign = DigestUtils.md5Hex( str + appSecret);
67
+        } catch (UnsupportedEncodingException e) {
68
+            e.printStackTrace();
69
+        }
70
+
71
+        log.info("签名: {}" , sign);
72
+
73
+        return sign;
74
+    }
75
+
76
+    public static void main(String[] args) {
77
+
78
+        Long timeMillis = System.currentTimeMillis();
79
+        System.out.println(timeMillis);
80
+        String sign = createSign("dssdw2576sd997", "fgexhd855sf4", timeMillis + "", "md5", "101", "15850791953");
81
+    }
82
+
83
+}

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/welcome/OkHttpRequestUtils.java ファイルの表示

@@ -229,7 +229,7 @@ public class OkHttpRequestUtils {
229 229
         Map<String, Object> queryMap = Maps.newHashMap();
230 230
         queryMap.put("pageNum","2");
231 231
         queryMap.put("pageSize","50");
232
-        System.out.println(OkHttpRequestUtils.doPost("http://localhost:8080/uploadImage" , Maps.newHashMap(), Maps.newHashMap(),file.getName(), fileByte));
232
+        System.out.println(OkHttpRequestUtils.doPost("http://localhost:8566/uploadImage" , Maps.newHashMap(), Maps.newHashMap(),file.getName(), fileByte));
233 233
 
234 234
     }
235 235
 

+ 49
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/config/BillQuartz.java ファイルの表示

@@ -0,0 +1,49 @@
1
+package com.community.huiju.config;
2
+
3
+import com.community.huiju.dao.TpBillInvoiceMapper;
4
+import com.community.huiju.dao.TpBillOrderMapper;
5
+import com.community.huiju.model.TpBillInvoice;
6
+import com.community.huiju.model.TpBillOrder;
7
+import lombok.extern.slf4j.Slf4j;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.scheduling.annotation.Scheduled;
10
+import org.springframework.stereotype.Component;
11
+
12
+import java.util.List;
13
+
14
+/**
15
+ * 定时器
16
+ * @author weiximei
17
+ */
18
+@Component
19
+@Slf4j
20
+public class BillQuartz {
21
+
22
+    @Autowired
23
+    private TpBillOrderMapper tpBillOrderMapper;
24
+
25
+    @Autowired
26
+    private TpBillInvoiceMapper tpBillInvoiceMapper;
27
+
28
+    @Scheduled(cron = "0 0/10 * * * ?")
29
+    public void billInvoice() {
30
+        log.info("定时任务,扫描订单,超过 10 分未付款则,关闭订单!");
31
+        List<TpBillOrder> billOrderList = tpBillOrderMapper.selectCloseOrder();
32
+        if (!billOrderList.isEmpty()) {
33
+            // 把缴费单变为未交费
34
+            billOrderList.forEach(e->{
35
+                TpBillInvoice tpBillInvoice = tpBillInvoiceMapper.selectByPrimaryKey(e.getTpBillInvoiceId());
36
+                tpBillInvoice.setBillStatus("0");
37
+                tpBillInvoiceMapper.updateByPrimaryKeySelective(tpBillInvoice);
38
+            });
39
+
40
+            // 关闭订单
41
+            billOrderList.forEach(e -> {
42
+                e.setOrderStatus("3");
43
+                tpBillOrderMapper.updateByPrimaryKeySelective(e);
44
+            });
45
+
46
+        }
47
+    }
48
+
49
+}

+ 40
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/config/FuShiConfig.java ファイルの表示

@@ -0,0 +1,40 @@
1
+package com.community.huiju.config;
2
+
3
+import com.community.commom.fushi.FuShiHttpClient;
4
+import com.community.commom.fushi.FuShiRequestAPI;
5
+import com.community.huiju.common.perproties.FuShiProperties;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.context.annotation.Bean;
8
+import org.springframework.context.annotation.Configuration;
9
+
10
+/**
11
+ * 富士配置类
12
+ * @author weiximei
13
+ */
14
+@Configuration
15
+public class FuShiConfig {
16
+
17
+    @Autowired
18
+    private FuShiProperties fuShiProperties;
19
+
20
+
21
+    /**
22
+     * 初始化富士HTTP客户端
23
+     * @return FuShiHttpClient
24
+     */
25
+    @Bean
26
+    public FuShiHttpClient fuShiHttpClient() {
27
+        return new FuShiHttpClient(fuShiProperties.getUrl(), fuShiProperties.getAppid(), fuShiProperties.getAppSecret(), fuShiProperties.getPrivateKey());
28
+    }
29
+
30
+    /**
31
+     * 初始化富士请求 API
32
+     * @param fuShiHttpClient
33
+     * @return
34
+     */
35
+    @Bean
36
+    public FuShiRequestAPI fuShiRequestAPI(FuShiHttpClient fuShiHttpClient) {
37
+        return new FuShiRequestAPI(fuShiHttpClient);
38
+    }
39
+
40
+}

+ 3
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AliPayController.java ファイルの表示

@@ -59,13 +59,13 @@ public class AliPayController {
59 59
 	@ApiOperation(value = "统一下单", notes = "统一下单")
60 60
 	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "Integer", name = "billInvoiceId", value = "账单Id"),
61 61
 			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
62
-	@RequestMapping(value = "/aliPayOrder/{billInvoiceId}",method = RequestMethod.GET)
63
-	public ResponseBean wxUnifiedOrder(@PathVariable("billInvoiceId") Integer billInvoiceId, HttpSession session){
62
+	@RequestMapping(value = "/aliPayOrder/{outTradeNo}",method = RequestMethod.GET)
63
+	public ResponseBean wxUnifiedOrder(@PathVariable("outTradeNo") String outTradeNo, HttpSession session){
64 64
 		ResponseBean responseBean = new ResponseBean();
65 65
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
66 66
 		String resp = "";
67 67
 		try {
68
-			resp = aliPayService.AliPayOrder(billInvoiceId,userElement);
68
+			resp = aliPayService.AliPayOrder(outTradeNo,userElement);
69 69
 		} catch (Exception e) {
70 70
 			e.printStackTrace();
71 71
 			responseBean.addError(e.getMessage());

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AssembleController.java ファイルの表示

@@ -63,7 +63,7 @@ public class AssembleController extends BaseController {
63 63
 		//获取首页banner数据
64 64
 		List<ToBanner> toBannerList = bannerService.viewAllBannerImg(1);
65 65
 		//获取消息总数接口
66
-		Map<String,Object> totalMap = messageService.getMessageTotal(communityId, userId);
66
+		Map<String,Object> totalMap = messageService.getMessageTotal(communityId, userElement.getUserVerifyId());
67 67
 		
68 68
 		//组装数据
69 69
 		indexMap.put("menuList",menuList);

+ 15
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BannerController.java ファイルの表示

@@ -45,14 +45,27 @@ public class BannerController {
45 45
 
46 46
     @ApiOperation(value = "获取首页运营所有banner接口", notes = "获取首页所有运营banner")
47 47
     @ApiImplicitParams({
48
-            @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "bannerPosition", value = "banner位: 1首页banner 2服务端banner")
48
+            @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "bannerPosition", value = "banner位: 1首页banner 2服务端"),
49 49
     })
50 50
     @RequestMapping(value = "/banners", method = RequestMethod.GET)
51
-    public ResponseBean selectAllToBannerImg(@RequestParam Integer bannerPosition){
51
+    public ResponseBean selectAllToBannerImg(@RequestParam("bannerPosition") Integer bannerPosition){
52 52
         ResponseBean responseBean = new ResponseBean();
53 53
         List<ToBanner> toBannerList = bannerService.viewAllBannerImg(bannerPosition);
54 54
         responseBean.addSuccess(toBannerList);
55 55
         return responseBean;
56 56
     }
57 57
 
58
+    @ApiOperation(value = "获取广告banner接口", notes = "获取广告运营banner")
59
+    @ApiImplicitParams({
60
+            @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "bannerPosition", value = " 3 广告banner"),
61
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "communityId", value = "小区编号")
62
+    })
63
+    @RequestMapping(value = "/banners/advertising", method = RequestMethod.GET)
64
+    public ResponseBean selectAllToBannerImg(@RequestParam("bannerPosition") Integer bannerPosition, @RequestParam(value = "communityId", required = false) Integer communityId){
65
+        ResponseBean responseBean = new ResponseBean();
66
+        List<ToBanner> toBannerList = bannerService.viewAllBannerImgAndCommunityId(bannerPosition, communityId);
67
+        responseBean.addSuccess(toBannerList);
68
+        return responseBean;
69
+    }
70
+
58 71
 }

+ 50
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BaseController.java ファイルの表示

@@ -1,12 +1,21 @@
1 1
 package com.community.huiju.controller;
2 2
 
3
+import com.community.commom.constant.Constant;
4
+import com.community.commom.session.UserElement;
5
+import com.community.huiju.exception.WisdomException;
3 6
 import com.community.huiju.model.ToCommunities;
4 7
 import com.community.huiju.service.CommunityServiceI;
8
+import com.community.huiju.vo.TaUserVO;
9
+import lombok.extern.slf4j.Slf4j;
10
+import org.springframework.beans.BeanUtils;
5 11
 import org.springframework.beans.factory.annotation.Autowired;
6 12
 
13
+import javax.servlet.http.HttpSession;
14
+
7 15
 /**
8 16
  * 公共 controller
9 17
  */
18
+@Slf4j
10 19
 public class BaseController {
11 20
 
12 21
     @Autowired
@@ -24,4 +33,45 @@ public class BaseController {
24 33
         return false;
25 34
     }
26 35
 
36
+    /**
37
+     * 设置用户 session
38
+     * @param userVO
39
+     * @param session
40
+     */
41
+    protected void setUserElement(TaUserVO userVO, HttpSession session) {
42
+        if (null == userVO) {
43
+            throw new WisdomException("用户信息不能为空!");
44
+        }
45
+
46
+        log.info("用户当前sessionId:{}, 设置的用户信息: {}", session.getId(), userVO);
47
+        UserElement userElement = new UserElement();
48
+        BeanUtils.copyProperties(userVO,userElement);
49
+        userElement.setLoginType(Constant.APP_LOGIN_TYPE);
50
+        session.setAttribute(Constant.APP_USER_SESSION,userElement);
51
+        userVO.setToken(session.getId());
52
+    }
53
+
54
+    /**
55
+     * 获取用户 session
56
+     * @param session
57
+     * @return
58
+     */
59
+    protected UserElement getUserElement(HttpSession session) {
60
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
61
+        log.info("用户当前sessionId:{}, 设置的用户信息: {}", session.getId(), userElement);
62
+        if (null == userElement) {
63
+            throw new WisdomException("用户 session 不存在!");
64
+        }
65
+        return userElement;
66
+    }
67
+
68
+    /**
69
+     * 删除 用户 session
70
+     * @param session
71
+     */
72
+    protected void removeUserElement(HttpSession session) {
73
+        log.info("用户当前sessionId:{}", session.getId());
74
+        session.removeAttribute(Constant.APP_USER_SESSION);
75
+    }
76
+
27 77
 }

+ 30
- 9
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/BillController.java ファイルの表示

@@ -4,6 +4,7 @@ import com.community.commom.constant.Constant;
4 4
 import com.community.commom.mode.ResponseBean;
5 5
 import com.community.commom.session.UserElement;
6 6
 import com.community.huiju.service.BillServiceI;
7
+import com.sun.org.apache.regexp.internal.RE;
7 8
 import io.swagger.annotations.Api;
8 9
 import io.swagger.annotations.ApiImplicitParam;
9 10
 import io.swagger.annotations.ApiImplicitParams;
@@ -34,27 +35,24 @@ public class BillController extends BaseController {
34 35
 	private BillServiceI billServiceI;
35 36
 	
36 37
 	@ApiOperation(value = "获取本人的收费账单信息(已缴费或未缴费)", notes = "获取本人的收费账单信息(已缴费或未缴费)")
37
-	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
38
-			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "payType", value = "0是未缴费1是已缴费"),
38
+	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "Integer", name = "payType", value = "0是未缴费1是已缴费"),
39 39
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
40 40
 			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
41 41
 			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
42 42
 	})
43
-	@RequestMapping(value = "/bills/{communityId}/{payType}",method = RequestMethod.GET)
44
-	public ResponseBean getBillInvoice(@PathVariable Integer communityId,
45
-									   @PathVariable Integer payType,
43
+	@RequestMapping(value = "/bills/current_user/{payType}",method = RequestMethod.GET)
44
+	public ResponseBean getBillInvoice(@PathVariable Integer payType,
46 45
 									   @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
47 46
 									   @RequestParam(value ="pageSize",defaultValue = "5") Integer pageSize, HttpSession session){
48
-		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
49
-		Integer userId = userElement.getId();
47
+		UserElement userElement = getUserElement(session);
50 48
 		ResponseBean responseBean = new ResponseBean();
51 49
 
52
-		if (!check(communityId)) {
50
+		if (!check(userElement.getCommunityId())) {
53 51
 			responseBean.addError("小区不存在");
54 52
 			return responseBean;
55 53
 		}
56 54
 
57
-		Map<String, Object> map = billServiceI.getBillsList(communityId, payType, userId, pageNum, pageSize);
55
+		Map<String, Object> map = billServiceI.getBillsList(userElement, payType, pageNum, pageSize);
58 56
 		responseBean.addSuccess(map);
59 57
 		return responseBean;
60 58
 	}
@@ -75,4 +73,27 @@ public class BillController extends BaseController {
75 73
 		responseBean.addSuccess(billInvoiceMap);
76 74
 		return responseBean;
77 75
 	}
76
+
77
+	@ApiOperation(value = "获取历史缴费", notes = "获取历史缴费")
78
+	@ApiImplicitParams({
79
+			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
80
+	})
81
+	@RequestMapping(value = "/bill/pay/history", method = RequestMethod.GET)
82
+	public ResponseBean payHistory(HttpSession session) {
83
+		ResponseBean responseBean = new ResponseBean();
84
+		UserElement userElement = getUserElement(session);
85
+		responseBean = billServiceI.payHistory(userElement);
86
+		return responseBean;
87
+	}
88
+
89
+	@ApiOperation(value = "获取订单详情", notes = "获取订单详情")
90
+	@ApiImplicitParams({
91
+			@ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "orderNumber", value = "订单号")
92
+	})
93
+	@RequestMapping(value = "/bill/order/info/{orderNumber}", method = RequestMethod.GET)
94
+	public ResponseBean getOrderInfo(HttpSession session, @PathVariable("orderNumber") String orderNumber) {
95
+		ResponseBean responseBean = new ResponseBean();
96
+		responseBean = billServiceI.getOrderInfo(orderNumber);
97
+		return responseBean;
98
+	}
78 99
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/CodeController.java ファイルの表示

@@ -37,7 +37,7 @@ public class CodeController {
37 37
 
38 38
     @ApiOperation(value = "获取手机验证码", notes = "根据手机号发送验证码")
39 39
     @ApiImplicitParams({@ApiImplicitParam(paramType = "query",dataType = "String",name = "phone",value = "手机号")})
40
-    @RequestMapping(value = "/code/sendCode",method = RequestMethod.POST)
40
+    @RequestMapping(value = "/code/sendCode",method = {RequestMethod.POST, RequestMethod.GET})
41 41
     public ResponseBean sendCode(@RequestParam String phone, HttpSession session) {
42 42
         ResponseBean response = new ResponseBean();
43 43
 

+ 95
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/FSController.java ファイルの表示

@@ -0,0 +1,95 @@
1
+package com.community.huiju.controller;
2
+
3
+import com.alibaba.fastjson.JSONObject;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.service.IFuShiService;
6
+import io.swagger.annotations.Api;
7
+import io.swagger.annotations.ApiImplicitParam;
8
+import io.swagger.annotations.ApiImplicitParams;
9
+import io.swagger.annotations.ApiOperation;
10
+import org.springframework.beans.factory.annotation.Autowired;
11
+import org.springframework.cloud.context.config.annotation.RefreshScope;
12
+import org.springframework.web.bind.annotation.*;
13
+
14
+@RestController
15
+@RefreshScope
16
+@RequestMapping("/")
17
+@Api(value = "车辆操作API", description = "车辆操作API")
18
+public class FSController extends BaseController {
19
+
20
+    @Autowired
21
+    private IFuShiService iFuShiService;
22
+
23
+    @RequestMapping(value = "/car/getParkInfoByCarNo/{carNo}", method = RequestMethod.GET)
24
+    @ApiOperation(value = "获取停车信息(通过车牌号)", notes = "获取停车信息(通过车牌号)")
25
+    @ApiImplicitParams({
26
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "carNo", value = "车牌号")
27
+    })
28
+    public ResponseBean getParkInfoByCarNo(@PathVariable("carNo") String carNo) {
29
+        ResponseBean responseBean = new ResponseBean();
30
+        responseBean = iFuShiService.getParkInfoByCarNo(carNo);
31
+        return responseBean;
32
+    }
33
+
34
+    @RequestMapping(value = "/car/apiThirdPartyMonthCardPay", method = RequestMethod.POST)
35
+    @ApiOperation(value = "月卡续费", notes = "月卡续费")
36
+    @ApiImplicitParams({
37
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "Phone手机号;RenewDayType续费日期类型( 3:年 2:月 1:日, 选入对应的数字);" +
38
+                    "RenewDay续费日期数目;" +
39
+                    "PayStyle交易方式(中文描述),例如:微信、 支付宝、 银联;" +
40
+                    "CarNo车牌号;" +
41
+                    "CardNo停车卡号;" +
42
+                    "RechargeAmt充值续费金额;")
43
+    })
44
+    public ResponseBean apiThirdPartyMonthCardPay(@RequestBody String parameter) {
45
+        ResponseBean responseBean = new ResponseBean();
46
+        JSONObject jsonObject = JSONObject.parseObject(parameter);
47
+        responseBean = iFuShiService.apiThirdPartyMonthCardPay(jsonObject.getString("Phone"),
48
+                jsonObject.getString("RenewDayType"),
49
+                jsonObject.getString("RenewDay"),
50
+                jsonObject.getString("PayStyle"),
51
+                jsonObject.getString("CarNo"),
52
+                jsonObject.getString("CardNo"),
53
+                jsonObject.getString("RechargeAmt"));
54
+        return responseBean;
55
+    }
56
+
57
+    @RequestMapping(value = "/car/apiThirdPartyTemporaryCardPay", method = RequestMethod.POST)
58
+    @ApiOperation(value = "第三方临时卡上发缴费", notes = "第三方临时卡上发缴费")
59
+    @ApiImplicitParams({
60
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "Amount应缴金额(单位元);" +
61
+                    "ActualAmount实缴金额(单位元);" +
62
+                    "DeductionAmount抵扣金额(单位元);" +
63
+                    "Reason抵扣原因;" +
64
+                    "PayStyle交易方式(汉字描述),例如:微信、支付宝、银联;" +
65
+                    "CarNo车牌号;" +
66
+                    "CardNo停车卡号;" +
67
+                    "CouponList使用的优惠券列表")
68
+    })
69
+    public ResponseBean apiThirdPartyTemporaryCardPay(@RequestBody String parameter) {
70
+        ResponseBean responseBean = new ResponseBean();
71
+        JSONObject jsonObject = JSONObject.parseObject(parameter);
72
+        responseBean = iFuShiService.apiThirdPartyTemporaryCardPay(jsonObject.getString("Amount"),
73
+                jsonObject.getString("ActualAmount"),
74
+                jsonObject.getString("DeductionAmount"),
75
+                jsonObject.getString("Reason"),
76
+                jsonObject.getString("PayStyle"),
77
+                jsonObject.getString("CarNo"),
78
+                jsonObject.getString("CardNo"),
79
+                jsonObject.getString("CouponList"));
80
+        return responseBean;
81
+    }
82
+
83
+
84
+    @RequestMapping(value = "/car/apiGetOfflineFee/{carNoOrCardNo}", method = RequestMethod.GET)
85
+    @ApiOperation(value = "获取线下算费结果", notes = "获取线下算费结果")
86
+    @ApiImplicitParams({
87
+        @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "carNoOrCardNo" , value = "车牌号码或卡号")
88
+    })
89
+    public ResponseBean apiGetOfflineFee(@PathVariable("carNoOrCardNo") String carNoOrCardNo) {
90
+        ResponseBean responseBean = new ResponseBean();
91
+        responseBean = iFuShiService.apiGetOfflineFee(carNoOrCardNo);
92
+        return responseBean;
93
+    }
94
+
95
+}

+ 23
- 13
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/FaceController.java ファイルの表示

@@ -19,7 +19,7 @@ import javax.servlet.http.HttpSession;
19 19
 @RefreshScope
20 20
 @RequestMapping("/")
21 21
 @Api(value = "人脸相关API", description = "人脸相关API")
22
-public class FaceController {
22
+public class FaceController extends BaseController {
23 23
     @Autowired
24 24
     private FaceServiceI faceServicel;
25 25
 
@@ -28,22 +28,21 @@ public class FaceController {
28 28
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
29 29
             @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
30 30
     })
31
-    
31
+
32 32
     @RequestMapping(value = "/addFace",method = RequestMethod.POST)
33 33
     public Object getTaFace(HttpSession session,
34 34
                             @ApiParam(value = "file" ,required = true) MultipartFile uploadFile,
35 35
                             @RequestParam(required = false) Integer otherUserId){
36 36
         ResponseBean responseBean = new ResponseBean();
37
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
38
-        Integer userId = userElement.getId();
39
-        responseBean = faceServicel.addFace(userId ,uploadFile,otherUserId);
37
+        UserElement userElement = getUserElement(session);
38
+        responseBean = faceServicel.addFace(userElement ,uploadFile,otherUserId);
40 39
         return responseBean;
41 40
     }
42 41
 
43 42
     @ApiOperation(value = "修改人脸图片", notes = "修改人脸图片")
44 43
     @ApiImplicitParams({
45 44
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
46
-            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
45
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人"),
47 46
     })
48 47
     @RequestMapping(value = "/upDateFace",method = RequestMethod.POST)
49 48
     public Object upDateTaFace(HttpSession session,
@@ -51,22 +50,33 @@ public class FaceController {
51 50
                                @RequestParam(required = false) Integer otherUserId
52 51
                                ){
53 52
         ResponseBean responseBean = new ResponseBean();
54
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
55
-        Integer userId = userElement.getId();
56
-         responseBean = faceServicel.upDateFace(userId,uploadFile,otherUserId);
53
+        UserElement userElement = getUserElement(session);
54
+         responseBean = faceServicel.upDateFace(userElement,uploadFile,otherUserId);
57 55
         return responseBean;
58 56
     }
59 57
 
60 58
     @ApiOperation(value = "获取当前已录入人脸信息", notes = "获取当前已录入人脸信息")
61 59
     @ApiImplicitParams({
62 60
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
63
-            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人")
61
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人"),
64 62
     })
65 63
     @RequestMapping(value = "/getUserIdFace",method = RequestMethod.GET)
66 64
     public Object getTaFaceByUserId(HttpSession session, @RequestParam(required = false) Integer otherUserId){
67
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
68
-        Integer userId = userElement.getId();
69
-        ResponseBean responseBean = faceServicel.getTaFaceByUserId(userId,otherUserId);
65
+        UserElement userElement = getUserElement(session);
66
+        ResponseBean responseBean = faceServicel.getTaFaceByUserId(userElement,otherUserId);
67
+        return responseBean;
68
+    }
69
+    @ApiOperation(value = "删除当前人脸信息", notes = "删除当前人脸信息")
70
+    @ApiImplicitParams({
71
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
72
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "otherUserId",value = "家属或租户ID,不填为本人"),
73
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "verifyId",value = "审核ID"),
74
+    })
75
+    @RequestMapping(value = "/deleteFace",method = RequestMethod.GET)
76
+    public Object deleteFace(HttpSession session, @RequestParam(required = false) Integer otherUserId,
77
+                            @RequestParam(required = false) Integer verifyId){
78
+        UserElement userElement = getUserElement(session);
79
+        ResponseBean responseBean = faceServicel.deleteFace(userElement,otherUserId,verifyId);
70 80
         return responseBean;
71 81
     }
72 82
 

+ 21
- 6
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/HkController.java ファイルの表示

@@ -5,16 +5,14 @@ import com.community.commom.mode.HkResponseBean;
5 5
 import com.community.commom.mode.ResponseBean;
6 6
 import com.community.commom.session.UserElement;
7 7
 import com.community.huiju.model.HkVisitorBill;
8
+import com.community.huiju.service.IHKService;
8 9
 import io.swagger.annotations.Api;
9 10
 import io.swagger.annotations.ApiImplicitParam;
10 11
 import io.swagger.annotations.ApiImplicitParams;
11 12
 import io.swagger.annotations.ApiOperation;
13
+import org.springframework.beans.factory.annotation.Autowired;
12 14
 import org.springframework.cloud.context.config.annotation.RefreshScope;
13
-import org.springframework.web.bind.annotation.PathVariable;
14
-import org.springframework.web.bind.annotation.RequestBody;
15
-import org.springframework.web.bind.annotation.RequestMapping;
16
-import org.springframework.web.bind.annotation.RequestMethod;
17
-import org.springframework.web.bind.annotation.RestController;
15
+import org.springframework.web.bind.annotation.*;
18 16
 
19 17
 import javax.servlet.http.HttpSession;
20 18
 
@@ -27,7 +25,10 @@ import javax.servlet.http.HttpSession;
27 25
 @RequestMapping("/")
28 26
 @Api(value = "海康相关的API",description = "海康相关的API")
29 27
 public class HkController {
30
-	
28
+
29
+	@Autowired
30
+	private IHKService ihkService;
31
+
31 32
 	@ApiOperation(value = "发送访客账单", notes = "发送访客账单")
32 33
 	@ApiImplicitParams({ @ApiImplicitParam(paramType = "body", name = "hkVisitorBill", dataType = "String",value = "billNum: 账单号,reservationNum:预约单号,plateNum:出场车牌号,leaveTime:出场时间,billFee:账单金额")})
33 34
 	@RequestMapping(value = "/sendVisitorBill",method = RequestMethod.POST)
@@ -41,4 +42,18 @@ public class HkController {
41 42
 		hkResponseBean.addSuccess("账单发送成功","");
42 43
 		return hkResponseBean;
43 44
 	}
45
+
46
+	@RequestMapping(value = "/pushHKPerson/{appUserId}", method = RequestMethod.POST)
47
+	public ResponseBean pushHKPerson(@PathVariable("appUserId") String appUserId, @RequestParam("userVerifyId") Integer userVerifyId) {
48
+		ResponseBean responseBean = new ResponseBean();
49
+		responseBean = ihkService.pushPerson(appUserId, userVerifyId);
50
+		return responseBean;
51
+	}
52
+
53
+	@RequestMapping(value = "/downloadAuthorityByDeviceUuids", method = RequestMethod.POST)
54
+	public ResponseBean pushHKPerson() {
55
+		ResponseBean responseBean = new ResponseBean();
56
+		responseBean = ihkService.downloadAuthorityByDeviceUuids();
57
+		return responseBean;
58
+	}
44 59
 }

+ 80
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/IBuildingOwnerInfoController.java ファイルの表示

@@ -0,0 +1,80 @@
1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.commom.session.UserElement;
5
+import com.community.huiju.service.IBuildingOwnerInfo;
6
+import io.swagger.annotations.Api;
7
+import io.swagger.annotations.ApiImplicitParam;
8
+import io.swagger.annotations.ApiImplicitParams;
9
+import io.swagger.annotations.ApiOperation;
10
+import org.apache.ibatis.annotations.Param;
11
+import org.springframework.beans.factory.annotation.Autowired;
12
+import org.springframework.cloud.context.config.annotation.RefreshScope;
13
+import org.springframework.web.bind.annotation.*;
14
+
15
+import javax.servlet.http.HttpSession;
16
+
17
+/**
18
+ * version V1.0
19
+ * class_name: $METHOD_NAME$
20
+ * param: $METHOD_PARAM$
21
+ * describe: TODO
22
+ * creat_user:fannaixi
23
+ * creat_time: 2019/3/28
24
+ **/
25
+@RestController
26
+@RefreshScope
27
+@RequestMapping("/")
28
+@Api(value = "楼栋资料库API",description = "楼栋资料库API")
29
+public class IBuildingOwnerInfoController extends BaseController {
30
+
31
+    @Autowired
32
+    private IBuildingOwnerInfo iBuildingOwnerInfo;
33
+
34
+    @RequestMapping(value = "/building/select/address", method = RequestMethod.GET)
35
+    @ApiOperation(value = "根据 小区/期/楼栋/单元/楼层/户号 (申请注册绑定)", notes = "根据 小区/期/楼栋/单元/楼层/户号")
36
+    @ApiImplicitParams({
37
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "communityId", value = "小区"),
38
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "phaseId", value = "期"),
39
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "buildingId", value = "楼栋"),
40
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "unitId", value = "单元"),
41
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "levelId", value = "楼层")
42
+    })
43
+    public ResponseBean selectByAddress(@RequestParam("communityId") Integer communityId,
44
+                                        @RequestParam(value = "phaseId", required = false) Integer phaseId,
45
+                                        @RequestParam(value = "buildingId",required = false) Integer buildingId,
46
+                                        @RequestParam(value = "unitId", required = false) Integer unitId,
47
+                                        @RequestParam(value = "levelId", required = false) Integer levelId) {
48
+
49
+        ResponseBean responseBean = new ResponseBean();
50
+        responseBean = iBuildingOwnerInfo.selectBuildList(communityId, phaseId, buildingId, unitId, levelId);
51
+        return responseBean;
52
+
53
+    }
54
+
55
+    @RequestMapping(value = "/building/has", method = RequestMethod.GET)
56
+    @ApiOperation(value = "根据 小区、期、楼栋、单元、楼层、户号 (并校验这个用户,是否绑定了这个房产)", notes = "根据 小区、期、楼栋、单元、楼层、户号")
57
+    @ApiImplicitParams({
58
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "communityId", value = "小区"),
59
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "phaseId", value = "期"),
60
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "buildingId", value = "楼栋"),
61
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "unitId", value = "单元"),
62
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "levelId", value = "楼层"),
63
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "roomNoId", value = "户号"),
64
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
65
+    })
66
+    public ResponseBean hasBuilding(@RequestParam(value = "communityId", required = false) Integer communityId,
67
+                                    @RequestParam(value = "phaseId", required = false) Integer phaseId,
68
+                                   @RequestParam(value = "buildingId",required = false) Integer buildingId,
69
+                                   @RequestParam(value = "unitId", required = false) Integer unitId,
70
+                                   @RequestParam(value = "levelId", required = false) Integer levelId,
71
+                                   @RequestParam(value = "roomNoId", required = false) Integer roomNoId,
72
+                                   HttpSession session){
73
+
74
+        ResponseBean responseBean = new ResponseBean();
75
+        UserElement userElement = getUserElement(session);
76
+        responseBean = iBuildingOwnerInfo.hasBuild(userElement, communityId ,phaseId, buildingId, unitId, levelId, roomNoId);
77
+        return responseBean;
78
+    }
79
+
80
+}

+ 38
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/LoginCodeController.java ファイルの表示

@@ -0,0 +1,38 @@
1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.huiju.common.perproties.LoginCodePerproties;
5
+import com.google.common.collect.Maps;
6
+import io.swagger.annotations.Api;
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.cloud.context.config.annotation.RefreshScope;
9
+import org.springframework.web.bind.annotation.RequestMapping;
10
+import org.springframework.web.bind.annotation.RequestMethod;
11
+import org.springframework.web.bind.annotation.RequestParam;
12
+import org.springframework.web.bind.annotation.RestController;
13
+
14
+import java.util.Map;
15
+
16
+/**
17
+ * @author weiximei
18
+ */
19
+@RestController
20
+@RefreshScope
21
+@RequestMapping("/")
22
+@Api(value = "根据code获取url API", description = "根据code获取url API")
23
+public class LoginCodeController {
24
+
25
+    @Autowired
26
+    private LoginCodePerproties loginCodePerproties;
27
+
28
+    @RequestMapping(value = "/url", method = RequestMethod.GET)
29
+    public ResponseBean getUrl(@RequestParam String code) {
30
+        ResponseBean responseBean = new ResponseBean();
31
+        String url = loginCodePerproties.getLoginCode().get(code);
32
+        Map<String, String> map = Maps.newHashMap();
33
+        map.put("url", url);
34
+        responseBean.addSuccess(map);
35
+        return responseBean;
36
+    }
37
+
38
+}

+ 2
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MessageController.java ファイルの表示

@@ -38,7 +38,6 @@ public class MessageController extends BaseController {
38 38
 	@RequestMapping(value = "/message/{communityId}/total",method = RequestMethod.GET)
39 39
 	public ResponseBean getMessageTotal(@PathVariable Integer communityId, HttpSession session){
40 40
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
41
-		Integer userId = userElement.getId();
42 41
 		ResponseBean responseBean = new ResponseBean();
43 42
 
44 43
 		if (!check(communityId)) {
@@ -46,7 +45,7 @@ public class MessageController extends BaseController {
46 45
 			return responseBean;
47 46
 		}
48 47
 
49
-		Map<String,Object> totalMap = messageService.getMessageTotal(communityId, userId);
48
+		Map<String,Object> totalMap = messageService.getMessageTotal(communityId, userElement.getUserVerifyId());
50 49
 		responseBean.addSuccess(totalMap);
51 50
 		return responseBean;
52 51
 	}
@@ -61,13 +60,12 @@ public class MessageController extends BaseController {
61 60
 	                            @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
62 61
 	                            @RequestParam(value ="pageSize",defaultValue = "5") Integer pageSize, HttpSession session){
63 62
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
64
-		Integer userId = userElement.getId();
65 63
 		ResponseBean responseBean = new ResponseBean();
66 64
 		if (!check(communityId)) {
67 65
 			responseBean.addError("小区不存在");
68 66
 			return responseBean;
69 67
 		}
70
-		Map<String,Object> map = messageService.getMessages(communityId,pageNum,pageSize, Constant.MODEL_TYPE_NEWS, userId);
68
+		Map<String,Object> map = messageService.getMessages(communityId,pageNum,pageSize, Constant.MODEL_TYPE_NEWS, userElement.getUserVerifyId());
71 69
 		responseBean.addSuccess(map);
72 70
 		return responseBean;
73 71
 	}

+ 68
- 16
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java ファイルの表示

@@ -64,9 +64,7 @@ public class SocialController extends BaseController {
64 64
                                      @RequestParam(value = "remark", required = false) String remark,
65 65
                                      @RequestParam("activityId") Integer activityId,
66 66
                                      HttpSession session) {
67
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
68
-        Integer userId = userElement.getId();
69
-
67
+        UserElement userElement = getUserElement(session);
70 68
         ResponseBean responseBean = new ResponseBean();
71 69
 
72 70
         if (!check(communityId)) {
@@ -74,7 +72,7 @@ public class SocialController extends BaseController {
74 72
             return responseBean;
75 73
         }
76 74
 
77
-        responseBean = socialServiceI.findTaUserInfo(activityId, communityId, userId,remark);
75
+        responseBean = socialServiceI.findTaUserInfo(userElement, activityId, communityId ,remark);
78 76
         return responseBean;
79 77
     }
80 78
     
@@ -248,7 +246,7 @@ public class SocialController extends BaseController {
248 246
 
249 247
     @ApiOperation(value = "二手租赁详情", notes = "二手租赁详情")
250 248
     @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
251
-            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "activityId", value = "活动帖子id"),
249
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "activityId", value = "帖子id"),
252 250
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")})
253 251
     @RequestMapping(value = "/getTransaction/{communityId}", method = RequestMethod.GET)
254 252
     public ResponseBean findUsedDetails(@PathVariable(value = "communityId") Integer communityId, @RequestParam("activityId") Integer activityId, HttpSession session) {
@@ -269,7 +267,8 @@ public class SocialController extends BaseController {
269 267
 
270 268
     @ApiOperation(value = "查询二手租赁回复", notes = "查询二手租赁回复")
271 269
     @ApiImplicitParams({
272
-            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "transactionId", value = "活动帖子id"),
270
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "transactionId", value = "帖子id"),
271
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "type", value = "0:和我相关,1:楼主,2:物业"),
273 272
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
274 273
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "pageNum", value = "第几页"),
275 274
             @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "pageSize", value = "一页多少行"),
@@ -278,6 +277,7 @@ public class SocialController extends BaseController {
278 277
     @RequestMapping(value = "/getTransactionReply", method = RequestMethod.GET)
279 278
     public ResponseBean findUsedDetailsReply(@RequestParam("transactionId") Integer transactionId,
280 279
                                              @RequestParam(value = "order", defaultValue = "asc") String order,
280
+                                             @RequestParam(value = "type",required = false) Integer type,
281 281
                                              @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
282 282
                                              @RequestParam(value = "pageSize", defaultValue = "10")Integer pageSize,
283 283
                                              HttpSession session) {
@@ -289,7 +289,7 @@ public class SocialController extends BaseController {
289 289
             return responseBean;
290 290
         }
291 291
 
292
-        responseBean = socialServiceI.findUsedDetailsReply(transactionId, userElement, order, pageNum, pageSize);
292
+        responseBean = socialServiceI.findUsedDetailsReply(transactionId, userElement, order, pageNum, pageSize,type);
293 293
         return responseBean;
294 294
     }
295 295
 
@@ -297,7 +297,7 @@ public class SocialController extends BaseController {
297 297
 
298 298
     @ApiOperation(value = "获取所有的二手租赁帖子", notes = "获取所有的二手租赁帖子")
299 299
     @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
300
-            @ApiImplicitParam(paramType = "query", dataType = "String", name = "type", value = "帖子类型"),
300
+            @ApiImplicitParam(paramType = "query", dataType = "String", name = "type", value = "帖子类型0 代表 议事大厅 1 是邻里互助 2 是二手/租赁 3 是其他话题"),
301 301
             @ApiImplicitParam(paramType = "query", dataType = "String", name = "transactionTitle", value = "帖子标题"),
302 302
             @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
303 303
             @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")}
@@ -309,7 +309,6 @@ public class SocialController extends BaseController {
309 309
                                     @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
310 310
                                     @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) {
311 311
         ResponseBean responseBean = new ResponseBean();
312
-
313 312
         if (!check(communityId)) {
314 313
             responseBean.addError("小区不存在");
315 314
             return responseBean;
@@ -321,7 +320,7 @@ public class SocialController extends BaseController {
321 320
 
322 321
     @ApiOperation(value = "添加二手租赁帖子", notes = "添加二手租赁帖子")
323 322
     @ApiImplicitParams({
324
-            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="title:小区标题, imageUrl:图片URL地址, content:小区内容, type:0二手,1求购,2租赁"),
323
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value ="title:小区标题, imageUrl:图片URL地址, content:小区内容, type:0议事大厅,1是邻里互助 ,2是二手/租赁,3其它话题,status:"),
325 324
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
326 325
     })
327 326
     @RequestMapping(value = "/addTransaction", method = RequestMethod.POST)
@@ -330,8 +329,7 @@ public class SocialController extends BaseController {
330 329
 
331 330
         ResponseBean responseBean = new ResponseBean();
332 331
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
333
-        Integer userId = userElement.getId();
334
-        ResponseBean response = socialServiceI.addAllTransaction(userId, paramets);
332
+        ResponseBean response = socialServiceI.addAllTransaction(userElement, paramets);
335 333
         return response;
336 334
     }
337 335
     
@@ -366,8 +364,7 @@ public class SocialController extends BaseController {
366 364
                                              @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) {
367 365
         ResponseBean responseBean = new ResponseBean();
368 366
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
369
-        Integer userId = userElement.getId();
370
-        ResponseBean response = socialServiceI.selectAllTransaction(userId, pageNum, pageSize,type);
367
+        ResponseBean response = socialServiceI.selectAllTransaction(userElement, pageNum, pageSize,type);
371 368
         return response;
372 369
     }
373 370
 
@@ -434,7 +431,7 @@ public class SocialController extends BaseController {
434 431
     @ApiOperation(value = "二手帖子对话", notes = "二手帖子对话")
435 432
     @ApiImplicitParams({
436 433
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =
437
-                    "transactionId:当前帖子ID,replyContent:回复内容,replyTaUserId:被回复的用户ID"),
434
+                    "transactionId:当前帖子ID,replyContent:回复内容,replyTaUserId:被回复的用户ID,imgArr:可多张[]"),
438 435
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
439 436
     })
440 437
     @RequestMapping(value = "/addTransactionReply", method = RequestMethod.POST)
@@ -451,11 +448,66 @@ public class SocialController extends BaseController {
451 448
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
452 449
     })
453 450
     @RequestMapping(value = "/addTransactionLike", method = RequestMethod.POST)
454
-    public ResponseBean addTransactionLike(HttpSession session, @RequestBody String paramets) {
451
+    public ResponseBean  addTransactionLike(HttpSession session, @RequestBody String paramets) {
455 452
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
456 453
         ResponseBean response = socialServiceI.addTransactionLike(paramets,userElement);
457 454
         return response;
458 455
     }
459 456
 
457
+    @ApiOperation(value = "我参加的所有活动", notes = "我参加的所有活动")
458
+    @ApiImplicitParams({
459
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
460
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
461
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")
462
+    })
463
+    @RequestMapping(value = "/user/activitlist", method = RequestMethod.GET)
464
+    public ResponseBean  userActivityList(HttpSession session,
465
+                                          @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
466
+                                          @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
467
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
468
+        ResponseBean response = socialServiceI.userActivityList(userElement,pageNum,pageSize);
469
+        return response;
470
+    }
471
+
472
+    @ApiOperation(value = "我参加的话题", notes = "我参加的话题")
473
+    @ApiImplicitParams({
474
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
475
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
476
+            @ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")
477
+    })
478
+    @RequestMapping(value = "/user/transactionList", method = RequestMethod.GET)
479
+    public ResponseBean  userTransactionList(HttpSession session,
480
+                                             @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
481
+                                             @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
482
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
483
+        ResponseBean response = socialServiceI.userTransactionList(userElement,pageNum,pageSize);
484
+        return response;
485
+    }
486
+
487
+    @ApiOperation(value = "签到扫码", notes = "签到扫码")
488
+    @ApiImplicitParams({
489
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
490
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value = "activityId:活动id"),
491
+    })
492
+
493
+    @RequestMapping(value = "/tpactivitysignin/add", method = RequestMethod.POST)
494
+    public ResponseBean  tpActivitySignInAdd(HttpSession session,@RequestBody String paramets) {
495
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
496
+        ResponseBean response = socialServiceI.tpActivitySignInAdd(paramets,userElement);
497
+        return response;
498
+    }
499
+
500
+    @ApiOperation(value = "回复对话", notes = "回复对话")
501
+    @ApiImplicitParams({
502
+            @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =
503
+                    "transactionId:帖子ID,replyContent:回复内容,replyUserId:被回复的用户ID,imgArr:可多张[]"),
504
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
505
+    })
506
+    @RequestMapping(value = "/replyAdd", method = RequestMethod.POST)
507
+    public ResponseBean replyAdd(HttpSession session, @RequestBody String paramets) {
508
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
509
+        ResponseBean replyAdd = socialServiceI.replyAdd(paramets,userElement);
510
+        return replyAdd;
511
+    }
460 512
 
461 513
 }

+ 3
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/TicketController.java ファイルの表示

@@ -116,7 +116,7 @@ public class TicketController extends BaseController {
116 116
 
117 117
         TpTicket tpTicket = new TpTicket();
118 118
         tpTicket.setCommunityId(Integer.valueOf(communityId));
119
-        tpTicket.setTaUserId(userElement.getId());
119
+        tpTicket.setTaUserId(userElement.getUserVerifyId());
120 120
         tpTicket.setType(type);
121 121
 
122 122
         responseBean = iTicketService.getByTypeList(tpTicket, pageNum, pageSize);
@@ -161,8 +161,7 @@ public class TicketController extends BaseController {
161 161
     public ResponseBean addTransaction(@RequestBody String paramets, HttpSession session) throws IOException {
162 162
         ResponseBean responseBean = new ResponseBean();
163 163
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
164
-        Integer userId = userElement.getId();
165
-        ResponseBean response = iTicketService.addAiTicketService(userId, paramets);
164
+        ResponseBean response = iTicketService.addAiTicketService(userElement, paramets);
166 165
         return response;
167 166
     }
168 167
 
@@ -216,7 +215,7 @@ public class TicketController extends BaseController {
216 215
     @RequestMapping(value = "/addRecordComment", method = RequestMethod.POST)
217 216
     public ResponseBean addRecordComment(@RequestBody String parameter, HttpSession session){
218 217
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
219
-        ResponseBean  responseBean = iTicketService.addRecordComment(parameter,userElement.getId(),userElement.getCommunityId(),userElement.getUserName());
218
+        ResponseBean  responseBean = iTicketService.addRecordComment(parameter,userElement.getUserVerifyId(),userElement.getCommunityId(),userElement.getUserName());
220 219
         return responseBean;
221 220
     }
222 221
 }

+ 130
- 72
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java ファイルの表示

@@ -17,6 +17,7 @@ import org.apache.catalina.User;
17 17
 import org.apache.ibatis.annotations.Param;
18 18
 import org.springframework.beans.BeanUtils;
19 19
 import org.springframework.beans.factory.annotation.Autowired;
20
+import org.springframework.beans.factory.annotation.Value;
20 21
 import org.springframework.cloud.context.config.annotation.RefreshScope;
21 22
 import org.springframework.web.bind.annotation.*;
22 23
 import org.springframework.web.multipart.MultipartFile;
@@ -40,74 +41,86 @@ public class UserController extends BaseController {
40 41
 
41 42
     @ApiOperation(value = "登录", notes = "根据登录名和验证码")
42 43
     @ApiImplicitParams({
43
-            @ApiImplicitParam(paramType = "path",dataType = "String",name = "communityId",value = "小区"),
44
-            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "loginName(登陆名(手机号)) code(验证码)"),
45
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
44
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "loginName(登陆名(手机号)) code(验证码)")
46 45
     })
47
-    @RequestMapping(value = "/user/login/{communityId}",method = RequestMethod.POST)
46
+    @RequestMapping(value = "/user/login",method = RequestMethod.POST)
48 47
     public ResponseBean login(@RequestBody String parameter,
49
-                              @PathVariable(value = "communityId") String communityId,
50 48
                               HttpSession session){
51 49
         JSONObject jsonObject = JSONObject.parseObject(parameter);
52
-        ResponseBean responseBean = iTaUserService.login(jsonObject.getString("loginName"),communityId, jsonObject.getString("code"));
50
+        ResponseBean responseBean = iTaUserService.login(jsonObject.getString("loginName"),jsonObject.getString("code"), session);
53 51
         TaUserVO userVO = (TaUserVO) responseBean.getData();
52
+        if (null != userVO) {
53
+            setUserElement(userVO, session);
54
+        }
55
+        return responseBean;
56
+
57
+    }
54 58
 
59
+    @ApiOperation(value = "注册", notes = "注册")
60
+    @ApiImplicitParams({
61
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userName用户姓名;idCard身份证;gender性别(1:男  2:女);loginName手机号;code验证码")
62
+    })
63
+    @RequestMapping(value = "/user/register",method = RequestMethod.POST)
64
+    public ResponseBean register(@RequestBody String parameter) {
65
+        ResponseBean responseBean = new ResponseBean();
66
+        responseBean = iTaUserService.register(parameter);
67
+        return responseBean;
68
+    }
69
+
70
+    @ApiOperation(value = "登录 绑定 房产", notes = "绑定选中的当前房产,进行登录 (在APP登录后,选择房产的时候),还可以用于切换房产登录")
71
+    @ApiImplicitParams({
72
+            @ApiImplicitParam(paramType = "path",dataTypeClass = String.class, name = "userVerifyId",value = "审核 id"),
73
+            @ApiImplicitParam(paramType = "header",dataTypeClass = String.class, name = "X-Auth-Token",value = "Token")
74
+    })
75
+    @RequestMapping(value = "/user/binding/login/{userVerifyId}",method = RequestMethod.POST)
76
+    public ResponseBean login(@PathVariable("userVerifyId") Integer userVerifyId,
77
+                              HttpSession session){
78
+        UserElement userElement = getUserElement(session);
79
+        ResponseBean responseBean = iTaUserService.bindingLoginAndHouse(userElement, userVerifyId);
80
+        TaUserVO userVO = (TaUserVO) responseBean.getData();
55 81
         if (null != userVO) {
56
-            UserElement userElement = new UserElement();
57
-            BeanUtils.copyProperties(userVO,userElement);
58
-            userElement.setLoginType(Constant.APP_LOGIN_TYPE);
59
-            session.setAttribute(Constant.APP_USER_SESSION,userElement);
60
-            userVO.setToken(session.getId());
82
+            setUserElement(userVO, session);
61 83
         }
62 84
         return responseBean;
63 85
 
64 86
     }
87
+
65 88
     @ApiOperation(value = "修改手机号", notes = "修改手机号")
66 89
     @ApiImplicitParams({
67
-            @ApiImplicitParam(paramType = "body",dataType = "String",name = "paramets",value = "phone:登陆(手机号),code:(手机验证码),otherUserId:(租客或者家属ID,空为业主本人)"),
68
-            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
69
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
90
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "paramets",value = "phone:登陆(手机号),code:(手机验证码)"),
91
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
70 92
     })
71 93
             @RequestMapping(value = "/user/phone",method = RequestMethod.PUT)
72 94
     public ResponseBean update(@RequestBody String paramets, HttpSession session){
73 95
         ResponseBean responseBean = new ResponseBean();
74
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
75
-        Integer userId=userElement.getId();
76
-        ResponseBean response=iTaUserService.upDateloginName(userId,paramets,userElement.getCommunityId());
96
+        UserElement userElement = getUserElement(session);
97
+        ResponseBean response=iTaUserService.updateLoginName(userElement, paramets);
77 98
         return response;
78 99
     }
79 100
 
80 101
     @ApiOperation(value = "查看房屋成员列表", notes = "查看房屋成员列表")
81 102
     @ApiImplicitParams({
82
-            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
83
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
103
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
84 104
     })
85 105
     @RequestMapping(value = "/roomUserList", method = RequestMethod.GET)
86 106
     public ResponseBean accessTicket(HttpSession session){
87
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
88
-        Integer userId = userElement.getId();
89 107
         ResponseBean responseBean = new ResponseBean();
90
-        List<TaUser> taUserList = iTaUserService.getAllRoomUserList(userId);
91
-        responseBean.addSuccess(taUserList);
108
+        UserElement userElement = getUserElement(session);
109
+        responseBean = iTaUserService.getAllRoomUserList(userElement);
92 110
         return responseBean;
93 111
     }
112
+
94 113
     @ApiOperation(value = "修改用户名和性别和身份证", notes = "修改用户名和性别和身份证")
95 114
     @ApiImplicitParams({
96 115
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userName用户民和gender性别和idCard身份证"),
97
-            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
98
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
116
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
99 117
     })
100 118
     @RequestMapping(value = "/user/update/info",method = RequestMethod.PUT)
101 119
     public ResponseBean updateUserNameAndGender(@RequestBody String parameter,
102 120
                                                 HttpSession session){
103 121
         ResponseBean response = new ResponseBean();
104
-
105
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
106
-
107
-        TaUser user = JSONObject.parseObject(parameter,TaUser.class);
108
-        user.setId(userElement.getId());
109
-
110
-        response = iTaUserService.modifyUser(user);
122
+        UserElement userElement = getUserElement(session);
123
+        response = iTaUserService.modifyUser(userElement, parameter);
111 124
         return response;
112 125
 
113 126
     }
@@ -115,16 +128,15 @@ public class UserController extends BaseController {
115 128
     @ApiOperation(value = "租客或家属 启用或者停用", notes = "租客或家属 启用或者停用")
116 129
     @ApiImplicitParams({
117 130
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userId(租客或者家属) type(1启用 0停用)"),
118
-            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
119
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
131
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
120 132
     })
121 133
     @RequestMapping(value = "/user/dependentsOrTenants",method = RequestMethod.PUT)
134
+    @Deprecated
122 135
     public ResponseBean updateDependentsOrTenants(@RequestBody String parameter,
123 136
                                                 HttpSession session){
124 137
         ResponseBean response = new ResponseBean();
125 138
 
126 139
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
127
-
128 140
         JSONObject jsonObject = JSONObject.parseObject(parameter);
129 141
         response = iTaUserService.startOrEndUsingUser(userElement.getId(),jsonObject.getInteger("userId"),jsonObject.getInteger("type"));
130 142
 
@@ -136,11 +148,11 @@ public class UserController extends BaseController {
136 148
     @ApiOperation(value = "业主添加 租客或家属", notes = "业主添加 租客或家属")
137 149
     @ApiImplicitParams({
138 150
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userName(租客或者家属 姓名) " +
139
-                    "phone(租客或者家属 手机号) " +
151
+                    "loginName(租客或者家属 手机号) " +
140 152
                     "gender(租客或者家属 性别 1男 2女) " +
141
-                    "type(2租客 3家属)" +
142
-                    "idCard(身份证号)"),
143
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
153
+                    "roleName(TENANT 租客 RELATION 家属)" +
154
+                    "idCard(身份证号)" +
155
+                    "code(验证码)"),
144 156
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
145 157
     })
146 158
     @RequestMapping(value = "/user/addTenantsOrDependents",method = RequestMethod.POST)
@@ -148,13 +160,8 @@ public class UserController extends BaseController {
148 160
                                                HttpSession session){
149 161
         ResponseBean response = new ResponseBean();
150 162
 
151
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
152
-        JSONObject jsonObject = JSONObject.parseObject(parameter);
153
-        response = iTaUserService.addTenantsOrDependents(jsonObject.getString("userName"),
154
-                jsonObject.getString("phone"),jsonObject.getString("gender"),
155
-                userElement.getId(),
156
-                jsonObject.getInteger("type"), jsonObject.getString("idCard"));
157
-
163
+        UserElement userElement = getUserElement(session);
164
+        response = iTaUserService.addTenantsOrDependents(userElement, parameter);
158 165
         return response;
159 166
 
160 167
     }
@@ -167,10 +174,10 @@ public class UserController extends BaseController {
167 174
                     "gender(租客或者家属 性别 1男 2女) " +
168 175
                     "type(2租客 3家属)" +
169 176
                     "idCard(身份证号)"),
170
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
171 177
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
172 178
     })
173 179
     @RequestMapping(value = "/user/updateTenantsOrDependents",method = RequestMethod.POST)
180
+    @Deprecated
174 181
     public ResponseBean updateTenantsOrDependents(@RequestBody String parameter,
175 182
                                                HttpSession session){
176 183
         ResponseBean response = new ResponseBean();
@@ -193,7 +200,6 @@ public class UserController extends BaseController {
193 200
     @ApiOperation(value = "修改用户头像", notes = "修改用户头像")
194 201
     @ApiImplicitParams({
195 202
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "headPortrait(用户头像)"),
196
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
197 203
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
198 204
     })
199 205
     @RequestMapping(value = "/user/modifyUserHeadPortrait",method = RequestMethod.PUT)
@@ -211,19 +217,25 @@ public class UserController extends BaseController {
211 217
     @ApiOperation(value = "获取用户信息", notes = "获取用户信息, 携带userId表示查询租客或者家属")
212 218
     @ApiImplicitParams({
213 219
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
214
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
215 220
             @ApiImplicitParam(paramType = "query",dataType = "String",name = "userId",value = "租客或者家属的ID(可选值)"),
221
+            @ApiImplicitParam(paramType = "query",dataType = "String",name = "userVerifyId",value = "审核id,只有在 userId 参数生效才有效")
216 222
     })
217 223
     @RequestMapping(value = "/user/info",method = RequestMethod.GET)
218
-    public ResponseBean getUserInfo(@RequestParam(value = "userId",required = false) Integer userId,
224
+    public ResponseBean getUserInfo(@RequestParam(value = "userId",required = false) Integer userId, @RequestParam(value = "userVerifyId", required = false) Integer userVerifyId,
219 225
                                     HttpSession session){
220 226
         ResponseBean response = new ResponseBean();
221
-
222
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
223
-        Integer id =  userElement.getId();
224
-
225
-        response = iTaUserService.getUserInfo(id,userId);
226
-        TaUserVO userVO = (TaUserVO) response.getData();
227
+        UserElement userElement = getUserElement(session);
228
+        response = iTaUserService.getUserInfo(userElement,userId, userVerifyId, session);
229
+        Object data = response.getData();
230
+        if ("1".equals(response.getCode()) && null == data) {
231
+            // 清空 session
232
+            removeUserElement(session);
233
+            return response;
234
+        }
235
+        if (null == userId && null != data && data instanceof TaUserVO) {
236
+            setUserElement((TaUserVO) data, session);
237
+        }
238
+        TaUserVO userVO = (TaUserVO) data;
227 239
         userVO.setToken(session.getId());
228 240
 
229 241
         return response;
@@ -232,39 +244,85 @@ public class UserController extends BaseController {
232 244
 
233 245
 
234 246
     @ApiOperation(value = "游客登录", notes = "游客登录")
235
-    @ApiImplicitParams({
236
-            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "communityId", value = "小区Id"),
237
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 app"),
238
-    })
239 247
     @RequestMapping(value = "/user/temporary/{communityId}", method = RequestMethod.POST)
240
-    public ResponseBean temporaryLogin(@PathVariable Integer communityId, HttpSession session) {
248
+    public ResponseBean temporaryLogin(HttpSession session) {
241 249
         ResponseBean responseBean = new ResponseBean();
242
-        responseBean = iTaUserService.temporaryLogin(communityId);
250
+        responseBean = iTaUserService.temporaryLogin(session);
243 251
         TaUserVO userVO = (TaUserVO) responseBean.getData();
244 252
         if (null != userVO) {
245
-            UserElement userElement = new UserElement();
246
-            BeanUtils.copyProperties(userVO,userElement);
247
-            userElement.setLoginType(Constant.APP_LOGIN_TYPE);
248
-            session.setAttribute(Constant.APP_USER_SESSION,userElement);
249
-            userVO.setToken(session.getId());
253
+            setUserElement(userVO, session);
250 254
         }
251
-        userVO.setToken(session.getId());
252 255
         return responseBean;
253 256
     }
254 257
 
255 258
     @ApiOperation(value = "迎宾系统添加人员", notes = "迎宾系统添加人员")
256 259
     @ApiImplicitParams({
257 260
             @ApiImplicitParam(paramType = "form", dataTypeClass = String.class, value = "userName人员名称"),
258
-            @ApiImplicitParam(paramType = "form", dataTypeClass = MultipartFile.class, name = "file", value = "图片"),
259
-            @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
261
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
260 262
     })
261 263
     @RequestMapping(value = "/user/welcome/add", method = RequestMethod.POST)
262
-    public ResponseBean welcomeAddUser(@RequestParam("userName") String userName, @RequestParam("file") MultipartFile file, HttpSession session) {
264
+    public ResponseBean welcomeAddUser(@RequestParam("userName") String userName, HttpSession session) {
263 265
         ResponseBean responseBean = new ResponseBean();
264 266
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
265 267
         TaUser user = new TaUser();
266 268
         user.setUserName(userName);
267
-        responseBean = iTaUserService.welcomeFace(userElement, file, user);
269
+        responseBean = iTaUserService.addWelcomeUser(userElement, user);
270
+        return responseBean;
271
+    }
272
+
273
+    @RequestMapping(value = "/user/has/phone", method = RequestMethod.GET)
274
+    @ApiOperation(value = "校验 手机号是否注册", notes = "校验 手机号是否注册")
275
+    @ApiImplicitParams({
276
+            @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "phone", value = "手机号"),
277
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
278
+    })
279
+    public ResponseBean hasUserPhone(HttpSession session, @RequestParam("phone") String phone) {
280
+        ResponseBean responseBean = new ResponseBean();
281
+        UserElement userElement = getUserElement(session);
282
+        responseBean = iTaUserService.hasUserPhoneVerify(phone, userElement);
283
+        return responseBean;
284
+    }
285
+
286
+    @RequestMapping(value = "/user/tenantAndRelation/delete/{userVerifyId}", method = RequestMethod.DELETE)
287
+    @ApiOperation(value = "业主删除 家属或者租客", notes = "业主删除 家属或者租客")
288
+    @ApiImplicitParams({
289
+            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "userVerifyId", value = "审核 id"),
290
+            @ApiImplicitParam(paramType = "header",dataTypeClass = String.class,name = "X-Auth-Token",value = "Token")
291
+    })
292
+    public ResponseBean deleteTenantAndRelation(HttpSession session, @PathVariable("userVerifyId") Integer userVerifyId) {
293
+        ResponseBean responseBean = new ResponseBean();
294
+        UserElement userElement = getUserElement(session);
295
+        responseBean = iTaUserService.deleteTenantAndRelation(userElement, userVerifyId);
268 296
         return responseBean;
269 297
     }
298
+
299
+    @ApiOperation(value = "获取令牌", notes = "获取令牌")
300
+    @ApiImplicitParams({
301
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "提供的appid"),
302
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
303
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "encrypt加密方式(目前值为md5)"),
304
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "phone", value = "手机号"),
305
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "communityId", value = "提供的小区编号"),
306
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "生成的签名"),
307
+    })
308
+    @RequestMapping(value = "/user/token", method = RequestMethod.GET)
309
+    public ResponseBean daSuToken(@RequestParam("appid") String appid,
310
+                                  @RequestParam("datetime") String datetime,
311
+                                  @RequestParam("encrypt") String encrypt,
312
+                                  @RequestParam("phone") String phone,
313
+                                  @RequestParam("communityId") String communityId,
314
+                                  @RequestParam("sign") String sign,
315
+                                  HttpSession session){
316
+        ResponseBean responseBean = new ResponseBean();
317
+        responseBean = iTaUserService.daSuToken(appid, datetime, encrypt, communityId, phone, sign, session);
318
+        Object object = responseBean.getData();
319
+        if (null != object) {
320
+            TaUserVO userVO = (TaUserVO) responseBean.getData();
321
+            if (userVO != null) {
322
+                setUserElement(userVO, session);
323
+            }
324
+        }
325
+        return responseBean;
326
+    }
327
+
270 328
 }

+ 119
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserVerifyController.java ファイルの表示

@@ -0,0 +1,119 @@
1
+package com.community.huiju.controller;
2
+
3
+import com.alibaba.fastjson.JSONObject;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.commom.session.UserElement;
6
+import com.community.huiju.service.ITaUserService;
7
+import com.community.huiju.service.TaUserVerifyServicel;
8
+import io.swagger.annotations.Api;
9
+import io.swagger.annotations.ApiImplicitParam;
10
+import io.swagger.annotations.ApiImplicitParams;
11
+import io.swagger.annotations.ApiOperation;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.web.bind.annotation.*;
14
+
15
+import javax.servlet.http.HttpSession;
16
+
17
+/**
18
+ * app端用户审核
19
+ *
20
+ * @author weiximei
21
+ */
22
+@RestController
23
+@RequestMapping("/")
24
+@Api(value = "app端用户审核表", description = "app端用户审核表")
25
+public class UserVerifyController extends BaseController {
26
+
27
+    @Autowired
28
+    private TaUserVerifyServicel taUserVerifyServicel;
29
+
30
+    @RequestMapping(value = "/user/verify/{userVerifyId}", method = RequestMethod.GET)
31
+    @ApiOperation(value = "获取 一个房产信息", notes = "获取 一个房产信息")
32
+    @ApiImplicitParams({
33
+            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "userVerifyId", value = "审核房产 id"),
34
+    })
35
+    public ResponseBean getUserVerify(HttpSession session, @PathVariable("userVerifyId") Integer userVerifyId) {
36
+        ResponseBean responseBean = taUserVerifyServicel.getToAuditNotApproved(userVerifyId);
37
+        return responseBean;
38
+    }
39
+
40
+    @RequestMapping(value = "/user/verify/add", method = RequestMethod.POST)
41
+    @ApiOperation(value = "添加一个审核的房产", notes = "添加一个审核的房产")
42
+    @ApiImplicitParams({
43
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
44
+            @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "communityId小区编号;roleName角色名称;phaseId期;buildingId楼栋;unitId单元;levelId楼层;roomNoId户号")
45
+    })
46
+    public ResponseBean addUserVerify(@RequestBody String parameter, HttpSession session) {
47
+        ResponseBean responseBean = new ResponseBean();
48
+        UserElement userElement = getUserElement(session);
49
+        responseBean = taUserVerifyServicel.addUserVerify(userElement, parameter);
50
+        return responseBean;
51
+    }
52
+
53
+    @RequestMapping(value = "/user/verify/delete/{userVerifyId}", method = RequestMethod.DELETE)
54
+    @ApiOperation(value = "删除一个审核的房产", notes = "删除一个审核的房产")
55
+    @ApiImplicitParams({
56
+            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "userVerifyId", value = "审核房产 id")
57
+    })
58
+    public ResponseBean deleteUserVerify(@PathVariable("userVerifyId") Integer userVerifyId, HttpSession session) {
59
+        ResponseBean responseBean = new ResponseBean();
60
+        responseBean = taUserVerifyServicel.deleteUserVerify(userVerifyId);
61
+        return responseBean;
62
+    }
63
+
64
+    @RequestMapping(value = "/current_user/verify/delete/{userVerifyId}", method = RequestMethod.DELETE)
65
+    @ApiOperation(value = "删除当前用户 关联的房产", notes = "删除当前用户 关联的房产")
66
+    @ApiImplicitParams({
67
+            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "userVerifyId", value = "审核房产 id"),
68
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
69
+    })
70
+    public ResponseBean deleteCurrentUserVerify(@PathVariable("userVerifyId") Integer userVerifyId, HttpSession session) {
71
+        ResponseBean responseBean = new ResponseBean();
72
+        UserElement userElement = getUserElement(session);
73
+        responseBean = taUserVerifyServicel.deleteCurrentUserVerify(userElement, userVerifyId);
74
+        return responseBean;
75
+    }
76
+
77
+    @RequestMapping(value = "/user/verify/list", method = RequestMethod.GET)
78
+    @ApiOperation(value = "获取 当前用户关联的房产列表", notes = "获取 当前用户关联的房产列表")
79
+    @ApiImplicitParams({
80
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
81
+    })
82
+    public ResponseBean getByCurrentUser(HttpSession session) {
83
+        ResponseBean responseBean = new ResponseBean();
84
+        UserElement userElement = getUserElement(session);
85
+        responseBean = taUserVerifyServicel.getByCurrentUser(userElement);
86
+        return responseBean;
87
+    }
88
+
89
+
90
+    @RequestMapping(value = "/user/verify/{userVerifyId}", method = RequestMethod.PUT)
91
+    @ApiOperation(value = "业主审核用户", notes = "业主审核用户")
92
+    @ApiImplicitParams({
93
+            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "userVerifyId", value = "审核房产 id"),
94
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
95
+            @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "userVerifyStatus审核 1是审核通过   2是审核不通过;remark备注"),
96
+    })
97
+    public ResponseBean verifyUser(HttpSession session,
98
+                                   @PathVariable("userVerifyId") Integer userVerifyId,
99
+                                   @RequestBody String parameter) {
100
+        ResponseBean responseBean = new ResponseBean();
101
+        UserElement userElement = getUserElement(session);
102
+        JSONObject jsonObject = JSONObject.parseObject(parameter);
103
+        responseBean = taUserVerifyServicel.verifyUser(userElement, userVerifyId, jsonObject.getString("userVerifyStatus"), jsonObject.getString("remark"));
104
+        return responseBean;
105
+    }
106
+
107
+
108
+    @RequestMapping(value = "/user_verify/add", method = RequestMethod.POST)
109
+    @ApiOperation(value = "添加一个审核的房产 大苏", notes = "添加一个审核的房产 大苏")
110
+    @ApiImplicitParams({
111
+            @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "userId用户编号;communityId小区编号;roleName角色名称;phaseId期;buildingId楼栋;unitId单元;levelId楼层;roomNoId户号")
112
+    })
113
+    public ResponseBean addDaSuUserVerify(@RequestBody String parameter, HttpSession session) {
114
+        ResponseBean responseBean = new ResponseBean();
115
+        responseBean = taUserVerifyServicel.addDaSuUserVerify(parameter);
116
+        return responseBean;
117
+    }
118
+
119
+}

+ 2
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/VistorController.java ファイルの表示

@@ -47,10 +47,9 @@ public class VistorController extends BaseController {
47 47
             return responseBean;
48 48
         }
49 49
 
50
-        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
51
-        Integer userId = userElement.getId();
50
+        UserElement userElement = getUserElement(session);
52 51
         TaVisitor taVisitor = JSONObject.parseObject(parameter,TaVisitor.class);
53
-        responseBean = vistorServiceI.insertTaVistor(taVisitor, communityId, userId);
52
+        responseBean = vistorServiceI.insertTaVistor(taVisitor, userElement);
54 53
         return  responseBean;
55 54
     }
56 55
 

+ 108
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/WxLoginController.java ファイルの表示

@@ -0,0 +1,108 @@
1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.commom.session.UserElement;
5
+import com.community.huiju.service.WxLoginServiceI;
6
+import com.community.huiju.vo.TaUserVO;
7
+import io.swagger.annotations.Api;
8
+import io.swagger.annotations.ApiImplicitParam;
9
+import io.swagger.annotations.ApiImplicitParams;
10
+import io.swagger.annotations.ApiOperation;
11
+import org.springframework.beans.factory.annotation.Autowired;
12
+import org.springframework.cloud.context.config.annotation.RefreshScope;
13
+import org.springframework.util.StringUtils;
14
+import org.springframework.web.bind.annotation.*;
15
+
16
+import javax.servlet.http.HttpServletRequest;
17
+import javax.servlet.http.HttpSession;
18
+
19
+/**
20
+ * @author FXF
21
+ * @date 2019-03-29
22
+ */
23
+@RestController
24
+@RefreshScope
25
+@RequestMapping("/")
26
+@Api(value = "微信登录 API", description = "微信登录 API")
27
+public class WxLoginController extends BaseController {
28
+	
29
+	@Autowired
30
+	private WxLoginServiceI wxLoginService;
31
+	
32
+	/**
33
+	 * 微信登录
34
+	 */
35
+	@RequestMapping(value = "/wxLogin/{wxcode}", method = RequestMethod.POST)
36
+	public ResponseBean autoLogin(@PathVariable String wxcode, HttpServletRequest request) {
37
+		ResponseBean responseBean = new ResponseBean();
38
+		if (StringUtils.isEmpty(wxcode)){
39
+			responseBean.addError("fail");
40
+			return responseBean;
41
+		}
42
+		//根据wxcode获取openid
43
+		responseBean = wxLoginService.getOpenidByWxcode(wxcode, request.getSession());
44
+		Object data = responseBean.getData();
45
+		if (null != data && data instanceof TaUserVO) {
46
+			setUserElement((TaUserVO) data, request.getSession());
47
+		}
48
+		return responseBean;
49
+	}
50
+
51
+	/**
52
+	 * 关联微信账号
53
+	 * @return
54
+	 */
55
+	@RequestMapping(value = "/wx/associated", method = RequestMethod.POST)
56
+	@ApiOperation(value = "手机号和验证码 关联微信账号", notes = "手机号和验证码 关联微信账号")
57
+	@ApiImplicitParams({
58
+			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "loginName手机号;code验证码;openid微信标识;nickname微信用户名称;headimgurl微信头像")
59
+	})
60
+	public ResponseBean associatedWX(@RequestBody String parameter, HttpSession session) {
61
+		ResponseBean responseBean = new ResponseBean();
62
+		responseBean = wxLoginService.associatedWX(parameter);
63
+		TaUserVO userVO = (TaUserVO) responseBean.getData();
64
+		if (null != userVO) {
65
+			setUserElement(userVO, session);
66
+		}
67
+		return responseBean;
68
+	}
69
+
70
+	@ApiOperation(value = "注册", notes = "注册")
71
+	@ApiImplicitParams({
72
+			@ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "userName用户姓名;idCard身份证;gender性别(1:男  2:女);loginName手机号;code验证码;openid微信标识;nickname微信用户名称;headimgurl微信头像")
73
+	})
74
+	@RequestMapping(value = "/wx/register",method = RequestMethod.POST)
75
+	public ResponseBean register(@RequestBody String parameter, HttpServletRequest request ,HttpSession session) {
76
+		ResponseBean responseBean = new ResponseBean();
77
+		responseBean = wxLoginService.register(parameter, request);
78
+		TaUserVO userVO = (TaUserVO) responseBean.getData();
79
+		if (null != userVO) {
80
+			setUserElement(userVO, session);
81
+		}
82
+		return responseBean;
83
+	}
84
+
85
+	@RequestMapping(value = "/unbundlingWX", method = RequestMethod.PUT)
86
+	@ApiOperation(value = "解绑微信", notes = "解绑微信")
87
+	@ApiImplicitParams({
88
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
89
+	})
90
+	public ResponseBean unbundlingWX(HttpSession session) {
91
+		ResponseBean responseBean = new ResponseBean();
92
+		UserElement userElement = getUserElement(session);
93
+		responseBean = wxLoginService.unbundlingWX(userElement);
94
+		return responseBean;
95
+	}
96
+
97
+	@RequestMapping(value = "/bundlingWX/{wxcode}", method = RequestMethod.POST)
98
+	@ApiOperation(value = "绑定微信", notes = "绑定微信")
99
+	@ApiImplicitParams({
100
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
101
+	})
102
+	public ResponseBean bundlingWX(HttpSession session, @PathVariable("wxcode") String wxcode) {
103
+		ResponseBean responseBean = new ResponseBean();
104
+		UserElement userElement = getUserElement(session);
105
+		responseBean = wxLoginService.bundlingWX(userElement, wxcode);
106
+		return responseBean;
107
+	}
108
+}

+ 36
- 24
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/WxPayController.java ファイルの表示

@@ -1,5 +1,6 @@
1 1
 package com.community.huiju.controller;
2 2
 
3
+import com.alibaba.fastjson.JSONObject;
3 4
 import com.community.commom.constant.Constant;
4 5
 import com.community.commom.mode.ResponseBean;
5 6
 import com.community.commom.redis.RedisTemplate;
@@ -19,18 +20,15 @@ import org.slf4j.Logger;
19 20
 import org.slf4j.LoggerFactory;
20 21
 import org.springframework.beans.factory.annotation.Autowired;
21 22
 import org.springframework.cloud.context.config.annotation.RefreshScope;
22
-import org.springframework.web.bind.annotation.PathVariable;
23
-import org.springframework.web.bind.annotation.RequestMapping;
24
-import org.springframework.web.bind.annotation.RequestMethod;
25
-import org.springframework.web.bind.annotation.RestController;
23
+import org.springframework.web.bind.annotation.*;
26 24
 
27 25
 import javax.servlet.http.HttpServletRequest;
28 26
 import javax.servlet.http.HttpServletResponse;
29 27
 import javax.servlet.http.HttpSession;
30 28
 import java.io.ByteArrayOutputStream;
31 29
 import java.io.InputStream;
32
-import java.util.HashMap;
33
-import java.util.Map;
30
+import java.lang.reflect.Type;
31
+import java.util.*;
34 32
 
35 33
 /**
36 34
  * @author FXF
@@ -47,16 +45,18 @@ public class WxPayController {
47 45
 	private WxPayServiceI wxPayService;
48 46
 	
49 47
 	@ApiOperation(value = "统一下单", notes = "统一下单")
50
-	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "Integer", name = "billInvoiceId", value = "账单Id"),
51
-			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
52
-	@RequestMapping(value = "/wxUnifiedOrder/{billInvoiceId}",method = RequestMethod.GET)
53
-	public ResponseBean wxUnifiedOrder(@PathVariable("billInvoiceId") Integer billInvoiceId, HttpSession session){
48
+	@ApiImplicitParams({
49
+			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "outTradeNo", value = "订单号"),
50
+			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
51
+	})
52
+	@RequestMapping(value = "/wxUnifiedOrder/{outTradeNo}",method = RequestMethod.GET)
53
+	public ResponseBean wxUnifiedOrder(@PathVariable("outTradeNo") String outTradeNo, HttpSession session){
54 54
 		ResponseBean responseBean = new ResponseBean();
55 55
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
56 56
 		
57 57
 		Map<String, String> resp = Maps.newHashMap();
58 58
 		try {
59
-			resp = wxPayService.wxUnifiedOrder(billInvoiceId,userElement);
59
+			resp = wxPayService.wxUnifiedOrder(outTradeNo,userElement);
60 60
 		} catch (Exception e) {
61 61
 			e.printStackTrace();
62 62
 			responseBean.addError(e.getMessage());
@@ -114,12 +114,15 @@ public class WxPayController {
114 114
 	}
115 115
 	
116 116
 	@ApiOperation(value = "订单查询", notes = "订单查询")
117
-	@RequestMapping(value = "/wxOrderQuery",method = RequestMethod.GET)
118
-	public ResponseBean wxOrderQuery(){
117
+	@ApiImplicitParams({
118
+			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "outTradeNo", value = "订单号")
119
+	})
120
+	@RequestMapping(value = "/wxOrderQuery/{outTradeNo}",method = RequestMethod.GET)
121
+	public ResponseBean wxOrderQuery(@PathVariable("outTradeNo") String outTradeNo){
119 122
 		ResponseBean responseBean = new ResponseBean();
120 123
 		Map<String, String> resp = Maps.newHashMap();
121 124
 		try {
122
-			resp = wxPayService.wxOrderQuery();
125
+			resp = wxPayService.wxOrderQuery(outTradeNo);
123 126
 		} catch (Exception e) {
124 127
 			e.printStackTrace();
125 128
 			responseBean.addError("查询失败");
@@ -130,14 +133,21 @@ public class WxPayController {
130 133
 	}
131 134
 	
132 135
 	@ApiOperation(value = "准备开始支付", notes = "准备开始支付")
133
-	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "Integer", name = "billInvoiceId", value = "账单Id"),
134
-			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
135
-	@RequestMapping(value = "/wxStartPay/{billInvoiceId}",method = RequestMethod.POST)
136
-	public ResponseBean wxStartPay(@PathVariable("billInvoiceId") Integer billInvoiceId, HttpSession session){
136
+	@ApiImplicitParams({
137
+			@ApiImplicitParam(paramType = "body", dataType = "Integer", name = "billInvoiceIdList", value = "账单Id集合"),
138
+			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
139
+	})
140
+	@RequestMapping(value = "/wxStartPay",method = RequestMethod.POST)
141
+	public ResponseBean wxStartPay(@RequestBody String billInvoiceIdList, HttpSession session){
137 142
 		ResponseBean responseBean = new ResponseBean();
138 143
 		try {
139 144
 			UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
140
-			wxPayService.wxStartPay(billInvoiceId,userElement);
145
+			 Integer[] integers = JSONObject.parseArray(billInvoiceIdList).toArray(new Integer[]{});
146
+
147
+			String outTradeNo = wxPayService.wxStartPay( Arrays.asList(integers), userElement);
148
+			Map<String,Object> resultMap = Maps.newHashMap();
149
+			resultMap.put("outTradeNo", outTradeNo);
150
+			responseBean.addSuccess(resultMap);
141 151
 		} catch (Exception e) {
142 152
 			e.printStackTrace();
143 153
 			responseBean.addError(e.getMessage());
@@ -147,14 +157,16 @@ public class WxPayController {
147 157
 	}
148 158
 	
149 159
 	@ApiOperation(value = "取消支付", notes = "取消支付")
150
-	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "Integer", name = "billInvoiceId", value = "账单Id"),
151
-			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
152
-	@RequestMapping(value = "/wxCancelPay/{billInvoiceId}",method = RequestMethod.POST)
153
-	public ResponseBean wxCancelPay(@PathVariable("billInvoiceId") Integer billInvoiceId, HttpSession session){
160
+	@ApiImplicitParams({
161
+			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "outTradeNo", value = "订单号"),
162
+			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
163
+	})
164
+	@RequestMapping(value = "/wxCancelPay/{outTradeNo}",method = RequestMethod.POST)
165
+	public ResponseBean wxCancelPay(@PathVariable("outTradeNo") String outTradeNo, HttpSession session){
154 166
 		ResponseBean responseBean = new ResponseBean();
155 167
 		try {
156 168
 			UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
157
-			wxPayService.wxCancelPay(billInvoiceId,userElement);
169
+			wxPayService.wxCancelPay(outTradeNo,userElement);
158 170
 		} catch (Exception e) {
159 171
 			e.printStackTrace();
160 172
 			responseBean.addError(e.getMessage());

+ 8
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaFaceMapper.java ファイルの表示

@@ -19,10 +19,10 @@ public interface TaFaceMapper{
19 19
 
20 20
     /**
21 21
      * 查看当前用户信息
22
-     * @param userid
22
+     * @param userVerifyId
23 23
      * @return
24 24
      */
25
-    TaFace getByUserId(@Param("userid") Integer userid);
25
+    TaFace getByUserVerifyId(@Param("userVerifyId") Integer userVerifyId);
26 26
 
27 27
     /**
28 28
      * 查看当前信息
@@ -30,4 +30,10 @@ public interface TaFaceMapper{
30 30
      * @return
31 31
      */
32 32
     TaFace getById(@Param("id")Integer id);
33
+
34
+    /**
35
+     * 根据审核ID删除人脸信息
36
+     * @param verifyId
37
+     */
38
+    void deleteFace(@Param("verifyId") Integer verifyId);
33 39
 }

+ 11
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaSysRoleMapper.java ファイルの表示

@@ -3,6 +3,8 @@ package com.community.huiju.dao;
3 3
 
4 4
 import com.community.huiju.model.TaSysRole;
5 5
 import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.ResultMap;
7
+import org.apache.ibatis.annotations.Select;
6 8
 
7 9
 import java.util.List;
8 10
 
@@ -22,4 +24,13 @@ public interface TaSysRoleMapper {
22 24
 
23 25
     TaSysRole findRoleByUserId(Integer userId);
24 26
 
27
+    /**
28
+     * 根据 角色名称 查询
29
+     * @param roleName
30
+     * @return
31
+     */
32
+    @ResultMap("BaseResultMap")
33
+    @Select("select * from ta_sys_role where role_name=#{roleName}")
34
+    TaSysRole selectByRoleName(String roleName);
35
+
25 36
 }

+ 17
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaUserMapper.java ファイルの表示

@@ -33,7 +33,7 @@ public interface TaUserMapper {
33 33
      * @param map
34 34
      * @return 用户
35 35
      */
36
-    TaUser selectByLoginName(Map<String, Object> map);
36
+    TaUser selectByLoginName(@Param("map") Map<String, Object> map);
37 37
 
38 38
     /**
39 39
      * 更新当前用户电话
@@ -44,10 +44,15 @@ public interface TaUserMapper {
44 44
 
45 45
     /**
46 46
      * 查询房屋成员列表
47
-     * @param parentId
47
+     * @param communityId
48
+     * @param phaseId
49
+     * @param buildingId
50
+     * @param unitId
51
+     * @param levelId
52
+     * @param roomNoId
48 53
      * @return
49 54
      */
50
-    List<TaUser> selectUserListByParentId(Integer parentId);
55
+    List<TaUser> selectHouseUserList(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId, @Param("buildingId") Integer buildingId, @Param("unitId") Integer unitId, @Param("levelId") Integer levelId, @Param("roomNoId") Integer roomNoId, @Param("userId") Integer userId);
51 56
 
52 57
     /**
53 58
      * 判断当前用户的关联关系
@@ -64,4 +69,13 @@ public interface TaUserMapper {
64 69
      * @return
65 70
      */
66 71
     TaUser getByLoginName(@Param("communityId")Integer communityId, @Param("phone")String phone);
72
+
73
+    /**
74
+     * 根据手机号码查询多套房产
75
+     * @param loginName
76
+     * @return
77
+     */
78
+    List<TaUser> getByLoginNameList(@Param("loginName") String loginName);
79
+	
80
+	TaUser getByOpenId(@Param("openid") String openid);
67 81
 }

+ 101
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaUserVerifyMapper.java ファイルの表示

@@ -0,0 +1,101 @@
1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TaUserVerify;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+import org.apache.ibatis.annotations.ResultMap;
8
+import org.apache.ibatis.annotations.Select;
9
+
10
+import java.util.List;
11
+
12
+@Mapper
13
+public interface TaUserVerifyMapper {
14
+    int deleteByPrimaryKey(Integer id);
15
+
16
+    int insert(TaUserVerify record);
17
+
18
+    int insertSelective(TaUserVerify record);
19
+
20
+    TaUserVerify selectByPrimaryKey(Integer id);
21
+
22
+    int updateByPrimaryKeySelective(TaUserVerify record);
23
+
24
+    int updateByPrimaryKey(TaUserVerify record);
25
+
26
+    /**
27
+     * 根据 用户id 查询房产
28
+     * @param userId
29
+     * @return
30
+     */
31
+    List<TaUserVerify> selectByUserId(@Param("userId") Integer userId);
32
+
33
+    /**
34
+     * 根据 用户id、小区id 、 期、栋、单元、楼层、户号、审核状态  进行条件查询
35
+     * @param communityId
36
+     * @param phaseId
37
+     * @param buildingId
38
+     * @param unitId
39
+     * @param levelId
40
+     * @param roomNoId
41
+     * @param verifyStatus
42
+     * @return
43
+     */
44
+    List<TaUserVerify> selectCommunityAndAddress(@Param("userId") Integer userId,
45
+                                           @Param("communityId") Integer communityId,
46
+                                           @Param("phaseId") Integer phaseId,
47
+                                           @Param("buildingId") Integer buildingId,
48
+                                           @Param("unitId") Integer unitId,
49
+                                           @Param("levelId") Integer levelId,
50
+                                           @Param("roomNoId") Integer roomNoId,
51
+                                           @Param("verifyStatus") Integer verifyStatus);
52
+
53
+
54
+
55
+    /**
56
+     * 根据 小区id 、 期、栋、单元、楼层、户号, 角色id(业主), 审核通过(值为1) 进行条件查询
57
+     * @param communityId
58
+     * @param phaseId
59
+     * @param buildingId
60
+     * @param unitId
61
+     * @param levelId
62
+     * @param roomNoId
63
+     * @return
64
+     */
65
+    @ResultMap("BaseResultMap")
66
+    @Select("select * from ta_user_verify where community_id=#{communityId}" +
67
+            " and phase_id=#{phaseId} and building_id=#{buildingId}" +
68
+            " and unit_id=#{unitId} and level_id=#{levelId}" +
69
+            " and room_no_id=#{roomNoId} and role_id=1 and verify_status=1")
70
+    TaUserVerify selectCommunityAndAddressAndRoleId(@Param("communityId") Integer communityId,
71
+                                                    @Param("phaseId") Integer phaseId,
72
+                                                    @Param("buildingId") Integer buildingId,
73
+                                                    @Param("unitId") Integer unitId,
74
+                                                    @Param("levelId") Integer levelId,
75
+                                                    @Param("roomNoId") Integer roomNoId);
76
+
77
+
78
+    /**
79
+     * 根据 用户id、小区id 、 期、栋、单元、楼层、户号、审核状态(不等于2)  进行条件查询
80
+     * @param communityId
81
+     * @param phaseId
82
+     * @param buildingId
83
+     * @param unitId
84
+     * @param levelId
85
+     * @param roomNoId
86
+     * @return
87
+     */
88
+    @ResultMap("BaseResultMap")
89
+    @Select("select * from ta_user_verify where user_id=#{userId} and community_id=#{communityId}" +
90
+            " and phase_id=#{phaseId} and building_id=#{buildingId}" +
91
+            " and unit_id=#{unitId} and level_id=#{levelId}" +
92
+            " and room_no_id=#{roomNoId} and verify_status != 2")
93
+    List<TaUserVerify> selectCommunityAndAddressAndNotVerifyStatus2(@Param("userId") Integer userId,
94
+                                           @Param("communityId") Integer communityId,
95
+                                           @Param("phaseId") Integer phaseId,
96
+                                           @Param("buildingId") Integer buildingId,
97
+                                           @Param("unitId") Integer unitId,
98
+                                           @Param("levelId") Integer levelId,
99
+                                           @Param("roomNoId") Integer roomNoId);
100
+
101
+}

+ 8
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TdImagesMapper.java ファイルの表示

@@ -44,4 +44,12 @@ public interface TdImagesMapper {
44 44
      * @param type
45 45
      */
46 46
     void deleteTdImages(@Param("uuid") Integer uuid, @Param("type") String type);
47
+
48
+    /**
49
+     *
50
+     * @param uuid
51
+     * @param object
52
+     * @return
53
+     */
54
+    List<TdImages> selectImages(@Param("uuid") Integer uuid, @Param("object") String object);
47 55
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/ToBannerMapper.java ファイルの表示

@@ -13,5 +13,5 @@ public interface ToBannerMapper {
13 13
 
14 14
     ToBanner selectByCommunityId(@Param("bannerId") Integer bannerId);
15 15
 
16
-    List<ToBanner> selectAllByNum(@Param("nowTime") String nowTime, @Param("num")Integer num, @Param("bannerPosition") Integer bannerPosition);
16
+    List<ToBanner> selectAllByNum(@Param("nowTime") String nowTime, @Param("num")Integer num, @Param("bannerPosition") Integer bannerPosition, @Param("communityId") Integer communityId);
17 17
 }

+ 7
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivityMapper.java ファイルの表示

@@ -31,4 +31,11 @@ public interface TpActivityMapper {
31 31
      * @return
32 32
      */
33 33
     List<TpActivity> getActivity(@Param("communityId")Integer communityId, @Param("num")Integer num);
34
+
35
+    /**
36
+     * 根据活动ID查询我参与过的活动
37
+     * @param communityId
38
+     * @return
39
+     */
40
+    List<TpActivity> selecttpActivity(@Param("id") Integer id, @Param("communityId") Integer communityId);
34 41
 }

+ 27
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignInMapper.java ファイルの表示

@@ -0,0 +1,27 @@
1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TpActivitySignIn;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+@Mapper
9
+public interface TpActivitySignInMapper {
10
+    int deleteByPrimaryKey(Integer id);
11
+
12
+    int insert(TpActivitySignIn record);
13
+
14
+    int insertSelective(TpActivitySignIn record);
15
+
16
+    TpActivitySignIn selectByPrimaryKey(Integer id);
17
+
18
+    int updateByPrimaryKeySelective(TpActivitySignIn record);
19
+
20
+    int updateByPrimaryKey(TpActivitySignIn record);
21
+
22
+    /**
23
+     * 查询当前人员是否已签到
24
+     *
25
+     */
26
+    TpActivitySignIn selectSing(@Param("activityId") Integer activityId,@Param("userID") Integer userID);
27
+}

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignupMapper.java ファイルの表示

@@ -5,6 +5,8 @@ import com.community.huiju.model.TpActivitySignup;
5 5
 import org.apache.ibatis.annotations.Mapper;
6 6
 import org.apache.ibatis.annotations.Param;
7 7
 
8
+import java.util.List;
9
+
8 10
 @Mapper
9 11
 public interface TpActivitySignupMapper {
10 12
     int deleteByPrimaryKey(Integer id);
@@ -45,5 +47,4 @@ public interface TpActivitySignupMapper {
45 47
      * @return
46 48
      */
47 49
     TpActivitySignup selectTpActivetitySignByUserId(@Param("activityId") Integer activityId, @Param("communityId")Integer communityId, @Param("userId")Integer userId);
48
-
49 50
 }

+ 21
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillInvoiceMapper.java ファイルの表示

@@ -3,6 +3,8 @@ package com.community.huiju.dao;
3 3
 import com.community.huiju.model.TpBillInvoice;
4 4
 import org.apache.ibatis.annotations.Mapper;
5 5
 import org.apache.ibatis.annotations.Param;
6
+import org.apache.ibatis.annotations.ResultMap;
7
+import org.apache.ibatis.annotations.Select;
6 8
 
7 9
 import java.util.List;
8 10
 import java.util.Map;
@@ -24,11 +26,11 @@ public interface TpBillInvoiceMapper {
24 26
     /**
25 27
      * 分页获取缴费和未缴费的数据
26 28
      * @param communityId
27
-     * @param userId
29
+     * @param roomNoId 房间id
28 30
      * @param payType
29 31
      * @return
30 32
      */
31
-    List<Map<String, Object>> getBillsList(@Param("communityId") Integer communityId,@Param("userId") Integer userId,@Param("payType") Integer payType);
33
+    List<Map<String, Object>> getBillsList(@Param("communityId") Integer communityId,@Param("roomNoId") Integer roomNoId,@Param("payType") Integer payType);
32 34
     
33 35
     /**
34 36
      * 获取账单的详细信息
@@ -40,15 +42,30 @@ public interface TpBillInvoiceMapper {
40 42
     /**
41 43
      * 获取需要支付的金额
42 44
      * @param billInvoiceId
43
-     * @param userId
45
+     * @param buildingOwnerInfoId
44 46
      * @param communityId
45 47
      * @return
46 48
      */
47
-	TpBillInvoice selectByIdAndUserId(@Param("id") Integer billInvoiceId,@Param("userId") Integer userId,@Param("communityId") Integer communityId);
49
+	TpBillInvoice selectByIdAndroomNoId(@Param("id") Integer billInvoiceId,@Param("roomNoId") Integer buildingOwnerInfoId,@Param("communityId") Integer communityId);
48 50
     
49 51
     TpBillInvoice selectByOutTradeNo(@Param("outTradeNo") String outTradeNo);
50 52
 
51 53
     List<TpBillInvoice> selectByBuildingOwnerInfoId(@Param("buildingOwnerInfoId") Integer buildingOwnerInfoId);
52 54
 
53 55
     int updateBeach(Map<String, Object> map);
56
+
57
+    /**
58
+     * 根据 id 查询缴费单
59
+     * @param billId
60
+     * @return
61
+     */
62
+    @ResultMap("BaseResultMap")
63
+    @Select("select " +
64
+            "t.* ," +
65
+            "b.bill_name as billName " +
66
+            "from " +
67
+            "tp_bill_invoice t " +
68
+            "LEFT JOIN tp_bill b ON t.bill_id = b.id " +
69
+            "where t.id = #{billId}")
70
+    TpBillInvoice selectByIdBillInvoiceInfo(Integer billId);
54 71
 }

+ 5
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillMapper.java ファイルの表示

@@ -3,6 +3,9 @@ package com.community.huiju.dao;
3 3
 import com.community.huiju.model.TpBill;
4 4
 import org.apache.ibatis.annotations.Mapper;
5 5
 import org.apache.ibatis.annotations.Param;
6
+import org.apache.ibatis.annotations.Select;
7
+
8
+import java.util.List;
6 9
 
7 10
 @Mapper
8 11
 public interface TpBillMapper {
@@ -19,4 +22,6 @@ public interface TpBillMapper {
19 22
     int updateByPrimaryKey(TpBill record);
20 23
 
21 24
     TpBill selectById(@Param("id") Integer id);
25
+
26
+
22 27
 }

+ 75
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillOrderMapper.java ファイルの表示

@@ -0,0 +1,75 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpBillOrder;
4
+import org.apache.ibatis.annotations.*;
5
+
6
+import java.util.List;
7
+
8
+@Mapper
9
+public interface TpBillOrderMapper {
10
+    int deleteByPrimaryKey(Integer id);
11
+
12
+    int insert(TpBillOrder record);
13
+
14
+    int insertSelective(TpBillOrder record);
15
+
16
+    TpBillOrder selectByPrimaryKey(Integer id);
17
+
18
+    int updateByPrimaryKeySelective(TpBillOrder record);
19
+
20
+    int updateByPrimaryKey(TpBillOrder record);
21
+
22
+    /**
23
+     * 批量插入
24
+     * @param list
25
+     * @return
26
+     */
27
+    int batchInsertSelective(List<TpBillOrder> list);
28
+
29
+    /**
30
+     * 根据订单查询, 所有数据
31
+     * @param orderNumber
32
+     * @return
33
+     */
34
+    @ResultMap("BaseResultMap")
35
+    @Select("select " +
36
+            "tbo.* from tp_bill_order tbo where tbo.order_bumber=#{orderNumber}")
37
+    List<TpBillOrder> selectByOrderBumber(@Param("orderNumber") String orderNumber);
38
+
39
+    /**
40
+     * 根据房间号查询订单
41
+     * @param roomNoId
42
+     * @return
43
+     */
44
+    @ResultMap("BaseResultMap")
45
+    @Select("SELECT tbo.* FROM tp_bill_order tbo LEFT JOIN tp_bill_invoice tbi on tbo.tp_bill_invoice_id = tbi.id " +
46
+            "WHERE tbi.room_no_id = #{roomNoId} and tbo.order_status = 1 GROUP BY tbo.order_bumber")
47
+    List<TpBillOrder> selectByRoomNoId(@Param("roomNoId") Integer roomNoId);
48
+
49
+    /**
50
+     * 根据订单号 查询缴费组
51
+     * @param orderBumber
52
+     * @return
53
+     */
54
+    @ResultMap("BaseResultMap")
55
+    @Select("SELECT * FROM tp_bill_order WHERE order_bumber = #{orderBumber} GROUP BY tp_bill_id")
56
+    List<TpBillOrder> selectByOrderNumberBill(@Param("orderBumber") String orderBumber);
57
+
58
+    /**
59
+     * 可关闭的订单
60
+     * @return
61
+     */
62
+    @ResultMap("BaseResultMap")
63
+    @Select("SELECT t.* from tp_bill_order t where TIMESTAMPDIFF(MINUTE,create_date,now()) >= 10 and t.order_status in (0,2)")
64
+    List<TpBillOrder> selectCloseOrder();
65
+
66
+    /**
67
+     * 根据收费组id 和 订单号 查询出这个订单号内该收费组所有的数据
68
+     * @param tpBillId
69
+     * @param orderNumber
70
+     * @return
71
+     */
72
+    @ResultMap("BaseResultMap")
73
+    @Select("SELECT * FROM tp_bill_order WHERE order_bumber = #{orderNumber} and tp_bill_id = #{tpBillId}")
74
+    List<TpBillOrder> selectByBillIdAndOrderNumber(@Param("tpBillId") Integer tpBillId, @Param("orderNumber") String orderNumber);
75
+}

+ 12
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBillStatementMapper.java ファイルの表示

@@ -2,6 +2,8 @@ package com.community.huiju.dao;
2 2
 
3 3
 import com.community.huiju.model.TpBillStatement;
4 4
 import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.ResultMap;
6
+import org.apache.ibatis.annotations.Select;
5 7
 
6 8
 @Mapper
7 9
 public interface TpBillStatementMapper {
@@ -16,4 +18,14 @@ public interface TpBillStatementMapper {
16 18
     int updateByPrimaryKeySelective(TpBillStatement record);
17 19
 
18 20
     int updateByPrimaryKey(TpBillStatement record);
21
+
22
+    /**
23
+     * 根据小区id,缴费单id 查询
24
+     * @param communityId
25
+     * @param tpBillInvoiceId
26
+     * @return
27
+     */
28
+    @ResultMap("BaseResultMap")
29
+    @Select("select *  from tp_bill_statement where community_id = #{communityId} and bill_invoice_id = #{tpBillInvoiceId}")
30
+    TpBillStatement selectByCommunityIdAndBillInvoiceId(Integer communityId, Integer tpBillInvoiceId);
19 31
 }

+ 36
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingMapper.java ファイルの表示

@@ -0,0 +1,36 @@
1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TpBuilding;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+import org.apache.ibatis.annotations.ResultMap;
8
+import org.apache.ibatis.annotations.Select;
9
+
10
+import java.util.List;
11
+
12
+@Mapper
13
+public interface TpBuildingMapper {
14
+    int deleteByPrimaryKey(Integer id);
15
+
16
+    int insert(TpBuilding record);
17
+
18
+    int insertSelective(TpBuilding record);
19
+
20
+    TpBuilding selectByPrimaryKey(Integer id);
21
+
22
+    int updateByPrimaryKeySelective(TpBuilding record);
23
+
24
+    int updateByPrimaryKey(TpBuilding record);
25
+
26
+    /**
27
+     * 根据小区id,期id
28
+     * @param communityId
29
+     * @param phaseId
30
+     * @return
31
+     */
32
+    @ResultMap("BaseResultMap")
33
+    @Select("select * from tp_building where community_id=#{communityId} and phase_id=#{phaseId}")
34
+    List<TpBuilding> selectByAddress(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId);
35
+
36
+}

+ 46
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java ファイルの表示

@@ -30,4 +30,50 @@ public interface TpBuildingOwnerInfoMapper {
30 30
 
31 31
     //根据手机号查询当前信息
32 32
     TpBuildingOwnerInfo selectOwnerTel(@Param("ownerTel")String ownerTel);
33
+
34
+    /*
35
+     * 根据 小区,期,楼栋,单元,楼层,户号
36
+     * @param communityId
37
+     * @param phase
38
+     * @param building
39
+     * @param unit
40
+     * @param level
41
+     * @param roomNo
42
+     * @return
43
+     */
44
+    @ResultMap("BaseResultMap")
45
+    @Select("select * from tp_building_owner_info where community_id=#{communityId}" +
46
+            " and phase_id=#{phaseId} and building_id=#{buildingId} and unit_id=#{unitId}" +
47
+            " and level_id=#{levelId} and room_no_id=#{roomNoId}")
48
+    TpBuildingOwnerInfo selectCommunityIdAndAddress(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId,
49
+                                                    @Param("buildingId") Integer building, @Param("unitId") Integer unitId,
50
+                                                    @Param("levelId") Integer level, @Param("roomNoId") Integer roomNoId);
51
+
52
+    /*
53
+     * 根据 小区,期,楼栋,单元,楼层,户号, 手机号
54
+     * @param communityId
55
+     * @param phase
56
+     * @param building
57
+     * @param unit
58
+     * @param level
59
+     * @param roomNo
60
+     * @return
61
+     */
62
+    @ResultMap("BaseResultMap")
63
+    @Select("select * from tp_building_owner_info where community_id=#{communityId}" +
64
+            " and phase_id=#{phaseId} and building_id=#{buildingId} and unit_id=#{unitId}" +
65
+            " and level_id=#{levelId} and room_no_id=#{roomNoId} and owner_tel=#{phone}")
66
+    TpBuildingOwnerInfo selectCommunityAndAddressAndPhone(@Param("communityId") Integer communityId, @Param("phaseId") Integer phaseId,
67
+                                                          @Param("buildingId") Integer buildingId, @Param("unitId") Integer unitId,
68
+                                                          @Param("levelId") Integer levelId, @Param("roomNoId") Integer roomNoId,
69
+                                                          @Param("phone") String phone);
70
+
71
+    /**
72
+     * 根据 审核id 查询楼栋资料信息
73
+     * @param userVerifyId
74
+     * @return
75
+     */
76
+    @ResultMap("BaseResultMap")
77
+    @Select("select * from tp_building_owner_info where ta_user_verify_id = #{userVerifyId}")
78
+    TpBuildingOwnerInfo selectByUserVerifyId(@Param("userVerifyId") Integer userVerifyId);
33 79
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpCarouselSettingMapper.java ファイルの表示

@@ -20,6 +20,6 @@ public interface TpCarouselSettingMapper {
20 20
 
21 21
      Integer getcarouselNum(@Param("lease") String lease, @Param("communityId") Integer communityId);
22 22
 
23
-    Integer selectCarouselNum(String carouselType);
23
+    Integer selectCarouselNum(@Param("carouselType") String carouselType, @Param("communityId") Integer communityId);
24 24
 
25 25
 }

+ 19
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpConfigurationMapper.java ファイルの表示

@@ -0,0 +1,19 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpConfiguration;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+@Mapper
7
+public interface TpConfigurationMapper {
8
+    int deleteByPrimaryKey(Integer id);
9
+
10
+    int insert(TpConfiguration record);
11
+
12
+    int insertSelective(TpConfiguration record);
13
+
14
+    TpConfiguration selectByPrimaryKey(Integer id);
15
+
16
+    int updateByPrimaryKeySelective(TpConfiguration record);
17
+
18
+    int updateByPrimaryKey(TpConfiguration record);
19
+}

+ 68
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpEquipmentMapper.java ファイルの表示

@@ -0,0 +1,68 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpEquipment;
4
+import org.apache.ibatis.annotations.*;
5
+
6
+import java.util.List;
7
+
8
+@Mapper
9
+public interface TpEquipmentMapper {
10
+    int deleteByPrimaryKey(Integer id);
11
+
12
+    int insert(TpEquipment record);
13
+
14
+    int insertSelective(TpEquipment record);
15
+
16
+    TpEquipment selectByPrimaryKey(Integer id);
17
+
18
+    int updateByPrimaryKeySelective(TpEquipment record);
19
+
20
+    int updateByPrimaryKey(TpEquipment record);
21
+
22
+    /**
23
+     * 根据小区获取 监控列表
24
+     * @param communityId
25
+     * @return
26
+     */
27
+    @ResultMap("BaseResultMap")
28
+    @Select("select " +
29
+            "tm.*, " +
30
+            "(select configuration_value FROM tp_configuration WHERE id = tm.url_id) as monitoringUrl, " +
31
+            "(select configuration_value FROM tp_configuration WHERE id = tm.security_guard_tel_id) as securityGuardTel, " +
32
+            "(select configuration_value FROM tp_configuration WHERE id = tm.security_room_tel_id) as securityRoomTel, " +
33
+            "(select configuration_value FROM tp_configuration WHERE id = tm.address_id) as monitoringAddress " +
34
+            "FROM " +
35
+            "tp_equipment tm " +
36
+            "where tm.community_id = #{communityId} and tm.equipment_type = 1")
37
+    List<TpEquipment> selectByCommunityId(@Param("communityId") Integer communityId);
38
+
39
+    /**
40
+     * 根据小区 和 房间号 查询所有设备
41
+     * @param communityId
42
+     * @param roomNoId
43
+     * @return
44
+     */
45
+    @ResultMap("BaseResultMap")
46
+    @Select("select " +
47
+            "te.* " +
48
+            "from tp_room_no_equipment trne left join tp_equipment te " +
49
+            "on trne.equipment_id = te.id " +
50
+            "where trne.community_id=#{communityId} and trne.room_no_id=#{roomNoId} and te.equipment_type=#{equipmentType}")
51
+    List<TpEquipment> selectByCommunityIdAndRoomNoId(@Param("communityId") Integer communityId, @Param("roomNoId") Integer roomNoId, @Param("equipmentType") Integer equipmentType);
52
+
53
+
54
+    /**
55
+     * 根据小区 和 单元号 查询所有设备
56
+     * @param communityId
57
+     * @param unitId
58
+     * @return
59
+     */
60
+    @ResultMap("BaseResultMap")
61
+    @Select("select " +
62
+            "te.* " +
63
+            "from tp_unit_equipment trne left join tp_equipment te " +
64
+            "on trne.equipment_id = te.id " +
65
+            "where trne.community_id=#{communityId} and trne.unit_id=#{unitId} and te.equipment_type=#{equipmentType}")
66
+    List<TpEquipment> selectByCommunityIdAndUnitId(@Param("communityId") Integer communityId, @Param("unitId") Integer unitId, @Param("equipmentType") Integer equipmentType);
67
+
68
+}

+ 30
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpEquipmentTreeMapper.java ファイルの表示

@@ -0,0 +1,30 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpEquipmentTree;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.ResultMap;
6
+import org.apache.ibatis.annotations.Select;
7
+
8
+@Mapper
9
+public interface TpEquipmentTreeMapper {
10
+    int deleteByPrimaryKey(Integer id);
11
+
12
+    int insert(TpEquipmentTree record);
13
+
14
+    int insertSelective(TpEquipmentTree record);
15
+
16
+    TpEquipmentTree selectByPrimaryKey(Integer id);
17
+
18
+    int updateByPrimaryKeySelective(TpEquipmentTree record);
19
+
20
+    int updateByPrimaryKey(TpEquipmentTree record);
21
+
22
+    /**
23
+     * 根据小区查询
24
+     * @param communityId
25
+     * @return
26
+     */
27
+    @ResultMap("BaseResultMap")
28
+    @Select("select * from tp_equipment_tree where community_id = #{communityId}")
29
+    TpEquipmentTree selectByCommunityId(Integer communityId);
30
+}

+ 35
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpLevelMapper.java ファイルの表示

@@ -0,0 +1,35 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpLevel;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.ResultMap;
6
+import org.apache.ibatis.annotations.Select;
7
+
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TpLevelMapper {
12
+    int deleteByPrimaryKey(Integer id);
13
+
14
+    int insert(TpLevel record);
15
+
16
+    int insertSelective(TpLevel record);
17
+
18
+    TpLevel selectByPrimaryKey(Integer id);
19
+
20
+    int updateByPrimaryKeySelective(TpLevel record);
21
+
22
+    int updateByPrimaryKey(TpLevel record);
23
+
24
+    /**
25
+     * 根据 小区id,期id,楼栋id,单元id 进行查询
26
+     * @param communityId
27
+     * @param phaseId
28
+     * @param buildingId
29
+     * @param unitId
30
+     * @return
31
+     */
32
+    @ResultMap("BaseResultMap")
33
+    @Select("select * from tp_level where community_id=#{communityId} and phase_id=#{phaseId} and building_id=#{buildingId} and unit_id=#{unitId}")
34
+    List<TpLevel> selectByAddress(Integer communityId, Integer phaseId, Integer buildingId, Integer unitId);
35
+}

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpMessageMapper.java ファイルの表示

@@ -52,7 +52,7 @@ public interface TpMessageMapper {
52 52
      * @param map
53 53
      * @return
54 54
      */
55
-    TpMessage selectConditionsTpMessage(Map<String, Object> map);
55
+    TpMessage selectConditionsTpMessage(@Param("map")Map<String, Object> map);
56 56
 
57 57
     /**
58 58
      * 根据条件查询 消息代办

+ 33
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpPhaseMapper.java ファイルの表示

@@ -0,0 +1,33 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpPhase;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+import org.apache.ibatis.annotations.ResultMap;
7
+import org.apache.ibatis.annotations.Select;
8
+
9
+import java.util.List;
10
+
11
+@Mapper
12
+public interface TpPhaseMapper {
13
+    int deleteByPrimaryKey(Integer id);
14
+
15
+    int insert(TpPhase record);
16
+
17
+    int insertSelective(TpPhase record);
18
+
19
+    TpPhase selectByPrimaryKey(Integer id);
20
+
21
+    int updateByPrimaryKeySelective(TpPhase record);
22
+
23
+    int updateByPrimaryKey(TpPhase record);
24
+
25
+    /**
26
+     * 根据小区查询 期
27
+     * @param communityId
28
+     * @return
29
+     */
30
+    @ResultMap("BaseResultMap")
31
+    @Select("select * from tp_phase where community_id = #{communityId}")
32
+    List<TpPhase> selectByAddress(@Param("communityId") Integer communityId);
33
+}

+ 22
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpRoomNoEquipmentMapper.java ファイルの表示

@@ -0,0 +1,22 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpRoomNoEquipment;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+import java.util.List;
7
+
8
+@Mapper
9
+public interface TpRoomNoEquipmentMapper {
10
+    int deleteByPrimaryKey(Integer id);
11
+
12
+    int insert(TpRoomNoEquipment record);
13
+
14
+    int insertSelective(TpRoomNoEquipment record);
15
+
16
+    TpRoomNoEquipment selectByPrimaryKey(Integer id);
17
+
18
+    int updateByPrimaryKeySelective(TpRoomNoEquipment record);
19
+
20
+    int updateByPrimaryKey(TpRoomNoEquipment record);
21
+
22
+}

+ 31
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpRoomNoMapper.java ファイルの表示

@@ -0,0 +1,31 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpRoomNo;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.ResultMap;
6
+import org.apache.ibatis.annotations.Select;
7
+
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TpRoomNoMapper {
12
+    int deleteByPrimaryKey(Integer id);
13
+
14
+    int insert(TpRoomNo record);
15
+
16
+    int insertSelective(TpRoomNo record);
17
+
18
+    TpRoomNo selectByPrimaryKey(Integer id);
19
+
20
+    int updateByPrimaryKeySelective(TpRoomNo record);
21
+
22
+    int updateByPrimaryKey(TpRoomNo record);
23
+
24
+    @ResultMap("BaseResultMap")
25
+    @Select("select * from tp_room_no where community_id=#{communityId} " +
26
+            "and phase_id=#{phaseId} " +
27
+            "and building_id=#{buildingId} " +
28
+            "and unit_id=#{unitId} " +
29
+            "and level_id=#{levelId}")
30
+    List<TpRoomNo> selectByAddress(Integer communityId, Integer phaseId, Integer buildingId, Integer unitId, Integer levelId);
31
+}

+ 2
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTicketMapper.java ファイルの表示

@@ -47,4 +47,6 @@ public interface TpTicketMapper {
47 47
     TpTicket getTicketTpUserId(@Param("ticketId") Integer ticketId, @Param("communityId") Integer communityId);
48 48
 
49 49
     Integer selectRecordStatus(@Param("communityId") Integer communityId, @Param("ticketId")Integer ticketId);
50
+
51
+    TpTicket selectTpTicketName(@Param("communityId")Integer communityId, @Param("type")String type, @Param("ticketTitle")String ticketTitle);
50 52
 }

+ 11
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionMapper.java ファイルの表示

@@ -4,6 +4,7 @@ import com.community.huiju.model.TpTransaction;
4 4
 import org.apache.ibatis.annotations.Mapper;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7
+import java.util.Date;
7 8
 import java.util.List;
8 9
 import java.util.Map;
9 10
 
@@ -23,7 +24,7 @@ public interface TpTransactionMapper {
23 24
 
24 25
     List<TpTransaction> findAllTransaction(@Param("communityId") Integer communityId, @Param("transactionTitle") String transactionTitle, @Param("type") String type);
25 26
 
26
-    List<TpTransaction> selectTransaction(@Param("userId")Integer userId, @Param("communityId")Integer communityId,@Param("type") Integer type);
27
+    List<TpTransaction> selectTransaction(@Param("id")Integer userId, @Param("communityId")Integer communityId,@Param("type") Integer type);
27 28
 
28 29
     void updateTransaction(@Param("id")Integer id, @Param("transactionTitle")String transactionTitle, @Param("transactionContent")String transactionContent, @Param("userId")Integer userId);
29 30
 
@@ -31,5 +32,13 @@ public interface TpTransactionMapper {
31 32
 	
32 33
 	List<Map<String, Object>> getReportReasons();
33 34
     
34
-    int saveReportReason(@Param("userId") Integer userId,@Param("communityId") Integer communityId,@Param("transactionId") Integer transactionId,@Param("reportReasonId") String reportReasonId);
35
+    int saveReportReason(@Param("userId") Integer userId, @Param("communityId") Integer communityId, @Param("transactionId") Integer transactionId, @Param("reportReasonId") String reportReasonId, @Param("createDate") Date createDate);
36
+
37
+    /**
38
+     * 查询的当前用户自己的所有帖子
39
+     * @param id
40
+     * @param communityId
41
+     * @return
42
+     */
43
+    List<TpTransaction> getUserTransactionList(@Param("id") Integer id, @Param("communityId")Integer communityId);
35 44
 }

+ 11
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionReplyMapper.java ファイルの表示

@@ -21,10 +21,19 @@ public interface TpTransactionReplyMapper {
21 21
     int updateByPrimaryKey(TpTransactionReply record);
22 22
 
23 23
     /**
24
-     * 根据 小区id 和 帖子id
24
+     * 当前帖子评论列表
25 25
      * @param communityId
26 26
      * @param transactionId
27
+     * @param userID
28
+     * @param founderUserID
27 29
      * @return
28 30
      */
29
-    List<TpTransactionReply> getCommunityIdAndTransactionId(@Param("communityId") Integer communityId, @Param("transactionId") Integer transactionId);
31
+    List<TpTransactionReply> getCommunityIdAndTransactionId(@Param("communityId") Integer communityId, @Param("transactionId") Integer transactionId,@Param("userID") Integer userID,@Param("founderUserID") Integer founderUserID,@Param("type")Integer type, @Param("roomNoName")String roomNoName);
32
+
33
+    /**
34
+     * 查询我回复别人的帖子
35
+     * @param id
36
+     * @return
37
+     */
38
+    List<TpTransactionReply> selectUserTransactionReply(Integer id);
30 39
 }

+ 19
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpUnitEquipmentMapper.java ファイルの表示

@@ -0,0 +1,19 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpUnitEquipment;
4
+import org.apache.ibatis.annotations.Mapper;
5
+
6
+@Mapper
7
+public interface TpUnitEquipmentMapper {
8
+    int deleteByPrimaryKey(Integer id);
9
+
10
+    int insert(TpUnitEquipment record);
11
+
12
+    int insertSelective(TpUnitEquipment record);
13
+
14
+    TpUnitEquipment selectByPrimaryKey(Integer id);
15
+
16
+    int updateByPrimaryKeySelective(TpUnitEquipment record);
17
+
18
+    int updateByPrimaryKey(TpUnitEquipment record);
19
+}

+ 34
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpUnitMapper.java ファイルの表示

@@ -0,0 +1,34 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TpUnit;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.ResultMap;
6
+import org.apache.ibatis.annotations.Select;
7
+
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TpUnitMapper {
12
+    int deleteByPrimaryKey(Integer id);
13
+
14
+    int insert(TpUnit record);
15
+
16
+    int insertSelective(TpUnit record);
17
+
18
+    TpUnit selectByPrimaryKey(Integer id);
19
+
20
+    int updateByPrimaryKeySelective(TpUnit record);
21
+
22
+    int updateByPrimaryKey(TpUnit record);
23
+
24
+    /**
25
+     * 根据 小区id,期id,楼栋id 查询
26
+     * @param communityId
27
+     * @param phaseId
28
+     * @param buildingId
29
+     * @return
30
+     */
31
+    @ResultMap("BaseResultMap")
32
+    @Select("select * from tp_unit where community_id=#{communityId} and phase_id=#{phaseId} and building_id=#{buildingId}")
33
+    List<TpUnit> selectByAddress(Integer communityId, Integer phaseId, Integer buildingId);
34
+}

+ 75
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/enums/UserVerifyEnum.java ファイルの表示

@@ -0,0 +1,75 @@
1
+package com.community.huiju.enums;
2
+
3
+
4
+/**
5
+ * 楼栋资料库 枚举
6
+ * @author weiximei
7
+ */
8
+public enum UserVerifyEnum {
9
+
10
+    NO_AUDIT_REAL_ESTATE("1000", "无关联房产"),
11
+
12
+    A_AUDIT_REAL_ESTATE("1001", "关联一个审核通过的房产"),
13
+
14
+    A_TO_AUDIT_REAL_ESTATE("1002", "关联一个待审核房产"),
15
+
16
+    A_AUDIT_FAILED_REAL_ESTATE("1003", "关联一个审核未通过房产"),
17
+
18
+    A_MULTIPLE_REAL_ESTATE("1004", "有多个关联房产"),
19
+
20
+    /** 关联房产的时候,验证是否可以选择业主进行绑定 **/
21
+    NO_OWNER("1005", "该房产,暂无审核通过的业主!"),
22
+
23
+    /** 社交授权登录的时候 **/
24
+    NO_ACCOUNT("1006", "无关联账号!"),
25
+
26
+    /** 社交授权登录 关联手机号账号未注册 **/
27
+    NO_UNREGISTERED("1007", "未注册!"),
28
+    ;
29
+
30
+    UserVerifyEnum(String code, String msg) {
31
+        this.code = code;
32
+        this.msg = msg;
33
+    }
34
+
35
+    private String code;
36
+
37
+    private String msg;
38
+
39
+    public String getCode() {
40
+        return code;
41
+    }
42
+
43
+    public void setCode(String code) {
44
+        this.code = code;
45
+    }
46
+
47
+    public String getMsg() {
48
+        return msg;
49
+    }
50
+
51
+    public void setMsg(String msg) {
52
+        this.msg = msg;
53
+    }
54
+
55
+
56
+    public static String getMsg(String code) {
57
+        String message = "";
58
+        if ("1000".equals(code)) {
59
+            message = NO_AUDIT_REAL_ESTATE.getMsg();
60
+        } else if ("1001".equals(code)) {
61
+            message = A_AUDIT_REAL_ESTATE.getMsg();
62
+        } else if ("1002".equals(code)) {
63
+            message = A_TO_AUDIT_REAL_ESTATE.getMsg();
64
+        } else if ("1003".equals(code)) {
65
+            message = A_AUDIT_FAILED_REAL_ESTATE.getMsg();
66
+        } else if ("1004".equals(code)) {
67
+            message = A_MULTIPLE_REAL_ESTATE.getMsg();
68
+        }
69
+
70
+        return message;
71
+    }
72
+
73
+}
74
+
75
+

+ 32
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/log/LogAnnotation.java ファイルの表示

@@ -0,0 +1,32 @@
1
+package com.community.huiju.log;
2
+
3
+import java.lang.annotation.*;
4
+
5
+/**
6
+ * 日志注解
7
+ * @author weiximei
8
+ */
9
+@Retention(RetentionPolicy.RUNTIME) // 在运行时使用
10
+@Target({ ElementType.METHOD }) // 在方法上使用
11
+@Documented
12
+public @interface LogAnnotation {
13
+
14
+    /**
15
+     * 日志类型
16
+     * @return
17
+     */
18
+    LogEnums value() default LogEnums.NOT;
19
+
20
+    /**
21
+     * 是否记录
22
+     * @return
23
+     */
24
+    boolean record() default true;
25
+
26
+    /**
27
+     * 别名, 作为注释用
28
+     * @return
29
+     */
30
+    String alias() default "";
31
+
32
+}

+ 43
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/log/LogEnums.java ファイルの表示

@@ -0,0 +1,43 @@
1
+package com.community.huiju.log;
2
+
3
+/**
4
+ * 日志类型
5
+ *
6
+ * @author weiximei
7
+ */
8
+public enum LogEnums {
9
+
10
+    NOT(8000, "无类型"),
11
+
12
+    DA_SU(8001, "大苏")
13
+
14
+    ;
15
+
16
+    private Integer code;
17
+
18
+    private String value;
19
+
20
+
21
+    LogEnums(Integer code, String value) {
22
+        this.code = code;
23
+        this.value = value;
24
+    }
25
+
26
+    public Integer getCode() {
27
+        return code;
28
+    }
29
+
30
+    public void setCode(Integer code) {
31
+        this.code = code;
32
+    }
33
+
34
+    public String getValue() {
35
+        return value;
36
+    }
37
+
38
+    public void setValue(String value) {
39
+        this.value = value;
40
+    }
41
+
42
+
43
+}

+ 101
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/log/LogFactory.java ファイルの表示

@@ -0,0 +1,101 @@
1
+package com.community.huiju.log;
2
+
3
+import java.io.File;
4
+import java.io.RandomAccessFile;
5
+import java.nio.ByteBuffer;
6
+import java.nio.channels.FileChannel;
7
+import java.nio.channels.FileLock;
8
+import java.time.LocalDate;
9
+import java.time.LocalDateTime;
10
+import java.time.format.DateTimeFormatter;
11
+import java.util.TimerTask;
12
+
13
+/**
14
+ * 日志工厂
15
+ * @author weiximei
16
+ */
17
+public class LogFactory {
18
+
19
+    public static File getFile() {
20
+        LocalDate localDate = LocalDate.now();
21
+        String pathMkdir = "";
22
+
23
+        String os = System.getProperty("os.name");
24
+        if(os.toLowerCase().startsWith("win")){
25
+            pathMkdir = "E:" + File.separator + "log" + File.separator + "app-log" + File.separator + localDate.getYear() + "-" + localDate.getMonthValue() + "-" + localDate.getDayOfMonth();
26
+        } else {
27
+            pathMkdir = "/home/fxf/smart-community" + File.separator + "log" + File.separator + "app-log" + File.separator + localDate.getYear() + "-" + localDate.getMonthValue() + "-" + localDate.getDayOfMonth();
28
+        }
29
+
30
+        File file = new File(pathMkdir);
31
+        if (!file.exists()) {
32
+            file.mkdirs();
33
+        }
34
+        file = new File(pathMkdir + File.separator + "app-log.log");
35
+
36
+        return file;
37
+    }
38
+
39
+    /**
40
+     * 记录请求参数和返回值
41
+     * @param parameters
42
+     * @param returnValue
43
+     * @return
44
+     */
45
+    public static TimerTask parametersAndReturn(String parameters, String returnValue){
46
+        return new TimerTask() {
47
+            @Override
48
+            public void run() {
49
+
50
+                RandomAccessFile accessFile = null;
51
+                FileChannel fileChannel = null;
52
+                FileLock fileLock = null;
53
+                try {
54
+                    // 获取这个文件的读和写的权限
55
+                    accessFile = new RandomAccessFile(getFile(), "rw");
56
+                    // 文件通道
57
+                    fileChannel = accessFile.getChannel();
58
+                    fileLock = null;
59
+                    while (true) {
60
+                        try {
61
+                            // 获取锁,如果失败,继续尝试
62
+                            fileLock = fileChannel.tryLock();
63
+                            break;
64
+                        } catch (Exception e) {
65
+                            Thread.sleep(100);
66
+                        }
67
+                    }
68
+
69
+                    // 获取当前这个文件的大小
70
+                    long length = accessFile.length();
71
+                    // 设置写入的指针, 设置到这个文件的末尾
72
+                    accessFile.seek(length);
73
+                    // 开始写入文件
74
+                    LocalDateTime localDateTime = LocalDateTime.now();
75
+                    DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss");
76
+                    String str = dateTimeFormatter.format(localDateTime) + " === " + Thread.currentThread().getName() + "  : " + parameters + "\n";
77
+                    fileChannel.write(ByteBuffer.wrap(str.getBytes()));
78
+                    str = dateTimeFormatter.format(localDateTime) + " === " + Thread.currentThread().getName() + "  : " + returnValue + "\n";
79
+                    fileChannel.write(ByteBuffer.wrap(str.getBytes()));
80
+
81
+                } catch (Exception e) {
82
+                    e.printStackTrace();
83
+                } finally {
84
+                    if (fileLock != null && fileChannel != null && accessFile != null) {
85
+                        // 释放锁
86
+                        try {
87
+                            fileLock.release();
88
+                            fileChannel.close();
89
+                            accessFile.close();
90
+                        } catch (Exception e) {
91
+                            e.printStackTrace();
92
+                        }
93
+                    }
94
+                }
95
+
96
+
97
+            }
98
+        };
99
+    }
100
+
101
+}

+ 46
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/log/LogFileManager.java ファイルの表示

@@ -0,0 +1,46 @@
1
+package com.community.huiju.log;
2
+
3
+import java.util.TimerTask;
4
+import java.util.concurrent.ScheduledThreadPoolExecutor;
5
+
6
+/**
7
+ * 日志文件记录
8
+ * @author weiximei
9
+ */
10
+public class LogFileManager {
11
+
12
+    // 记录日志的线程池
13
+    private ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(10);
14
+
15
+    private LogFileManager() {}
16
+
17
+    public static LogFileManager getInstance() {
18
+        return LogSingleton.INSTANCE.getInstance();
19
+    }
20
+
21
+    /**
22
+     * 记录日志
23
+     * @param timerTask 任务
24
+     */
25
+    public void executeLog(TimerTask timerTask){
26
+        // 日志记录
27
+        scheduledThreadPoolExecutor.execute(timerTask);
28
+    }
29
+
30
+    /**
31
+     * 枚举
32
+     */
33
+    private static enum LogSingleton {
34
+        INSTANCE;
35
+
36
+        private LogFileManager logFileManager;
37
+        private LogSingleton() {
38
+            logFileManager = new LogFileManager();
39
+        }
40
+
41
+        public LogFileManager getInstance() {
42
+            return logFileManager;
43
+        }
44
+
45
+    }
46
+}

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaFace.java ファイルの表示

@@ -19,9 +19,9 @@ public class TaFace {
19 19
     private Integer communityId;
20 20
 
21 21
     /**
22
-     * 用户ID
22
+     * 用户审核 ID
23 23
      */
24
-    private Integer taUserId;
24
+    private Integer taUserVerifyId;
25 25
 
26 26
     /**
27 27
      *图片

+ 57
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUser.java ファイルの表示

@@ -1,6 +1,7 @@
1 1
 package com.community.huiju.model;
2 2
 
3 3
 import java.util.Date;
4
+import java.util.List;
4 5
 
5 6
 public class TaUser {
6 7
     private Integer id;
@@ -29,6 +30,9 @@ public class TaUser {
29 30
 
30 31
     private String acceptAgreementStatus;
31 32
 
33
+    /**
34
+     * 0 是未认证    1是认证通过   2是已作废 3 已被拉黑
35
+     */
32 36
     private String verifyStatus;
33 37
 
34 38
     private Integer createUser;
@@ -60,6 +64,27 @@ public class TaUser {
60 64
     // 海康人员编号
61 65
     private Long hkPersonNo;
62 66
 
67
+    private String openid;
68
+
69
+    private String nickname;
70
+
71
+    // 当前用户下的多套房产
72
+    private List<TpBuildingOwnerInfo> houseList;
73
+
74
+    /** 审核id **/
75
+    private Integer userVerifyId;
76
+
77
+    /** 审核 状态 **/
78
+    private String userVerifyStatus;
79
+
80
+    public void setHouseList(List<TpBuildingOwnerInfo> houseList) {
81
+        this.houseList = houseList;
82
+    }
83
+
84
+    public List<TpBuildingOwnerInfo> getHouseList() {
85
+        return houseList;
86
+    }
87
+
63 88
     public Integer getId() {
64 89
         return id;
65 90
     }
@@ -259,4 +284,36 @@ public class TaUser {
259 284
     public void setIdCard(String idCard) {
260 285
         this.idCard = idCard;
261 286
     }
287
+
288
+    public String getOpenid() {
289
+        return openid;
290
+    }
291
+
292
+    public void setOpenid(String openid) {
293
+        this.openid = openid == null ? null : openid.trim();
294
+    }
295
+
296
+    public String getNickname() {
297
+        return nickname;
298
+    }
299
+
300
+    public void setNickname(String nickname) {
301
+        this.nickname = nickname == null ? null : nickname.trim();
302
+    }
303
+
304
+    public Integer getUserVerifyId() {
305
+        return userVerifyId;
306
+    }
307
+
308
+    public void setUserVerifyId(Integer userVerifyId) {
309
+        this.userVerifyId = userVerifyId;
310
+    }
311
+
312
+    public String getUserVerifyStatus() {
313
+        return userVerifyStatus;
314
+    }
315
+
316
+    public void setUserVerifyStatus(String userVerifyStatus) {
317
+        this.userVerifyStatus = userVerifyStatus;
318
+    }
262 319
 }

+ 254
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaUserVerify.java ファイルの表示

@@ -0,0 +1,254 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TaUserVerify {
6
+    private Integer id;
7
+
8
+    private Integer userId;
9
+
10
+    private Integer communityId;
11
+
12
+    private Integer roleId;
13
+
14
+    private Integer phaseId;
15
+
16
+    private String phaseName;
17
+
18
+    private Integer buildingId;
19
+
20
+    private String buildingName;
21
+
22
+    private Integer unitId;
23
+
24
+    private String unitName;
25
+
26
+    private Integer levelId;
27
+
28
+    private String levelName;
29
+
30
+    /** 就是楼栋资料库的id **/
31
+    private Integer roomNoId;
32
+
33
+    private String roomNoName;
34
+
35
+    private String verifyStatus;
36
+
37
+    private Date createDate;
38
+
39
+    private String verifyName;
40
+
41
+    private String remark;
42
+
43
+    //  ------------------
44
+
45
+    /**
46
+     * 角色名称
47
+     */
48
+    private String roleName;
49
+
50
+    /**
51
+     * 业主名称
52
+     */
53
+    private String ownerName;
54
+
55
+    /**
56
+     * 小区名称
57
+     */
58
+    private String communityName;
59
+
60
+    /**
61
+     * 小区 省市区
62
+     */
63
+
64
+    private String communityAddress;
65
+
66
+    /**
67
+     * 审核结果的url
68
+     */
69
+    private String verifyUrl;
70
+
71
+    public Integer getId() {
72
+        return id;
73
+    }
74
+
75
+    public void setId(Integer id) {
76
+        this.id = id;
77
+    }
78
+
79
+    public Integer getUserId() {
80
+        return userId;
81
+    }
82
+
83
+    public void setUserId(Integer userId) {
84
+        this.userId = userId;
85
+    }
86
+
87
+    public Integer getCommunityId() {
88
+        return communityId;
89
+    }
90
+
91
+    public void setCommunityId(Integer communityId) {
92
+        this.communityId = communityId;
93
+    }
94
+
95
+    public Integer getRoleId() {
96
+        return roleId;
97
+    }
98
+
99
+    public void setRoleId(Integer roleId) {
100
+        this.roleId = roleId;
101
+    }
102
+
103
+    public Integer getPhaseId() {
104
+        return phaseId;
105
+    }
106
+
107
+    public void setPhaseId(Integer phaseId) {
108
+        this.phaseId = phaseId;
109
+    }
110
+
111
+    public String getPhaseName() {
112
+        return phaseName;
113
+    }
114
+
115
+    public void setPhaseName(String phaseName) {
116
+        this.phaseName = phaseName;
117
+    }
118
+
119
+    public Integer getBuildingId() {
120
+        return buildingId;
121
+    }
122
+
123
+    public void setBuildingId(Integer buildingId) {
124
+        this.buildingId = buildingId;
125
+    }
126
+
127
+    public String getBuildingName() {
128
+        return buildingName;
129
+    }
130
+
131
+    public void setBuildingName(String buildingName) {
132
+        this.buildingName = buildingName;
133
+    }
134
+
135
+    public Integer getUnitId() {
136
+        return unitId;
137
+    }
138
+
139
+    public void setUnitId(Integer unitId) {
140
+        this.unitId = unitId;
141
+    }
142
+
143
+    public String getUnitName() {
144
+        return unitName;
145
+    }
146
+
147
+    public void setUnitName(String unitName) {
148
+        this.unitName = unitName;
149
+    }
150
+
151
+    public Integer getLevelId() {
152
+        return levelId;
153
+    }
154
+
155
+    public void setLevelId(Integer levelId) {
156
+        this.levelId = levelId;
157
+    }
158
+
159
+    public String getLevelName() {
160
+        return levelName;
161
+    }
162
+
163
+    public void setLevelName(String levelName) {
164
+        this.levelName = levelName;
165
+    }
166
+
167
+    public Integer getRoomNoId() {
168
+        return roomNoId;
169
+    }
170
+
171
+    public void setRoomNoId(Integer roomNoId) {
172
+        this.roomNoId = roomNoId;
173
+    }
174
+
175
+    public String getRoomNoName() {
176
+        return roomNoName;
177
+    }
178
+
179
+    public void setRoomNoName(String roomNoName) {
180
+        this.roomNoName = roomNoName;
181
+    }
182
+
183
+    public String getVerifyStatus() {
184
+        return verifyStatus;
185
+    }
186
+
187
+    public void setVerifyStatus(String verifyStatus) {
188
+        this.verifyStatus = verifyStatus;
189
+    }
190
+
191
+    public Date getCreateDate() {
192
+        return createDate;
193
+    }
194
+
195
+    public void setCreateDate(Date createDate) {
196
+        this.createDate = createDate;
197
+    }
198
+
199
+    public String getVerifyName() {
200
+        return verifyName;
201
+    }
202
+
203
+    public void setVerifyName(String verifyName) {
204
+        this.verifyName = verifyName;
205
+    }
206
+
207
+    public String getRoleName() {
208
+        return roleName;
209
+    }
210
+
211
+    public void setRoleName(String roleName) {
212
+        this.roleName = roleName;
213
+    }
214
+
215
+    public String getOwnerName() {
216
+        return ownerName;
217
+    }
218
+
219
+    public void setOwnerName(String ownerName) {
220
+        this.ownerName = ownerName;
221
+    }
222
+
223
+    public String getCommunityName() {
224
+        return communityName;
225
+    }
226
+
227
+    public void setCommunityName(String communityName) {
228
+        this.communityName = communityName;
229
+    }
230
+
231
+    public String getCommunityAddress() {
232
+        return communityAddress;
233
+    }
234
+
235
+    public void setCommunityAddress(String communityAddress) {
236
+        this.communityAddress = communityAddress;
237
+    }
238
+
239
+    public String getRemark() {
240
+        return remark;
241
+    }
242
+
243
+    public void setRemark(String remark) {
244
+        this.remark = remark;
245
+    }
246
+
247
+    public String getVerifyUrl() {
248
+        return verifyUrl;
249
+    }
250
+
251
+    public void setVerifyUrl(String verifyUrl) {
252
+        this.verifyUrl = verifyUrl;
253
+    }
254
+}

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaVisitor.java ファイルの表示

@@ -163,4 +163,5 @@ public class TaVisitor {
163 163
     public void setCarLicense(List<String> carLicense) {
164 164
         this.carLicense = carLicense;
165 165
     }
166
+
166 167
 }

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/ToCommunities.java ファイルの表示

@@ -17,6 +17,11 @@ public class ToCommunities {
17 17
 
18 18
     private String latitude;
19 19
 
20
+    /**
21
+     * 小区地址
22
+     */
23
+    private String communityAddress;
24
+
20 25
     public Integer getId() {
21 26
         return id;
22 27
     }
@@ -80,4 +85,12 @@ public class ToCommunities {
80 85
     public void setLatitude(String latitude) {
81 86
         this.latitude = latitude == null ? null : latitude.trim();
82 87
     }
88
+
89
+    public String getCommunityAddress() {
90
+        return communityAddress;
91
+    }
92
+
93
+    public void setCommunityAddress(String communityAddress) {
94
+        this.communityAddress = communityAddress;
95
+    }
83 96
 }

+ 14
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivity.java ファイルの表示

@@ -1,5 +1,6 @@
1 1
 package com.community.huiju.model;
2 2
 
3
+import java.util.ArrayList;
3 4
 import java.util.Date;
4 5
 import java.util.List;
5 6
 
@@ -46,6 +47,19 @@ public class TpActivity {
46 47
      * 报名状态
47 48
      */
48 49
     private String signStatus;
50
+    /**
51
+     * 签到状态
52
+     * 0已签到,1未签到
53
+     */
54
+    private  Integer signType;
55
+
56
+    public void setSignType(Integer signType) {
57
+        this.signType = signType;
58
+    }
59
+
60
+    public Integer getSignType() {
61
+        return signType;
62
+    }
49 63
 
50 64
     private List<String> imgList;
51 65
 

+ 95
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivitySignIn.java ファイルの表示

@@ -0,0 +1,95 @@
1
+package com.community.huiju.model;
2
+
3
+
4
+import java.util.Date;
5
+public class TpActivitySignIn {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer activityId;
11
+
12
+    private String userName;
13
+
14
+    private String userRole;
15
+
16
+    private String buildingInfo;
17
+
18
+    private Integer taUserId;
19
+
20
+    private String userTel;
21
+
22
+    private Date createDate;
23
+
24
+    public Integer getId() {
25
+        return id;
26
+    }
27
+
28
+    public void setId(Integer id) {
29
+        this.id = id;
30
+    }
31
+
32
+    public Integer getCommunityId() {
33
+        return communityId;
34
+    }
35
+
36
+    public void setCommunityId(Integer communityId) {
37
+        this.communityId = communityId;
38
+    }
39
+
40
+    public Integer getActivityId() {
41
+        return activityId;
42
+    }
43
+
44
+    public void setActivityId(Integer activityId) {
45
+        this.activityId = activityId;
46
+    }
47
+
48
+    public String getUserName() {
49
+        return userName;
50
+    }
51
+
52
+    public void setUserName(String userName) {
53
+        this.userName = userName == null ? null : userName.trim();
54
+    }
55
+
56
+    public String getUserRole() {
57
+        return userRole;
58
+    }
59
+
60
+    public void setUserRole(String userRole) {
61
+        this.userRole = userRole == null ? null : userRole.trim();
62
+    }
63
+
64
+    public String getBuildingInfo() {
65
+        return buildingInfo;
66
+    }
67
+
68
+    public void setBuildingInfo(String buildingInfo) {
69
+        this.buildingInfo = buildingInfo == null ? null : buildingInfo.trim();
70
+    }
71
+
72
+    public Integer getTaUserId() {
73
+        return taUserId;
74
+    }
75
+
76
+    public void setTaUserId(Integer taUserId) {
77
+        this.taUserId = taUserId;
78
+    }
79
+
80
+    public String getUserTel() {
81
+        return userTel;
82
+    }
83
+
84
+    public void setUserTel(String userTel) {
85
+        this.userTel = userTel == null ? null : userTel.trim();
86
+    }
87
+
88
+    public Date getCreateDate() {
89
+        return createDate;
90
+    }
91
+
92
+    public void setCreateDate(Date createDate) {
93
+        this.createDate = createDate;
94
+    }
95
+}

+ 27
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivitySignup.java ファイルの表示

@@ -1,6 +1,7 @@
1 1
 package com.community.huiju.model;
2 2
 
3 3
 import java.util.Date;
4
+import java.util.List;
4 5
 
5 6
 public class TpActivitySignup {
6 7
     private Integer id;
@@ -15,6 +16,16 @@ public class TpActivitySignup {
15 16
 
16 17
     private String remark;
17 18
 
19
+    /**
20
+     * 住户地址
21
+     */
22
+    private String address;
23
+
24
+    /**
25
+     * 用户角色名称
26
+     */
27
+    private String userRole;
28
+
18 29
     public Integer getId() {
19 30
         return id;
20 31
     }
@@ -62,4 +73,20 @@ public class TpActivitySignup {
62 73
     public void setRemark(String remark) {
63 74
         this.remark = remark == null ? null : remark.trim();
64 75
     }
76
+
77
+    public String getAddress() {
78
+        return address;
79
+    }
80
+
81
+    public void setAddress(String address) {
82
+        this.address = address;
83
+    }
84
+
85
+    public String getUserRole() {
86
+        return userRole;
87
+    }
88
+
89
+    public void setUserRole(String userRole) {
90
+        this.userRole = userRole;
91
+    }
65 92
 }

+ 15
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBillInvoice.java ファイルの表示

@@ -42,6 +42,13 @@ public class TpBillInvoice {
42 42
      */
43 43
     private String payType;
44 44
 
45
+    // =================================
46
+
47
+    /**
48
+     * 转换后金额,用于支付
49
+     */
50
+    private Double sumPayPrice;
51
+
45 52
     public Integer getId() {
46 53
         return id;
47 54
     }
@@ -185,4 +192,12 @@ public class TpBillInvoice {
185 192
     public void setPayType(String payType) {
186 193
         this.payType = payType;
187 194
     }
195
+
196
+    public Double getSumPayPrice() {
197
+        return sumPayPrice;
198
+    }
199
+
200
+    public void setSumPayPrice(Double sumPayPrice) {
201
+        this.sumPayPrice = sumPayPrice;
202
+    }
188 203
 }

+ 148
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBillOrder.java ファイルの表示

@@ -0,0 +1,148 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+import java.util.List;
5
+
6
+public class TpBillOrder {
7
+    private Integer id;
8
+
9
+    private Integer communityId;
10
+
11
+    private Integer tpBillId;
12
+
13
+    private Integer tpBillInvoiceId;
14
+
15
+    private String orderBumber;
16
+
17
+    private Integer createUser;
18
+
19
+    private Date createDate;
20
+
21
+    private Integer updateUser;
22
+
23
+    private Date updateDate;
24
+
25
+    /**
26
+     *  0:未支付  1: 已支付 2: 正在支付中
27
+     */
28
+    private String orderStatus;
29
+
30
+    /**
31
+     * 缴费人手机号
32
+     */
33
+    private String payPhone;
34
+
35
+    /**
36
+     * 订单总额
37
+     */
38
+    private Double sumPrice;
39
+
40
+    /**
41
+     * 缴费单集合
42
+     */
43
+    private List<TpBillInvoice> billList;
44
+
45
+    public Integer getId() {
46
+        return id;
47
+    }
48
+
49
+    public void setId(Integer id) {
50
+        this.id = id;
51
+    }
52
+
53
+    public Integer getCommunityId() {
54
+        return communityId;
55
+    }
56
+
57
+    public void setCommunityId(Integer communityId) {
58
+        this.communityId = communityId;
59
+    }
60
+
61
+    public Integer getTpBillId() {
62
+        return tpBillId;
63
+    }
64
+
65
+    public void setTpBillId(Integer tpBillId) {
66
+        this.tpBillId = tpBillId;
67
+    }
68
+
69
+    public Integer getTpBillInvoiceId() {
70
+        return tpBillInvoiceId;
71
+    }
72
+
73
+    public void setTpBillInvoiceId(Integer tpBillInvoiceId) {
74
+        this.tpBillInvoiceId = tpBillInvoiceId;
75
+    }
76
+
77
+    public String getOrderBumber() {
78
+        return orderBumber;
79
+    }
80
+
81
+    public void setOrderBumber(String orderBumber) {
82
+        this.orderBumber = orderBumber == null ? null : orderBumber.trim();
83
+    }
84
+
85
+    public Integer getCreateUser() {
86
+        return createUser;
87
+    }
88
+
89
+    public void setCreateUser(Integer createUser) {
90
+        this.createUser = createUser;
91
+    }
92
+
93
+    public Date getCreateDate() {
94
+        return createDate;
95
+    }
96
+
97
+    public void setCreateDate(Date createDate) {
98
+        this.createDate = createDate;
99
+    }
100
+
101
+    public Integer getUpdateUser() {
102
+        return updateUser;
103
+    }
104
+
105
+    public void setUpdateUser(Integer updateUser) {
106
+        this.updateUser = updateUser;
107
+    }
108
+
109
+    public Date getUpdateDate() {
110
+        return updateDate;
111
+    }
112
+
113
+    public void setUpdateDate(Date updateDate) {
114
+        this.updateDate = updateDate;
115
+    }
116
+
117
+    public String getOrderStatus() {
118
+        return orderStatus;
119
+    }
120
+
121
+    public void setOrderStatus(String orderStatus) {
122
+        this.orderStatus = orderStatus;
123
+    }
124
+
125
+    public String getPayPhone() {
126
+        return payPhone;
127
+    }
128
+
129
+    public void setPayPhone(String payPhone) {
130
+        this.payPhone = payPhone;
131
+    }
132
+
133
+    public Double getSumPrice() {
134
+        return sumPrice;
135
+    }
136
+
137
+    public void setSumPrice(Double sumPrice) {
138
+        this.sumPrice = sumPrice;
139
+    }
140
+
141
+    public List<TpBillInvoice> getBillList() {
142
+        return billList;
143
+    }
144
+
145
+    public void setBillList(List<TpBillInvoice> billList) {
146
+        this.billList = billList;
147
+    }
148
+}

+ 75
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBuilding.java ファイルの表示

@@ -0,0 +1,75 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpBuilding {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer phaseId;
11
+
12
+    private String phaseName;
13
+
14
+    private String name;
15
+
16
+    private String sort;
17
+
18
+    private Date createDate;
19
+
20
+    public Integer getId() {
21
+        return id;
22
+    }
23
+
24
+    public void setId(Integer id) {
25
+        this.id = id;
26
+    }
27
+
28
+    public Integer getCommunityId() {
29
+        return communityId;
30
+    }
31
+
32
+    public void setCommunityId(Integer communityId) {
33
+        this.communityId = communityId;
34
+    }
35
+
36
+    public Integer getPhaseId() {
37
+        return phaseId;
38
+    }
39
+
40
+    public void setPhaseId(Integer phaseId) {
41
+        this.phaseId = phaseId;
42
+    }
43
+
44
+    public String getPhaseName() {
45
+        return phaseName;
46
+    }
47
+
48
+    public void setPhaseName(String phaseName) {
49
+        this.phaseName = phaseName;
50
+    }
51
+
52
+    public String getName() {
53
+        return name;
54
+    }
55
+
56
+    public void setName(String name) {
57
+        this.name = name;
58
+    }
59
+
60
+    public String getSort() {
61
+        return sort;
62
+    }
63
+
64
+    public void setSort(String sort) {
65
+        this.sort = sort;
66
+    }
67
+
68
+    public Date getCreateDate() {
69
+        return createDate;
70
+    }
71
+
72
+    public void setCreateDate(Date createDate) {
73
+        this.createDate = createDate;
74
+    }
75
+}

+ 101
- 32
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpBuildingOwnerInfo.java ファイルの表示

@@ -9,16 +9,25 @@ public class TpBuildingOwnerInfo {
9 9
 
10 10
     private String idCard;
11 11
 
12
-    // 期
13
-    private String phase;
12
+    private Integer phaseId;
14 13
 
15
-    private String building;
14
+    private String phaseName;
16 15
 
17
-    private String unit;
16
+    private Integer buildingId;
18 17
 
19
-    private String level;
18
+    private String buildingName;
20 19
 
21
-    private String roomNo;
20
+    private Integer unitId;
21
+
22
+    private String unitName;
23
+
24
+    private Integer levelId;
25
+
26
+    private String levelName;
27
+
28
+    private Integer roomNoId;
29
+
30
+    private String roomNoName;
22 31
 
23 32
     private String ownerName;
24 33
 
@@ -30,6 +39,8 @@ public class TpBuildingOwnerInfo {
30 39
 
31 40
     private String verifyStatus;
32 41
 
42
+    private String sort;
43
+
33 44
     private Integer createUser;
34 45
 
35 46
     private Date createDate;
@@ -38,6 +49,8 @@ public class TpBuildingOwnerInfo {
38 49
 
39 50
     private Date updateDate;
40 51
 
52
+    private Integer taUserVerifyId;
53
+
41 54
     public Integer getId() {
42 55
         return id;
43 56
     }
@@ -59,47 +72,87 @@ public class TpBuildingOwnerInfo {
59 72
     }
60 73
 
61 74
     public void setIdCard(String idCard) {
62
-        this.idCard = idCard == null ? null : idCard.trim();
75
+        this.idCard = idCard;
76
+    }
77
+
78
+    public Integer getPhaseId() {
79
+        return phaseId;
63 80
     }
64 81
 
65
-    public String getPhase() {
66
-        return phase;
82
+    public void setPhaseId(Integer phaseId) {
83
+        this.phaseId = phaseId;
67 84
     }
68 85
 
69
-    public void setPhase(String phase) {
70
-        this.phase = phase;
86
+    public String getPhaseName() {
87
+        return phaseName;
71 88
     }
72 89
 
73
-    public String getBuilding() {
74
-        return building;
90
+    public void setPhaseName(String phaseName) {
91
+        this.phaseName = phaseName;
75 92
     }
76 93
 
77
-    public void setBuilding(String building) {
78
-        this.building = building == null ? null : building.trim();
94
+    public Integer getBuildingId() {
95
+        return buildingId;
79 96
     }
80 97
 
81
-    public String getUnit() {
82
-        return unit;
98
+    public void setBuildingId(Integer buildingId) {
99
+        this.buildingId = buildingId;
83 100
     }
84 101
 
85
-    public void setUnit(String unit) {
86
-        this.unit = unit == null ? null : unit.trim();
102
+    public String getBuildingName() {
103
+        return buildingName;
87 104
     }
88 105
 
89
-    public String getLevel() {
90
-        return level;
106
+    public void setBuildingName(String buildingName) {
107
+        this.buildingName = buildingName;
91 108
     }
92 109
 
93
-    public void setLevel(String level) {
94
-        this.level = level == null ? null : level.trim();
110
+    public Integer getUnitId() {
111
+        return unitId;
95 112
     }
96 113
 
97
-    public String getRoomNo() {
98
-        return roomNo;
114
+    public void setUnitId(Integer unitId) {
115
+        this.unitId = unitId;
99 116
     }
100 117
 
101
-    public void setRoomNo(String roomNo) {
102
-        this.roomNo = roomNo == null ? null : roomNo.trim();
118
+    public String getUnitName() {
119
+        return unitName;
120
+    }
121
+
122
+    public void setUnitName(String unitName) {
123
+        this.unitName = unitName;
124
+    }
125
+
126
+    public Integer getLevelId() {
127
+        return levelId;
128
+    }
129
+
130
+    public void setLevelId(Integer levelId) {
131
+        this.levelId = levelId;
132
+    }
133
+
134
+    public String getLevelName() {
135
+        return levelName;
136
+    }
137
+
138
+    public void setLevelName(String levelName) {
139
+        this.levelName = levelName;
140
+    }
141
+
142
+    public Integer getRoomNoId() {
143
+        return roomNoId;
144
+    }
145
+
146
+    public void setRoomNoId(Integer roomNoId) {
147
+        this.roomNoId = roomNoId;
148
+    }
149
+
150
+    public String getRoomNoName() {
151
+        return roomNoName;
152
+    }
153
+
154
+    public void setRoomNoName(String roomNoName) {
155
+        this.roomNoName = roomNoName;
103 156
     }
104 157
 
105 158
     public String getOwnerName() {
@@ -107,7 +160,7 @@ public class TpBuildingOwnerInfo {
107 160
     }
108 161
 
109 162
     public void setOwnerName(String ownerName) {
110
-        this.ownerName = ownerName == null ? null : ownerName.trim();
163
+        this.ownerName = ownerName;
111 164
     }
112 165
 
113 166
     public String getOwnerTel() {
@@ -115,7 +168,7 @@ public class TpBuildingOwnerInfo {
115 168
     }
116 169
 
117 170
     public void setOwnerTel(String ownerTel) {
118
-        this.ownerTel = ownerTel == null ? null : ownerTel.trim();
171
+        this.ownerTel = ownerTel;
119 172
     }
120 173
 
121 174
     public String getGender() {
@@ -123,7 +176,7 @@ public class TpBuildingOwnerInfo {
123 176
     }
124 177
 
125 178
     public void setGender(String gender) {
126
-        this.gender = gender == null ? null : gender.trim();
179
+        this.gender = gender;
127 180
     }
128 181
 
129 182
     public String getPairStatus() {
@@ -131,7 +184,7 @@ public class TpBuildingOwnerInfo {
131 184
     }
132 185
 
133 186
     public void setPairStatus(String pairStatus) {
134
-        this.pairStatus = pairStatus == null ? null : pairStatus.trim();
187
+        this.pairStatus = pairStatus;
135 188
     }
136 189
 
137 190
     public String getVerifyStatus() {
@@ -139,7 +192,15 @@ public class TpBuildingOwnerInfo {
139 192
     }
140 193
 
141 194
     public void setVerifyStatus(String verifyStatus) {
142
-        this.verifyStatus = verifyStatus == null ? null : verifyStatus.trim();
195
+        this.verifyStatus = verifyStatus;
196
+    }
197
+
198
+    public String getSort() {
199
+        return sort;
200
+    }
201
+
202
+    public void setSort(String sort) {
203
+        this.sort = sort;
143 204
     }
144 205
 
145 206
     public Integer getCreateUser() {
@@ -173,4 +234,12 @@ public class TpBuildingOwnerInfo {
173 234
     public void setUpdateDate(Date updateDate) {
174 235
         this.updateDate = updateDate;
175 236
     }
237
+
238
+    public Integer getTaUserVerifyId() {
239
+        return taUserVerifyId;
240
+    }
241
+
242
+    public void setTaUserVerifyId(Integer taUserVerifyId) {
243
+        this.taUserVerifyId = taUserVerifyId;
244
+    }
176 245
 }

+ 125
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpConfiguration.java ファイルの表示

@@ -0,0 +1,125 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpConfiguration {
6
+    private Integer id;
7
+
8
+    private String key;
9
+
10
+    private String configurationName;
11
+
12
+    private Integer configurationType;
13
+
14
+    private String configurationValue;
15
+
16
+    private Date createTiem;
17
+
18
+    private Integer createUser;
19
+
20
+    private Date updateTime;
21
+
22
+    private Integer updateUser;
23
+
24
+    private Integer communityId;
25
+
26
+    private String dooruuid;
27
+
28
+    private String deviceuuid;
29
+
30
+    public Integer getId() {
31
+        return id;
32
+    }
33
+
34
+    public void setId(Integer id) {
35
+        this.id = id;
36
+    }
37
+
38
+    public String getKey() {
39
+        return key;
40
+    }
41
+
42
+    public void setKey(String key) {
43
+        this.key = key == null ? null : key.trim();
44
+    }
45
+
46
+    public String getConfigurationName() {
47
+        return configurationName;
48
+    }
49
+
50
+    public void setConfigurationName(String configurationName) {
51
+        this.configurationName = configurationName == null ? null : configurationName.trim();
52
+    }
53
+
54
+    public Integer getConfigurationType() {
55
+        return configurationType;
56
+    }
57
+
58
+    public void setConfigurationType(Integer configurationType) {
59
+        this.configurationType = configurationType;
60
+    }
61
+
62
+    public String getConfigurationValue() {
63
+        return configurationValue;
64
+    }
65
+
66
+    public void setConfigurationValue(String configurationValue) {
67
+        this.configurationValue = configurationValue == null ? null : configurationValue.trim();
68
+    }
69
+
70
+    public Date getCreateTiem() {
71
+        return createTiem;
72
+    }
73
+
74
+    public void setCreateTiem(Date createTiem) {
75
+        this.createTiem = createTiem;
76
+    }
77
+
78
+    public Integer getCreateUser() {
79
+        return createUser;
80
+    }
81
+
82
+    public void setCreateUser(Integer createUser) {
83
+        this.createUser = createUser;
84
+    }
85
+
86
+    public Date getUpdateTime() {
87
+        return updateTime;
88
+    }
89
+
90
+    public void setUpdateTime(Date updateTime) {
91
+        this.updateTime = updateTime;
92
+    }
93
+
94
+    public Integer getUpdateUser() {
95
+        return updateUser;
96
+    }
97
+
98
+    public void setUpdateUser(Integer updateUser) {
99
+        this.updateUser = updateUser;
100
+    }
101
+
102
+    public Integer getCommunityId() {
103
+        return communityId;
104
+    }
105
+
106
+    public void setCommunityId(Integer communityId) {
107
+        this.communityId = communityId;
108
+    }
109
+
110
+    public String getDooruuid() {
111
+        return dooruuid;
112
+    }
113
+
114
+    public void setDooruuid(String dooruuid) {
115
+        this.dooruuid = dooruuid == null ? null : dooruuid.trim();
116
+    }
117
+
118
+    public String getDeviceuuid() {
119
+        return deviceuuid;
120
+    }
121
+
122
+    public void setDeviceuuid(String deviceuuid) {
123
+        this.deviceuuid = deviceuuid == null ? null : deviceuuid.trim();
124
+    }
125
+}

+ 260
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpEquipment.java ファイルの表示

@@ -0,0 +1,260 @@
1
+package com.community.huiju.model;
2
+
3
+import com.alibaba.fastjson.annotation.JSONField;
4
+
5
+import java.util.Date;
6
+
7
+public class TpEquipment {
8
+    private Integer id;
9
+
10
+    private Integer urlId;
11
+
12
+    private Integer communityId;
13
+
14
+    private Integer securityGuardTelId;
15
+
16
+    private Integer securityRoomTelId;
17
+
18
+    private Integer addressId;
19
+
20
+    private Date createTime;
21
+
22
+    private Integer createUser;
23
+
24
+    private Date updateTime;
25
+
26
+    private Integer updateUser;
27
+
28
+    private Integer uuidId;
29
+
30
+    private String equipmentType;
31
+
32
+    private Integer equipmentTreeId;
33
+
34
+    /**
35
+     * 这个值不返回给客户端
36
+     */
37
+    @JSONField(serialize = false)
38
+    private String appkey;
39
+
40
+    /**
41
+     * 这个值不返回给客户端
42
+     */
43
+    @JSONField(serialize = false)
44
+    private String secret;
45
+
46
+    /**
47
+     * 这个值不返回给客户端
48
+     */
49
+    @JSONField(serialize = false)
50
+    private String opUserUuid;
51
+
52
+    /**
53
+     * 这个值不返回给客户端
54
+     */
55
+    @JSONField(serialize = false)
56
+    private String httpServer;
57
+
58
+    /**
59
+     * 这个值不返回给客户端
60
+     */
61
+    @JSONField(serialize = false)
62
+    private String unitUuids;
63
+    // ====================================
64
+
65
+    /**
66
+     * 监控url
67
+     */
68
+    private String monitoringUrl;
69
+
70
+    /**
71
+     * 保卫人员电话
72
+     */
73
+    private String securityGuardTel;
74
+
75
+    /**
76
+     * 安保室电话
77
+     */
78
+    private String securityRoomTel;
79
+
80
+    /**
81
+     * 监控地址
82
+     */
83
+    private String monitoringAddress;
84
+
85
+    public Integer getId() {
86
+        return id;
87
+    }
88
+
89
+    public void setId(Integer id) {
90
+        this.id = id;
91
+    }
92
+
93
+    public Integer getUrlId() {
94
+        return urlId;
95
+    }
96
+
97
+    public void setUrlId(Integer urlId) {
98
+        this.urlId = urlId;
99
+    }
100
+
101
+    public Integer getCommunityId() {
102
+        return communityId;
103
+    }
104
+
105
+    public void setCommunityId(Integer communityId) {
106
+        this.communityId = communityId;
107
+    }
108
+
109
+    public Integer getSecurityGuardTelId() {
110
+        return securityGuardTelId;
111
+    }
112
+
113
+    public void setSecurityGuardTelId(Integer securityGuardTelId) {
114
+        this.securityGuardTelId = securityGuardTelId;
115
+    }
116
+
117
+    public Integer getSecurityRoomTelId() {
118
+        return securityRoomTelId;
119
+    }
120
+
121
+    public void setSecurityRoomTelId(Integer securityRoomTelId) {
122
+        this.securityRoomTelId = securityRoomTelId;
123
+    }
124
+
125
+    public Integer getAddressId() {
126
+        return addressId;
127
+    }
128
+
129
+    public void setAddressId(Integer addressId) {
130
+        this.addressId = addressId;
131
+    }
132
+
133
+    public Date getCreateTime() {
134
+        return createTime;
135
+    }
136
+
137
+    public void setCreateTime(Date createTime) {
138
+        this.createTime = createTime;
139
+    }
140
+
141
+    public Integer getCreateUser() {
142
+        return createUser;
143
+    }
144
+
145
+    public void setCreateUser(Integer createUser) {
146
+        this.createUser = createUser;
147
+    }
148
+
149
+    public Date getUpdateTime() {
150
+        return updateTime;
151
+    }
152
+
153
+    public void setUpdateTime(Date updateTime) {
154
+        this.updateTime = updateTime;
155
+    }
156
+
157
+    public Integer getUpdateUser() {
158
+        return updateUser;
159
+    }
160
+
161
+    public void setUpdateUser(Integer updateUser) {
162
+        this.updateUser = updateUser;
163
+    }
164
+
165
+    public Integer getUuidId() {
166
+        return uuidId;
167
+    }
168
+
169
+    public void setUuidId(Integer uuidId) {
170
+        this.uuidId = uuidId;
171
+    }
172
+
173
+    public String getEquipmentType() {
174
+        return equipmentType;
175
+    }
176
+
177
+    public void setEquipmentType(String equipmentType) {
178
+        this.equipmentType = equipmentType;
179
+    }
180
+
181
+    public Integer getEquipmentTreeId() {
182
+        return equipmentTreeId;
183
+    }
184
+
185
+    public void setEquipmentTreeId(Integer equipmentTreeId) {
186
+        this.equipmentTreeId = equipmentTreeId;
187
+    }
188
+
189
+    public String getMonitoringUrl() {
190
+        return monitoringUrl;
191
+    }
192
+
193
+    public void setMonitoringUrl(String monitoringUrl) {
194
+        this.monitoringUrl = monitoringUrl;
195
+    }
196
+
197
+    public String getSecurityGuardTel() {
198
+        return securityGuardTel;
199
+    }
200
+
201
+    public void setSecurityGuardTel(String securityGuardTel) {
202
+        this.securityGuardTel = securityGuardTel;
203
+    }
204
+
205
+    public String getSecurityRoomTel() {
206
+        return securityRoomTel;
207
+    }
208
+
209
+    public void setSecurityRoomTel(String securityRoomTel) {
210
+        this.securityRoomTel = securityRoomTel;
211
+    }
212
+
213
+    public String getMonitoringAddress() {
214
+        return monitoringAddress;
215
+    }
216
+
217
+    public void setMonitoringAddress(String monitoringAddress) {
218
+        this.monitoringAddress = monitoringAddress;
219
+    }
220
+
221
+    public String getAppkey() {
222
+        return appkey;
223
+    }
224
+
225
+    public void setAppkey(String appkey) {
226
+        this.appkey = appkey;
227
+    }
228
+
229
+    public String getSecret() {
230
+        return secret;
231
+    }
232
+
233
+    public void setSecret(String secret) {
234
+        this.secret = secret;
235
+    }
236
+
237
+    public String getOpUserUuid() {
238
+        return opUserUuid;
239
+    }
240
+
241
+    public void setOpUserUuid(String opUserUuid) {
242
+        this.opUserUuid = opUserUuid;
243
+    }
244
+
245
+    public String getHttpServer() {
246
+        return httpServer;
247
+    }
248
+
249
+    public void setHttpServer(String httpServer) {
250
+        this.httpServer = httpServer;
251
+    }
252
+
253
+    public String getUnitUuids() {
254
+        return unitUuids;
255
+    }
256
+
257
+    public void setUnitUuids(String unitUuids) {
258
+        this.unitUuids = unitUuids;
259
+    }
260
+}

+ 145
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpEquipmentTree.java ファイルの表示

@@ -0,0 +1,145 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpEquipmentTree {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String equipmentName;
11
+
12
+    private Integer pid;
13
+
14
+    private Integer sort;
15
+
16
+    private Date createTime;
17
+
18
+    private Integer createUser;
19
+
20
+    private Date updateTime;
21
+
22
+    private Integer updateUser;
23
+
24
+    private String appkey;
25
+
26
+    private String secret;
27
+
28
+    private String opUserUuid;
29
+
30
+    private String httpServer;
31
+
32
+    private String unitUuids;
33
+
34
+    public Integer getId() {
35
+        return id;
36
+    }
37
+
38
+    public void setId(Integer id) {
39
+        this.id = id;
40
+    }
41
+
42
+    public Integer getCommunityId() {
43
+        return communityId;
44
+    }
45
+
46
+    public void setCommunityId(Integer communityId) {
47
+        this.communityId = communityId;
48
+    }
49
+
50
+    public String getEquipmentName() {
51
+        return equipmentName;
52
+    }
53
+
54
+    public void setEquipmentName(String equipmentName) {
55
+        this.equipmentName = equipmentName == null ? null : equipmentName.trim();
56
+    }
57
+
58
+    public Integer getPid() {
59
+        return pid;
60
+    }
61
+
62
+    public void setPid(Integer pid) {
63
+        this.pid = pid;
64
+    }
65
+
66
+    public Integer getSort() {
67
+        return sort;
68
+    }
69
+
70
+    public void setSort(Integer sort) {
71
+        this.sort = sort;
72
+    }
73
+
74
+    public Date getCreateTime() {
75
+        return createTime;
76
+    }
77
+
78
+    public void setCreateTime(Date createTime) {
79
+        this.createTime = createTime;
80
+    }
81
+
82
+    public Integer getCreateUser() {
83
+        return createUser;
84
+    }
85
+
86
+    public void setCreateUser(Integer createUser) {
87
+        this.createUser = createUser;
88
+    }
89
+
90
+    public Date getUpdateTime() {
91
+        return updateTime;
92
+    }
93
+
94
+    public void setUpdateTime(Date updateTime) {
95
+        this.updateTime = updateTime;
96
+    }
97
+
98
+    public Integer getUpdateUser() {
99
+        return updateUser;
100
+    }
101
+
102
+    public void setUpdateUser(Integer updateUser) {
103
+        this.updateUser = updateUser;
104
+    }
105
+
106
+    public String getAppkey() {
107
+        return appkey;
108
+    }
109
+
110
+    public void setAppkey(String appkey) {
111
+        this.appkey = appkey == null ? null : appkey.trim();
112
+    }
113
+
114
+    public String getSecret() {
115
+        return secret;
116
+    }
117
+
118
+    public void setSecret(String secret) {
119
+        this.secret = secret == null ? null : secret.trim();
120
+    }
121
+
122
+    public String getOpUserUuid() {
123
+        return opUserUuid;
124
+    }
125
+
126
+    public void setOpUserUuid(String opUserUuid) {
127
+        this.opUserUuid = opUserUuid == null ? null : opUserUuid.trim();
128
+    }
129
+
130
+    public String getHttpServer() {
131
+        return httpServer;
132
+    }
133
+
134
+    public void setHttpServer(String httpServer) {
135
+        this.httpServer = httpServer == null ? null : httpServer.trim();
136
+    }
137
+
138
+    public String getUnitUuids() {
139
+        return unitUuids;
140
+    }
141
+
142
+    public void setUnitUuids(String unitUuids) {
143
+        this.unitUuids = unitUuids;
144
+    }
145
+}

+ 115
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpLevel.java ファイルの表示

@@ -0,0 +1,115 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpLevel {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer phaseId;
11
+
12
+    private String phaseName;
13
+
14
+    private Integer buildingId;
15
+
16
+    private String buildingName;
17
+
18
+    private Integer unitId;
19
+
20
+    private String unitName;
21
+
22
+    private String name;
23
+
24
+    private String sort;
25
+
26
+    private Date createDate;
27
+
28
+    public Integer getId() {
29
+        return id;
30
+    }
31
+
32
+    public void setId(Integer id) {
33
+        this.id = id;
34
+    }
35
+
36
+    public Integer getCommunityId() {
37
+        return communityId;
38
+    }
39
+
40
+    public void setCommunityId(Integer communityId) {
41
+        this.communityId = communityId;
42
+    }
43
+
44
+    public Integer getPhaseId() {
45
+        return phaseId;
46
+    }
47
+
48
+    public void setPhaseId(Integer phaseId) {
49
+        this.phaseId = phaseId;
50
+    }
51
+
52
+    public String getPhaseName() {
53
+        return phaseName;
54
+    }
55
+
56
+    public void setPhaseName(String phaseName) {
57
+        this.phaseName = phaseName == null ? null : phaseName.trim();
58
+    }
59
+
60
+    public Integer getBuildingId() {
61
+        return buildingId;
62
+    }
63
+
64
+    public void setBuildingId(Integer buildingId) {
65
+        this.buildingId = buildingId;
66
+    }
67
+
68
+    public String getBuildingName() {
69
+        return buildingName;
70
+    }
71
+
72
+    public void setBuildingName(String buildingName) {
73
+        this.buildingName = buildingName == null ? null : buildingName.trim();
74
+    }
75
+
76
+    public Integer getUnitId() {
77
+        return unitId;
78
+    }
79
+
80
+    public void setUnitId(Integer unitId) {
81
+        this.unitId = unitId;
82
+    }
83
+
84
+    public String getUnitName() {
85
+        return unitName;
86
+    }
87
+
88
+    public void setUnitName(String unitName) {
89
+        this.unitName = unitName == null ? null : unitName.trim();
90
+    }
91
+
92
+    public String getName() {
93
+        return name;
94
+    }
95
+
96
+    public void setName(String name) {
97
+        this.name = name == null ? null : name.trim();
98
+    }
99
+
100
+    public String getSort() {
101
+        return sort;
102
+    }
103
+
104
+    public void setSort(String sort) {
105
+        this.sort = sort == null ? null : sort.trim();
106
+    }
107
+
108
+    public Date getCreateDate() {
109
+        return createDate;
110
+    }
111
+
112
+    public void setCreateDate(Date createDate) {
113
+        this.createDate = createDate;
114
+    }
115
+}

+ 55
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpPhase.java ファイルの表示

@@ -0,0 +1,55 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpPhase {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private String name;
11
+
12
+    private String sort;
13
+
14
+    private Date createDate;
15
+
16
+    public Integer getId() {
17
+        return id;
18
+    }
19
+
20
+    public void setId(Integer id) {
21
+        this.id = id;
22
+    }
23
+
24
+    public Integer getCommunityId() {
25
+        return communityId;
26
+    }
27
+
28
+    public void setCommunityId(Integer communityId) {
29
+        this.communityId = communityId;
30
+    }
31
+
32
+    public String getName() {
33
+        return name;
34
+    }
35
+
36
+    public void setName(String name) {
37
+        this.name = name == null ? null : name.trim();
38
+    }
39
+
40
+    public String getSort() {
41
+        return sort;
42
+    }
43
+
44
+    public void setSort(String sort) {
45
+        this.sort = sort == null ? null : sort.trim();
46
+    }
47
+
48
+    public Date getCreateDate() {
49
+        return createDate;
50
+    }
51
+
52
+    public void setCreateDate(Date createDate) {
53
+        this.createDate = createDate;
54
+    }
55
+}

+ 135
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpRoomNo.java ファイルの表示

@@ -0,0 +1,135 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpRoomNo {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer phaseId;
11
+
12
+    private String phaseName;
13
+
14
+    private Integer buildingId;
15
+
16
+    private String buildingName;
17
+
18
+    private Integer unitId;
19
+
20
+    private String unitName;
21
+
22
+    private Integer levelId;
23
+
24
+    private String levelName;
25
+
26
+    private String name;
27
+
28
+    private String sort;
29
+
30
+    private Date createDate;
31
+
32
+    public Integer getId() {
33
+        return id;
34
+    }
35
+
36
+    public void setId(Integer id) {
37
+        this.id = id;
38
+    }
39
+
40
+    public Integer getCommunityId() {
41
+        return communityId;
42
+    }
43
+
44
+    public void setCommunityId(Integer communityId) {
45
+        this.communityId = communityId;
46
+    }
47
+
48
+    public Integer getPhaseId() {
49
+        return phaseId;
50
+    }
51
+
52
+    public void setPhaseId(Integer phaseId) {
53
+        this.phaseId = phaseId;
54
+    }
55
+
56
+    public String getPhaseName() {
57
+        return phaseName;
58
+    }
59
+
60
+    public void setPhaseName(String phaseName) {
61
+        this.phaseName = phaseName == null ? null : phaseName.trim();
62
+    }
63
+
64
+    public Integer getBuildingId() {
65
+        return buildingId;
66
+    }
67
+
68
+    public void setBuildingId(Integer buildingId) {
69
+        this.buildingId = buildingId;
70
+    }
71
+
72
+    public String getBuildingName() {
73
+        return buildingName;
74
+    }
75
+
76
+    public void setBuildingName(String buildingName) {
77
+        this.buildingName = buildingName == null ? null : buildingName.trim();
78
+    }
79
+
80
+    public Integer getUnitId() {
81
+        return unitId;
82
+    }
83
+
84
+    public void setUnitId(Integer unitId) {
85
+        this.unitId = unitId;
86
+    }
87
+
88
+    public String getUnitName() {
89
+        return unitName;
90
+    }
91
+
92
+    public void setUnitName(String unitName) {
93
+        this.unitName = unitName == null ? null : unitName.trim();
94
+    }
95
+
96
+    public Integer getLevelId() {
97
+        return levelId;
98
+    }
99
+
100
+    public void setLevelId(Integer levelId) {
101
+        this.levelId = levelId;
102
+    }
103
+
104
+    public String getLevelName() {
105
+        return levelName;
106
+    }
107
+
108
+    public void setLevelName(String levelName) {
109
+        this.levelName = levelName == null ? null : levelName.trim();
110
+    }
111
+
112
+    public String getName() {
113
+        return name;
114
+    }
115
+
116
+    public void setName(String name) {
117
+        this.name = name == null ? null : name.trim();
118
+    }
119
+
120
+    public String getSort() {
121
+        return sort;
122
+    }
123
+
124
+    public void setSort(String sort) {
125
+        this.sort = sort == null ? null : sort.trim();
126
+    }
127
+
128
+    public Date getCreateDate() {
129
+        return createDate;
130
+    }
131
+
132
+    public void setCreateDate(Date createDate) {
133
+        this.createDate = createDate;
134
+    }
135
+}

+ 55
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpRoomNoEquipment.java ファイルの表示

@@ -0,0 +1,55 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpRoomNoEquipment {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer roomNoId;
11
+
12
+    private Integer equipmentId;
13
+
14
+    private Date createDate;
15
+
16
+    public Integer getId() {
17
+        return id;
18
+    }
19
+
20
+    public void setId(Integer id) {
21
+        this.id = id;
22
+    }
23
+
24
+    public Integer getCommunityId() {
25
+        return communityId;
26
+    }
27
+
28
+    public void setCommunityId(Integer communityId) {
29
+        this.communityId = communityId;
30
+    }
31
+
32
+    public Integer getRoomNoId() {
33
+        return roomNoId;
34
+    }
35
+
36
+    public void setRoomNoId(Integer roomNoId) {
37
+        this.roomNoId = roomNoId;
38
+    }
39
+
40
+    public Integer getEquipmentId() {
41
+        return equipmentId;
42
+    }
43
+
44
+    public void setEquipmentId(Integer equipmentId) {
45
+        this.equipmentId = equipmentId;
46
+    }
47
+
48
+    public Date getCreateDate() {
49
+        return createDate;
50
+    }
51
+
52
+    public void setCreateDate(Date createDate) {
53
+        this.createDate = createDate;
54
+    }
55
+}

+ 52
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java ファイルの表示

@@ -34,7 +34,12 @@ public class TpTransaction {
34 34
     private String telephone;
35 35
 
36 36
     private List<String> imgList;
37
-    
37
+
38
+    /**
39
+     * 房间号
40
+     */
41
+    private  String roomNoName;
42
+
38 43
     /**
39 44
      * 是否被举报 1是被举报 0或null是没被举报
40 45
      */
@@ -53,11 +58,41 @@ public class TpTransaction {
53 58
      */
54 59
     private Integer noLikeCount;
55 60
 
61
+    /**
62
+     * 对应app端的角色表,物业端发帖时不维护
63
+     */
64
+    private Integer taUserVerifyId;
65
+
66
+    /**
67
+     * 0为app端,1为物业
68
+     */
69
+    private String releaseIdentity;
70
+
71
+    /**
72
+     * 权重
73
+     */
74
+    private String sort;
75
+
76
+    public void setReleaseIdentity(String releaseIdentity) {
77
+        this.releaseIdentity = releaseIdentity;
78
+    }
79
+
80
+    public String getReleaseIdentity() {
81
+        return releaseIdentity;
82
+    }
83
+
56 84
     /**
57 85
      * 是否已点赞或者踩
58 86
      */
59 87
     private String bel;
60 88
 
89
+    public Integer getTaUserVerifyId() {
90
+        return taUserVerifyId;
91
+    }
92
+
93
+    public void setTaUserVerifyId(Integer taUserVerifyId) {
94
+        this.taUserVerifyId = taUserVerifyId;
95
+    }
61 96
 
62 97
     public String getRoleName() {
63 98
         return roleName;
@@ -223,4 +258,20 @@ public class TpTransaction {
223 258
     public void setBel(String bel) {
224 259
         this.bel = bel;
225 260
     }
261
+
262
+    public String getSort() {
263
+        return sort;
264
+    }
265
+
266
+    public void setSort(String sort) {
267
+        this.sort = sort;
268
+    }
269
+
270
+    public String getRoomNoName() {
271
+        return roomNoName;
272
+    }
273
+
274
+    public void setRoomNoName(String roomNoName) {
275
+        this.roomNoName = roomNoName;
276
+    }
226 277
 }

+ 54
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReply.java ファイルの表示

@@ -1,8 +1,10 @@
1 1
 package com.community.huiju.model;
2 2
 
3 3
 import java.util.Date;
4
+import java.util.List;
4 5
 
5 6
 public class TpTransactionReply {
7
+
6 8
     private Integer id;
7 9
 
8 10
     private Integer communityId;
@@ -31,6 +33,58 @@ public class TpTransactionReply {
31 33
      */
32 34
     private String replyRoleName;
33 35
 
36
+    /**
37
+     * 回复的图片
38
+     * @return
39
+     */
40
+    private List<String> imgList;
41
+
42
+    /**
43
+     *0代表app端用户,1代表物业端用户
44
+     * @return
45
+     */
46
+    private String releaseIdentity;
47
+
48
+    /**
49
+     * 用于查询app端角色,物业端不维护
50
+     * @param releaseIdentity
51
+     */
52
+    private  Integer taUserVerifyId;
53
+
54
+    private String roomNoName;
55
+
56
+    public String getRoomNoName() {
57
+        return roomNoName;
58
+    }
59
+
60
+    public void setRoomNoName(String roomNoName) {
61
+        this.roomNoName = roomNoName;
62
+    }
63
+
64
+    public void setTaUserVerifyId(Integer taUserVerifyId) {
65
+        this.taUserVerifyId = taUserVerifyId;
66
+    }
67
+
68
+    public Integer getTaUserVerifyId() {
69
+        return taUserVerifyId;
70
+    }
71
+
72
+    public void setReleaseIdentity(String releaseIdentity) {
73
+        this.releaseIdentity = releaseIdentity;
74
+    }
75
+
76
+    public String getReleaseIdentity() {
77
+        return releaseIdentity;
78
+    }
79
+
80
+    public List<String> getImgList() {
81
+        return imgList;
82
+    }
83
+
84
+    public void setImgList(List<String> imgList) {
85
+        this.imgList = imgList;
86
+    }
87
+
34 88
     public Integer getId() {
35 89
         return id;
36 90
     }

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReport.java ファイルの表示

@@ -1,5 +1,8 @@
1 1
 package com.community.huiju.model;
2 2
 
3
+import javax.xml.crypto.Data;
4
+import java.util.Date;
5
+
3 6
 public class TpTransactionReport {
4 7
     private Integer id;
5 8
 
@@ -11,6 +14,16 @@ public class TpTransactionReport {
11 14
 
12 15
     private Integer reporterId;
13 16
 
17
+    private Date createDate;
18
+
19
+    public Date getCreateDate() {
20
+        return createDate;
21
+    }
22
+
23
+    public void setCreateDate(Date createDate) {
24
+        this.createDate = createDate;
25
+    }
26
+
14 27
     public Integer getId() {
15 28
         return id;
16 29
     }

+ 95
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpUnit.java ファイルの表示

@@ -0,0 +1,95 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpUnit {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer phaseId;
11
+
12
+    private String phaseName;
13
+
14
+    private Integer buildingId;
15
+
16
+    private String buildingName;
17
+
18
+    private String name;
19
+
20
+    private String sort;
21
+
22
+    private Date createDate;
23
+
24
+    public Integer getId() {
25
+        return id;
26
+    }
27
+
28
+    public void setId(Integer id) {
29
+        this.id = id;
30
+    }
31
+
32
+    public Integer getCommunityId() {
33
+        return communityId;
34
+    }
35
+
36
+    public void setCommunityId(Integer communityId) {
37
+        this.communityId = communityId;
38
+    }
39
+
40
+    public Integer getPhaseId() {
41
+        return phaseId;
42
+    }
43
+
44
+    public void setPhaseId(Integer phaseId) {
45
+        this.phaseId = phaseId;
46
+    }
47
+
48
+    public String getPhaseName() {
49
+        return phaseName;
50
+    }
51
+
52
+    public void setPhaseName(String phaseName) {
53
+        this.phaseName = phaseName == null ? null : phaseName.trim();
54
+    }
55
+
56
+    public Integer getBuildingId() {
57
+        return buildingId;
58
+    }
59
+
60
+    public void setBuildingId(Integer buildingId) {
61
+        this.buildingId = buildingId;
62
+    }
63
+
64
+    public String getBuildingName() {
65
+        return buildingName;
66
+    }
67
+
68
+    public void setBuildingName(String buildingName) {
69
+        this.buildingName = buildingName == null ? null : buildingName.trim();
70
+    }
71
+
72
+    public String getName() {
73
+        return name;
74
+    }
75
+
76
+    public void setName(String name) {
77
+        this.name = name == null ? null : name.trim();
78
+    }
79
+
80
+    public String getSort() {
81
+        return sort;
82
+    }
83
+
84
+    public void setSort(String sort) {
85
+        this.sort = sort == null ? null : sort.trim();
86
+    }
87
+
88
+    public Date getCreateDate() {
89
+        return createDate;
90
+    }
91
+
92
+    public void setCreateDate(Date createDate) {
93
+        this.createDate = createDate;
94
+    }
95
+}

+ 55
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpUnitEquipment.java ファイルの表示

@@ -0,0 +1,55 @@
1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TpUnitEquipment {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer unitId;
11
+
12
+    private Integer equipmentId;
13
+
14
+    private Date createDate;
15
+
16
+    public Integer getId() {
17
+        return id;
18
+    }
19
+
20
+    public void setId(Integer id) {
21
+        this.id = id;
22
+    }
23
+
24
+    public Integer getCommunityId() {
25
+        return communityId;
26
+    }
27
+
28
+    public void setCommunityId(Integer communityId) {
29
+        this.communityId = communityId;
30
+    }
31
+
32
+    public Integer getUnitId() {
33
+        return unitId;
34
+    }
35
+
36
+    public void setUnitId(Integer unitId) {
37
+        this.unitId = unitId;
38
+    }
39
+
40
+    public Integer getEquipmentId() {
41
+        return equipmentId;
42
+    }
43
+
44
+    public void setEquipmentId(Integer equipmentId) {
45
+        this.equipmentId = equipmentId;
46
+    }
47
+
48
+    public Date getCreateDate() {
49
+        return createDate;
50
+    }
51
+
52
+    public void setCreateDate(Date createDate) {
53
+        this.createDate = createDate;
54
+    }
55
+}

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/AliPayServiceI.java ファイルの表示

@@ -8,9 +8,9 @@ public interface AliPayServiceI {
8 8
 	/**
9 9
 	 * 微信支付统一下单
10 10
 	 * @return
11
-	 * @param billInvoiceId
11
+	 * @param outTradeNo
12 12
 	 * @param userElement
13 13
 	 */
14
-	String AliPayOrder(Integer billInvoiceId, UserElement userElement) throws Exception;
14
+	String AliPayOrder(String outTradeNo, UserElement userElement) throws Exception;
15 15
 	
16 16
 }

+ 14
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BannerServiceI.java ファイルの表示

@@ -12,5 +12,19 @@ import java.util.List;
12 12
 public interface BannerServiceI {
13 13
 
14 14
     ToBanner viewBannerImg(Integer bannerId);
15
+
16
+    /**
17
+     * 根据 banner位置,小区获取
18
+     * @param bannerPosition
19
+     * @param communityId
20
+     * @return
21
+     */
22
+    List<ToBanner> viewAllBannerImgAndCommunityId(Integer bannerPosition, Integer communityId);
23
+
24
+    /**
25
+     * 根据banner位置
26
+     * @param bannerPosition
27
+     * @return
28
+     */
15 29
     List<ToBanner> viewAllBannerImg(Integer bannerPosition);
16 30
 }

+ 20
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/BillServiceI.java ファイルの表示

@@ -1,18 +1,22 @@
1 1
 package com.community.huiju.service;
2 2
 
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.commom.session.UserElement;
5
+
3 6
 import java.util.List;
4 7
 import java.util.Map;
5 8
 
6 9
 public interface BillServiceI {
7 10
 	/**
8 11
 	 * 根据payType分页获取缴费或未缴费的数据
9
-	 * @param communityId
12
+	 *
13
+	 * @param userElement
10 14
 	 * @param payType
11 15
 	 * @param pageNum
12 16
 	 * @param pageSize
13 17
 	 * @return
14 18
 	 */
15
-	Map<String, Object> getBillsList(Integer communityId, Integer payType, Integer userId ,Integer pageNum, Integer pageSize);
19
+	Map<String, Object> getBillsList(UserElement userElement, Integer payType, Integer pageNum, Integer pageSize);
16 20
 	
17 21
 	/**
18 22
 	 * 获取账单的详细信息
@@ -20,4 +24,18 @@ public interface BillServiceI {
20 24
 	 * @return
21 25
 	 */
22 26
 	Map<String, Object> getBillInvoiceDetail(Integer communityId,Integer billInvoiceId);
27
+
28
+	/**
29
+	 * 获取缴费历史
30
+	 * @param userElement
31
+	 * @return
32
+	 */
33
+	ResponseBean payHistory(UserElement userElement);
34
+
35
+	/**
36
+	 * 订单详情
37
+	 * @param orderNumber
38
+	 * @return
39
+	 */
40
+	ResponseBean getOrderInfo(String orderNumber);
23 41
 }

+ 0
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/FaceServiceI.java ファイルの表示


多くのファイルが変更されたため、一部のファイルはこの差分に表示されません