Ver código fonte

Merge remote-tracking branch 'origin/V1' into V1

# Conflicts:
#	web/src/main/resources/application-dev.yml
jz.kai 5 anos atrás
pai
commit
643271971f
32 arquivos alterados com 15 adições e 5 exclusões
  1. 1 1
      common/pom.xml
  2. 0 0
      common/src/main/resources/mapper/base/AlarmInfo.xml
  3. 0 0
      common/src/main/resources/mapper/base/CompanyInfo.xml
  4. 0 0
      common/src/main/resources/mapper/base/CompanyPosition.xml
  5. 0 0
      common/src/main/resources/mapper/base/DeviceInfo.xml
  6. 0 0
      common/src/main/resources/mapper/base/ElectricClientInfo.xml
  7. 0 0
      common/src/main/resources/mapper/base/ElectricMeterInfo.xml
  8. 0 0
      common/src/main/resources/mapper/base/EmployeeInfo.xml
  9. 0 0
      common/src/main/resources/mapper/base/InformationInfo.xml
  10. 0 0
      common/src/main/resources/mapper/base/OwnerInfo.xml
  11. 0 0
      common/src/main/resources/mapper/base/ParkingApply.xml
  12. 0 0
      common/src/main/resources/mapper/base/ParkingInfo.xml
  13. 0 0
      common/src/main/resources/mapper/base/PersonDeviceRelation.xml
  14. 0 0
      common/src/main/resources/mapper/base/PersonInfo.xml
  15. 0 0
      common/src/main/resources/mapper/base/RechargeRecord.xml
  16. 0 0
      common/src/main/resources/mapper/base/RechargeRecordWater.xml
  17. 0 0
      common/src/main/resources/mapper/base/RoomInfo.xml
  18. 0 0
      common/src/main/resources/mapper/base/TerminalInfo.xml
  19. 0 0
      common/src/main/resources/mapper/sys/DataDictionary.xml
  20. 0 0
      common/src/main/resources/mapper/sys/Menu.xml
  21. 0 0
      common/src/main/resources/mapper/sys/Permission.xml
  22. 0 0
      common/src/main/resources/mapper/sys/Role.xml
  23. 0 0
      common/src/main/resources/mapper/sys/RoleMenu.xml
  24. 0 0
      common/src/main/resources/mapper/sys/RolePermission.xml
  25. 0 0
      common/src/main/resources/mapper/sys/User.xml
  26. 0 0
      common/src/main/resources/mapper/sys/UserRole.xml
  27. 0 0
      common/src/main/resources/mapper/wechat/ReplyMessage.xml
  28. 0 0
      common/src/main/resources/mapper/wechat/accessControl.xml
  29. 3 2
      lapi/src/main/java/com/jpsoft/smart/lapi/LapiApplication.java
  30. 2 1
      lapi/src/main/java/com/jpsoft/smart/lapi/handler/ParseRequestHandler.java
  31. 8 0
      lapi/src/main/java/com/jpsoft/smart/lapi/handler/PersonVerificationHandler.java
  32. 1 1
      web/src/main/resources/application.yml

+ 1 - 1
common/pom.xml

@@ -11,7 +11,7 @@
     <artifactId>common</artifactId>
     <name>common</name>
     <description>智慧小区公共库</description>
-    <packaging>pom</packaging>
+    <packaging>jar</packaging>
     <properties>
         <swagger2.version>2.7.0</swagger2.version>
         <jwts.version>0.10.5</jwts.version>

+ 0 - 0
web/src/main/resources/mapper/base/AlarmInfo.xml → common/src/main/resources/mapper/base/AlarmInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/CompanyInfo.xml → common/src/main/resources/mapper/base/CompanyInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/CompanyPosition.xml → common/src/main/resources/mapper/base/CompanyPosition.xml


+ 0 - 0
web/src/main/resources/mapper/base/DeviceInfo.xml → common/src/main/resources/mapper/base/DeviceInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/ElectricClientInfo.xml → common/src/main/resources/mapper/base/ElectricClientInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/ElectricMeterInfo.xml → common/src/main/resources/mapper/base/ElectricMeterInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/EmployeeInfo.xml → common/src/main/resources/mapper/base/EmployeeInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/InformationInfo.xml → common/src/main/resources/mapper/base/InformationInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/OwnerInfo.xml → common/src/main/resources/mapper/base/OwnerInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/ParkingApply.xml → common/src/main/resources/mapper/base/ParkingApply.xml


+ 0 - 0
web/src/main/resources/mapper/base/ParkingInfo.xml → common/src/main/resources/mapper/base/ParkingInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/PersonDeviceRelation.xml → common/src/main/resources/mapper/base/PersonDeviceRelation.xml


+ 0 - 0
web/src/main/resources/mapper/base/PersonInfo.xml → common/src/main/resources/mapper/base/PersonInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/RechargeRecord.xml → common/src/main/resources/mapper/base/RechargeRecord.xml


+ 0 - 0
web/src/main/resources/mapper/base/RechargeRecordWater.xml → common/src/main/resources/mapper/base/RechargeRecordWater.xml


+ 0 - 0
web/src/main/resources/mapper/base/RoomInfo.xml → common/src/main/resources/mapper/base/RoomInfo.xml


+ 0 - 0
web/src/main/resources/mapper/base/TerminalInfo.xml → common/src/main/resources/mapper/base/TerminalInfo.xml


+ 0 - 0
web/src/main/resources/mapper/sys/DataDictionary.xml → common/src/main/resources/mapper/sys/DataDictionary.xml


+ 0 - 0
web/src/main/resources/mapper/sys/Menu.xml → common/src/main/resources/mapper/sys/Menu.xml


+ 0 - 0
web/src/main/resources/mapper/sys/Permission.xml → common/src/main/resources/mapper/sys/Permission.xml


+ 0 - 0
web/src/main/resources/mapper/sys/Role.xml → common/src/main/resources/mapper/sys/Role.xml


+ 0 - 0
web/src/main/resources/mapper/sys/RoleMenu.xml → common/src/main/resources/mapper/sys/RoleMenu.xml


+ 0 - 0
web/src/main/resources/mapper/sys/RolePermission.xml → common/src/main/resources/mapper/sys/RolePermission.xml


+ 0 - 0
web/src/main/resources/mapper/sys/User.xml → common/src/main/resources/mapper/sys/User.xml


+ 0 - 0
web/src/main/resources/mapper/sys/UserRole.xml → common/src/main/resources/mapper/sys/UserRole.xml


+ 0 - 0
web/src/main/resources/mapper/wechat/ReplyMessage.xml → common/src/main/resources/mapper/wechat/ReplyMessage.xml


+ 0 - 0
web/src/main/resources/mapper/wechat/accessControl.xml → common/src/main/resources/mapper/wechat/accessControl.xml


+ 3 - 2
lapi/src/main/java/com/jpsoft/smart/lapi/LapiApplication.java

@@ -3,6 +3,7 @@ package com.jpsoft.smart.lapi;
 import com.jpsoft.smart.lapi.handler.HeartReportHandler;
 import com.jpsoft.smart.lapi.handler.ParseRequestHandler;
 import com.jpsoft.smart.lapi.handler.PersonVerificationHandler;
+import com.jpsoft.smart.lapi.handler.TextDecodeHandler;
 import io.netty.bootstrap.ServerBootstrap;
 import io.netty.channel.Channel;
 import io.netty.channel.ChannelFuture;
@@ -50,10 +51,10 @@ public class LapiApplication implements CommandLineRunner {
                 .childHandler(new ChannelInitializer(){
                     @Override
                     protected void initChannel(Channel channel) throws Exception {
-//				channel.pipeline().addLast(textDecodeHandler);
+//				channel.pipeline().addLast(new TextDecodeHandler());
 //				channel.pipeline().addLast(new HttpRequestDecoder());
                         channel.pipeline().addLast(new HttpServerCodec());
-                        channel.pipeline().addLast(new HttpObjectAggregator(2048));
+                        channel.pipeline().addLast(new HttpObjectAggregator(2048*10000));
                         channel.pipeline().addLast(new ParseRequestHandler());
                         channel.pipeline().addLast(heartReportHandler);
                         channel.pipeline().addLast(personVerificationHandler);

+ 2 - 1
lapi/src/main/java/com/jpsoft/smart/lapi/handler/ParseRequestHandler.java

@@ -43,7 +43,8 @@ public class ParseRequestHandler extends SimpleChannelInboundHandler<FullHttpReq
 
             ctx.fireChannelRead(heartReportInfo);
         }
-        else if(request.uri().contains("PersonVerification")) {
+        else if(request.uri().contains("Notifications")) {
+            log.warn("PersonVerification"+request.uri());
             PersonVerification personVerification = new PersonVerification();
             personVerification.setUri(request.uri());
 

+ 8 - 0
lapi/src/main/java/com/jpsoft/smart/lapi/handler/PersonVerificationHandler.java

@@ -17,7 +17,15 @@ import java.util.Date;
 public class PersonVerificationHandler extends SimpleChannelInboundHandler<PersonVerification> {
     @Override
     protected void channelRead0(ChannelHandlerContext channelHandlerContext, PersonVerification personVerification) throws Exception {
+        log.warn(personVerification.toString());
         JSONObject jsonObject = personVerification.getJsonObject();
+
+        log.warn("DeviceCode"+jsonObject.getStr("DeviceCode"));
+        log.warn(jsonObject.toString());
+      //  JSONObject faceJson = jsonObject.get("FaceInfoList");
+        log.warn("FaceInfoList" +jsonObject.getStr("FaceInfoList"));
+        JSONObject faceJson = new JSONObject(jsonObject.getStr("FaceInfoList").substring(1,jsonObject.getStr("FaceInfoList").length()-1));
+        log.warn("faceJson"+faceJson);
         long timestamp = jsonObject.getLong("Timestamp");
 
         Date date = new Date(timestamp);

+ 1 - 1
web/src/main/resources/application.yml

@@ -86,7 +86,7 @@ jwt:
 
 mybatis:
   typeAliasesPackage: com.jpsoft.smart.**.entity
-  mapperLocations: classpath:mapper/**/*.xml
+  mapperLocations: classpath*:mapper/**/*.xml
   configuration:
     default-statement-timeout: 60