浏览代码

Merge branch '2.0.0' of http://git.ycjcjy.com/fuxingfan/smartCommunity into 2.0.0

wangfei 6 年前
父节点
当前提交
ad0d69504b
共有 100 个文件被更改,包括 3893 次插入403 次删除
  1. 45
    33
      CODE/foreign-service/src/main/java/com/community/huiju/controller/FSController.java
  2. 16
    0
      CODE/foreign-service/src/main/java/com/community/huiju/dao/TaTemporaryLicenseOrderMapper.java
  3. 16
    0
      CODE/foreign-service/src/main/java/com/community/huiju/dao/TaUserLicenseOrderMapper.java
  4. 119
    0
      CODE/foreign-service/src/main/java/com/community/huiju/model/TaTemporaryLicenseOrder.java
  5. 124
    0
      CODE/foreign-service/src/main/java/com/community/huiju/model/TaUserLicenseOrder.java
  6. 6
    6
      CODE/foreign-service/src/main/java/com/community/huiju/service/IFuShiService.java
  7. 18
    0
      CODE/foreign-service/src/main/java/com/community/huiju/service/ITaTemporaryLicenseOrderService.java
  8. 16
    0
      CODE/foreign-service/src/main/java/com/community/huiju/service/ITaUserLicenseOrderService.java
  9. 116
    6
      CODE/foreign-service/src/main/java/com/community/huiju/service/impl/FuShiServiceImpl.java
  10. 20
    0
      CODE/foreign-service/src/main/java/com/community/huiju/service/impl/TaTemporaryLicenseOrderServiceImpl.java
  11. 20
    0
      CODE/foreign-service/src/main/java/com/community/huiju/service/impl/TaUserLicenseOrderServiceImpl.java
  12. 3
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/ICode.java
  13. 6
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AssembleController.java
  14. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/HkController.java
  15. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MessageController.java
  16. 12
    6
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MonitoringController.java
  17. 4
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java
  18. 16
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java
  19. 15
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/VistorController.java
  20. 16
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaBriskUserMapper.java
  21. 30
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaFeedbackImgMapper.java
  22. 25
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaFeedbackMapper.java
  23. 19
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaPublicMonitorMapper.java
  24. 19
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaRemotelyDoorMapper.java
  25. 19
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaRemotelyMonitorMapper.java
  26. 26
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaVisitorLicenseSettingMapper.java
  27. 2
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivityMapper.java
  28. 1
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignInMapper.java
  29. 1
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignupMapper.java
  30. 22
    4
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java
  31. 2
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionReplyMapper.java
  32. 50
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaBriskUser.java
  33. 140
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaFeedback.java
  34. 45
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaFeedbackImg.java
  35. 45
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaPublicMonitor.java
  36. 55
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaRemotelyDoor.java
  37. 55
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaRemotelyMonitor.java
  38. 45
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaVisitorLicenseSetting.java
  39. 11
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivity.java
  40. 39
    23
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java
  41. 8
    8
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionLike.java
  42. 161
    63
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReply.java
  43. 5
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/AssembleServiceI.java
  44. 2
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/IMonitoringService.java
  45. 8
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java
  46. 7
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TaVistorServiceI.java
  47. 43
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/AssembleServiceImpl.java
  48. 12
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/HKServiceImpl.java
  49. 59
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MonitoringServiceImpl.java
  50. 67
    36
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java
  51. 9
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserLicenseServiceImpl.java
  52. 57
    40
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java
  53. 15
    8
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaVistorServiceImpl.java
  54. 27
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TaBriskUserMapper.xml
  55. 86
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TaFeedbackImgMapper.xml
  56. 195
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TaFeedbackMapper.xml
  57. 82
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TaPublicMonitorMapper.xml
  58. 93
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TaRemotelyDoorMapper.xml
  59. 93
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TaRemotelyMonitorMapper.xml
  60. 1
    1
      CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml
  61. 82
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TaVisitorLicenseSettingMapper.xml
  62. 19
    4
      CODE/smart-community/app-api/src/main/resources/mapper/TpActivityMapper.xml
  63. 10
    0
      CODE/smart-community/app-api/src/main/resources/mapper/TpActivitySignInMapper.xml
  64. 2
    2
      CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml
  65. 12
    12
      CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionLikeMapper.xml
  66. 45
    78
      CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml
  67. 24
    19
      CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionReplyMapper.xml
  68. 1
    1
      CODE/smart-community/community-common/src/main/java/com/community/commom/fushi/FuShiRequestAPI.java
  69. 30
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/controller/UserController.java
  70. 29
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/dao/TaFeedbackImgMapper.java
  71. 24
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/dao/TaFeedbackMapper.java
  72. 140
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/TaFeedback.java
  73. 45
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/TaFeedbackImg.java
  74. 20
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/IToUserService.java
  75. 13
    17
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/CommunityServiceImpl.java
  76. 52
    0
      CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java
  77. 86
    0
      CODE/smart-community/operate-api/src/main/resources/mapper/TaFeedbackImgMapper.xml
  78. 197
    0
      CODE/smart-community/operate-api/src/main/resources/mapper/TaFeedbackMapper.xml
  79. 2
    12
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/AnnouncementTelController.java
  80. 49
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/IndexCountController.java
  81. 113
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TaTemporaryLicenseCountController.java
  82. 113
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TaUserLicenseCountController.java
  83. 63
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TaVisitorLicenseSettingController.java
  84. 113
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TpBillInvoiceCountController.java
  85. 2
    2
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TransactionController.java
  86. 2
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/BillInvoiceMapper.java
  87. 48
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/IndexCountMapper.java
  88. 20
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaTemporaryLicenseCountMapper.java
  89. 16
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaUserLicenseCountMapper.java
  90. 4
    2
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaUserLicenseOrderMapper.java
  91. 12
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaUserVerifyMapper.java
  92. 16
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaVisitorLicenseSettingMapper.java
  93. 16
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpBillInvoiceCountMapper.java
  94. 1
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TransactionReplyMapper.java
  95. 29
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaBriskUser.java
  96. 41
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaTemporaryLicenseCount.java
  97. 41
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaUserLicenseCount.java
  98. 49
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaVisitorLicenseSetting.java
  99. 41
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpBillInvoiceCount.java
  100. 0
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpTransaction.java

+ 45
- 33
CODE/foreign-service/src/main/java/com/community/huiju/controller/FSController.java 查看文件

23
     @ApiOperation(value = "获取停车信息(通过车牌号)", notes = "获取停车信息(通过车牌号)")
23
     @ApiOperation(value = "获取停车信息(通过车牌号)", notes = "获取停车信息(通过车牌号)")
24
     @ApiImplicitParams({
24
     @ApiImplicitParams({
25
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "carNo", value = "车牌号"),
25
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "carNo", value = "车牌号"),
26
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "appid"),
27
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
28
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "加密方式"),
29
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "签名"),
26
+            @ApiImplicitParam(dataTypeClass = Integer.class, paramType = "query", name = "communityId", value = "小区Id"),
27
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "appid"),
28
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
29
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "加密方式"),
30
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "签名"),
30
     })
31
     })
31
-    public ResponseBean getParkInfoByCarNo(@PathVariable("carNo") String carNo) {
32
+    public ResponseBean getParkInfoByCarNo(@PathVariable("carNo") String carNo,
33
+                                           @RequestParam(value = "communityId") Integer communityId) {
32
         ResponseBean responseBean = new ResponseBean();
34
         ResponseBean responseBean = new ResponseBean();
33
-        responseBean = iFuShiService.getParkInfoByCarNo(carNo);
35
+        responseBean = iFuShiService.getParkInfoByCarNo(carNo, communityId);
34
         return responseBean;
36
         return responseBean;
35
     }
37
     }
36
 
38
 
38
     @ApiOperation(value = "获取月租车信息(通过车牌号)", notes = "获取月租车信息(通过车牌号)")
40
     @ApiOperation(value = "获取月租车信息(通过车牌号)", notes = "获取月租车信息(通过车牌号)")
39
     @ApiImplicitParams({
41
     @ApiImplicitParams({
40
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "carNo", value = "车牌号"),
42
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "carNo", value = "车牌号"),
41
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "appid"),
42
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
43
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "加密方式"),
44
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "签名"),
43
+            @ApiImplicitParam(dataTypeClass = Integer.class, paramType = "query", name = "communityId", value = "小区Id"),
44
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "appid"),
45
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
46
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "加密方式"),
47
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "签名"),
45
     })
48
     })
46
-    public ResponseBean parkGetMonthCardInfoByCarNo(@PathVariable("carNo") String carNo) {
49
+    public ResponseBean parkGetMonthCardInfoByCarNo(@PathVariable("carNo") String carNo,
50
+                                                    @RequestParam(value = "communityId") Integer communityId) {
47
         ResponseBean responseBean = new ResponseBean();
51
         ResponseBean responseBean = new ResponseBean();
48
-        responseBean = iFuShiService.parkGetMonthCardInfoByCarNo(carNo);
52
+        responseBean = iFuShiService.parkGetMonthCardInfoByCarNo(carNo, communityId);
49
         return responseBean;
53
         return responseBean;
50
     }
54
     }
51
 
55
 
53
     @ApiOperation(value = "获取临时车信息(通过车牌号)", notes = "获取临时车信息(通过车牌号)")
57
     @ApiOperation(value = "获取临时车信息(通过车牌号)", notes = "获取临时车信息(通过车牌号)")
54
     @ApiImplicitParams({
58
     @ApiImplicitParams({
55
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "carNo", value = "车牌号"),
59
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "path", name = "carNo", value = "车牌号"),
56
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "appid"),
57
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
58
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "加密方式"),
59
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "签名"),
60
+            @ApiImplicitParam(dataTypeClass = Integer.class, paramType = "query", name = "communityId", value = "小区Id"),
61
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "appid"),
62
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
63
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "加密方式"),
64
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "签名"),
60
     })
65
     })
61
-    public ResponseBean parkGetTempCarPaymentInfoByCarNo(@PathVariable("carNo") String carNo) {
66
+    public ResponseBean parkGetTempCarPaymentInfoByCarNo(@PathVariable("carNo") String carNo,
67
+                                                         @RequestParam(value = "communityId") Integer communityId) {
62
         ResponseBean responseBean = new ResponseBean();
68
         ResponseBean responseBean = new ResponseBean();
63
-        responseBean = iFuShiService.parkGetTempCarPaymentInfoByCarNo(carNo);
69
+        responseBean = iFuShiService.parkGetTempCarPaymentInfoByCarNo(carNo, communityId);
64
         return responseBean;
70
         return responseBean;
65
     }
71
     }
66
 
72
 
73
 //                    "CarNo车牌号;" +
79
 //                    "CarNo车牌号;" +
74
 //                    "CardNo停车卡号;" +
80
 //                    "CardNo停车卡号;" +
75
 //                    "RechargeAmt充值续费金额;"),
81
 //                    "RechargeAmt充值续费金额;"),
76
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "appid", value = "appid"),
77
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "datetime", value = "时间戳"),
78
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "encrypt", value = "加密方式"),
79
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "sign", value = "签名"),
82
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "appid", value = "appid"),
83
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "datetime", value = "时间戳"),
84
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "encrypt", value = "加密方式"),
85
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "sign", value = "签名"),
80
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "Phone", value = "手机号"),
86
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "Phone", value = "手机号"),
81
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RenewDayType", value = "续费日期类型( 3:年 2:月 1:日, 选入对应的数字)"),
87
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RenewDayType", value = "续费日期类型( 3:年 2:月 1:日, 选入对应的数字)"),
82
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RenewDay", value = "续费日期数目"),
88
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RenewDay", value = "续费日期数目"),
84
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CarNo", value = "车牌号"),
90
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CarNo", value = "车牌号"),
85
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CardNo", value = "停车卡号"),
91
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CardNo", value = "停车卡号"),
86
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RechargeAmt", value = "充值续费金额"),
92
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RechargeAmt", value = "充值续费金额"),
93
+            @ApiImplicitParam(dataTypeClass = Integer.class, paramType = "form", name = "communityId", value = "小区Id"),
87
     })
94
     })
88
     public ResponseBean apiThirdPartyMonthCardPay(@RequestParam(value = "Phone") String Phone,
95
     public ResponseBean apiThirdPartyMonthCardPay(@RequestParam(value = "Phone") String Phone,
89
                                                   @RequestParam(value = "RenewDayType") String RenewDayType,
96
                                                   @RequestParam(value = "RenewDayType") String RenewDayType,
91
                                                   @RequestParam(value = "PayStyle") String PayStyle,
98
                                                   @RequestParam(value = "PayStyle") String PayStyle,
92
                                                   @RequestParam(value = "CarNo") String CarNo,
99
                                                   @RequestParam(value = "CarNo") String CarNo,
93
                                                   @RequestParam(value = "CardNo", required = false) String CardNo,
100
                                                   @RequestParam(value = "CardNo", required = false) String CardNo,
94
-                                                  @RequestParam(value = "RechargeAmt") String RechargeAmt) {
101
+                                                  @RequestParam(value = "RechargeAmt") String RechargeAmt,
102
+                                                  @RequestParam(value = "communityId") Integer communityId) {
95
         ResponseBean responseBean = new ResponseBean();
103
         ResponseBean responseBean = new ResponseBean();
96
         responseBean = iFuShiService.apiThirdPartyMonthCardPay(Phone, RenewDayType,
104
         responseBean = iFuShiService.apiThirdPartyMonthCardPay(Phone, RenewDayType,
97
-                RenewDay, PayStyle, CarNo, CardNo, RechargeAmt);
105
+                RenewDay, PayStyle, CarNo, CardNo, RechargeAmt, communityId);
98
         return responseBean;
106
         return responseBean;
99
     }
107
     }
100
 
108
 
109
 //                    "CarNo车牌号;" +
117
 //                    "CarNo车牌号;" +
110
 //                    "CardNo停车卡号;" +
118
 //                    "CardNo停车卡号;" +
111
 //                    "CouponList使用的优惠券列表"),
119
 //                    "CouponList使用的优惠券列表"),
112
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "appid", value = "appid"),
113
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "datetime", value = "时间戳"),
114
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "encrypt", value = "加密方式"),
115
-            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "sign", value = "签名"),
120
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "appid", value = "appid"),
121
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "datetime", value = "时间戳"),
122
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "encrypt", value = "加密方式"),
123
+//            @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "sign", value = "签名"),
116
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "Amount", value = "应缴金额(单位元)"),
124
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "Amount", value = "应缴金额(单位元)"),
117
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "ActualAmount", value = "实缴金额(单位元)"),
125
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "ActualAmount", value = "实缴金额(单位元)"),
118
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "DeductionAmount", value = "抵扣金额(单位元)"),
126
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "DeductionAmount", value = "抵扣金额(单位元)"),
121
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CarNo", value = "车牌号"),
129
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CarNo", value = "车牌号"),
122
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CardNo", value = "停车卡号"),
130
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CardNo", value = "停车卡号"),
123
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CouponList", value = "使用的优惠券列表"),
131
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CouponList", value = "使用的优惠券列表"),
132
+            @ApiImplicitParam(dataTypeClass = Integer.class, paramType = "form", name = "communityId", value = "小区Id"),
124
     })
133
     })
125
     public ResponseBean apiThirdPartyTemporaryCardPay(@RequestParam(value = "Amount") String Amount,
134
     public ResponseBean apiThirdPartyTemporaryCardPay(@RequestParam(value = "Amount") String Amount,
126
                                                       @RequestParam(value = "ActualAmount") String ActualAmount,
135
                                                       @RequestParam(value = "ActualAmount") String ActualAmount,
129
                                                       @RequestParam(value = "PayStyle") String PayStyle,
138
                                                       @RequestParam(value = "PayStyle") String PayStyle,
130
                                                       @RequestParam(value = "CarNo") String CarNo,
139
                                                       @RequestParam(value = "CarNo") String CarNo,
131
                                                       @RequestParam(value = "CardNo",  required = false) String CardNo,
140
                                                       @RequestParam(value = "CardNo",  required = false) String CardNo,
132
-                                                      @RequestParam(value = "CouponList", required = false) String CouponList) {
141
+                                                      @RequestParam(value = "CouponList", required = false) String CouponList,
142
+                                                      @RequestParam(value = "communityId") Integer communityId) {
133
         ResponseBean responseBean = new ResponseBean();
143
         ResponseBean responseBean = new ResponseBean();
134
         responseBean = iFuShiService.apiThirdPartyTemporaryCardPay(Amount, ActualAmount, DeductionAmount,
144
         responseBean = iFuShiService.apiThirdPartyTemporaryCardPay(Amount, ActualAmount, DeductionAmount,
135
-                Reason, PayStyle, CarNo, CardNo, CouponList);
145
+                Reason, PayStyle, CarNo, CardNo, CouponList, communityId);
136
         return responseBean;
146
         return responseBean;
137
     }
147
     }
138
 
148
 
140
     @RequestMapping(value = "/car/apiGetOfflineFee/{carNoOrCardNo}", method = RequestMethod.GET)
150
     @RequestMapping(value = "/car/apiGetOfflineFee/{carNoOrCardNo}", method = RequestMethod.GET)
141
     @ApiOperation(value = "获取线下算费结果", notes = "获取线下算费结果")
151
     @ApiOperation(value = "获取线下算费结果", notes = "获取线下算费结果")
142
     @ApiImplicitParams({
152
     @ApiImplicitParams({
143
-        @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "carNoOrCardNo" , value = "车牌号码或卡号"),
153
+            @ApiImplicitParam(paramType = "path", dataTypeClass = String.class, name = "carNoOrCardNo" , value = "车牌号码或卡号"),
144
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "appid"),
154
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "appid", value = "appid"),
145
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
155
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "datetime", value = "时间戳"),
146
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "加密方式"),
156
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "encrypt", value = "加密方式"),
147
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "签名"),
157
             @ApiImplicitParam(dataTypeClass = String.class, paramType = "query", name = "sign", value = "签名"),
158
+            @ApiImplicitParam(dataTypeClass = Integer.class, paramType = "form", name = "communityId", value = "小区Id"),
148
     })
159
     })
149
-    public ResponseBean apiGetOfflineFee(@PathVariable("carNoOrCardNo") String carNoOrCardNo) {
160
+    public ResponseBean apiGetOfflineFee(@PathVariable("carNoOrCardNo") String carNoOrCardNo,
161
+                                         @RequestParam(value = "communityId") Integer communityId) {
150
         ResponseBean responseBean = new ResponseBean();
162
         ResponseBean responseBean = new ResponseBean();
151
-        responseBean = iFuShiService.apiGetOfflineFee(carNoOrCardNo);
163
+        responseBean = iFuShiService.apiGetOfflineFee(carNoOrCardNo, communityId);
152
         return responseBean;
164
         return responseBean;
153
     }
165
     }
154
 
166
 

+ 16
- 0
CODE/foreign-service/src/main/java/com/community/huiju/dao/TaTemporaryLicenseOrderMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TaTemporaryLicenseOrder;
5
+
6
+/**
7
+ * <p>
8
+ * 临时车缴费表 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-05-28
13
+ */
14
+public interface TaTemporaryLicenseOrderMapper extends BaseMapper<TaTemporaryLicenseOrder> {
15
+
16
+}

+ 16
- 0
CODE/foreign-service/src/main/java/com/community/huiju/dao/TaUserLicenseOrderMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TaUserLicenseOrder;
5
+
6
+/**
7
+ * <p>
8
+ * 月租车缴费订单表 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-05-28
13
+ */
14
+public interface TaUserLicenseOrderMapper extends BaseMapper<TaUserLicenseOrder> {
15
+
16
+}

+ 119
- 0
CODE/foreign-service/src/main/java/com/community/huiju/model/TaTemporaryLicenseOrder.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Data;
7
+import lombok.EqualsAndHashCode;
8
+import lombok.experimental.Accessors;
9
+
10
+import java.io.Serializable;
11
+import java.time.LocalDateTime;
12
+import java.util.Date;
13
+
14
+/**
15
+ * <p>
16
+ * 临时车缴费表
17
+ * </p>
18
+ *
19
+ * @author jobob
20
+ * @since 2019-05-28
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@TableName("ta_temporary_license_order")
26
+public class TaTemporaryLicenseOrder implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @TableId(value = "id", type = IdType.AUTO)
31
+    private Integer id;
32
+
33
+    /**
34
+     * 小区ID
35
+     */
36
+    private Integer communityId;
37
+
38
+    /**
39
+     * 人员ID
40
+     */
41
+    private Integer taUserId;
42
+
43
+    /**
44
+     * 订单号
45
+     */
46
+    private String orderNumber;
47
+
48
+    /**
49
+     * 支付状态  0:未支付  1: 已支付 2: 正在支付中
50
+     */
51
+    private String orderStatus;
52
+
53
+    /**
54
+     * 创建人
55
+     */
56
+    private Integer createUser;
57
+
58
+    /**
59
+     * 创建时间
60
+     */
61
+    private Date createDate;
62
+
63
+    /**
64
+     * 更新人
65
+     */
66
+    private Integer updateUser;
67
+
68
+    /**
69
+     * 更新时间
70
+     */
71
+    private Date updateDate;
72
+
73
+    /**
74
+     * 缴费手机号
75
+     */
76
+    private String paymentTel;
77
+
78
+    /**
79
+     * 缴费人姓名
80
+     */
81
+    private String paymentName;
82
+
83
+    /**
84
+     * 缴费方式 1是支付宝 2是微信支付
85
+     */
86
+    private String paymentType;
87
+
88
+    /**
89
+     * 实缴金额
90
+     */
91
+    private String actualAmount;
92
+
93
+    /**
94
+     * 抵扣金额
95
+     */
96
+    private String deductionAmount;
97
+
98
+    /**
99
+     * 应缴金额
100
+     */
101
+    private String amount;
102
+
103
+    /**
104
+     * 停车场
105
+     */
106
+    private String parkingLot;
107
+
108
+    /**
109
+     * 车牌号
110
+     */
111
+    private String licensePlate;
112
+
113
+    /**
114
+     * 来源
115
+     */
116
+    private String sourceFrom;
117
+
118
+
119
+}

+ 124
- 0
CODE/foreign-service/src/main/java/com/community/huiju/model/TaUserLicenseOrder.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Data;
7
+import lombok.EqualsAndHashCode;
8
+import lombok.experimental.Accessors;
9
+
10
+import java.io.Serializable;
11
+import java.time.LocalDateTime;
12
+import java.util.Date;
13
+
14
+/**
15
+ * <p>
16
+ * 月租车缴费订单表
17
+ * </p>
18
+ *
19
+ * @author jobob
20
+ * @since 2019-05-28
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@TableName("ta_user_license_order")
26
+public class TaUserLicenseOrder implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @TableId(value = "id", type = IdType.AUTO)
31
+    private Integer id;
32
+
33
+    /**
34
+     * 小区ID
35
+     */
36
+    private Integer communityId;
37
+
38
+    /**
39
+     * 人员ID
40
+     */
41
+    private Integer taUserId;
42
+
43
+    /**
44
+     * 订单号
45
+     */
46
+    private String orderNumber;
47
+
48
+    /**
49
+     * 支付状态  0:未支付  1: 已支付 2: 正在支付中 3:已关闭
50
+     */
51
+    private String orderStatus;
52
+
53
+    /**
54
+     * 创建人
55
+     */
56
+    private Integer createUser;
57
+
58
+    /**
59
+     * 创建时间
60
+     */
61
+    private Date createDate;
62
+
63
+    /**
64
+     * 更新人
65
+     */
66
+    private Integer updateUser;
67
+
68
+    /**
69
+     * 更新时间
70
+     */
71
+    private Date updateDate;
72
+
73
+    /**
74
+     * 延期月份
75
+     */
76
+    private Integer extensionMonth;
77
+
78
+    /**
79
+     * 延期费用
80
+     */
81
+    private String extensionPrice;
82
+
83
+    /**
84
+     * 缴费手机号
85
+     */
86
+    private String paymentTel;
87
+
88
+    /**
89
+     * 缴费人姓名
90
+     */
91
+    private String paymentName;
92
+
93
+    /**
94
+     * 缴费方式 0是微信支付 2是支付宝 
95
+     */
96
+    private String paymentType;
97
+
98
+    /**
99
+     * 到期时间
100
+     */
101
+    private Date expireDate;
102
+
103
+    /**
104
+     * 单价费用
105
+     */
106
+    private String unitPrice;
107
+
108
+    /**
109
+     * 停车场
110
+     */
111
+    private String parkingLot;
112
+
113
+    /**
114
+     * 车牌号
115
+     */
116
+    private String licensePlate;
117
+
118
+    /**
119
+     * 来源
120
+     */
121
+    private String sourceFrom;
122
+
123
+
124
+}

+ 6
- 6
CODE/foreign-service/src/main/java/com/community/huiju/service/IFuShiService.java 查看文件

13
      * @param carNo
13
      * @param carNo
14
      * @return
14
      * @return
15
      */
15
      */
16
-    ResponseBean getParkInfoByCarNo(String carNo);
16
+    ResponseBean getParkInfoByCarNo(String carNo, Integer communityId);
17
 
17
 
18
     /**
18
     /**
19
      * 第三方月卡上发续费
19
      * 第三方月卡上发续费
26
      * @param RechargeAmt 充值续费金额
26
      * @param RechargeAmt 充值续费金额
27
      * @return
27
      * @return
28
      */
28
      */
29
-    ResponseBean apiThirdPartyMonthCardPay(String Phone, String RenewDayType, String RenewDay, String PayStyle, String CarNo, String CardNo, String RechargeAmt);
29
+    ResponseBean apiThirdPartyMonthCardPay(String Phone, String RenewDayType, String RenewDay, String PayStyle, String CarNo, String CardNo, String RechargeAmt, Integer communityId);
30
 
30
 
31
 
31
 
32
     /**
32
     /**
52
      *
52
      *
53
      * @return
53
      * @return
54
      */
54
      */
55
-    ResponseBean apiThirdPartyTemporaryCardPay(String Amount, String ActualAmount, String DeductionAmount, String Reason, String PayStyle, String CarNo, String CardNo, String CouponList);
55
+    ResponseBean apiThirdPartyTemporaryCardPay(String Amount, String ActualAmount, String DeductionAmount, String Reason, String PayStyle, String CarNo, String CardNo, String CouponList, Integer communityId);
56
 
56
 
57
     /**
57
     /**
58
      * 获取线下算费结果
58
      * 获取线下算费结果
59
      * @param CarNoOrCardNo 车牌号码或卡号
59
      * @param CarNoOrCardNo 车牌号码或卡号
60
      * @return
60
      * @return
61
      */
61
      */
62
-    ResponseBean apiGetOfflineFee(String CarNoOrCardNo);
62
+    ResponseBean apiGetOfflineFee(String CarNoOrCardNo, Integer communityId);
63
 
63
 
64
     /**
64
     /**
65
      * 获取月租车信息(通过车牌号)
65
      * 获取月租车信息(通过车牌号)
66
      * @param CarNo
66
      * @param CarNo
67
      * @return
67
      * @return
68
      */
68
      */
69
-    ResponseBean parkGetMonthCardInfoByCarNo(String CarNo);
69
+    ResponseBean parkGetMonthCardInfoByCarNo(String CarNo, Integer communityId);
70
 
70
 
71
     /**
71
     /**
72
      * 获取临时车信息(通过车牌号)
72
      * 获取临时车信息(通过车牌号)
73
      * @param CarNo
73
      * @param CarNo
74
      * @return
74
      * @return
75
      */
75
      */
76
-    ResponseBean parkGetTempCarPaymentInfoByCarNo(String CarNo);
76
+    ResponseBean parkGetTempCarPaymentInfoByCarNo(String CarNo, Integer communityId);
77
 }
77
 }

+ 18
- 0
CODE/foreign-service/src/main/java/com/community/huiju/service/ITaTemporaryLicenseOrderService.java 查看文件

1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.huiju.common.base.ResponseBean;
5
+import com.community.huiju.model.TaTemporaryLicenseOrder;
6
+
7
+/**
8
+ * <p>
9
+ * 临时车缴费表 服务类
10
+ * </p>
11
+ *
12
+ * @author jobob
13
+ * @since 2019-05-28
14
+ */
15
+public interface ITaTemporaryLicenseOrderService extends IService<TaTemporaryLicenseOrder> {
16
+
17
+
18
+}

+ 16
- 0
CODE/foreign-service/src/main/java/com/community/huiju/service/ITaUserLicenseOrderService.java 查看文件

1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.huiju.model.TaUserLicenseOrder;
5
+
6
+/**
7
+ * <p>
8
+ * 月租车缴费订单表 服务类
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-05-28
13
+ */
14
+public interface ITaUserLicenseOrderService extends IService<TaUserLicenseOrder> {
15
+
16
+}

+ 116
- 6
CODE/foreign-service/src/main/java/com/community/huiju/service/impl/FuShiServiceImpl.java 查看文件

1
 package com.community.huiju.service.impl;
1
 package com.community.huiju.service.impl;
2
 
2
 
3
 import com.alibaba.fastjson.JSONObject;
3
 import com.alibaba.fastjson.JSONObject;
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
 import com.community.commom.fushi.FuShiRequestAPI;
5
 import com.community.commom.fushi.FuShiRequestAPI;
6
+import com.community.commom.fushi.error.FuShiException;
5
 import com.community.commom.mode.ResponseBean;
7
 import com.community.commom.mode.ResponseBean;
6
 import com.community.commom.uuid.IdGen;
8
 import com.community.commom.uuid.IdGen;
7
 import com.community.huiju.common.perproties.FuShiProperties;
9
 import com.community.huiju.common.perproties.FuShiProperties;
10
+import com.community.huiju.dao.TaTemporaryLicenseOrderMapper;
11
+import com.community.huiju.dao.TaUserLicenseOrderMapper;
12
+import com.community.huiju.dao.TaUserMapper;
8
 import com.community.huiju.log.LogAnnotation;
13
 import com.community.huiju.log.LogAnnotation;
9
 import com.community.huiju.log.LogEnums;
14
 import com.community.huiju.log.LogEnums;
15
+import com.community.huiju.model.TaTemporaryLicenseOrder;
16
+import com.community.huiju.model.TaUser;
17
+import com.community.huiju.model.TaUserLicenseOrder;
10
 import com.community.huiju.service.IFuShiService;
18
 import com.community.huiju.service.IFuShiService;
11
 import com.google.common.collect.Maps;
19
 import com.google.common.collect.Maps;
12
 import lombok.extern.slf4j.Slf4j;
20
 import lombok.extern.slf4j.Slf4j;
13
 import org.springframework.beans.factory.annotation.Autowired;
21
 import org.springframework.beans.factory.annotation.Autowired;
14
 import org.springframework.stereotype.Service;
22
 import org.springframework.stereotype.Service;
15
 
23
 
24
+import java.math.BigDecimal;
25
+import java.text.ParseException;
26
+import java.text.SimpleDateFormat;
16
 import java.time.LocalDateTime;
27
 import java.time.LocalDateTime;
17
 import java.time.format.DateTimeFormatter;
28
 import java.time.format.DateTimeFormatter;
29
+import java.util.Date;
18
 import java.util.Map;
30
 import java.util.Map;
19
 
31
 
20
 /**
32
 /**
33
 
45
 
34
     private IdGen idGen = IdGen.get();
46
     private IdGen idGen = IdGen.get();
35
 
47
 
48
+    @Autowired
49
+    private TaTemporaryLicenseOrderMapper taTemporaryLicenseOrderMapper;
50
+
51
+    @Autowired
52
+    private TaUserLicenseOrderMapper taUserLicenseOrderMapper;
53
+
54
+    @Autowired
55
+    private TaUserMapper taUserMapper;
56
+
36
     /**
57
     /**
37
      * 获取 富士 json 值
58
      * 获取 富士 json 值
38
      * @param jsonString
59
      * @param jsonString
52
 
73
 
53
     @LogAnnotation(value = LogEnums.DA_SU, alias = "获取停车信息(通过车牌号)")
74
     @LogAnnotation(value = LogEnums.DA_SU, alias = "获取停车信息(通过车牌号)")
54
     @Override
75
     @Override
55
-    public ResponseBean getParkInfoByCarNo(String carNo) {
76
+    public ResponseBean getParkInfoByCarNo(String carNo, Integer communityId) {
56
         ResponseBean responseBean = new ResponseBean();
77
         ResponseBean responseBean = new ResponseBean();
57
         String parkInfo = fuShiRequestAPI.getParkInfoByCarNo(fuShiProperties.getParkingCode(), carNo);
78
         String parkInfo = fuShiRequestAPI.getParkInfoByCarNo(fuShiProperties.getParkingCode(), carNo);
58
         Map<String, Object> fuShiInfo = getFuShiInfo(parkInfo);
79
         Map<String, Object> fuShiInfo = getFuShiInfo(parkInfo);
62
 
83
 
63
     @LogAnnotation(value = LogEnums.DA_SU, alias = "第三方月卡上发续费")
84
     @LogAnnotation(value = LogEnums.DA_SU, alias = "第三方月卡上发续费")
64
     @Override
85
     @Override
65
-    public ResponseBean apiThirdPartyMonthCardPay(String Phone, String RenewDayType, String RenewDay, String PayStyle, String CarNo, String CardNo, String RechargeAmt) {
86
+    public ResponseBean apiThirdPartyMonthCardPay(String Phone, String RenewDayType, String RenewDay, String PayStyle, String CarNo, String CardNo, String RechargeAmt, Integer communityId) {
66
         ResponseBean responseBean = new ResponseBean();
87
         ResponseBean responseBean = new ResponseBean();
67
         DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss");
88
         DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss");
68
         // 交易编码
89
         // 交易编码
75
         Map<String, Object> map = Maps.newHashMap();
96
         Map<String, Object> map = Maps.newHashMap();
76
         map.put("TradeNo", tradeNo);
97
         map.put("TradeNo", tradeNo);
77
         responseBean.addSuccess(map);
98
         responseBean.addSuccess(map);
99
+
100
+        QueryWrapper<TaUser> userQueryWrapper = new QueryWrapper<>();
101
+        userQueryWrapper.eq("login_name", Phone);
102
+        TaUser user = taUserMapper.selectOne(userQueryWrapper);
103
+
104
+        // 月租车缴费记录
105
+        TaUserLicenseOrder taUserLicenseOrder = new TaUserLicenseOrder();
106
+        taUserLicenseOrder.setCommunityId(communityId);
107
+        taUserLicenseOrder.setTaUserId(user.getUserId());
108
+        taUserLicenseOrder.setOrderNumber(dealNo);
109
+        taUserLicenseOrder.setOrderStatus("1");
110
+        taUserLicenseOrder.setCreateUser(user.getUserId());
111
+        taUserLicenseOrder.setCreateDate(new Date());
112
+        taUserLicenseOrder.setExtensionMonth(Integer.valueOf(RenewDay));
113
+        taUserLicenseOrder.setExtensionPrice(RechargeAmt);
114
+        taUserLicenseOrder.setPaymentTel(user.getLoginName());
115
+        taUserLicenseOrder.setPaymentName(user.getUserName());
116
+        // 缴费方式 1是支付宝 2是微信支付
117
+        if (PayStyle.contains("微信")) {
118
+            taUserLicenseOrder.setPaymentType("0");
119
+        } else if (PayStyle.contains("支付宝")){
120
+            taUserLicenseOrder.setPaymentType("2");
121
+        }
122
+
123
+        // 查询这个交费后的车牌
124
+        String parkGetMonthCardInfoByCarNo = fuShiRequestAPI.parkGetMonthCardInfoByCarNo(fuShiProperties.getParkingCode(), CarNo);
125
+        JSONObject jsonObject = JSONObject.parseObject(parkGetMonthCardInfoByCarNo);
126
+        Map<String, Object> innerMap = jsonObject.getInnerMap();
127
+        Integer messageCode = (Integer) innerMap.get("MessageCode");
128
+        if (200 != messageCode.intValue()) {
129
+            log.error("月租车缴费记录错误:{}", parkGetMonthCardInfoByCarNo);
130
+            String messageContent = jsonObject.getString("MessageContent");
131
+            throw new FuShiException(messageCode, messageContent);
132
+        }
133
+
134
+        Map<String, Object> result = (Map<String, Object>) innerMap.get("Result");
135
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
136
+        try {
137
+            taUserLicenseOrder.setExpireDate(format.parse(String.valueOf(result.get("EndTime"))));
138
+        } catch (ParseException e) {
139
+            e.printStackTrace();
140
+        }
141
+
142
+        Object cost = result.get("Cost");
143
+        String costValue = String.valueOf(Double.valueOf(((BigDecimal) cost).toString()) * 100);
144
+
145
+        taUserLicenseOrder.setUnitPrice(costValue.substring(0, costValue.lastIndexOf(".")));
146
+        taUserLicenseOrder.setParkingLot(String.valueOf(result.get("ParkingName")));
147
+        taUserLicenseOrder.setLicensePlate(CarNo);
148
+        taUserLicenseOrder.setSourceFrom("大苏");
149
+        taUserLicenseOrderMapper.insert(taUserLicenseOrder);
150
+
78
         return responseBean;
151
         return responseBean;
79
     }
152
     }
80
 
153
 
103
      */
176
      */
104
     @LogAnnotation(value = LogEnums.DA_SU, alias = "第三方临时卡上发缴费")
177
     @LogAnnotation(value = LogEnums.DA_SU, alias = "第三方临时卡上发缴费")
105
     @Override
178
     @Override
106
-    public ResponseBean apiThirdPartyTemporaryCardPay(String Amount, String ActualAmount, String DeductionAmount, String Reason, String PayStyle, String CarNo, String CardNo, String CouponList) {
179
+    public ResponseBean apiThirdPartyTemporaryCardPay(String Amount, String ActualAmount, String DeductionAmount, String Reason, String PayStyle, String CarNo, String CardNo, String CouponList, Integer communityId) {
107
         ResponseBean responseBean = new ResponseBean();
180
         ResponseBean responseBean = new ResponseBean();
108
         // 交易编号
181
         // 交易编号
109
         String dealNo = idGen.nextId() + "";
182
         String dealNo = idGen.nextId() + "";
112
         Map<String, Object> map = Maps.newHashMap();
185
         Map<String, Object> map = Maps.newHashMap();
113
         map.put("TradeNo", tradeNo);
186
         map.put("TradeNo", tradeNo);
114
         responseBean.addSuccess(map);
187
         responseBean.addSuccess(map);
188
+
189
+        // 临时车缴费记录
190
+        TaTemporaryLicenseOrder taTemporaryLicenseOrder = new TaTemporaryLicenseOrder();
191
+        taTemporaryLicenseOrder.setCommunityId(communityId);
192
+        taTemporaryLicenseOrder.setOrderNumber(dealNo);
193
+        taTemporaryLicenseOrder.setOrderStatus("1");
194
+        taTemporaryLicenseOrder.setCreateDate(new Date());
195
+        taTemporaryLicenseOrder.setUpdateDate(new Date());
196
+        // 缴费方式 1是支付宝 2是微信支付
197
+        if (PayStyle.contains("微信")) {
198
+            taTemporaryLicenseOrder.setPaymentType("2");
199
+        } else if (PayStyle.contains("支付宝")){
200
+            taTemporaryLicenseOrder.setPaymentType("1");
201
+        }
202
+        taTemporaryLicenseOrder.setActualAmount(ActualAmount);
203
+        taTemporaryLicenseOrder.setDeductionAmount(DeductionAmount);
204
+        taTemporaryLicenseOrder.setAmount(Amount);
205
+
206
+        String parkGetMonthCardInfoByCarNo = fuShiRequestAPI.parkGetTempCarPaymentInfoByCarNo(fuShiProperties.getParkingCode(), CarNo);
207
+        JSONObject jsonObject = JSONObject.parseObject(parkGetMonthCardInfoByCarNo);
208
+        Map<String, Object> innerMap = jsonObject.getInnerMap();
209
+        Integer messageCode = (Integer) innerMap.get("MessageCode");
210
+        if (200 != messageCode.intValue()) {
211
+            log.error("临时车缴费记录错误:{}", parkGetMonthCardInfoByCarNo);
212
+            String messageContent = jsonObject.getString("MessageContent");
213
+            throw new FuShiException(messageCode, messageContent);
214
+        }
215
+
216
+        Map<String, Object> result = (Map<String, Object>) innerMap.get("Result");
217
+        taTemporaryLicenseOrder.setParkingLot(String.valueOf(result.get("ParkingName")));
218
+        taTemporaryLicenseOrder.setLicensePlate(CarNo);
219
+        taTemporaryLicenseOrder.setSourceFrom("大苏");
220
+
221
+        taTemporaryLicenseOrderMapper.insert(taTemporaryLicenseOrder);
222
+
223
+
224
+
115
         return responseBean;
225
         return responseBean;
116
     }
226
     }
117
 
227
 
118
     @LogAnnotation(value = LogEnums.DA_SU, alias = "获取线下算费结果")
228
     @LogAnnotation(value = LogEnums.DA_SU, alias = "获取线下算费结果")
119
     @Override
229
     @Override
120
-    public ResponseBean apiGetOfflineFee(String CarNoOrCardNo) {
230
+    public ResponseBean apiGetOfflineFee(String CarNoOrCardNo, Integer communityId) {
121
         ResponseBean responseBean = new ResponseBean();
231
         ResponseBean responseBean = new ResponseBean();
122
         String apiGetOfflineFee = fuShiRequestAPI.apiGetOfflineFee(fuShiProperties.getParkingCode(), CarNoOrCardNo);
232
         String apiGetOfflineFee = fuShiRequestAPI.apiGetOfflineFee(fuShiProperties.getParkingCode(), CarNoOrCardNo);
123
         String result = JSONObject.parseObject(apiGetOfflineFee).getString("Result");
233
         String result = JSONObject.parseObject(apiGetOfflineFee).getString("Result");
134
      */
244
      */
135
     @LogAnnotation(value = LogEnums.DA_SU, alias = "获取月租车信息(通过车牌号)")
245
     @LogAnnotation(value = LogEnums.DA_SU, alias = "获取月租车信息(通过车牌号)")
136
     @Override
246
     @Override
137
-    public ResponseBean parkGetMonthCardInfoByCarNo(String CarNo) {
247
+    public ResponseBean parkGetMonthCardInfoByCarNo(String CarNo, Integer communityId) {
138
         ResponseBean responseBean = new ResponseBean();
248
         ResponseBean responseBean = new ResponseBean();
139
         String parkGetMonthCardInfoByCarNo = fuShiRequestAPI.parkGetMonthCardInfoByCarNo(fuShiProperties.getParkingCode(), CarNo);
249
         String parkGetMonthCardInfoByCarNo = fuShiRequestAPI.parkGetMonthCardInfoByCarNo(fuShiProperties.getParkingCode(), CarNo);
140
         JSONObject jsonObject = JSONObject.parseObject(parkGetMonthCardInfoByCarNo);
250
         JSONObject jsonObject = JSONObject.parseObject(parkGetMonthCardInfoByCarNo);
153
      */
263
      */
154
     @LogAnnotation(value = LogEnums.DA_SU, alias = "获取临时车信息(通过车牌号)")
264
     @LogAnnotation(value = LogEnums.DA_SU, alias = "获取临时车信息(通过车牌号)")
155
     @Override
265
     @Override
156
-    public ResponseBean parkGetTempCarPaymentInfoByCarNo(String CarNo) {
266
+    public ResponseBean parkGetTempCarPaymentInfoByCarNo(String CarNo,Integer communityId) {
157
         ResponseBean responseBean = new ResponseBean();
267
         ResponseBean responseBean = new ResponseBean();
158
         String parkGetMonthCardInfoByCarNo = fuShiRequestAPI.parkGetTempCarPaymentInfoByCarNo(fuShiProperties.getParkingCode(), CarNo);
268
         String parkGetMonthCardInfoByCarNo = fuShiRequestAPI.parkGetTempCarPaymentInfoByCarNo(fuShiProperties.getParkingCode(), CarNo);
159
         JSONObject jsonObject = JSONObject.parseObject(parkGetMonthCardInfoByCarNo);
269
         JSONObject jsonObject = JSONObject.parseObject(parkGetMonthCardInfoByCarNo);

+ 20
- 0
CODE/foreign-service/src/main/java/com/community/huiju/service/impl/TaTemporaryLicenseOrderServiceImpl.java 查看文件

1
+package com.community.huiju.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.community.huiju.dao.TaTemporaryLicenseOrderMapper;
5
+import com.community.huiju.model.TaTemporaryLicenseOrder;
6
+import com.community.huiju.service.ITaTemporaryLicenseOrderService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 临时车缴费表 服务实现类
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2019-05-28
16
+ */
17
+@Service
18
+public class TaTemporaryLicenseOrderServiceImpl extends ServiceImpl<TaTemporaryLicenseOrderMapper, TaTemporaryLicenseOrder> implements ITaTemporaryLicenseOrderService {
19
+
20
+}

+ 20
- 0
CODE/foreign-service/src/main/java/com/community/huiju/service/impl/TaUserLicenseOrderServiceImpl.java 查看文件

1
+package com.community.huiju.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.community.huiju.dao.TaUserLicenseOrderMapper;
5
+import com.community.huiju.model.TaUserLicenseOrder;
6
+import com.community.huiju.service.ITaUserLicenseOrderService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 月租车缴费订单表 服务实现类
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2019-05-28
16
+ */
17
+@Service
18
+public class TaUserLicenseOrderServiceImpl extends ServiceImpl<TaUserLicenseOrderMapper, TaUserLicenseOrder> implements ITaUserLicenseOrderService {
19
+
20
+}

+ 3
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/common/code/ICode.java 查看文件

32
         String phoneCode = (String) AppkeyCache.getCache(phone);
32
         String phoneCode = (String) AppkeyCache.getCache(phone);
33
         if ("1234".equals(code)) {
33
         if ("1234".equals(code)) {
34
 
34
 
35
-        }else if (StringUtils.isBlank(phoneCode) || !phoneCode.equals(code)) {
35
+        }else if (StringUtils.isBlank(phoneCode)) {
36
             throw new WisdomException("请输入验证码!");
36
             throw new WisdomException("请输入验证码!");
37
+        } else if (!phoneCode.equals(code)) {
38
+            throw new WisdomException("验证码错误!");
37
         }
39
         }
38
         // 设置验证码为null字符
40
         // 设置验证码为null字符
39
         // AppkeyCache.setCache(phone,"null");
41
         // AppkeyCache.setCache(phone,"null");

+ 6
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AssembleController.java 查看文件

5
 import com.community.commom.session.UserElement;
5
 import com.community.commom.session.UserElement;
6
 import com.community.huiju.model.TaSysMenu;
6
 import com.community.huiju.model.TaSysMenu;
7
 import com.community.huiju.model.ToBanner;
7
 import com.community.huiju.model.ToBanner;
8
+import com.community.huiju.service.AssembleServiceI;
8
 import com.community.huiju.service.BannerServiceI;
9
 import com.community.huiju.service.BannerServiceI;
9
 import com.community.huiju.service.MenuServiceI;
10
 import com.community.huiju.service.MenuServiceI;
10
 import com.community.huiju.service.MessageServiceI;
11
 import com.community.huiju.service.MessageServiceI;
51
 	@Autowired
52
 	@Autowired
52
 	private TpShopServicel tpShopServicel;
53
 	private TpShopServicel tpShopServicel;
53
 	
54
 	
55
+	@Autowired
56
+	private AssembleServiceI assembleService;
57
+	
54
 	@ApiOperation(value = "首页数据获取接口", notes = "首页数据获取接口")
58
 	@ApiOperation(value = "首页数据获取接口", notes = "首页数据获取接口")
55
 	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
59
 	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
56
 			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
60
 			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
57
 	@RequestMapping(value = "/index/{communityId}",method = RequestMethod.GET)
61
 	@RequestMapping(value = "/index/{communityId}",method = RequestMethod.GET)
58
 	public ResponseBean getIndexData(@PathVariable("communityId") Integer communityId, HttpSession session){
62
 	public ResponseBean getIndexData(@PathVariable("communityId") Integer communityId, HttpSession session){
59
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
63
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
60
-		Integer userId = userElement.getId();
61
 		ResponseBean responseBean = new ResponseBean();
64
 		ResponseBean responseBean = new ResponseBean();
62
 
65
 
63
 		if (!check(communityId)) {
66
 		if (!check(communityId)) {
86
 		indexMap.put("tpShopList",((Map<Object, Object>)shopRes.getData()).get("tpShopList"));
89
 		indexMap.put("tpShopList",((Map<Object, Object>)shopRes.getData()).get("tpShopList"));
87
 		indexMap.put("toDoTotal",totalMap.get("toDoTotal"));
90
 		indexMap.put("toDoTotal",totalMap.get("toDoTotal"));
88
 		responseBean.addSuccess(indexMap);
91
 		responseBean.addSuccess(indexMap);
92
+		//获取成功的情况下记录
93
+		assembleService.saveBriskUser(userElement.getUserVerifyId(),userElement.getCommunityId());
89
 		return responseBean;
94
 		return responseBean;
90
 	}
95
 	}
91
 }
96
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/HkController.java 查看文件

61
 
61
 
62
 	@ApiOperation(value = "门口机开门", notes = "门口机开门")
62
 	@ApiOperation(value = "门口机开门", notes = "门口机开门")
63
 	@ApiImplicitParams({
63
 	@ApiImplicitParams({
64
-			@ApiImplicitParam(dataTypeClass = Integer.class, paramType = "header", name = "X-Auth-Token", value = "用户审核房产id")
64
+			@ApiImplicitParam(dataTypeClass = Integer.class, paramType = "header", name = "X-Auth-Token", value = "Token")
65
 	})
65
 	})
66
 	@RequestMapping(value = "/visual/syncControl", method = RequestMethod.POST)
66
 	@RequestMapping(value = "/visual/syncControl", method = RequestMethod.POST)
67
 	public ResponseBean syncControl( HttpServletRequest request, HttpSession session){
67
 	public ResponseBean syncControl( HttpServletRequest request, HttpSession session){

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MessageController.java 查看文件

98
 	@RequestMapping(value = "/readStatus/{communityId}",method = RequestMethod.POST)
98
 	@RequestMapping(value = "/readStatus/{communityId}",method = RequestMethod.POST)
99
 	public ResponseBean allMessageRead(@PathVariable("communityId") Integer communityId, HttpSession session){
99
 	public ResponseBean allMessageRead(@PathVariable("communityId") Integer communityId, HttpSession session){
100
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
100
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
101
-		Integer userId = userElement.getId();
101
+		Integer userId = userElement.getUserVerifyId();
102
 		ResponseBean responseBean = new ResponseBean();
102
 		ResponseBean responseBean = new ResponseBean();
103
 
103
 
104
 		if (!check(communityId)) {
104
 		if (!check(communityId)) {

+ 12
- 6
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/MonitoringController.java 查看文件

30
     @ApiImplicitParams({
30
     @ApiImplicitParams({
31
             @ApiImplicitParam(paramType = "path",dataType = "Integer",name = "communityId",value = "小区ID"),
31
             @ApiImplicitParam(paramType = "path",dataType = "Integer",name = "communityId",value = "小区ID"),
32
             @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageNo",value = "第几页"),
32
             @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageNo",value = "第几页"),
33
-            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageSize",value = "一页多少行")
33
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageSize",value = "一页多少行"),
34
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
34
     })
35
     })
35
     @RequestMapping(value = "/monitoring/{communityId}",method = RequestMethod.GET)
36
     @RequestMapping(value = "/monitoring/{communityId}",method = RequestMethod.GET)
36
     public ResponseBean getList(@PathVariable("communityId") Integer communityId,
37
     public ResponseBean getList(@PathVariable("communityId") Integer communityId,
37
                                 @RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
38
                                 @RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
38
-                                @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
39
+                                @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize,
40
+                                HttpSession session){
39
         ResponseBean response = new ResponseBean();
41
         ResponseBean response = new ResponseBean();
40
         if (!check(communityId)) {
42
         if (!check(communityId)) {
41
             response.addError("小区不存在");
43
             response.addError("小区不存在");
42
             return response;
44
             return response;
43
         }
45
         }
44
 
46
 
45
-        response = iMonitoringService.getByCommunityId(communityId,pageNo,pageSize);
47
+        UserElement userElement = getUserElement(session);
48
+        response = iMonitoringService.getByCommunityId(userElement,communityId,pageNo,pageSize);
46
         return response;
49
         return response;
47
     }
50
     }
48
 
51
 
71
     @ApiImplicitParams({
74
     @ApiImplicitParams({
72
             @ApiImplicitParam(paramType = "path",dataType = "Integer",name = "communityId",value = "小区ID"),
75
             @ApiImplicitParam(paramType = "path",dataType = "Integer",name = "communityId",value = "小区ID"),
73
             @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageNo",value = "第几页"),
76
             @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageNo",value = "第几页"),
74
-            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageSize",value = "一页多少行")
77
+            @ApiImplicitParam(paramType = "query",dataType = "Integer",name = "pageSize",value = "一页多少行"),
78
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
75
     })
79
     })
76
     @RequestMapping(value = "/monitoring/hls/{communityId}",method = RequestMethod.GET)
80
     @RequestMapping(value = "/monitoring/hls/{communityId}",method = RequestMethod.GET)
77
     public ResponseBean getListHLS(@PathVariable("communityId") Integer communityId,
81
     public ResponseBean getListHLS(@PathVariable("communityId") Integer communityId,
78
                                    @RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
82
                                    @RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
79
-                                   @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize) {
83
+                                   @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize,
84
+                                   HttpSession session) {
80
 
85
 
81
         ResponseBean responseBean = new ResponseBean();
86
         ResponseBean responseBean = new ResponseBean();
82
-        responseBean = iMonitoringService.getHlsByCommunityId(communityId, pageNo, pageSize);
87
+        UserElement userElement = getUserElement(session);
88
+        responseBean = iMonitoringService.getHlsByCommunityId(userElement,communityId, pageNo, pageSize);
83
         return responseBean;
89
         return responseBean;
84
     }
90
     }
85
 
91
 

+ 4
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java 查看文件

129
                                            @RequestParam("activityId") Integer activityId,
129
                                            @RequestParam("activityId") Integer activityId,
130
                                            HttpSession session) {
130
                                            HttpSession session) {
131
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
131
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
132
-        Integer userId = userElement.getId();
132
+        Integer userId = userElement.getUserVerifyId();
133
 
133
 
134
         ResponseBean responseBean = new ResponseBean();
134
         ResponseBean responseBean = new ResponseBean();
135
         if (!check(communityId)) {
135
         if (!check(communityId)) {
252
     public ResponseBean findUsedDetails(@PathVariable(value = "communityId") Integer communityId, @RequestParam("activityId") Integer activityId, HttpSession session) {
252
     public ResponseBean findUsedDetails(@PathVariable(value = "communityId") Integer communityId, @RequestParam("activityId") Integer activityId, HttpSession session) {
253
         ResponseBean responseBean = new ResponseBean();
253
         ResponseBean responseBean = new ResponseBean();
254
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
254
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
255
-        Integer userId = userElement.getId();
255
+        Integer userId = userElement.getUserVerifyId();
256
 
256
 
257
         if (!check(communityId)) {
257
         if (!check(communityId)) {
258
             responseBean.addError("小区不存在");
258
             responseBean.addError("小区不存在");
379
     public ResponseBean ubdateTransaction(HttpSession session,@PathVariable("id") String id, @RequestBody String paramets) {
379
     public ResponseBean ubdateTransaction(HttpSession session,@PathVariable("id") String id, @RequestBody String paramets) {
380
         ResponseBean responseBean = new ResponseBean();
380
         ResponseBean responseBean = new ResponseBean();
381
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
381
         UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
382
-        Integer userId = userElement.getId();
382
+        Integer userId = userElement.getUserVerifyId();
383
         ResponseBean response = socialServiceI.updateTransaction(paramets,userId,Integer.valueOf(id));
383
         ResponseBean response = socialServiceI.updateTransaction(paramets,userId,Integer.valueOf(id));
384
         return response;
384
         return response;
385
     }
385
     }
431
     @ApiOperation(value = "二手帖子对话", notes = "二手帖子对话")
431
     @ApiOperation(value = "二手帖子对话", notes = "二手帖子对话")
432
     @ApiImplicitParams({
432
     @ApiImplicitParams({
433
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =
433
             @ApiImplicitParam(paramType = "body", dataType = "String", name = "paramets", value =
434
-                    "transactionId:当前帖子ID,replyContent:回复内容,replyTaUserId:被回复的用户ID,imgArr:可多张[]"),
434
+                    "transactionId:当前帖子ID,replyContent:回复内容,replyId:被回复的评论ID,imgArr:可多张[]"),
435
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
435
             @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
436
     })
436
     })
437
     @RequestMapping(value = "/addTransactionReply", method = RequestMethod.POST)
437
     @RequestMapping(value = "/addTransactionReply", method = RequestMethod.POST)

+ 16
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/UserController.java 查看文件

325
         return responseBean;
325
         return responseBean;
326
     }
326
     }
327
 
327
 
328
+    @ApiOperation(value = "app问题反馈", notes = "app问题反馈")
329
+    @ApiImplicitParams({
330
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "content:问题描述,feedbackImg:反馈的图片,taUserTel:反馈人电话"),
331
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
332
+    })
333
+    @RequestMapping(value = "/user/addfeedback",method = RequestMethod.POST)
334
+    public ResponseBean addFeedback(@RequestBody String parameter, HttpSession session){
335
+        ResponseBean response = new ResponseBean();
336
+        UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
337
+        response = iTaUserService.addFeedback(userElement,parameter);
338
+        return response;
339
+
340
+    }
341
+
342
+
343
+
328
 }
344
 }

+ 15
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/VistorController.java 查看文件

70
         responseBean = vistorServiceI.invateHis(communityId, userId);
70
         responseBean = vistorServiceI.invateHis(communityId, userId);
71
         return  responseBean;
71
         return  responseBean;
72
     }
72
     }
73
+
74
+    @ApiOperation(value = "查询是否开启了访客邀请的车辆", notes = "查询是否开启了访客邀请的车辆")
75
+    @ApiImplicitParams({
76
+            @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
77
+    })
78
+    @RequestMapping(value = "/invate_license/bool", method = RequestMethod.GET)
79
+    public ResponseBean invateBool(HttpSession session) {
80
+        ResponseBean responseBean = new ResponseBean();
81
+        UserElement userElement = getUserElement(session);
82
+        responseBean = vistorServiceI.invateBool(userElement);
83
+        return responseBean;
84
+    }
85
+
86
+
87
+
73
 }
88
 }

+ 16
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaBriskUserMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TaBriskUser;
4
+import org.apache.ibatis.annotations.Mapper;
5
+import org.apache.ibatis.annotations.Param;
6
+
7
+import java.util.Date;
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TaBriskUserMapper {
12
+	
13
+	List<TaBriskUser> selectByParams(@Param("userVerifyId") Integer userVerifyId, @Param("communityId") Integer communityId,@Param("nowDate") Date nowDate);
14
+	
15
+	int saveBriskUser(TaBriskUser taBriskUser);
16
+}

+ 30
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaFeedbackImgMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TaFeedbackImg;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TaFeedbackImgMapper {
12
+    int deleteByPrimaryKey(Integer id);
13
+
14
+    int insert(TaFeedbackImg record);
15
+
16
+    int insertSelective(TaFeedbackImg record);
17
+
18
+    TaFeedbackImg selectByPrimaryKey(Integer id);
19
+
20
+    int updateByPrimaryKeySelective(TaFeedbackImg record);
21
+
22
+    int updateByPrimaryKey(TaFeedbackImg record);
23
+
24
+    /**
25
+     * 获取反馈当前图片
26
+     * @param id
27
+     * @return
28
+     */
29
+    List<String> selectImg(@Param("id") Integer id);
30
+}

+ 25
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaFeedbackMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TaFeedback;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+
10
+@Mapper
11
+public interface TaFeedbackMapper {
12
+    int deleteByPrimaryKey(Integer id);
13
+
14
+    int insert(TaFeedback record);
15
+
16
+    int insertSelective(TaFeedback record);
17
+
18
+    TaFeedback selectByPrimaryKey(Integer id);
19
+
20
+    int updateByPrimaryKeySelective(TaFeedback record);
21
+
22
+    int updateByPrimaryKey(TaFeedback record);
23
+
24
+    List<TaFeedback> getFeedback(@Param("content") String content, @Param("tel") String tel, @Param("handleStatus") String handleStatus);
25
+}

+ 19
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaPublicMonitorMapper.java 查看文件

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

+ 19
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaRemotelyDoorMapper.java 查看文件

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

+ 19
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaRemotelyMonitorMapper.java 查看文件

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

+ 26
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TaVisitorLicenseSettingMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TaVisitorLicenseSetting;
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
+@Mapper
10
+public interface TaVisitorLicenseSettingMapper {
11
+    int deleteByPrimaryKey(Integer id);
12
+
13
+    int insert(TaVisitorLicenseSetting record);
14
+
15
+    int insertSelective(TaVisitorLicenseSetting record);
16
+
17
+    TaVisitorLicenseSetting selectByPrimaryKey(Integer id);
18
+
19
+    int updateByPrimaryKeySelective(TaVisitorLicenseSetting record);
20
+
21
+    int updateByPrimaryKey(TaVisitorLicenseSetting record);
22
+
23
+    @ResultMap("BaseResultMap")
24
+    @Select("select * from ta_visitor_license_setting where community_id = #{communityId}")
25
+    TaVisitorLicenseSetting selectByCommunityId(@Param("communityId") Integer communityId);
26
+}

+ 2
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivityMapper.java 查看文件

38
      * @return
38
      * @return
39
      */
39
      */
40
     List<TpActivity> selecttpActivity(@Param("id") Integer id, @Param("communityId") Integer communityId);
40
     List<TpActivity> selecttpActivity(@Param("id") Integer id, @Param("communityId") Integer communityId);
41
+
42
+    TpActivity selectActivity(@Param("activityId") Integer activityId);
41
 }
43
 }

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignInMapper.java 查看文件

24
      *
24
      *
25
      */
25
      */
26
     TpActivitySignIn selectSing(@Param("activityId") Integer activityId,@Param("userID") Integer userID);
26
     TpActivitySignIn selectSing(@Param("activityId") Integer activityId,@Param("userID") Integer userID);
27
+
27
 }
28
 }

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpActivitySignupMapper.java 查看文件

1
 package com.community.huiju.dao;
1
 package com.community.huiju.dao;
2
 
2
 
3
 
3
 
4
+import com.community.huiju.model.TpActivitySignIn;
4
 import com.community.huiju.model.TpActivitySignup;
5
 import com.community.huiju.model.TpActivitySignup;
5
 import org.apache.ibatis.annotations.Mapper;
6
 import org.apache.ibatis.annotations.Mapper;
6
 import org.apache.ibatis.annotations.Param;
7
 import org.apache.ibatis.annotations.Param;

+ 22
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpBuildingOwnerInfoMapper.java 查看文件

1
 package com.community.huiju.dao;
1
 package com.community.huiju.dao;
2
 
2
 
3
 import com.community.huiju.model.TpBuildingOwnerInfo;
3
 import com.community.huiju.model.TpBuildingOwnerInfo;
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;
4
+import org.apache.ibatis.annotations.*;
8
 
5
 
9
 import java.util.List;
6
 import java.util.List;
10
 
7
 
76
     @ResultMap("BaseResultMap")
73
     @ResultMap("BaseResultMap")
77
     @Select("select * from tp_building_owner_info where ta_user_verify_id = #{userVerifyId}")
74
     @Select("select * from tp_building_owner_info where ta_user_verify_id = #{userVerifyId}")
78
     TpBuildingOwnerInfo selectByUserVerifyId(@Param("userVerifyId") Integer userVerifyId);
75
     TpBuildingOwnerInfo selectByUserVerifyId(@Param("userVerifyId") Integer userVerifyId);
76
+
77
+    /**
78
+     * 根据手机号更新手机号
79
+     * @param oldPhone
80
+     * @param newPhone
81
+     * @return
82
+     */
83
+    @ResultType(Integer.class)
84
+    @Update("update tp_building_owner_info set owner_tel = #{newPhone} where owner_tel = #{oldPhone}")
85
+    Integer updateAllByPhone(@Param("oldPhone") String oldPhone, @Param("newPhone") String newPhone);
86
+
87
+    /**
88
+     * 根据手机号更新 性别 和 姓名
89
+     * @param phone
90
+     * @param gender
91
+     * @param userName
92
+     * @return
93
+     */
94
+    @ResultType(Integer.class)
95
+    @Update("update tp_building_owner_info set owner_name = #{userName}, gender = #{gender} where owner_tel = #{phone}")
96
+    int updateGenderAndOwnerNameByPhone(@Param("phone") String phone, @Param("gender") String gender, @Param("userName") String userName);
79
 }
97
 }

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpTransactionReplyMapper.java 查看文件

25
      * @param communityId
25
      * @param communityId
26
      * @param transactionId
26
      * @param transactionId
27
      * @param userID
27
      * @param userID
28
-     * @param founderUserID
28
+     * @param
29
      * @return
29
      * @return
30
      */
30
      */
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);
31
+    List<TpTransactionReply> getCommunityIdAndTransactionId(@Param("communityId") Integer communityId, @Param("transactionId") Integer transactionId,@Param("userID") Integer userID,@Param("uuid") Integer uuid,@Param("uuidType") String uuidType,@Param("type")Integer type);
32
 
32
 
33
     /**
33
     /**
34
      * 查询我回复别人的帖子
34
      * 查询我回复别人的帖子

+ 50
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaBriskUser.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+/**
6
+ * @author FXF
7
+ * @date 2019-05-28
8
+ */
9
+public class TaBriskUser {
10
+	
11
+	private Integer id;
12
+	
13
+	private Integer communityId;
14
+	
15
+	private Integer taUserVerifyId;
16
+	
17
+	private Date createDate;
18
+	
19
+	public Integer getId() {
20
+		return id;
21
+	}
22
+	
23
+	public void setId(Integer id) {
24
+		this.id = id;
25
+	}
26
+	
27
+	public Integer getCommunityId() {
28
+		return communityId;
29
+	}
30
+	
31
+	public void setCommunityId(Integer communityId) {
32
+		this.communityId = communityId;
33
+	}
34
+	
35
+	public Integer getTaUserVerifyId() {
36
+		return taUserVerifyId;
37
+	}
38
+	
39
+	public void setTaUserVerifyId(Integer taUserVerifyId) {
40
+		this.taUserVerifyId = taUserVerifyId;
41
+	}
42
+	
43
+	public Date getCreateDate() {
44
+		return createDate;
45
+	}
46
+	
47
+	public void setCreateDate(Date createDate) {
48
+		this.createDate = createDate;
49
+	}
50
+}

+ 140
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaFeedback.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+import java.util.List;
5
+
6
+public class TaFeedback {
7
+    private Integer id;
8
+
9
+    private String content;
10
+
11
+    private String taUserTel;
12
+
13
+    private String estateSource;
14
+
15
+    private String handleStatus;
16
+
17
+    private String handleRemark;
18
+
19
+    private String handleUser;
20
+
21
+    private Date handleTime;
22
+
23
+    private Date createDate;
24
+
25
+    private Integer createUser;
26
+
27
+    private Date updateDate;
28
+
29
+    private Integer updateUser;
30
+
31
+    /**
32
+     * 当前反馈图片
33
+     * @return
34
+     */
35
+    private List<String> taFeedbackImgLsit;
36
+
37
+    public List<String> getTaFeedbackImgLsit() {
38
+        return taFeedbackImgLsit;
39
+    }
40
+
41
+    public void setTaFeedbackImgLsit(List<String> taFeedbackImgLsit) {
42
+        this.taFeedbackImgLsit = taFeedbackImgLsit;
43
+    }
44
+
45
+    public Integer getId() {
46
+        return id;
47
+    }
48
+
49
+    public void setId(Integer id) {
50
+        this.id = id;
51
+    }
52
+
53
+    public String getContent() {
54
+        return content;
55
+    }
56
+
57
+    public void setContent(String content) {
58
+        this.content = content == null ? null : content.trim();
59
+    }
60
+
61
+    public String getTaUserTel() {
62
+        return taUserTel;
63
+    }
64
+
65
+    public void setTaUserTel(String taUserTel) {
66
+        this.taUserTel = taUserTel == null ? null : taUserTel.trim();
67
+    }
68
+
69
+    public String getEstateSource() {
70
+        return estateSource;
71
+    }
72
+
73
+    public void setEstateSource(String estateSource) {
74
+        this.estateSource = estateSource == null ? null : estateSource.trim();
75
+    }
76
+
77
+    public String getHandleStatus() {
78
+        return handleStatus;
79
+    }
80
+
81
+    public void setHandleStatus(String handleStatus) {
82
+        this.handleStatus = handleStatus == null ? null : handleStatus.trim();
83
+    }
84
+
85
+    public String getHandleRemark() {
86
+        return handleRemark;
87
+    }
88
+
89
+    public void setHandleRemark(String handleRemark) {
90
+        this.handleRemark = handleRemark == null ? null : handleRemark.trim();
91
+    }
92
+
93
+    public String getHandleUser() {
94
+        return handleUser;
95
+    }
96
+
97
+    public void setHandleUser(String handleUser) {
98
+        this.handleUser = handleUser == null ? null : handleUser.trim();
99
+    }
100
+
101
+    public Date getHandleTime() {
102
+        return handleTime;
103
+    }
104
+
105
+    public void setHandleTime(Date handleTime) {
106
+        this.handleTime = handleTime;
107
+    }
108
+
109
+    public Date getCreateDate() {
110
+        return createDate;
111
+    }
112
+
113
+    public void setCreateDate(Date createDate) {
114
+        this.createDate = createDate;
115
+    }
116
+
117
+    public Integer getCreateUser() {
118
+        return createUser;
119
+    }
120
+
121
+    public void setCreateUser(Integer createUser) {
122
+        this.createUser = createUser;
123
+    }
124
+
125
+    public Date getUpdateDate() {
126
+        return updateDate;
127
+    }
128
+
129
+    public void setUpdateDate(Date updateDate) {
130
+        this.updateDate = updateDate;
131
+    }
132
+
133
+    public Integer getUpdateUser() {
134
+        return updateUser;
135
+    }
136
+
137
+    public void setUpdateUser(Integer updateUser) {
138
+        this.updateUser = updateUser;
139
+    }
140
+}

+ 45
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaFeedbackImg.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TaFeedbackImg {
6
+    private Integer id;
7
+
8
+    private Integer feedbackId;
9
+
10
+    private String imgUrl;
11
+
12
+    private Date createDate;
13
+
14
+    public Integer getId() {
15
+        return id;
16
+    }
17
+
18
+    public void setId(Integer id) {
19
+        this.id = id;
20
+    }
21
+
22
+    public Integer getFeedbackId() {
23
+        return feedbackId;
24
+    }
25
+
26
+    public void setFeedbackId(Integer feedbackId) {
27
+        this.feedbackId = feedbackId;
28
+    }
29
+
30
+    public String getImgUrl() {
31
+        return imgUrl;
32
+    }
33
+
34
+    public void setImgUrl(String imgUrl) {
35
+        this.imgUrl = imgUrl == null ? null : imgUrl.trim();
36
+    }
37
+
38
+    public Date getCreateDate() {
39
+        return createDate;
40
+    }
41
+
42
+    public void setCreateDate(Date createDate) {
43
+        this.createDate = createDate;
44
+    }
45
+}

+ 45
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaPublicMonitor.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TaPublicMonitor {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer taUserVerifyId;
11
+
12
+    private Date createDate;
13
+
14
+    public Integer getId() {
15
+        return id;
16
+    }
17
+
18
+    public void setId(Integer id) {
19
+        this.id = id;
20
+    }
21
+
22
+    public Integer getCommunityId() {
23
+        return communityId;
24
+    }
25
+
26
+    public void setCommunityId(Integer communityId) {
27
+        this.communityId = communityId;
28
+    }
29
+
30
+    public Integer getTaUserVerifyId() {
31
+        return taUserVerifyId;
32
+    }
33
+
34
+    public void setTaUserVerifyId(Integer taUserVerifyId) {
35
+        this.taUserVerifyId = taUserVerifyId;
36
+    }
37
+
38
+    public Date getCreateDate() {
39
+        return createDate;
40
+    }
41
+
42
+    public void setCreateDate(Date createDate) {
43
+        this.createDate = createDate;
44
+    }
45
+}

+ 55
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaRemotelyDoor.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TaRemotelyDoor {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer taUserVerifyId;
11
+
12
+    private Integer unitId;
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 getTaUserVerifyId() {
33
+        return taUserVerifyId;
34
+    }
35
+
36
+    public void setTaUserVerifyId(Integer taUserVerifyId) {
37
+        this.taUserVerifyId = taUserVerifyId;
38
+    }
39
+
40
+    public Integer getUnitId() {
41
+        return unitId;
42
+    }
43
+
44
+    public void setUnitId(Integer unitId) {
45
+        this.unitId = unitId;
46
+    }
47
+
48
+    public Date getCreateDate() {
49
+        return createDate;
50
+    }
51
+
52
+    public void setCreateDate(Date createDate) {
53
+        this.createDate = createDate;
54
+    }
55
+}

+ 55
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaRemotelyMonitor.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TaRemotelyMonitor {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Integer taUserVerifyId;
11
+
12
+    private Integer unitId;
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 getTaUserVerifyId() {
33
+        return taUserVerifyId;
34
+    }
35
+
36
+    public void setTaUserVerifyId(Integer taUserVerifyId) {
37
+        this.taUserVerifyId = taUserVerifyId;
38
+    }
39
+
40
+    public Integer getUnitId() {
41
+        return unitId;
42
+    }
43
+
44
+    public void setUnitId(Integer unitId) {
45
+        this.unitId = unitId;
46
+    }
47
+
48
+    public Date getCreateDate() {
49
+        return createDate;
50
+    }
51
+
52
+    public void setCreateDate(Date createDate) {
53
+        this.createDate = createDate;
54
+    }
55
+}

+ 45
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TaVisitorLicenseSetting.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TaVisitorLicenseSetting {
6
+    private Integer id;
7
+
8
+    private Integer communityId;
9
+
10
+    private Date createDate;
11
+
12
+    private Integer createUser;
13
+
14
+    public Integer getId() {
15
+        return id;
16
+    }
17
+
18
+    public void setId(Integer id) {
19
+        this.id = id;
20
+    }
21
+
22
+    public Integer getCommunityId() {
23
+        return communityId;
24
+    }
25
+
26
+    public void setCommunityId(Integer communityId) {
27
+        this.communityId = communityId;
28
+    }
29
+
30
+    public Date getCreateDate() {
31
+        return createDate;
32
+    }
33
+
34
+    public void setCreateDate(Date createDate) {
35
+        this.createDate = createDate;
36
+    }
37
+
38
+    public Integer getCreateUser() {
39
+        return createUser;
40
+    }
41
+
42
+    public void setCreateUser(Integer createUser) {
43
+        this.createUser = createUser;
44
+    }
45
+}

+ 11
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivity.java 查看文件

42
     private Date updateDate;
42
     private Date updateDate;
43
     
43
     
44
     private String userName;
44
     private String userName;
45
-    
45
+
46
+    private String signInCode;
47
+
48
+    public String getSignInCode() {
49
+        return signInCode;
50
+    }
51
+
52
+    public void setSignInCode(String signInCode) {
53
+        this.signInCode = signInCode;
54
+    }
55
+
46
     /**
56
     /**
47
      * 报名状态
57
      * 报名状态
48
      */
58
      */

+ 39
- 23
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java 查看文件

8
 
8
 
9
     private Integer communityId;
9
     private Integer communityId;
10
 
10
 
11
-    private Integer taUserId;
12
-
13
     private String transactionTitle;
11
     private String transactionTitle;
14
 
12
 
15
     private String transactionContent;
13
     private String transactionContent;
29
     private Integer updateUser;
27
     private Integer updateUser;
30
 
28
 
31
     private Date updateDate;
29
     private Date updateDate;
30
+    
31
+    /**
32
+     * 身份ID 根据uuid_type区分是物业端TP_USER_ID还是TA_USER_VERIFY_ID
33
+     */
34
+    private Integer uuid;
35
+    
36
+    /**
37
+     * app/prop
38
+     */
39
+    private String uuidType;
40
+    
41
+    /**
42
+     * 话题发布人
43
+     */
44
+    private String uuidName;
32
 
45
 
33
     //返回查询帖子电话
46
     //返回查询帖子电话
34
     private String telephone;
47
     private String telephone;
58
      */
71
      */
59
     private Integer noLikeCount;
72
     private Integer noLikeCount;
60
 
73
 
61
-    /**
62
-     * 对应app端的角色表,物业端发帖时不维护
63
-     */
64
-    private Integer taUserVerifyId;
65
-
66
     /**
74
     /**
67
      * 0为app端,1为物业
75
      * 0为app端,1为物业
68
      */
76
      */
86
      */
94
      */
87
     private String bel;
95
     private String bel;
88
 
96
 
89
-    public Integer getTaUserVerifyId() {
90
-        return taUserVerifyId;
91
-    }
92
-
93
-    public void setTaUserVerifyId(Integer taUserVerifyId) {
94
-        this.taUserVerifyId = taUserVerifyId;
95
-    }
96
-
97
     public String getRoleName() {
97
     public String getRoleName() {
98
         return roleName;
98
         return roleName;
99
     }
99
     }
124
         this.communityId = communityId;
124
         this.communityId = communityId;
125
     }
125
     }
126
 
126
 
127
-    public Integer getTaUserId() {
128
-        return taUserId;
129
-    }
130
-
131
-    public void setTaUserId(Integer taUserId) {
132
-        this.taUserId = taUserId;
133
-    }
134
-
135
     public String getTransactionTitle() {
127
     public String getTransactionTitle() {
136
         return transactionTitle;
128
         return transactionTitle;
137
     }
129
     }
274
     public void setRoomNoName(String roomNoName) {
266
     public void setRoomNoName(String roomNoName) {
275
         this.roomNoName = roomNoName;
267
         this.roomNoName = roomNoName;
276
     }
268
     }
269
+    
270
+    public Integer getUuid() {
271
+        return uuid;
272
+    }
273
+    
274
+    public void setUuid(Integer uuid) {
275
+        this.uuid = uuid;
276
+    }
277
+    
278
+    public String getUuidType() {
279
+        return uuidType;
280
+    }
281
+    
282
+    public void setUuidType(String uuidType) {
283
+        this.uuidType = uuidType;
284
+    }
285
+    
286
+    public String getUuidName() {
287
+        return uuidName;
288
+    }
289
+    
290
+    public void setUuidName(String uuidName) {
291
+        this.uuidName = uuidName;
292
+    }
277
 }
293
 }

+ 8
- 8
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionLike.java 查看文件

7
 
7
 
8
     private Integer communityId;
8
     private Integer communityId;
9
 
9
 
10
-    private Integer taUserId;
10
+    private Integer taUserVerifyId;
11
 
11
 
12
     private Integer transactionId;
12
     private Integer transactionId;
13
 
13
 
32
     public void setCommunityId(Integer communityId) {
32
     public void setCommunityId(Integer communityId) {
33
         this.communityId = communityId;
33
         this.communityId = communityId;
34
     }
34
     }
35
-
36
-    public Integer getTaUserId() {
37
-        return taUserId;
35
+    
36
+    public Integer getTaUserVerifyId() {
37
+        return taUserVerifyId;
38
     }
38
     }
39
-
40
-    public void setTaUserId(Integer taUserId) {
41
-        this.taUserId = taUserId;
39
+    
40
+    public void setTaUserVerifyId(Integer taUserVerifyId) {
41
+        this.taUserVerifyId = taUserVerifyId;
42
     }
42
     }
43
-
43
+    
44
     public Integer getTransactionId() {
44
     public Integer getTransactionId() {
45
         return transactionId;
45
         return transactionId;
46
     }
46
     }

+ 161
- 63
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransactionReply.java 查看文件

1
 package com.community.huiju.model;
1
 package com.community.huiju.model;
2
 
2
 
3
+import java.time.LocalDateTime;
3
 import java.util.Date;
4
 import java.util.Date;
4
 import java.util.List;
5
 import java.util.List;
5
 
6
 
6
 public class TpTransactionReply {
7
 public class TpTransactionReply {
7
-
8
+    
8
     private Integer id;
9
     private Integer id;
9
-
10
+    /**
11
+     * 小区id
12
+     */
10
     private Integer communityId;
13
     private Integer communityId;
11
-
14
+    
15
+    /**
16
+     * 交易帖子ID
17
+     */
12
     private Integer transactionId;
18
     private Integer transactionId;
13
-
14
-    private Integer taUserId;
15
-
16
-    private String taUserName;
17
-
19
+    
20
+    /**
21
+     * 回复帖子的ID,根据uuid_type区分物业端app端
22
+     */
23
+    private Integer uuid;
24
+    
25
+    /**
26
+     * app/prop
27
+     */
28
+    private String uuidType;
29
+    
30
+    /**
31
+     * 回复帖子的姓名
32
+     */
33
+    private String uuidName;
34
+    
35
+    /**
36
+     * 回复帖子的角色
37
+     */
38
+    private String uuidRole;
39
+    
40
+    /**
41
+     * 回复内容
42
+     */
18
     private String replyContent;
43
     private String replyContent;
19
-
20
-    private Integer replyTaUserId;
21
-
22
-    private String replyTaUserName;
23
-
44
+    
45
+    /**
46
+     * 被回复的评论内容的用户ID根据uuidtype区分
47
+     */
48
+    private Integer replyUuid;
49
+    
50
+    /**
51
+     * app/prop
52
+     */
53
+    private String replyUuidType;
54
+    
55
+    /**
56
+     * 被回复的评论内容的姓名
57
+     */
58
+    private String replyUuidName;
59
+    
60
+    /**
61
+     * 被回复的评论人的角色
62
+     */
63
+    private String replyUuidRole;
64
+    
65
+    /**
66
+     * 发布者身份
67
+     */
68
+    private String releaseIdentity;
69
+    
70
+    /**
71
+     * 创建时间
72
+     */
24
     private Date createDate;
73
     private Date createDate;
25
-
74
+    
75
+    /**
76
+     * 用户角色
77
+     */
78
+    private String roleName;
26
     /**
79
     /**
27
      * 住户端 的角色
80
      * 住户端 的角色
28
      */
81
      */
32
      * 被回复人 的角色
85
      * 被回复人 的角色
33
      */
86
      */
34
     private String replyRoleName;
87
     private String replyRoleName;
35
-
88
+    
89
+    private String createUserName;
90
+    
36
     /**
91
     /**
37
-     * 回复的图片
38
-     * @return
92
+     * 被回复的评论ID
39
      */
93
      */
40
-    private List<String> imgList;
41
-
94
+    private Integer replyId;
95
+    
42
     /**
96
     /**
43
-     *0代表app端用户,1代表物业端用户
97
+     * 回复的图片
44
      * @return
98
      * @return
45
      */
99
      */
46
-    private String releaseIdentity;
47
-
48
-    /**
49
-     * 用于查询app端角色,物业端不维护
50
-     * @param releaseIdentity
51
-     */
52
-    private  Integer taUserVerifyId;
53
-
100
+    private List<String> imgList;
101
+    
54
     private String roomNoName;
102
     private String roomNoName;
55
 
103
 
56
     public String getRoomNoName() {
104
     public String getRoomNoName() {
61
         this.roomNoName = roomNoName;
109
         this.roomNoName = roomNoName;
62
     }
110
     }
63
 
111
 
64
-    public void setTaUserVerifyId(Integer taUserVerifyId) {
65
-        this.taUserVerifyId = taUserVerifyId;
66
-    }
67
-
68
-    public Integer getTaUserVerifyId() {
69
-        return taUserVerifyId;
70
-    }
112
+    
71
 
113
 
72
     public void setReleaseIdentity(String releaseIdentity) {
114
     public void setReleaseIdentity(String releaseIdentity) {
73
         this.releaseIdentity = releaseIdentity;
115
         this.releaseIdentity = releaseIdentity;
108
     public void setTransactionId(Integer transactionId) {
150
     public void setTransactionId(Integer transactionId) {
109
         this.transactionId = transactionId;
151
         this.transactionId = transactionId;
110
     }
152
     }
111
-
112
-    public Integer getTaUserId() {
113
-        return taUserId;
114
-    }
115
-
116
-    public void setTaUserId(Integer taUserId) {
117
-        this.taUserId = taUserId;
118
-    }
119
-
120
-    public String getTaUserName() {
121
-        return taUserName;
153
+    
154
+    public String getRoleName() {
155
+        return roleName;
122
     }
156
     }
123
-
124
-    public void setTaUserName(String taUserName) {
125
-        this.taUserName = taUserName == null ? null : taUserName.trim();
157
+    
158
+    public void setRoleName(String roleName) {
159
+        this.roleName = roleName;
126
     }
160
     }
127
-
161
+    
128
     public String getReplyContent() {
162
     public String getReplyContent() {
129
         return replyContent;
163
         return replyContent;
130
     }
164
     }
132
     public void setReplyContent(String replyContent) {
166
     public void setReplyContent(String replyContent) {
133
         this.replyContent = replyContent == null ? null : replyContent.trim();
167
         this.replyContent = replyContent == null ? null : replyContent.trim();
134
     }
168
     }
135
-
136
-    public Integer getReplyTaUserId() {
137
-        return replyTaUserId;
169
+    
170
+    public Integer getUuid() {
171
+        return uuid;
138
     }
172
     }
139
-
140
-    public void setReplyTaUserId(Integer replyTaUserId) {
141
-        this.replyTaUserId = replyTaUserId;
173
+    
174
+    public void setUuid(Integer uuid) {
175
+        this.uuid = uuid;
142
     }
176
     }
143
-
144
-    public String getReplyTaUserName() {
145
-        return replyTaUserName;
177
+    
178
+    public String getUuidType() {
179
+        return uuidType;
146
     }
180
     }
147
-
148
-    public void setReplyTaUserName(String replyTaUserName) {
149
-        this.replyTaUserName = replyTaUserName == null ? null : replyTaUserName.trim();
181
+    
182
+    public void setUuidType(String uuidType) {
183
+        this.uuidType = uuidType;
150
     }
184
     }
151
-
185
+    
186
+    public String getUuidName() {
187
+        return uuidName;
188
+    }
189
+    
190
+    public void setUuidName(String uuidName) {
191
+        this.uuidName = uuidName;
192
+    }
193
+    
194
+    public String getUuidRole() {
195
+        return uuidRole;
196
+    }
197
+    
198
+    public void setUuidRole(String uuidRole) {
199
+        this.uuidRole = uuidRole;
200
+    }
201
+    
202
+    public Integer getReplyUuid() {
203
+        return replyUuid;
204
+    }
205
+    
206
+    public void setReplyUuid(Integer replyUuid) {
207
+        this.replyUuid = replyUuid;
208
+    }
209
+    
210
+    public String getReplyUuidType() {
211
+        return replyUuidType;
212
+    }
213
+    
214
+    public void setReplyUuidType(String replyUuidType) {
215
+        this.replyUuidType = replyUuidType;
216
+    }
217
+    
218
+    public String getReplyUuidName() {
219
+        return replyUuidName;
220
+    }
221
+    
222
+    public void setReplyUuidName(String replyUuidName) {
223
+        this.replyUuidName = replyUuidName;
224
+    }
225
+    
226
+    public String getReplyUuidRole() {
227
+        return replyUuidRole;
228
+    }
229
+    
230
+    public void setReplyUuidRole(String replyUuidRole) {
231
+        this.replyUuidRole = replyUuidRole;
232
+    }
233
+    
152
     public Date getCreateDate() {
234
     public Date getCreateDate() {
153
         return createDate;
235
         return createDate;
154
     }
236
     }
172
     public void setReplyRoleName(String replyRoleName) {
254
     public void setReplyRoleName(String replyRoleName) {
173
         this.replyRoleName = replyRoleName;
255
         this.replyRoleName = replyRoleName;
174
     }
256
     }
257
+    
258
+    public String getCreateUserName() {
259
+        return createUserName;
260
+    }
261
+    
262
+    public Integer getReplyId() {
263
+        return replyId;
264
+    }
265
+    
266
+    public void setReplyId(Integer replyId) {
267
+        this.replyId = replyId;
268
+    }
269
+    
270
+    public void setCreateUserName(String createUserName) {
271
+        this.createUserName = createUserName;
272
+    }
175
 }
273
 }

+ 5
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/AssembleServiceI.java 查看文件

1
+package com.community.huiju.service;
2
+
3
+public interface AssembleServiceI {
4
+	void saveBriskUser(Integer userVerifyId, Integer communityId);
5
+}

+ 2
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/IMonitoringService.java 查看文件

16
      * @param pageSize
16
      * @param pageSize
17
      * @return
17
      * @return
18
      */
18
      */
19
-    ResponseBean getByCommunityId(Integer communityId,Integer pageNo, Integer pageSize);
19
+    ResponseBean getByCommunityId(UserElement userElement, Integer communityId,Integer pageNo, Integer pageSize);
20
 
20
 
21
     /**
21
     /**
22
      * 生成 Token
22
      * 生成 Token
32
      * @param communityId
32
      * @param communityId
33
      * @return
33
      * @return
34
      */
34
      */
35
-    ResponseBean getHlsByCommunityId(Integer communityId, Integer pageNo, Integer pageSize);
35
+    ResponseBean getHlsByCommunityId(UserElement userElement, Integer communityId, Integer pageNo, Integer pageSize);
36
 
36
 
37
     /**
37
     /**
38
      * 可是对讲 视频流
38
      * 可是对讲 视频流

+ 8
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/ITaUserService.java 查看文件

203
      * @return
203
      * @return
204
      */
204
      */
205
     ResponseBean daSuToken(String appid, String datetime, String encrypt, String communityId, String phone,String sign, HttpSession session);
205
     ResponseBean daSuToken(String appid, String datetime, String encrypt, String communityId, String phone,String sign, HttpSession session);
206
+
207
+    /**
208
+     * 反馈添加
209
+     * @param userElement
210
+     * @param parameter
211
+     * @return
212
+     */
213
+    ResponseBean addFeedback(UserElement userElement, String parameter);
206
 }
214
 }

+ 7
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/TaVistorServiceI.java 查看文件

28
      * @return
28
      * @return
29
      */
29
      */
30
     ResponseBean invateHis(Integer communityId, Integer userId);
30
     ResponseBean invateHis(Integer communityId, Integer userId);
31
+
32
+    /**
33
+     * 查询 邀请访客车辆 是否开启
34
+     * @param userElement
35
+     * @return
36
+     */
37
+    ResponseBean invateBool(UserElement userElement);
31
 }
38
 }

+ 43
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/AssembleServiceImpl.java 查看文件

1
+package com.community.huiju.service.impl;
2
+
3
+import com.community.huiju.dao.TaBriskUserMapper;
4
+import com.community.huiju.model.TaBriskUser;
5
+import com.community.huiju.service.AssembleServiceI;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.stereotype.Service;
8
+import org.springframework.transaction.annotation.Transactional;
9
+
10
+import java.util.Date;
11
+import java.util.List;
12
+
13
+/**
14
+ * @author FXF
15
+ * @date 2019-05-28
16
+ */
17
+@Service("assembleService")
18
+@Transactional(rollbackFor = Exception.class)
19
+public class AssembleServiceImpl implements AssembleServiceI {
20
+	
21
+	@Autowired
22
+	private TaBriskUserMapper taBriskUserMapper;
23
+	
24
+	/**
25
+	 * 记录日活跃用户,同一个用户当天只记录一次
26
+	 * @param userVerifyId
27
+	 * @param communityId
28
+	 */
29
+	@Override
30
+	public void saveBriskUser(Integer userVerifyId, Integer communityId) {
31
+		//先查看此用户当天是否进入过首页,没进入过则插入
32
+		Date date = new Date();
33
+		List<TaBriskUser> list = taBriskUserMapper.selectByParams(userVerifyId,communityId,date);
34
+		if (list.size() < 1) {
35
+			//插入一条数据
36
+			TaBriskUser taBriskUser = new TaBriskUser();
37
+			taBriskUser.setCommunityId(communityId);
38
+			taBriskUser.setTaUserVerifyId(userVerifyId);
39
+			taBriskUser.setCreateDate(date);
40
+			taBriskUserMapper.saveBriskUser(taBriskUser);
41
+		}
42
+	}
43
+}

+ 12
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/HKServiceImpl.java 查看文件

50
     @Autowired
50
     @Autowired
51
     private TaUserVerifyMapper taUserVerifyMapper;
51
     private TaUserVerifyMapper taUserVerifyMapper;
52
 
52
 
53
+    @Autowired
54
+    private TaRemotelyDoorMapper taRemotelyDoorMapper;
55
+
53
     /**
56
     /**
54
      * 获取设备UUID
57
      * 获取设备UUID
55
      * @param equipmentList
58
      * @param equipmentList
354
         JSONObject jsonObject = JSONObject.parseObject(data);
357
         JSONObject jsonObject = JSONObject.parseObject(data);
355
         int errorCode = jsonObject.getInteger("errorCode");
358
         int errorCode = jsonObject.getInteger("errorCode");
356
         if (errorCode == 0) {
359
         if (errorCode == 0) {
360
+
361
+            // 记录 远程开门次数
362
+            TaRemotelyDoor taRemotelyDoor = new TaRemotelyDoor();
363
+            taRemotelyDoor.setCommunityId(userVerify.getCommunityId());
364
+            taRemotelyDoor.setTaUserVerifyId(userVerify.getUserId());
365
+            taRemotelyDoor.setUnitId(userVerify.getUnitId());
366
+            taRemotelyDoor.setCreateDate(new Date());
367
+            taRemotelyDoorMapper.insertSelective(taRemotelyDoor);
368
+
357
             responseBean.addSuccess("操作成功!");
369
             responseBean.addSuccess("操作成功!");
358
             return responseBean;
370
             return responseBean;
359
         }
371
         }

+ 59
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MonitoringServiceImpl.java 查看文件

25
 import java.time.Instant;
25
 import java.time.Instant;
26
 import java.time.LocalDateTime;
26
 import java.time.LocalDateTime;
27
 import java.time.ZoneId;
27
 import java.time.ZoneId;
28
+import java.util.Date;
28
 import java.util.HashMap;
29
 import java.util.HashMap;
29
 import java.util.List;
30
 import java.util.List;
30
 import java.util.Map;
31
 import java.util.Map;
32
+import java.util.stream.Collectors;
31
 
33
 
32
 /**
34
 /**
33
  * 监控 业务实现
35
  * 监控 业务实现
67
     @Autowired
69
     @Autowired
68
     private ToCommunitiesMapper toCommunitiesMapper;
70
     private ToCommunitiesMapper toCommunitiesMapper;
69
 
71
 
72
+    @Autowired
73
+    private TaPublicMonitorMapper taPublicMonitorMapper;
74
+
75
+    @Autowired
76
+    private TaRemotelyMonitorMapper taRemotelyMonitorMapper;
77
+
70
     @Override
78
     @Override
71
-    public ResponseBean getByCommunityId(Integer communityId,Integer pageNo, Integer pageSize) {
79
+    public ResponseBean getByCommunityId(UserElement userElement, Integer communityId,Integer pageNo, Integer pageSize) {
72
 
80
 
73
         // TODO 数据是假数据, 后期在更改. 需要根据小区查询 组织中心编号
81
         // TODO 数据是假数据, 后期在更改. 需要根据小区查询 组织中心编号
74
 
82
 
95
         Page<TpEquipment> page = PageHelper.startPage(pageNo, pageSize);
103
         Page<TpEquipment> page = PageHelper.startPage(pageNo, pageSize);
96
         List<TpEquipment> tpEquipments = tpEquipmentMapper.selectByCommunityId(communityId);
104
         List<TpEquipment> tpEquipments = tpEquipmentMapper.selectByCommunityId(communityId);
97
 
105
 
106
+        if (CollectionUtils.isEmpty(tpEquipments)) {
107
+            response.addError("系统未配置监控设备!");
108
+            return response;
109
+        }
110
+
111
+        // TODO 过滤 hls 的流地址,后面拆表后,就可以将改代码移除
112
+        tpEquipments = tpEquipments.stream().filter(e-> e.getMonitoringUrl().contains("rtsp")).collect(Collectors.toList());
113
+
98
         Map<String, Object> map = Maps.newHashMap();
114
         Map<String, Object> map = Maps.newHashMap();
99
         map.put("pageNo", page.getPageNum());
115
         map.put("pageNo", page.getPageNum());
100
         map.put("pageSize", page.getPageSize());
116
         map.put("pageSize", page.getPageSize());
102
         map.put("list", tpEquipments);
118
         map.put("list", tpEquipments);
103
         response.addSuccess(map);
119
         response.addSuccess(map);
104
 
120
 
121
+        // 记录 查看监控
122
+        insertPublicMonitor(communityId, userElement.getId());
123
+
105
         return response;
124
         return response;
106
     }
125
     }
107
 
126
 
127
+    /**
128
+     * 记录 查看监控
129
+     * @param communityId
130
+     * @param userId
131
+     * @return
132
+     */
133
+    private TaPublicMonitor insertPublicMonitor(Integer communityId, Integer userId) {
134
+        // 记录查看监控设备
135
+        TaPublicMonitor taPublicMonitor = new TaPublicMonitor();
136
+        taPublicMonitor.setCommunityId(communityId);
137
+        taPublicMonitor.setTaUserVerifyId(userId);
138
+        taPublicMonitor.setCreateDate(new Date());
139
+        taPublicMonitorMapper.insertSelective(taPublicMonitor);
140
+
141
+        return taPublicMonitor;
142
+    }
143
+
108
     @Override
144
     @Override
109
     public ResponseBean getMonitoringToken(Integer communityId, Integer pageNo, Integer pageSize) {
145
     public ResponseBean getMonitoringToken(Integer communityId, Integer pageNo, Integer pageSize) {
110
 
146
 
168
     }
204
     }
169
 
205
 
170
     @Override
206
     @Override
171
-    public ResponseBean getHlsByCommunityId(Integer communityId, Integer pageNo, Integer pageSize) {
207
+    public ResponseBean getHlsByCommunityId(UserElement userElement, Integer communityId, Integer pageNo, Integer pageSize) {
172
         ResponseBean response = new ResponseBean();
208
         ResponseBean response = new ResponseBean();
173
         Page<TpEquipment> page = PageHelper.startPage(pageNo, pageSize);
209
         Page<TpEquipment> page = PageHelper.startPage(pageNo, pageSize);
174
         List<TpEquipment> tpEquipments = tpEquipmentMapper.selectHlsByCommunityId(communityId);
210
         List<TpEquipment> tpEquipments = tpEquipmentMapper.selectHlsByCommunityId(communityId);
175
 
211
 
212
+        if (CollectionUtils.isEmpty(tpEquipments)) {
213
+            response.addError("系统未配置监控设备!");
214
+            return response;
215
+        }
216
+
217
+        // TODO 过滤 rtsp 的流地址,后面拆表后,就可以将改代码移除
218
+        tpEquipments = tpEquipments.stream().filter(e-> e.getMonitoringUrl().contains("m3u8")).collect(Collectors.toList());
219
+
176
         Map<String, Object> map = Maps.newHashMap();
220
         Map<String, Object> map = Maps.newHashMap();
177
         map.put("pageNo", page.getPageNum());
221
         map.put("pageNo", page.getPageNum());
178
         map.put("pageSize", page.getPageSize());
222
         map.put("pageSize", page.getPageSize());
179
         map.put("total", page.getTotal());
223
         map.put("total", page.getTotal());
180
         map.put("list", tpEquipments);
224
         map.put("list", tpEquipments);
181
         response.addSuccess(map);
225
         response.addSuccess(map);
226
+
227
+        // 记录 查看监控
228
+        insertPublicMonitor(communityId, userElement.getId());
229
+
182
         return response;
230
         return response;
183
     }
231
     }
184
 
232
 
238
         map.put("address", toCommunities.getCommunityName() + tpUnit.getPhaseName() + tpUnit.getBuildingName() + tpUnit.getName());
286
         map.put("address", toCommunities.getCommunityName() + tpUnit.getPhaseName() + tpUnit.getBuildingName() + tpUnit.getName());
239
         map.put("token", tpEquipment.getOpUserUuid());
287
         map.put("token", tpEquipment.getOpUserUuid());
240
         responseBean.addSuccess(map);
288
         responseBean.addSuccess(map);
289
+
290
+        // 记录 单元门监控查看
291
+        TaRemotelyMonitor taRemotelyMonitor = new TaRemotelyMonitor();
292
+        taRemotelyMonitor.setCommunityId(userElement.getCommunityId());
293
+        taRemotelyMonitor.setTaUserVerifyId(userElement.getId());
294
+        taRemotelyMonitor.setUnitId(userElement.getUnitId());
295
+        taRemotelyMonitor.setCreateDate(new Date());
296
+        taRemotelyMonitorMapper.insertSelective(taRemotelyMonitor);
297
+
241
         return responseBean;
298
         return responseBean;
242
     }
299
     }
243
 }
300
 }

+ 67
- 36
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java 查看文件

206
             activity.setViewCount(allViewNum);
206
             activity.setViewCount(allViewNum);
207
             tpActivityMapper.updateByPrimaryKeySelective(activity);
207
             tpActivityMapper.updateByPrimaryKeySelective(activity);
208
         }
208
         }
209
-
210
-        TpActivity tpActivity = tpActivityMapper.selectByPrimaryKey(activityId, communityId);
209
+        TpActivity  tpActivity=new TpActivity();
210
+         tpActivity = tpActivityMapper.selectByPrimaryKey(activityId, communityId);
211
+        if(null == tpActivity){
212
+            tpActivity = tpActivityMapper.selectActivity(activityId);
213
+        }
211
         TpUser tpUser = tpUserMapper.selectByPrimaryKey(tpActivity.getCreateUser());
214
         TpUser tpUser = tpUserMapper.selectByPrimaryKey(tpActivity.getCreateUser());
212
         if (null != tpUser) {
215
         if (null != tpUser) {
213
             tpActivity.setUserName(tpUser.getUserName());
216
             tpActivity.setUserName(tpUser.getUserName());
300
         List<TpTransaction> tpTransactions = tpTransactionMapper.findAllTransaction(communityId, transactionTitle, type);
303
         List<TpTransaction> tpTransactions = tpTransactionMapper.findAllTransaction(communityId, transactionTitle, type);
301
 
304
 
302
         tpTransactions.stream().forEach(e -> {
305
         tpTransactions.stream().forEach(e -> {
303
-            if (null != e.getTaUserVerifyId()) {
304
-                TaSysRole taSysRole = taSysRoleMapper.selectByPrimaryKey(e.getTaUserVerifyId());
306
+            if (e.getUuidType().equals("app")) {
307
+                TaSysRole taSysRole = taSysRoleMapper.selectByPrimaryKey(taUserVerifyMapper.selectByPrimaryKey(e.getUuid()).getRoleId());
305
                 e.setRoleId(taSysRole.getId());
308
                 e.setRoleId(taSysRole.getId());
306
                 e.setRoleName(taSysRole.getRoleName());
309
                 e.setRoleName(taSysRole.getRoleName());
307
             }
310
             }
308
-            TaUser taUser = taUserMapper.selectByPrimaryKey(e.getTaUserId());
309
-            e.setCreateUserName(taUser.getUserName());
311
+            if (e.getUuidType().equals("prop")) {
312
+                e.setRoleName("物业");
313
+            }
314
+            e.setCreateUserName(e.getUuidName());
310
         });
315
         });
311
 
316
 
312
         parameter.put("list", tpTransactions);
317
         parameter.put("list", tpTransactions);
333
         tpTransaction.setTransactionContent(transactionContent);
338
         tpTransaction.setTransactionContent(transactionContent);
334
         tpTransaction.setType(type);
339
         tpTransaction.setType(type);
335
         tpTransaction.setCommunityId(userElement.getCommunityId());
340
         tpTransaction.setCommunityId(userElement.getCommunityId());
336
-        tpTransaction.setTaUserId(userElement.getId());
341
+        tpTransaction.setUuid(userElement.getUserVerifyId());
342
+        tpTransaction.setUuidType("app");
343
+        tpTransaction.setUuidName(userElement.getUserName());
337
         tpTransaction.setCreateUser(userElement.getId());
344
         tpTransaction.setCreateUser(userElement.getId());
338
         tpTransaction.setStatus("1");
345
         tpTransaction.setStatus("1");
339
         tpTransaction.setCreateDate(new Date());
346
         tpTransaction.setCreateDate(new Date());
340
         tpTransaction.setUpdateUser(userElement.getId());
347
         tpTransaction.setUpdateUser(userElement.getId());
341
         tpTransaction.setUpdateDate(new Date());
348
         tpTransaction.setUpdateDate(new Date());
342
         TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
349
         TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
343
-        tpTransaction.setTaUserVerifyId(taUserVerify.getRoleId());
344
         tpTransaction.setRoomNoName(taUserVerify.getRoomNoName());
350
         tpTransaction.setRoomNoName(taUserVerify.getRoomNoName());
345
         tpTransaction.setIsReported("0");
351
         tpTransaction.setIsReported("0");
346
         // 发布者身份  0 APP  1 物业
352
         // 发布者身份  0 APP  1 物业
394
 
400
 
395
         Map<String, Object> parameter = Maps.newHashMap();
401
         Map<String, Object> parameter = Maps.newHashMap();
396
         Page<TpTransaction> pageLsit = PageHelper.startPage(pageNum, paeSize);
402
         Page<TpTransaction> pageLsit = PageHelper.startPage(pageNum, paeSize);
397
-        List<TpTransaction> tpTransactions = tpTransactionMapper.selectTransaction(userElement.getId(), userElement.getCommunityId(), type);
403
+        List<TpTransaction> tpTransactions = tpTransactionMapper.selectTransaction(userElement.getUserVerifyId(), userElement.getCommunityId(), type);
398
 
404
 
399
         tpTransactions.stream().forEach(e -> {
405
         tpTransactions.stream().forEach(e -> {
400
             // 角色
406
             // 角色
425
         transaction.setTransactionContent(tpTransaction.getTransactionContent());
431
         transaction.setTransactionContent(tpTransaction.getTransactionContent());
426
 
432
 
427
 
433
 
428
-        if (null != transaction && userId.equals(transaction.getTaUserId())) {
434
+        if (null != transaction && userId.equals(transaction.getUuid()) && transaction.getUuidType().equals("app")) {
429
             tdImagesMapper.deleteTdImages(Integer.valueOf(id), Constant.TRANSACTION);
435
             tdImagesMapper.deleteTdImages(Integer.valueOf(id), Constant.TRANSACTION);
430
 
436
 
431
             insertTdImage(transaction, imageUrl, userId, Constant.TRANSACTION);
437
             insertTdImage(transaction, imageUrl, userId, Constant.TRANSACTION);
441
     public ResponseBean deleteransaction(Integer id, UserElement userElement) {
447
     public ResponseBean deleteransaction(Integer id, UserElement userElement) {
442
         ResponseBean responseBean = new ResponseBean();
448
         ResponseBean responseBean = new ResponseBean();
443
         TpTransaction tpTransaction = tpTransactionMapper.getById(Integer.valueOf(id));
449
         TpTransaction tpTransaction = tpTransactionMapper.getById(Integer.valueOf(id));
444
-        if (null != tpTransaction && userElement.getId().equals(tpTransaction.getTaUserId())) {
450
+        if (null != tpTransaction && userElement.getUserVerifyId().equals(tpTransaction.getUuid()) && tpTransaction.getUuidType().equals("app")) {
445
             tpTransaction.setStatus("0");
451
             tpTransaction.setStatus("0");
446
             tpTransaction.setUpdateDate(new Date());
452
             tpTransaction.setUpdateDate(new Date());
447
             tpTransactionMapper.updateByPrimaryKeySelective(tpTransaction);
453
             tpTransactionMapper.updateByPrimaryKeySelective(tpTransaction);
562
         if (null != array) {
568
         if (null != array) {
563
             reply = array.toArray(new String[]{});
569
             reply = array.toArray(new String[]{});
564
         }
570
         }
571
+        TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
565
         TpTransactionReply tpTransactionReply = JSONObject.parseObject(paramets, TpTransactionReply.class);
572
         TpTransactionReply tpTransactionReply = JSONObject.parseObject(paramets, TpTransactionReply.class);
566
         tpTransactionReply.setCommunityId(userElement.getCommunityId());
573
         tpTransactionReply.setCommunityId(userElement.getCommunityId());
567
-        tpTransactionReply.setTaUserId(userElement.getId());
568
-        tpTransactionReply.setTaUserName(userElement.getUserName());
574
+        tpTransactionReply.setUuid(userElement.getUserVerifyId());
575
+        tpTransactionReply.setUuidType("app");
576
+        tpTransactionReply.setUuidName(userElement.getUserName());
577
+        tpTransactionReply.setUuidRole(taSysRoleMapper.selectByPrimaryKey(taUserVerify.getRoleId()).getDescription());
569
 
578
 
570
             // 由于评论帖子和评论对话是同一个接口,当tpTransactionReply.getReplyTaUserId()为空时查询Ta_user里面的名字
579
             // 由于评论帖子和评论对话是同一个接口,当tpTransactionReply.getReplyTaUserId()为空时查询Ta_user里面的名字
571
-        TpTransaction tpTransaction= tpTransactionMapper.getById(tpTransactionReply.getTransactionId());
572
-        TaUser taUser= taUserMapper.selectByPrimaryKey(tpTransaction.getTaUserId());
573
-
574
-        tpTransactionReply.setReplyTaUserName(tpTransactionReply.getReplyTaUserId()==null?taUser.getUserName():taUserMapper.selectByPrimaryKey(tpTransactionReply.getReplyTaUserId()).getUserName());
580
+        TpTransactionReply tpTransactionReplyBack = tpTransactionReplyMapper.selectByPrimaryKey(tpTransactionReply.getReplyId());
581
+        
575
         //  评论帖子取 TpTransaction 的创建人,回复对话取传过来的值
582
         //  评论帖子取 TpTransaction 的创建人,回复对话取传过来的值
576
-        tpTransactionReply.setReplyTaUserId(tpTransactionReply.getReplyTaUserId()==null?tpTransaction.getCreateUser():tpTransactionReply.getReplyTaUserId());
583
+        tpTransactionReply.setReplyUuid(tpTransactionReplyBack.getUuid());
584
+        tpTransactionReply.setReplyUuidType(tpTransactionReplyBack.getUuidType());
585
+        tpTransactionReply.setReplyUuidName(tpTransactionReplyBack.getUuidName());
586
+        tpTransactionReply.setReplyUuidRole(tpTransactionReplyBack.getReplyUuidRole());
577
         tpTransactionReply.setReleaseIdentity("0");
587
         tpTransactionReply.setReleaseIdentity("0");
578
-        TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
579
-        tpTransactionReply.setTaUserVerifyId(taUserVerify.getRoleId());
580
-        tpTransactionReply.setRoomNoName(taUserVerify.getRoomNoName());
588
+        
581
         tpTransactionReply.setCreateDate(new Date());
589
         tpTransactionReply.setCreateDate(new Date());
582
         tpTransactionReplyMapper.insert(tpTransactionReply);
590
         tpTransactionReplyMapper.insert(tpTransactionReply);
583
 
591
 
601
         ResponseBean response = new ResponseBean();
609
         ResponseBean response = new ResponseBean();
602
         TpTransactionLike tpTransactionLike = JSONObject.parseObject(paramets, TpTransactionLike.class);
610
         TpTransactionLike tpTransactionLike = JSONObject.parseObject(paramets, TpTransactionLike.class);
603
         tpTransactionLike.setCommunityId(userElement.getCommunityId());
611
         tpTransactionLike.setCommunityId(userElement.getCommunityId());
604
-        tpTransactionLike.setTaUserId(userElement.getId());
612
+        tpTransactionLike.setTaUserVerifyId(userElement.getUserVerifyId());
605
         tpTransactionLike.setCreateDate(new Date());
613
         tpTransactionLike.setCreateDate(new Date());
606
-        TpTransactionLike isUser = tpTransactionLikeMapper.getinvitationId(tpTransactionLike.getTransactionId(), userElement.getCommunityId(), userElement.getId());
614
+        TpTransactionLike isUser = tpTransactionLikeMapper.getinvitationId(tpTransactionLike.getTransactionId(), userElement.getCommunityId(), userElement.getUserVerifyId());
607
         if (null != isUser) {
615
         if (null != isUser) {
608
             response.addError("您已点赞或踩");
616
             response.addError("您已点赞或踩");
609
             return response;
617
             return response;
618
         ResponseBean responseBean = new ResponseBean();
626
         ResponseBean responseBean = new ResponseBean();
619
         Map<String, Object> parameter = Maps.newHashMap();
627
         Map<String, Object> parameter = Maps.newHashMap();
620
         Page<TpActivity> pageList = PageHelper.startPage(pageNum, paeSize);
628
         Page<TpActivity> pageList = PageHelper.startPage(pageNum, paeSize);
621
-        List<TpActivity> tpActivity = tpActivityMapper.selecttpActivity(userElement.getId(), userElement.getCommunityId());
629
+        List<TpActivity> tpActivity = tpActivityMapper.selecttpActivity(userElement.getUserVerifyId(), userElement.getCommunityId());
622
         parameter.put("list", tpActivity);
630
         parameter.put("list", tpActivity);
623
         parameter.put("total", pageList.getTotal());
631
         parameter.put("total", pageList.getTotal());
624
         responseBean.addSuccess(parameter);
632
         responseBean.addSuccess(parameter);
631
         //拿到我自己所有的帖子
639
         //拿到我自己所有的帖子
632
         Map<String, Object> parameter = Maps.newHashMap();
640
         Map<String, Object> parameter = Maps.newHashMap();
633
         Page<TpTransaction> pageList = PageHelper.startPage(pageNum, paeSize);
641
         Page<TpTransaction> pageList = PageHelper.startPage(pageNum, paeSize);
634
-        List<TpTransaction> tpTransactionList = tpTransactionMapper.getUserTransactionList(userElement.getId(), userElement.getCommunityId());
642
+        List<TpTransaction> tpTransactionList = tpTransactionMapper.getUserTransactionList(userElement.getUserVerifyId(), userElement.getCommunityId());
635
 
643
 
636
         parameter.put("list", tpTransactionList);
644
         parameter.put("list", tpTransactionList);
637
         parameter.put("total", pageList.getTotal());
645
         parameter.put("total", pageList.getTotal());
643
     public ResponseBean tpActivitySignInAdd(String paramets, UserElement userElement) {
651
     public ResponseBean tpActivitySignInAdd(String paramets, UserElement userElement) {
644
         ResponseBean responseBean = new ResponseBean();
652
         ResponseBean responseBean = new ResponseBean();
645
         Integer activityId = JSONObject.parseObject(paramets).getInteger("activityId");
653
         Integer activityId = JSONObject.parseObject(paramets).getInteger("activityId");
654
+        // 校验扫码签到
655
+        TpActivity tpActivity = tpActivityMapper.selectByPrimaryKey(activityId,userElement.getCommunityId());
656
+        /*当前用户扫的是否是本小区的码*/
657
+        TpActivity activity = tpActivityMapper.selectActivity(activityId);
658
+        if (null!=activity && (!userElement.getCommunityId().equals(activity.getCommunityId()))){
659
+            responseBean.addError("活动不属于当前登录小区,请在个人中心切换小区");
660
+            return responseBean;
661
+        }
662
+        /*查看当前用户是否报名*/
663
+         TpActivitySignup signIn= tpActivitySignupMapper.selectTpActivetitySignByUserId(activityId,userElement.getCommunityId(),userElement.getUserVerifyId());
664
+        if (signIn == null){
665
+            responseBean.addError("请先报名");
666
+            return responseBean;
667
+        }
668
+        /*活动不需要签到*/
669
+
670
+        if (null!=tpActivity && "2".equals(tpActivity.getSignInCode())){
671
+            responseBean.addError("活动已不能签到");
672
+            return responseBean;
673
+        }
674
+        /*活动作废*/
675
+        if (null!=tpActivity && "0".equals(tpActivity.getStatus())){
676
+            responseBean.addError("活动已被作废");
677
+            return responseBean;
678
+        }
679
+
646
         TpActivitySignIn tpActivitySignIn = new TpActivitySignIn();
680
         TpActivitySignIn tpActivitySignIn = new TpActivitySignIn();
647
         tpActivitySignIn.setActivityId(activityId);
681
         tpActivitySignIn.setActivityId(activityId);
648
         tpActivitySignIn.setCommunityId(userElement.getCommunityId());
682
         tpActivitySignIn.setCommunityId(userElement.getCommunityId());
679
         TpTransactionReply tpTransactionReply = new TpTransactionReply();
713
         TpTransactionReply tpTransactionReply = new TpTransactionReply();
680
         tpTransactionReply.setCommunityId(userElement.getCommunityId());
714
         tpTransactionReply.setCommunityId(userElement.getCommunityId());
681
         tpTransactionReply.setTransactionId(transactionId);
715
         tpTransactionReply.setTransactionId(transactionId);
682
-        tpTransactionReply.setTaUserId(userElement.getId());
683
-        tpTransactionReply.setTaUserName(userElement.getUserName());
716
+        //tpTransactionReply.setTaUserId(userElement.getId());
717
+        //tpTransactionReply.setTaUserName(userElement.getUserName());
684
         tpTransactionReply.setReleaseIdentity("0");
718
         tpTransactionReply.setReleaseIdentity("0");
685
-        tpTransactionReply.setReplyContent(replyContent);
686
-        tpTransactionReply.setReplyTaUserId(replyUserId);
687
-        tpTransactionReply.setReplyTaUserName(userName);
719
+        //tpTransactionReply.setReplyContent(replyContent);
720
+        //tpTransactionReply.setReplyTaUserId(replyUserId);
721
+        //tpTransactionReply.setReplyTaUserName(userName);
688
         tpTransactionReply.setCreateDate(new Date());
722
         tpTransactionReply.setCreateDate(new Date());
689
         response.addSuccess("成功");
723
         response.addSuccess("成功");
690
         tpTransactionReplyMapper.insert(tpTransactionReply);
724
         tpTransactionReplyMapper.insert(tpTransactionReply);
785
         TpActivitySignup tpActivitySignup = new TpActivitySignup();
819
         TpActivitySignup tpActivitySignup = new TpActivitySignup();
786
         tpActivitySignup.setActivityId(tpActivity.getId());
820
         tpActivitySignup.setActivityId(tpActivity.getId());
787
         tpActivitySignup.setCommunityId(communityId);
821
         tpActivitySignup.setCommunityId(communityId);
788
-        tpActivitySignup.setTaUserId(userElement.getId());
822
+        tpActivitySignup.setTaUserId(userElement.getUserVerifyId());
789
         tpActivitySignup.setSignUpTime(new Date());
823
         tpActivitySignup.setSignUpTime(new Date());
790
         tpActivitySignup.setRemark(remark);
824
         tpActivitySignup.setRemark(remark);
791
 
825
 
833
         }
867
         }
834
 
868
 
835
         TpTransaction tpTransaction = tpTransactionMapper.selectByPrimaryKey(activityId, communityId);
869
         TpTransaction tpTransaction = tpTransactionMapper.selectByPrimaryKey(activityId, communityId);
836
-        TaUser taUser = taUserMapper.selectByPrimaryKey(tpTransaction.getTaUserId());
837
-        tpTransaction.setTelephone(taUser.getLoginName());
838
-        tpTransaction.setCreateUserName(taUser.getUserName());
839
 
870
 
840
         Map<String, Object> map = Maps.newHashMap();
871
         Map<String, Object> map = Maps.newHashMap();
841
         map.put("uuid", tpTransaction.getId());
872
         map.put("uuid", tpTransaction.getId());
908
 
939
 
909
         PageHelper.startPage(pageNum, pageSize, "create_date " + order);
940
         PageHelper.startPage(pageNum, pageSize, "create_date " + order);
910
         //房间号
941
         //房间号
911
-         TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
912
-        List<TpTransactionReply> replies = tpTransactionReplyMapper.getCommunityIdAndTransactionId(userElement.getCommunityId(), transactionId, userElement.getId(), tpTransaction.getCreateUser(),type,taUserVerify.getRoomNoName());
942
+        TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
943
+        List<TpTransactionReply> replies = tpTransactionReplyMapper.getCommunityIdAndTransactionId(userElement.getCommunityId(), transactionId, userElement.getUserVerifyId(), tpTransaction.getUuid(),tpTransaction.getUuidType(),type);
913
         for (TpTransactionReply tpTransactionReply : replies) {
944
         for (TpTransactionReply tpTransactionReply : replies) {
914
             List<TdImages> tdImagesList = tdImagesMapper.selectImages(tpTransactionReply.getId(), "reply");
945
             List<TdImages> tdImagesList = tdImagesMapper.selectImages(tpTransactionReply.getId(), "reply");
915
             List<String> list = new ArrayList<>();
946
             List<String> list = new ArrayList<>();

+ 9
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserLicenseServiceImpl.java 查看文件

142
         taUserLicense.setLicenseType(dataType);
142
         taUserLicense.setLicenseType(dataType);
143
 
143
 
144
         taUserLicense.setLicensePlate(carNo);
144
         taUserLicense.setLicensePlate(carNo);
145
-        String price = String.valueOf(Double.valueOf(((BigDecimal) jsonParam.get("Cost")).toString()) * 100);
146
-        taUserLicense.setUnitPrice(price.substring(0, price.lastIndexOf(".")));
145
+        Object cost = jsonParam.get("Cost");
146
+        if (null != cost) {
147
+            String price = String.valueOf(Double.valueOf(((BigDecimal) cost).toString()) * 100);
148
+            taUserLicense.setUnitPrice(price.substring(0, price.lastIndexOf(".")));
149
+        }
147
         taUserLicense.setParkingLot(String.valueOf(jsonParam.get("ParkingName")));
150
         taUserLicense.setParkingLot(String.valueOf(jsonParam.get("ParkingName")));
148
-        taUserLicense.setRenewTime(Integer.valueOf(String.valueOf(jsonParam.get("RenewTime"))));
151
+        Object renewTime = jsonParam.get("RenewTime");
152
+        if (null != renewTime) {
153
+            taUserLicense.setRenewTime(Integer.valueOf(String.valueOf(renewTime)));
154
+        }
149
 
155
 
150
         SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
156
         SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
151
         try {
157
         try {

+ 57
- 40
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserServiceImpl.java 查看文件

160
 
160
 
161
     @Autowired
161
     @Autowired
162
     private TpMessageMapper tpMessageMapper;
162
     private TpMessageMapper tpMessageMapper;
163
+
164
+    @Autowired
165
+    private TaFeedbackMapper taFeedbackMapper;
166
+
167
+    @Autowired
168
+    private  TaFeedbackImgMapper taFeedbackImgMapper;
169
+
163
     @Override
170
     @Override
164
     @Transactional(rollbackFor = Exception.class)
171
     @Transactional(rollbackFor = Exception.class)
165
     public ResponseBean login(String loginName, String code, HttpSession session) {
172
     public ResponseBean login(String loginName, String code, HttpSession session) {
325
         // 校验手机号和验证码
332
         // 校验手机号和验证码
326
         iCode.checkPhoneAndCode(phone, code);
333
         iCode.checkPhoneAndCode(phone, code);
327
 
334
 
328
-        //当前小区下的电话校验
329
-        TaUser loginName = taUserMapper.getByLoginName(user.getCommunityId(), phone);
330
-        if (null != loginName) {
331
-            response.addError("号码已占用");
335
+        // 查询出这个手机号
336
+        TaUser hasUserPhone = hasUserPhone(phone);
337
+        if (null != hasUserPhone && user.getId().intValue() != hasUserPhone.getId().intValue()) {
338
+            response.addError("手机号已被使用,请更换其他手机号");
339
+            return response;
340
+        }
341
+
342
+        // 如果提交上来的手机号 和 这个用户本身的手机号相等,就直接返回,不做其他操作
343
+        if (null != hasUserPhone && user.getLoginName().equals(phone)) {
344
+            response.addError("手机号已被使用,请更换其他手机号");
332
             return response;
345
             return response;
333
         }
346
         }
334
         TpEquipmentTree tpEquipmentTree = tpEquipmentTreeMapper.selectByCommunityId(userElement.getCommunityId());
347
         TpEquipmentTree tpEquipmentTree = tpEquipmentTreeMapper.selectByCommunityId(userElement.getCommunityId());
337
         int errorCode = jsonobject.getInteger("errorCode");
350
         int errorCode = jsonobject.getInteger("errorCode");
338
         if (errorCode != 0) {
351
         if (errorCode != 0) {
339
             log.error("海康电话已存在,推送海康电话修改失败");
352
             log.error("海康电话已存在,推送海康电话修改失败");
340
-            response.addError("此手机号已注册");
353
+            response.addError("手机号已被使用,请更换其他手机号");
341
             return response;
354
             return response;
342
         }
355
         }
343
 
356
 
348
         taUser.setUpdateDate(new Date());
361
         taUser.setUpdateDate(new Date());
349
         taUser.setUpdateUser(user.getId());
362
         taUser.setUpdateUser(user.getId());
350
         taUserMapper.updateLongName(taUser);
363
         taUserMapper.updateLongName(taUser);
351
-        response.addSuccess("修改成功");
364
+        response.addSuccess("修改手机号成功,以后请使用新手机号登录");
352
 
365
 
353
-        /**
354
-         * 如果是 家属或者租客,修改手机号, 就不允许修改资料库的信息
355
-         * 根据房产判断 当前是否是 业主
356
-         */
357
-
358
-        TaUserVerify userVerify = taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
359
-        TaSysRole sysRole = taSysRoleMapper.selectByPrimaryKey(userVerify.getRoleId());
360
-
361
-        // 修改楼栋信息资料库的手机号
362
-        // 1 业主 2 租客 3 家属
363
-        // 只允许业主修改
364
-        if (null != sysRole && sysRole.getId().intValue() == 1) {
365
-            TpBuildingOwnerInfo buildingOwnerInfo = tpBuildingOwnerInfoMapper.selectByPrimaryKey(userVerify.getRoomNoId());
366
-            buildingOwnerInfo.setOwnerTel(phone);
367
-            tpBuildingOwnerInfoMapper.updateByPrimaryKeySelective(buildingOwnerInfo);
368
-        }
366
+        // 修改楼栋资料库手机号
367
+        tpBuildingOwnerInfoMapper.updateAllByPhone(user.getLoginName(), phone);
369
 
368
 
370
         // 给前端返回一个空数组
369
         // 给前端返回一个空数组
371
         response.addSuccess(new String[0]);
370
         response.addSuccess(new String[0]);
414
         // 数据库数据
413
         // 数据库数据
415
         TaUser taUser = taUserMapper.selectByPrimaryKey(userElement.getId());
414
         TaUser taUser = taUserMapper.selectByPrimaryKey(userElement.getId());
416
 
415
 
417
-        /**
418
-         * 判断是否 是业主,如果业主就连着 楼栋资料库 信息修改
419
-         */
420
-
421
-        TaUserVerify userVerify = taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
422
-        TaSysRole sysRole = taSysRoleMapper.selectByPrimaryKey(userVerify.getRoleId());
423
-
424
         BeanTools.copyProperties(user, taUser);
416
         BeanTools.copyProperties(user, taUser);
425
         int result = taUserMapper.updateByPrimaryKeySelective(taUser);
417
         int result = taUserMapper.updateByPrimaryKeySelective(taUser);
426
-        // int VerifyStatus= Integer.parseInt(taUser.getVerifyStatus());
427
-        if (1 == sysRole.getId()) {
428
-            TpBuildingOwnerInfo tpBuildingOwnerInfo = new TpBuildingOwnerInfo();
429
-            tpBuildingOwnerInfo.setOwnerName(user.getUserName());
430
-            tpBuildingOwnerInfo.setGender(user.getGender());
431
-            tpBuildingOwnerInfo.setOwnerTel(user.getLoginName());
432
-            tpBuildingOwnerInfo.setUpdateDate(new Date());
433
-            tpBuildingOwnerInfo.setUpdateUser(taUser.getId());
434
-            tpBuildingOwnerInfo.setId(userElement.getRoomNoId());
435
-            tpBuildingOwnerInfoMapper.updateByPrimaryKeySelective(tpBuildingOwnerInfo);
436
-        }
418
+
419
+        // 修改楼栋资料库手机号
420
+        result = tpBuildingOwnerInfoMapper.updateGenderAndOwnerNameByPhone(taUser.getLoginName(), user.getGender(), user.getUserName());
421
+
437
         if (result > 0) {
422
         if (result > 0) {
438
             response.addSuccess("修改成功!");
423
             response.addSuccess("修改成功!");
439
         } else {
424
         } else {
1228
         checkLogin(responseBean, currentUser, session);
1213
         checkLogin(responseBean, currentUser, session);
1229
         return responseBean;
1214
         return responseBean;
1230
     }
1215
     }
1216
+
1217
+    @Override
1218
+    public ResponseBean addFeedback(UserElement userElement, String parameter) {
1219
+       ResponseBean response= new ResponseBean<>();
1220
+       TaFeedback taFeedback= JSONObject.parseObject(parameter,TaFeedback.class);
1221
+
1222
+        if (!AccountValidatorUtil.isPhone(taFeedback.getTaUserTel())) {
1223
+            response.addError("请输入正确的手机号!");
1224
+            return response;
1225
+        }
1226
+
1227
+       TaUserVerify taUserVerify= taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
1228
+       /*期-栋-单元-楼层-户号*/
1229
+       taFeedback.setEstateSource(null==taUserVerify?null:taUserVerify.getPhaseName()+taUserVerify.getBuildingName()+taUserVerify.getUnitName()+taUserVerify.getLevelName()+taUserVerify.getRoomNoName());
1230
+       taFeedback.setHandleStatus("2");
1231
+       taFeedback.setCreateDate(new Date());
1232
+       taFeedback.setCreateUser(userElement.getUserVerifyId());
1233
+       taFeedbackMapper.insert(taFeedback);
1234
+        JSONArray jSONArray= JSONObject.parseObject(parameter).getJSONArray("feedbackImg");
1235
+       if(null!=jSONArray) {
1236
+           String[] feedbackImgArr = jSONArray.toArray(new String[]{});
1237
+           for (String imgUrl : feedbackImgArr) {
1238
+               TaFeedbackImg taFeedbackImg = new TaFeedbackImg();
1239
+               taFeedbackImg.setImgUrl(imgUrl);
1240
+               taFeedbackImg.setCreateDate(new Date());
1241
+               taFeedbackImg.setFeedbackId(taFeedback.getId());
1242
+               taFeedbackImgMapper.insert(taFeedbackImg);
1243
+           }
1244
+       }
1245
+        response.addSuccess("成功");
1246
+        return response;
1247
+    }
1231
 }
1248
 }

+ 15
- 8
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaVistorServiceImpl.java 查看文件

5
 import com.community.commom.mode.ResponseBean;
5
 import com.community.commom.mode.ResponseBean;
6
 import com.community.commom.session.UserElement;
6
 import com.community.commom.session.UserElement;
7
 import com.community.commom.hk.HKOpenApi;
7
 import com.community.commom.hk.HKOpenApi;
8
-import com.community.huiju.dao.TaUserMapper;
9
-import com.community.huiju.dao.TaVisitorLicenseMapper;
10
-import com.community.huiju.dao.TaVisitorMapper;
11
-import com.community.huiju.dao.TpEquipmentTreeMapper;
12
-import com.community.huiju.model.TaUser;
13
-import com.community.huiju.model.TaVisitor;
14
-import com.community.huiju.model.TaVisitorLicense;
15
-import com.community.huiju.model.TpEquipmentTree;
8
+import com.community.huiju.dao.*;
9
+import com.community.huiju.model.*;
16
 import com.community.huiju.service.TaVistorServiceI;
10
 import com.community.huiju.service.TaVistorServiceI;
17
 import com.google.common.collect.Maps;
11
 import com.google.common.collect.Maps;
18
 import lombok.extern.slf4j.Slf4j;
12
 import lombok.extern.slf4j.Slf4j;
46
     @Autowired
40
     @Autowired
47
     private TpEquipmentTreeMapper tpEquipmentTreeMapper;
41
     private TpEquipmentTreeMapper tpEquipmentTreeMapper;
48
 
42
 
43
+    @Autowired
44
+    private TaVisitorLicenseSettingMapper taVisitorLicenseSettingMapper;
45
+
49
     @Override
46
     @Override
50
     @Transactional(rollbackFor = Exception.class)
47
     @Transactional(rollbackFor = Exception.class)
51
     public ResponseBean insertTaVistor(TaVisitor taVisitor, UserElement userElement) {
48
     public ResponseBean insertTaVistor(TaVisitor taVisitor, UserElement userElement) {
145
         throw new RuntimeException("创建访问登记失败!" + errorMessage);
142
         throw new RuntimeException("创建访问登记失败!" + errorMessage);
146
 
143
 
147
     }
144
     }
145
+
146
+
147
+    @Override
148
+    public ResponseBean invateBool(UserElement userElement) {
149
+        ResponseBean responseBean = new ResponseBean();
150
+        TaVisitorLicenseSetting taVisitorLicenseSetting = taVisitorLicenseSettingMapper.selectByCommunityId(userElement.getCommunityId());
151
+        // true 表示启用了访客邀请的车辆, false 表示未启用访客邀请的车辆
152
+        responseBean.addSuccess(null != taVisitorLicenseSetting ? true : false);
153
+        return responseBean;
154
+    }
148
 }
155
 }

+ 27
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TaBriskUserMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaBriskUserMapper" >
4
+
5
+    <resultMap id="BaseResultMap" type="com.community.huiju.model.TaBriskUser" >
6
+        <id column="id" property="id" jdbcType="INTEGER" />
7
+        <result column="community_id" property="communityId" jdbcType="INTEGER" />
8
+        <result column="ta_user_verify_id" property="taUserVerifyId" jdbcType="INTEGER" />
9
+        <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
10
+    </resultMap>
11
+
12
+    <select id="selectByParams" resultMap="BaseResultMap">
13
+        select
14
+          id,community_id,ta_user_verify_id,create_date
15
+        from ta_brisk_user
16
+        where ta_user_verify_id = #{userVerifyId}
17
+        AND community_id = #{communityId}
18
+        AND to_days(create_date) = to_days(#{nowDate})
19
+    </select>
20
+
21
+    <insert id="saveBriskUser" parameterType="com.community.huiju.model.TaBriskUser" >
22
+    insert into ta_brisk_user (id, community_id, ta_user_verify_id,create_date
23
+      )
24
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserVerifyId,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}
25
+      )
26
+  </insert>
27
+</mapper>

+ 86
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TaFeedbackImgMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaFeedbackImgMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TaFeedbackImg" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="feedback_id" property="feedbackId" jdbcType="INTEGER" />
7
+    <result column="img_url" property="imgUrl" jdbcType="VARCHAR" />
8
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
9
+  </resultMap>
10
+  <sql id="Base_Column_List" >
11
+    id, feedback_id, img_url, create_date
12
+  </sql>
13
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
14
+    select 
15
+    <include refid="Base_Column_List" />
16
+    from ta_feedback_img
17
+    where id = #{id,jdbcType=INTEGER}
18
+  </select>
19
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
20
+    delete from ta_feedback_img
21
+    where id = #{id,jdbcType=INTEGER}
22
+  </delete>
23
+  <insert id="insert" parameterType="com.community.huiju.model.TaFeedbackImg" >
24
+    insert into ta_feedback_img (id, feedback_id, img_url, 
25
+      create_date)
26
+    values (#{id,jdbcType=INTEGER}, #{feedbackId,jdbcType=INTEGER}, #{imgUrl,jdbcType=VARCHAR}, 
27
+      #{createDate,jdbcType=TIMESTAMP})
28
+  </insert>
29
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaFeedbackImg" >
30
+    insert into ta_feedback_img
31
+    <trim prefix="(" suffix=")" suffixOverrides="," >
32
+      <if test="id != null" >
33
+        id,
34
+      </if>
35
+      <if test="feedbackId != null" >
36
+        feedback_id,
37
+      </if>
38
+      <if test="imgUrl != null" >
39
+        img_url,
40
+      </if>
41
+      <if test="createDate != null" >
42
+        create_date,
43
+      </if>
44
+    </trim>
45
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
46
+      <if test="id != null" >
47
+        #{id,jdbcType=INTEGER},
48
+      </if>
49
+      <if test="feedbackId != null" >
50
+        #{feedbackId,jdbcType=INTEGER},
51
+      </if>
52
+      <if test="imgUrl != null" >
53
+        #{imgUrl,jdbcType=VARCHAR},
54
+      </if>
55
+      <if test="createDate != null" >
56
+        #{createDate,jdbcType=TIMESTAMP},
57
+      </if>
58
+    </trim>
59
+  </insert>
60
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaFeedbackImg" >
61
+    update ta_feedback_img
62
+    <set >
63
+      <if test="feedbackId != null" >
64
+        feedback_id = #{feedbackId,jdbcType=INTEGER},
65
+      </if>
66
+      <if test="imgUrl != null" >
67
+        img_url = #{imgUrl,jdbcType=VARCHAR},
68
+      </if>
69
+      <if test="createDate != null" >
70
+        create_date = #{createDate,jdbcType=TIMESTAMP},
71
+      </if>
72
+    </set>
73
+    where id = #{id,jdbcType=INTEGER}
74
+  </update>
75
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TaFeedbackImg" >
76
+    update ta_feedback_img
77
+    set feedback_id = #{feedbackId,jdbcType=INTEGER},
78
+      img_url = #{imgUrl,jdbcType=VARCHAR},
79
+      create_date = #{createDate,jdbcType=TIMESTAMP}
80
+    where id = #{id,jdbcType=INTEGER}
81
+  </update>
82
+
83
+  <select id="selectImg" resultType="string">
84
+    select img_url from  ta_feedback_img where feedback_id =  #{id,jdbcType=INTEGER}
85
+  </select>
86
+</mapper>

+ 195
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TaFeedbackMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaFeedbackMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TaFeedback" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="content" property="content" jdbcType="VARCHAR" />
7
+    <result column="ta_user_tel" property="taUserTel" jdbcType="VARCHAR" />
8
+    <result column="estate_source" property="estateSource" jdbcType="VARCHAR" />
9
+    <result column="handle_status" property="handleStatus" jdbcType="VARCHAR" />
10
+    <result column="handle_remark" property="handleRemark" jdbcType="VARCHAR" />
11
+    <result column="handle_user" property="handleUser" jdbcType="VARCHAR" />
12
+    <result column="handle_time" property="handleTime" jdbcType="TIMESTAMP" />
13
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
14
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
15
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
16
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
17
+  </resultMap>
18
+  <sql id="Base_Column_List" >
19
+    id, content, ta_user_tel, estate_source, handle_status, handle_remark, handle_user, 
20
+    handle_time, create_date, create_user, update_date, update_user
21
+  </sql>
22
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
23
+    select 
24
+    <include refid="Base_Column_List" />
25
+    from ta_feedback
26
+    where id = #{id,jdbcType=INTEGER}
27
+  </select>
28
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
29
+    delete from ta_feedback
30
+    where id = #{id,jdbcType=INTEGER}
31
+  </delete>
32
+  <insert id="insert" parameterType="com.community.huiju.model.TaFeedback" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
33
+    insert into ta_feedback (id, content, ta_user_tel, 
34
+      estate_source, handle_status, handle_remark, 
35
+      handle_user, handle_time, create_date, 
36
+      create_user, update_date, update_user
37
+      )
38
+    values (#{id,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{taUserTel,jdbcType=VARCHAR}, 
39
+      #{estateSource,jdbcType=VARCHAR}, #{handleStatus,jdbcType=VARCHAR}, #{handleRemark,jdbcType=VARCHAR}, 
40
+      #{handleUser,jdbcType=VARCHAR}, #{handleTime,jdbcType=TIMESTAMP}, #{createDate,jdbcType=TIMESTAMP}, 
41
+      #{createUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}
42
+      )
43
+  </insert>
44
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaFeedback" >
45
+    insert into ta_feedback
46
+    <trim prefix="(" suffix=")" suffixOverrides="," >
47
+      <if test="id != null" >
48
+        id,
49
+      </if>
50
+      <if test="content != null" >
51
+        content,
52
+      </if>
53
+      <if test="taUserTel != null" >
54
+        ta_user_tel,
55
+      </if>
56
+      <if test="estateSource != null" >
57
+        estate_source,
58
+      </if>
59
+      <if test="handleStatus != null" >
60
+        handle_status,
61
+      </if>
62
+      <if test="handleRemark != null" >
63
+        handle_remark,
64
+      </if>
65
+      <if test="handleUser != null" >
66
+        handle_user,
67
+      </if>
68
+      <if test="handleTime != null" >
69
+        handle_time,
70
+      </if>
71
+      <if test="createDate != null" >
72
+        create_date,
73
+      </if>
74
+      <if test="createUser != null" >
75
+        create_user,
76
+      </if>
77
+      <if test="updateDate != null" >
78
+        update_date,
79
+      </if>
80
+      <if test="updateUser != null" >
81
+        update_user,
82
+      </if>
83
+    </trim>
84
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
85
+      <if test="id != null" >
86
+        #{id,jdbcType=INTEGER},
87
+      </if>
88
+      <if test="content != null" >
89
+        #{content,jdbcType=VARCHAR},
90
+      </if>
91
+      <if test="taUserTel != null" >
92
+        #{taUserTel,jdbcType=VARCHAR},
93
+      </if>
94
+      <if test="estateSource != null" >
95
+        #{estateSource,jdbcType=VARCHAR},
96
+      </if>
97
+      <if test="handleStatus != null" >
98
+        #{handleStatus,jdbcType=VARCHAR},
99
+      </if>
100
+      <if test="handleRemark != null" >
101
+        #{handleRemark,jdbcType=VARCHAR},
102
+      </if>
103
+      <if test="handleUser != null" >
104
+        #{handleUser,jdbcType=VARCHAR},
105
+      </if>
106
+      <if test="handleTime != null" >
107
+        #{handleTime,jdbcType=TIMESTAMP},
108
+      </if>
109
+      <if test="createDate != null" >
110
+        #{createDate,jdbcType=TIMESTAMP},
111
+      </if>
112
+      <if test="createUser != null" >
113
+        #{createUser,jdbcType=INTEGER},
114
+      </if>
115
+      <if test="updateDate != null" >
116
+        #{updateDate,jdbcType=TIMESTAMP},
117
+      </if>
118
+      <if test="updateUser != null" >
119
+        #{updateUser,jdbcType=INTEGER},
120
+      </if>
121
+    </trim>
122
+  </insert>
123
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaFeedback" >
124
+    update ta_feedback
125
+    <set >
126
+      <if test="content != null" >
127
+        content = #{content,jdbcType=VARCHAR},
128
+      </if>
129
+      <if test="taUserTel != null" >
130
+        ta_user_tel = #{taUserTel,jdbcType=VARCHAR},
131
+      </if>
132
+      <if test="estateSource != null" >
133
+        estate_source = #{estateSource,jdbcType=VARCHAR},
134
+      </if>
135
+      <if test="handleStatus != null" >
136
+        handle_status = #{handleStatus,jdbcType=VARCHAR},
137
+      </if>
138
+      <if test="handleRemark != null" >
139
+        handle_remark = #{handleRemark,jdbcType=VARCHAR},
140
+      </if>
141
+      <if test="handleUser != null" >
142
+        handle_user = #{handleUser,jdbcType=VARCHAR},
143
+      </if>
144
+      <if test="handleTime != null" >
145
+        handle_time = #{handleTime,jdbcType=TIMESTAMP},
146
+      </if>
147
+      <if test="createDate != null" >
148
+        create_date = #{createDate,jdbcType=TIMESTAMP},
149
+      </if>
150
+      <if test="createUser != null" >
151
+        create_user = #{createUser,jdbcType=INTEGER},
152
+      </if>
153
+      <if test="updateDate != null" >
154
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
155
+      </if>
156
+      <if test="updateUser != null" >
157
+        update_user = #{updateUser,jdbcType=INTEGER},
158
+      </if>
159
+    </set>
160
+    where id = #{id,jdbcType=INTEGER}
161
+  </update>
162
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TaFeedback" >
163
+    update ta_feedback
164
+    set content = #{content,jdbcType=VARCHAR},
165
+      ta_user_tel = #{taUserTel,jdbcType=VARCHAR},
166
+      estate_source = #{estateSource,jdbcType=VARCHAR},
167
+      handle_status = #{handleStatus,jdbcType=VARCHAR},
168
+      handle_remark = #{handleRemark,jdbcType=VARCHAR},
169
+      handle_user = #{handleUser,jdbcType=VARCHAR},
170
+      handle_time = #{handleTime,jdbcType=TIMESTAMP},
171
+      create_date = #{createDate,jdbcType=TIMESTAMP},
172
+      create_user = #{createUser,jdbcType=INTEGER},
173
+      update_date = #{updateDate,jdbcType=TIMESTAMP},
174
+      update_user = #{updateUser,jdbcType=INTEGER}
175
+    where id = #{id,jdbcType=INTEGER}
176
+  </update>
177
+
178
+  <select id="getFeedback" resultMap="BaseResultMap">
179
+    select * from  ta_feedback
180
+    <where>
181
+      <if test="tel != null and tel !=''">
182
+        and ta_user_tel like CONCAT('%', #{tel,jdbcType=VARCHAR}, '%')
183
+      </if>
184
+
185
+      <if test="content != null and content !=''">
186
+        and handle_remark like CONCAT('%', #{content,jdbcType=VARCHAR}, '%')
187
+      </if>
188
+
189
+      <if test="handleStatus != null and handleStatus !=''">
190
+        and handle_status like CONCAT('%', #{handleStatus,jdbcType=VARCHAR}, '%')
191
+      </if>
192
+    </where>
193
+    ORDER BY update_date desc
194
+  </select>
195
+</mapper>

+ 82
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TaPublicMonitorMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaPublicMonitorMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TaPublicMonitor" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="ta_user_verify_id" property="taUserVerifyId" jdbcType="INTEGER" />
8
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
9
+  </resultMap>
10
+  <sql id="Base_Column_List" >
11
+    id, community_id, ta_user_verify_id, create_date
12
+  </sql>
13
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
14
+    select 
15
+    <include refid="Base_Column_List" />
16
+    from ta_public_monitor
17
+    where id = #{id,jdbcType=INTEGER}
18
+  </select>
19
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
20
+    delete from ta_public_monitor
21
+    where id = #{id,jdbcType=INTEGER}
22
+  </delete>
23
+  <insert id="insert" parameterType="com.community.huiju.model.TaPublicMonitor" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
24
+    insert into ta_public_monitor (id, community_id, ta_user_verify_id, 
25
+      create_date)
26
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserVerifyId,jdbcType=INTEGER}, 
27
+      #{createDate,jdbcType=TIMESTAMP})
28
+  </insert>
29
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaPublicMonitor" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
30
+    insert into ta_public_monitor
31
+    <trim prefix="(" suffix=")" suffixOverrides="," >
32
+      <if test="id != null" >
33
+        id,
34
+      </if>
35
+      <if test="communityId != null" >
36
+        community_id,
37
+      </if>
38
+      <if test="taUserVerifyId != null" >
39
+        ta_user_verify_id,
40
+      </if>
41
+      <if test="createDate != null" >
42
+        create_date,
43
+      </if>
44
+    </trim>
45
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
46
+      <if test="id != null" >
47
+        #{id,jdbcType=INTEGER},
48
+      </if>
49
+      <if test="communityId != null" >
50
+        #{communityId,jdbcType=INTEGER},
51
+      </if>
52
+      <if test="taUserVerifyId != null" >
53
+        #{taUserVerifyId,jdbcType=INTEGER},
54
+      </if>
55
+      <if test="createDate != null" >
56
+        #{createDate,jdbcType=TIMESTAMP},
57
+      </if>
58
+    </trim>
59
+  </insert>
60
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaPublicMonitor" >
61
+    update ta_public_monitor
62
+    <set >
63
+      <if test="communityId != null" >
64
+        community_id = #{communityId,jdbcType=INTEGER},
65
+      </if>
66
+      <if test="taUserVerifyId != null" >
67
+        ta_user_verify_id = #{taUserVerifyId,jdbcType=INTEGER},
68
+      </if>
69
+      <if test="createDate != null" >
70
+        create_date = #{createDate,jdbcType=TIMESTAMP},
71
+      </if>
72
+    </set>
73
+    where id = #{id,jdbcType=INTEGER}
74
+  </update>
75
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TaPublicMonitor" >
76
+    update ta_public_monitor
77
+    set community_id = #{communityId,jdbcType=INTEGER},
78
+      ta_user_verify_id = #{taUserVerifyId,jdbcType=INTEGER},
79
+      create_date = #{createDate,jdbcType=TIMESTAMP}
80
+    where id = #{id,jdbcType=INTEGER}
81
+  </update>
82
+</mapper>

+ 93
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TaRemotelyDoorMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaRemotelyDoorMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TaRemotelyDoor" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="ta_user_verify_id" property="taUserVerifyId" jdbcType="INTEGER" />
8
+    <result column="unit_id" property="unitId" jdbcType="INTEGER" />
9
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
10
+  </resultMap>
11
+  <sql id="Base_Column_List" >
12
+    id, community_id, ta_user_verify_id, unit_id, create_date
13
+  </sql>
14
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
15
+    select 
16
+    <include refid="Base_Column_List" />
17
+    from ta_remotely_door
18
+    where id = #{id,jdbcType=INTEGER}
19
+  </select>
20
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
21
+    delete from ta_remotely_door
22
+    where id = #{id,jdbcType=INTEGER}
23
+  </delete>
24
+  <insert id="insert" parameterType="com.community.huiju.model.TaRemotelyDoor" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
25
+    insert into ta_remotely_door (id, community_id, ta_user_verify_id, 
26
+      unit_id, create_date)
27
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserVerifyId,jdbcType=INTEGER}, 
28
+      #{unitId,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP})
29
+  </insert>
30
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaRemotelyDoor" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
31
+    insert into ta_remotely_door
32
+    <trim prefix="(" suffix=")" suffixOverrides="," >
33
+      <if test="id != null" >
34
+        id,
35
+      </if>
36
+      <if test="communityId != null" >
37
+        community_id,
38
+      </if>
39
+      <if test="taUserVerifyId != null" >
40
+        ta_user_verify_id,
41
+      </if>
42
+      <if test="unitId != null" >
43
+        unit_id,
44
+      </if>
45
+      <if test="createDate != null" >
46
+        create_date,
47
+      </if>
48
+    </trim>
49
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
50
+      <if test="id != null" >
51
+        #{id,jdbcType=INTEGER},
52
+      </if>
53
+      <if test="communityId != null" >
54
+        #{communityId,jdbcType=INTEGER},
55
+      </if>
56
+      <if test="taUserVerifyId != null" >
57
+        #{taUserVerifyId,jdbcType=INTEGER},
58
+      </if>
59
+      <if test="unitId != null" >
60
+        #{unitId,jdbcType=INTEGER},
61
+      </if>
62
+      <if test="createDate != null" >
63
+        #{createDate,jdbcType=TIMESTAMP},
64
+      </if>
65
+    </trim>
66
+  </insert>
67
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaRemotelyDoor" >
68
+    update ta_remotely_door
69
+    <set >
70
+      <if test="communityId != null" >
71
+        community_id = #{communityId,jdbcType=INTEGER},
72
+      </if>
73
+      <if test="taUserVerifyId != null" >
74
+        ta_user_verify_id = #{taUserVerifyId,jdbcType=INTEGER},
75
+      </if>
76
+      <if test="unitId != null" >
77
+        unit_id = #{unitId,jdbcType=INTEGER},
78
+      </if>
79
+      <if test="createDate != null" >
80
+        create_date = #{createDate,jdbcType=TIMESTAMP},
81
+      </if>
82
+    </set>
83
+    where id = #{id,jdbcType=INTEGER}
84
+  </update>
85
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TaRemotelyDoor" >
86
+    update ta_remotely_door
87
+    set community_id = #{communityId,jdbcType=INTEGER},
88
+      ta_user_verify_id = #{taUserVerifyId,jdbcType=INTEGER},
89
+      unit_id = #{unitId,jdbcType=INTEGER},
90
+      create_date = #{createDate,jdbcType=TIMESTAMP}
91
+    where id = #{id,jdbcType=INTEGER}
92
+  </update>
93
+</mapper>

+ 93
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TaRemotelyMonitorMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaRemotelyMonitorMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TaRemotelyMonitor" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="ta_user_verify_id" property="taUserVerifyId" jdbcType="INTEGER" />
8
+    <result column="unit_id" property="unitId" jdbcType="INTEGER" />
9
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
10
+  </resultMap>
11
+  <sql id="Base_Column_List" >
12
+    id, community_id, ta_user_verify_id, unit_id, create_date
13
+  </sql>
14
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
15
+    select 
16
+    <include refid="Base_Column_List" />
17
+    from ta_remotely_monitor
18
+    where id = #{id,jdbcType=INTEGER}
19
+  </select>
20
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
21
+    delete from ta_remotely_monitor
22
+    where id = #{id,jdbcType=INTEGER}
23
+  </delete>
24
+  <insert id="insert" parameterType="com.community.huiju.model.TaRemotelyMonitor" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
25
+    insert into ta_remotely_monitor (id, community_id, ta_user_verify_id, 
26
+      unit_id, create_date)
27
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserVerifyId,jdbcType=INTEGER}, 
28
+      #{unitId,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP})
29
+  </insert>
30
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaRemotelyMonitor" useGeneratedKeys="true" keyProperty="id" keyColumn="id" >
31
+    insert into ta_remotely_monitor
32
+    <trim prefix="(" suffix=")" suffixOverrides="," >
33
+      <if test="id != null" >
34
+        id,
35
+      </if>
36
+      <if test="communityId != null" >
37
+        community_id,
38
+      </if>
39
+      <if test="taUserVerifyId != null" >
40
+        ta_user_verify_id,
41
+      </if>
42
+      <if test="unitId != null" >
43
+        unit_id,
44
+      </if>
45
+      <if test="createDate != null" >
46
+        create_date,
47
+      </if>
48
+    </trim>
49
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
50
+      <if test="id != null" >
51
+        #{id,jdbcType=INTEGER},
52
+      </if>
53
+      <if test="communityId != null" >
54
+        #{communityId,jdbcType=INTEGER},
55
+      </if>
56
+      <if test="taUserVerifyId != null" >
57
+        #{taUserVerifyId,jdbcType=INTEGER},
58
+      </if>
59
+      <if test="unitId != null" >
60
+        #{unitId,jdbcType=INTEGER},
61
+      </if>
62
+      <if test="createDate != null" >
63
+        #{createDate,jdbcType=TIMESTAMP},
64
+      </if>
65
+    </trim>
66
+  </insert>
67
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaRemotelyMonitor" >
68
+    update ta_remotely_monitor
69
+    <set >
70
+      <if test="communityId != null" >
71
+        community_id = #{communityId,jdbcType=INTEGER},
72
+      </if>
73
+      <if test="taUserVerifyId != null" >
74
+        ta_user_verify_id = #{taUserVerifyId,jdbcType=INTEGER},
75
+      </if>
76
+      <if test="unitId != null" >
77
+        unit_id = #{unitId,jdbcType=INTEGER},
78
+      </if>
79
+      <if test="createDate != null" >
80
+        create_date = #{createDate,jdbcType=TIMESTAMP},
81
+      </if>
82
+    </set>
83
+    where id = #{id,jdbcType=INTEGER}
84
+  </update>
85
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TaRemotelyMonitor" >
86
+    update ta_remotely_monitor
87
+    set community_id = #{communityId,jdbcType=INTEGER},
88
+      ta_user_verify_id = #{taUserVerifyId,jdbcType=INTEGER},
89
+      unit_id = #{unitId,jdbcType=INTEGER},
90
+      create_date = #{createDate,jdbcType=TIMESTAMP}
91
+    where id = #{id,jdbcType=INTEGER}
92
+  </update>
93
+</mapper>

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TaUserMapper.xml 查看文件

285
       <if test="faceStatus != null" >
285
       <if test="faceStatus != null" >
286
         face_status = #{faceStatus,jdbcType=CHAR},
286
         face_status = #{faceStatus,jdbcType=CHAR},
287
       </if>
287
       </if>
288
-      <if test="idCard != null">
288
+      <if test="idCard != null and idCard != ''">
289
         id_card = #{idCard,jdbcType=VARCHAR},
289
         id_card = #{idCard,jdbcType=VARCHAR},
290
       </if>
290
       </if>
291
       <if test="openid != null" >
291
       <if test="openid != null" >

+ 82
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TaVisitorLicenseSettingMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaVisitorLicenseSettingMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TaVisitorLicenseSetting" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
8
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
9
+  </resultMap>
10
+  <sql id="Base_Column_List" >
11
+    id, community_id, create_date, create_user
12
+  </sql>
13
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
14
+    select 
15
+    <include refid="Base_Column_List" />
16
+    from ta_visitor_license_setting
17
+    where id = #{id,jdbcType=INTEGER}
18
+  </select>
19
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
20
+    delete from ta_visitor_license_setting
21
+    where id = #{id,jdbcType=INTEGER}
22
+  </delete>
23
+  <insert id="insert" parameterType="com.community.huiju.model.TaVisitorLicenseSetting" >
24
+    insert into ta_visitor_license_setting (id, community_id, create_date, 
25
+      create_user)
26
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
27
+      #{createUser,jdbcType=INTEGER})
28
+  </insert>
29
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaVisitorLicenseSetting" >
30
+    insert into ta_visitor_license_setting
31
+    <trim prefix="(" suffix=")" suffixOverrides="," >
32
+      <if test="id != null" >
33
+        id,
34
+      </if>
35
+      <if test="communityId != null" >
36
+        community_id,
37
+      </if>
38
+      <if test="createDate != null" >
39
+        create_date,
40
+      </if>
41
+      <if test="createUser != null" >
42
+        create_user,
43
+      </if>
44
+    </trim>
45
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
46
+      <if test="id != null" >
47
+        #{id,jdbcType=INTEGER},
48
+      </if>
49
+      <if test="communityId != null" >
50
+        #{communityId,jdbcType=INTEGER},
51
+      </if>
52
+      <if test="createDate != null" >
53
+        #{createDate,jdbcType=TIMESTAMP},
54
+      </if>
55
+      <if test="createUser != null" >
56
+        #{createUser,jdbcType=INTEGER},
57
+      </if>
58
+    </trim>
59
+  </insert>
60
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaVisitorLicenseSetting" >
61
+    update ta_visitor_license_setting
62
+    <set >
63
+      <if test="communityId != null" >
64
+        community_id = #{communityId,jdbcType=INTEGER},
65
+      </if>
66
+      <if test="createDate != null" >
67
+        create_date = #{createDate,jdbcType=TIMESTAMP},
68
+      </if>
69
+      <if test="createUser != null" >
70
+        create_user = #{createUser,jdbcType=INTEGER},
71
+      </if>
72
+    </set>
73
+    where id = #{id,jdbcType=INTEGER}
74
+  </update>
75
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TaVisitorLicenseSetting" >
76
+    update ta_visitor_license_setting
77
+    set community_id = #{communityId,jdbcType=INTEGER},
78
+      create_date = #{createDate,jdbcType=TIMESTAMP},
79
+      create_user = #{createUser,jdbcType=INTEGER}
80
+    where id = #{id,jdbcType=INTEGER}
81
+  </update>
82
+</mapper>

+ 19
- 4
CODE/smart-community/app-api/src/main/resources/mapper/TpActivityMapper.xml 查看文件

21
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
21
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
22
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
22
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
23
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
23
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
24
+    <result column="sign_in_code" property="signInCode" jdbcType="VARCHAR" />
25
+
24
   </resultMap>
26
   </resultMap>
25
   <sql id="Base_Column_List" >
27
   <sql id="Base_Column_List" >
26
     id, community_id, activity_title, activity_carousel_img, activity_content, sort, 
28
     id, community_id, activity_title, activity_carousel_img, activity_content, sort, 
27
     sign_up_count, sign_up_max, view_count, registration_start_time, registration_end_time, 
29
     sign_up_count, sign_up_max, view_count, registration_start_time, registration_end_time, 
28
     activity_start_time, activity_end_time, status, create_user, create_date, update_user, 
30
     activity_start_time, activity_end_time, status, create_user, create_date, update_user, 
29
-    update_date
31
+    update_date,sign_in_code
30
   </sql>
32
   </sql>
31
   <select id="selectByPrimaryKey" resultMap="BaseResultMap">
33
   <select id="selectByPrimaryKey" resultMap="BaseResultMap">
32
     select
34
     select
45
       registration_start_time, registration_end_time, 
47
       registration_start_time, registration_end_time, 
46
       activity_start_time, activity_end_time, 
48
       activity_start_time, activity_end_time, 
47
       status, create_user, create_date, 
49
       status, create_user, create_date, 
48
-      update_user, update_date)
50
+      update_user, update_date,sign_in_code,sign_in_code,sign_in_code)
49
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{activityTitle,jdbcType=VARCHAR}, 
51
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{activityTitle,jdbcType=VARCHAR}, 
50
       #{activityCarouselImg,jdbcType=VARCHAR}, #{activityContent,jdbcType=LONGVARCHAR}, #{sort,jdbcType=INTEGER},
52
       #{activityCarouselImg,jdbcType=VARCHAR}, #{activityContent,jdbcType=LONGVARCHAR}, #{sort,jdbcType=INTEGER},
51
       #{signUpCount,jdbcType=INTEGER}, #{signUpMax,jdbcType=INTEGER}, #{viewCount,jdbcType=INTEGER}, 
53
       #{signUpCount,jdbcType=INTEGER}, #{signUpMax,jdbcType=INTEGER}, #{viewCount,jdbcType=INTEGER}, 
52
       #{registrationStartTime,jdbcType=TIMESTAMP}, #{registrationEndTime,jdbcType=TIMESTAMP}, 
54
       #{registrationStartTime,jdbcType=TIMESTAMP}, #{registrationEndTime,jdbcType=TIMESTAMP}, 
53
       #{activityStartTime,jdbcType=TIMESTAMP}, #{activityEndTime,jdbcType=TIMESTAMP}, 
55
       #{activityStartTime,jdbcType=TIMESTAMP}, #{activityEndTime,jdbcType=TIMESTAMP}, 
54
       #{status,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
56
       #{status,jdbcType=CHAR}, #{createUser,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
55
-      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP})
57
+      #{updateUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP},#{signInCode,jdbcType=TIMESTAMP})
56
   </insert>
58
   </insert>
57
   <insert id="insertSelective" parameterType="com.community.huiju.model.TpActivity" >
59
   <insert id="insertSelective" parameterType="com.community.huiju.model.TpActivity" >
58
     insert into tp_activity
60
     insert into tp_activity
111
       <if test="updateDate != null" >
113
       <if test="updateDate != null" >
112
         update_date,
114
         update_date,
113
       </if>
115
       </if>
116
+      <if test="signInCode != null" >
117
+        sign_in_code
118
+      </if>
114
     </trim>
119
     </trim>
115
     <trim prefix="values (" suffix=")" suffixOverrides="," >
120
     <trim prefix="values (" suffix=")" suffixOverrides="," >
116
       <if test="id != null" >
121
       <if test="id != null" >
167
       <if test="updateDate != null" >
172
       <if test="updateDate != null" >
168
         #{updateDate,jdbcType=TIMESTAMP},
173
         #{updateDate,jdbcType=TIMESTAMP},
169
       </if>
174
       </if>
175
+      <if test="signInCode != null" >
176
+        #{signInCode,jdbcType=VARCHAR},
177
+      </if>
170
     </trim>
178
     </trim>
171
   </insert>
179
   </insert>
172
   <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpActivity" >
180
   <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpActivity" >
223
       <if test="updateDate != null" >
231
       <if test="updateDate != null" >
224
         update_date = #{updateDate,jdbcType=TIMESTAMP},
232
         update_date = #{updateDate,jdbcType=TIMESTAMP},
225
       </if>
233
       </if>
234
+      <if test="signInCode != null" >
235
+        sign_in_code = #{signInCode,jdbcType=VARCHAR}
236
+      </if>
226
     </set>
237
     </set>
227
     where id = #{id,jdbcType=INTEGER}
238
     where id = #{id,jdbcType=INTEGER}
228
   </update>
239
   </update>
244
       create_user = #{createUser,jdbcType=INTEGER},
255
       create_user = #{createUser,jdbcType=INTEGER},
245
       create_date = #{createDate,jdbcType=TIMESTAMP},
256
       create_date = #{createDate,jdbcType=TIMESTAMP},
246
       update_user = #{updateUser,jdbcType=INTEGER},
257
       update_user = #{updateUser,jdbcType=INTEGER},
247
-      update_date = #{updateDate,jdbcType=TIMESTAMP}
258
+      update_date = #{updateDate,jdbcType=TIMESTAMP},
259
+      sign_in_code = #{signInCode,jdbcType=VARCHAR}
248
     where id = #{id,jdbcType=INTEGER}
260
     where id = #{id,jdbcType=INTEGER}
249
   </update>
261
   </update>
250
 
262
 
290
     AND tr.community_id =#{communityId}
302
     AND tr.community_id =#{communityId}
291
     order by a.create_date desc
303
     order by a.create_date desc
292
   </select>
304
   </select>
305
+  <select id="selectActivity" resultMap="BaseResultMap">
306
+    select * from tp_activity where id = #{activityId}
307
+  </select>
293
 </mapper>
308
 </mapper>

+ 10
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpActivitySignInMapper.xml 查看文件

149
     and ta_user_id = #{userID,jdbcType=INTEGER}
149
     and ta_user_id = #{userID,jdbcType=INTEGER}
150
   </select>
150
   </select>
151
 
151
 
152
+  <select id="toSignUp" resultMap="BaseResultMap">
153
+    select
154
+    <include refid="Base_Column_List" />
155
+    from
156
+    tp_activity_sign_in
157
+    where
158
+    activity_id = #{activityId,jdbcType=INTEGER}
159
+    and ta_user_id = #{userVerifyId,jdbcType=INTEGER}
160
+    and community_id = #{communityId,jdbcType=INTEGER}
161
+  </select>
152
 </mapper>
162
 </mapper>

+ 2
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml 查看文件

567
       and rh.house_status = 1
567
       and rh.house_status = 1
568
     </where>
568
     </where>
569
     <if test="priceFluctuate == 1" >
569
     <if test="priceFluctuate == 1" >
570
-        order by (rh.rental_price+0)  asc
570
+        order by rh.sort desc, (rh.rental_price+0)  asc
571
     </if>
571
     </if>
572
 
572
 
573
     <if test="priceFluctuate == 2" >
573
     <if test="priceFluctuate == 2" >
574
-        order by (rh.rental_price+0)  desc
574
+        order by rh.sort desc, (rh.rental_price+0)  desc
575
     </if>
575
     </if>
576
   </select>
576
   </select>
577
 </mapper>
577
 </mapper>

+ 12
- 12
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionLikeMapper.xml 查看文件

4
   <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTransactionLike" >
4
   <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTransactionLike" >
5
     <id column="id" property="id" jdbcType="INTEGER" />
5
     <id column="id" property="id" jdbcType="INTEGER" />
6
     <result column="community_id" property="communityId" jdbcType="INTEGER" />
6
     <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
-    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
7
+    <result column="ta_user_verify_id" property="taUserVerifyId" jdbcType="INTEGER" />
8
     <result column="transaction_id" property="transactionId" jdbcType="INTEGER" />
8
     <result column="transaction_id" property="transactionId" jdbcType="INTEGER" />
9
     <result column="like_status" property="likeStatus" jdbcType="VARCHAR" />
9
     <result column="like_status" property="likeStatus" jdbcType="VARCHAR" />
10
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
10
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
11
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
11
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
12
   </resultMap>
12
   </resultMap>
13
   <sql id="Base_Column_List" >
13
   <sql id="Base_Column_List" >
14
-    id, community_id, ta_user_id, transaction_id, like_status, create_date, update_date
14
+    id, community_id, ta_user_verify_id, transaction_id, like_status, create_date, update_date
15
   </sql>
15
   </sql>
16
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
16
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
17
     select 
17
     select 
24
     where id = #{id,jdbcType=INTEGER}
24
     where id = #{id,jdbcType=INTEGER}
25
   </delete>
25
   </delete>
26
   <insert id="insert" parameterType="com.community.huiju.model.TpTransactionLike" >
26
   <insert id="insert" parameterType="com.community.huiju.model.TpTransactionLike" >
27
-    insert into tp_transaction_like (id, community_id, ta_user_id, 
27
+    insert into tp_transaction_like (id, community_id, ta_user_verify_id,
28
       transaction_id, like_status, create_date, 
28
       transaction_id, like_status, create_date, 
29
       update_date)
29
       update_date)
30
-    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserId,jdbcType=INTEGER}, 
30
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{taUserVerifyId,jdbcType=INTEGER},
31
       #{transactionId,jdbcType=INTEGER}, #{likeStatus,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, 
31
       #{transactionId,jdbcType=INTEGER}, #{likeStatus,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, 
32
       #{updateDate,jdbcType=TIMESTAMP})
32
       #{updateDate,jdbcType=TIMESTAMP})
33
   </insert>
33
   </insert>
40
       <if test="communityId != null" >
40
       <if test="communityId != null" >
41
         community_id,
41
         community_id,
42
       </if>
42
       </if>
43
-      <if test="taUserId != null" >
44
-        ta_user_id,
43
+      <if test="taUserVerifyId != null" >
44
+        ta_user_verify_id,
45
       </if>
45
       </if>
46
       <if test="transactionId != null" >
46
       <if test="transactionId != null" >
47
         transaction_id,
47
         transaction_id,
63
       <if test="communityId != null" >
63
       <if test="communityId != null" >
64
         #{communityId,jdbcType=INTEGER},
64
         #{communityId,jdbcType=INTEGER},
65
       </if>
65
       </if>
66
-      <if test="taUserId != null" >
67
-        #{taUserId,jdbcType=INTEGER},
66
+      <if test="taUserVerifyId != null" >
67
+        #{taUserVerifyId,jdbcType=INTEGER},
68
       </if>
68
       </if>
69
       <if test="transactionId != null" >
69
       <if test="transactionId != null" >
70
         #{transactionId,jdbcType=INTEGER},
70
         #{transactionId,jdbcType=INTEGER},
86
       <if test="communityId != null" >
86
       <if test="communityId != null" >
87
         community_id = #{communityId,jdbcType=INTEGER},
87
         community_id = #{communityId,jdbcType=INTEGER},
88
       </if>
88
       </if>
89
-      <if test="taUserId != null" >
90
-        ta_user_id = #{taUserId,jdbcType=INTEGER},
89
+      <if test="taUserVerifyId != null" >
90
+        ta_user_verify_id = #{taUserVerifyId,jdbcType=INTEGER},
91
       </if>
91
       </if>
92
       <if test="transactionId != null" >
92
       <if test="transactionId != null" >
93
         transaction_id = #{transactionId,jdbcType=INTEGER},
93
         transaction_id = #{transactionId,jdbcType=INTEGER},
107
   <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpTransactionLike" >
107
   <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpTransactionLike" >
108
     update tp_transaction_like
108
     update tp_transaction_like
109
     set community_id = #{communityId,jdbcType=INTEGER},
109
     set community_id = #{communityId,jdbcType=INTEGER},
110
-      ta_user_id = #{taUserId,jdbcType=INTEGER},
110
+      ta_user_verify_id = #{taUserVerifyId,jdbcType=INTEGER},
111
       transaction_id = #{transactionId,jdbcType=INTEGER},
111
       transaction_id = #{transactionId,jdbcType=INTEGER},
112
       like_status = #{likeStatus,jdbcType=VARCHAR},
112
       like_status = #{likeStatus,jdbcType=VARCHAR},
113
       create_date = #{createDate,jdbcType=TIMESTAMP},
113
       create_date = #{createDate,jdbcType=TIMESTAMP},
134
     SELECT * FROM
134
     SELECT * FROM
135
     tp_transaction_like
135
     tp_transaction_like
136
     WHERE community_id = #{communityId,jdbcType=INTEGER}
136
     WHERE community_id = #{communityId,jdbcType=INTEGER}
137
-    and   ta_user_id = #{userId,jdbcType=INTEGER}
137
+    and   ta_user_verify_id = #{userId,jdbcType=INTEGER}
138
     and   transaction_id = #{invitationId,jdbcType=INTEGER}
138
     and   transaction_id = #{invitationId,jdbcType=INTEGER}
139
   </select>
139
   </select>
140
 </mapper>
140
 </mapper>

+ 45
- 78
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml 查看文件

4
     <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTransaction">
4
     <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTransaction">
5
         <id column="id" property="id" jdbcType="INTEGER"/>
5
         <id column="id" property="id" jdbcType="INTEGER"/>
6
         <result column="community_id" property="communityId" jdbcType="INTEGER"/>
6
         <result column="community_id" property="communityId" jdbcType="INTEGER"/>
7
-        <result column="ta_user_id" property="taUserId" jdbcType="INTEGER"/>
7
+        <result column="uuid" property="uuid" jdbcType="INTEGER"/>
8
+        <result column="uuid_name" property="uuidName" jdbcType="VARCHAR"/>
9
+        <result column="uuid_type" property="uuidType" jdbcType="VARCHAR"/>
8
         <result column="transaction_title" property="transactionTitle" jdbcType="VARCHAR"/>
10
         <result column="transaction_title" property="transactionTitle" jdbcType="VARCHAR"/>
9
         <result column="transaction_content" property="transactionContent" jdbcType="VARCHAR"/>
11
         <result column="transaction_content" property="transactionContent" jdbcType="VARCHAR"/>
10
         <result column="sort" property="sort" jdbcType="VARCHAR"/>
12
         <result column="sort" property="sort" jdbcType="VARCHAR"/>
17
         <result column="update_date" property="updateDate" jdbcType="TIMESTAMP"/>
19
         <result column="update_date" property="updateDate" jdbcType="TIMESTAMP"/>
18
         <result column="role_id" property="roleId" jdbcType="INTEGER"/>
20
         <result column="role_id" property="roleId" jdbcType="INTEGER"/>
19
         <result column="role_name" property="roleName" jdbcType="VARCHAR"/>
21
         <result column="role_name" property="roleName" jdbcType="VARCHAR"/>
20
-        <result column="ta_user_verify_id" property="taUserVerifyId" jdbcType="INTEGER"/>
21
         <result column="release_identity" property="releaseIdentity" jdbcType="VARCHAR"/>
22
         <result column="release_identity" property="releaseIdentity" jdbcType="VARCHAR"/>
22
         <result column="room_no_name" property="roomNoName" jdbcType="VARCHAR"/>
23
         <result column="room_no_name" property="roomNoName" jdbcType="VARCHAR"/>
23
 
24
 
24
     </resultMap>
25
     </resultMap>
25
     <sql id="Base_Column_List">
26
     <sql id="Base_Column_List">
26
-    id, community_id, ta_user_id, transaction_title, transaction_content, sort,
27
-    view_count, status, type, create_user, create_date, update_user, update_date, ta_user_verify_id, release_identity,room_no_name
27
+    id, community_id, transaction_title, transaction_content, sort,uuid,uuid_type,uuid_name,
28
+    view_count, status, type, create_user, create_date, update_user, update_date, release_identity,room_no_name
28
   </sql>
29
   </sql>
29
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.community.huiju.model.TpTransaction">
30
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.community.huiju.model.TpTransaction">
30
-    SELECT
31
-	ttr.id,
32
-	ttr.community_id,
33
-	ttr.ta_user_id,
34
-	ttr.transaction_title,
35
-	ttr.transaction_content,
36
-	ttr.sort,
37
-	ttr.view_count,
38
-	ttr.STATUS,
39
-	ttr.type,
40
-	ttr.create_user,
41
-	ttr.create_date,
42
-	ttr.update_user,
43
-	ttr.update_date,
44
-	sr.id AS role_id,
45
-	sr.role_name AS role_name,
46
-	ttr.release_identity,
47
-	ttr.ta_user_verify_id
48
-    FROM
49
-        tp_transaction ttr
50
-    LEFT JOIN ta_sys_user_role tsur ON ttr.ta_user_id = tsur.user_id
51
-    LEFT JOIN ta_sys_role sr ON sr.id = tsur.role_id
31
+    select
32
+    <include refid="Base_Column_List"/>
33
+    from tp_transaction ttr
52
     where ttr.id = #{id,jdbcType=INTEGER} and ttr.community_id=#{communityId,jdbcType=INTEGER}
34
     where ttr.id = #{id,jdbcType=INTEGER} and ttr.community_id=#{communityId,jdbcType=INTEGER}
53
   </select>
35
   </select>
54
     <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
36
     <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
80
             <if test="communityId != null">
62
             <if test="communityId != null">
81
                 community_id,
63
                 community_id,
82
             </if>
64
             </if>
83
-            <if test="taUserId != null">
84
-                ta_user_id,
65
+            <if test="uuid != null">
66
+                uuid,
67
+            </if>
68
+            <if test="uuidType != null">
69
+                uuid_type,
70
+            </if>
71
+            <if test="uuidName != null">
72
+                uuid_Name,
85
             </if>
73
             </if>
86
             <if test="transactionTitle != null">
74
             <if test="transactionTitle != null">
87
                 transaction_title,
75
                 transaction_title,
116
             <if test="updateDate != null">
104
             <if test="updateDate != null">
117
                 update_date,
105
                 update_date,
118
             </if>
106
             </if>
119
-            <if test="taUserVerifyId != null">
120
-                ta_user_verify_id,
121
-            </if>
122
             <if test="releaseIdentity != null">
107
             <if test="releaseIdentity != null">
123
                 release_identity,
108
                 release_identity,
124
             </if>
109
             </if>
133
             <if test="communityId != null">
118
             <if test="communityId != null">
134
                 #{communityId,jdbcType=INTEGER},
119
                 #{communityId,jdbcType=INTEGER},
135
             </if>
120
             </if>
136
-            <if test="taUserId != null">
137
-                #{taUserId,jdbcType=INTEGER},
121
+            <if test="uuid != null">
122
+                #{uuid,jdbcType=INTEGER},
123
+            </if>
124
+            <if test="uuidType != null">
125
+                #{uuidType,jdbcType=INTEGER},
126
+            </if>
127
+            <if test="uuidName != null">
128
+                #{uuidName,jdbcType=INTEGER},
138
             </if>
129
             </if>
139
             <if test="transactionTitle != null">
130
             <if test="transactionTitle != null">
140
                 #{transactionTitle,jdbcType=VARCHAR},
131
                 #{transactionTitle,jdbcType=VARCHAR},
169
             <if test="updateDate != null">
160
             <if test="updateDate != null">
170
                 #{updateDate,jdbcType=TIMESTAMP},
161
                 #{updateDate,jdbcType=TIMESTAMP},
171
             </if>
162
             </if>
172
-            <if test="taUserVerifyId != null">
173
-                #{taUserVerifyId,jdbcType=INTEGER},
174
-            </if>
175
             <if test="releaseIdentity != null">
163
             <if test="releaseIdentity != null">
176
                 #{releaseIdentity,jdbcType=VARCHAR},
164
                 #{releaseIdentity,jdbcType=VARCHAR},
177
             </if>
165
             </if>
186
             <if test="communityId != null">
174
             <if test="communityId != null">
187
                 community_id = #{communityId,jdbcType=INTEGER},
175
                 community_id = #{communityId,jdbcType=INTEGER},
188
             </if>
176
             </if>
189
-            <if test="taUserId != null">
190
-                ta_user_id = #{taUserId,jdbcType=INTEGER},
191
-            </if>
192
             <if test="transactionTitle != null">
177
             <if test="transactionTitle != null">
193
                 transaction_title = #{transactionTitle,jdbcType=VARCHAR},
178
                 transaction_title = #{transactionTitle,jdbcType=VARCHAR},
194
             </if>
179
             </if>
267
         <include refid="Base_Column_List"/>
252
         <include refid="Base_Column_List"/>
268
         FROM
253
         FROM
269
         tp_transaction t
254
         tp_transaction t
270
-        WHERE t.create_user=#{id,jdbcType=INTEGER}
271
-        AND t.community_id=#{communityId,jdbcType=INTEGER}
272
-        UNION ALL
273
-        SELECT
274
-        <include refid="Base_Column_List"/>
275
-        FROM
276
-        tp_transaction t
277
-        INNER JOIN(SELECT
278
-        y.transaction_id
279
-        FROM
280
-        tp_transaction_reply y
281
-        LEFT JOIN tp_transaction t ON y.transaction_id = t.id
282
         WHERE
255
         WHERE
283
-        y.ta_user_id = #{id,jdbcType=INTEGER}
256
+          t.community_id=#{communityId,jdbcType=INTEGER}
257
+        AND t.uuid = #{id} and t.uuid_type = 'app'
284
         <if test="type != null and type != ''">
258
         <if test="type != null and type != ''">
285
             and t.type = #{type,jdbcType=INTEGER}
259
             and t.type = #{type,jdbcType=INTEGER}
286
         </if>
260
         </if>
287
-        AND y.community_id = #{communityId,jdbcType=INTEGER}
288
-        AND t.status = 1
289
-        AND y.transaction_id NOT IN ( SELECT t.id FROM tp_transaction t WHERE t.create_user = #{id,jdbcType=INTEGER} AND
290
-        t.community_id = #{communityId,jdbcType=INTEGER} )
291
-        GROUP BY
292
-        y.transaction_id) a ON a.transaction_id = t.id
293
         order by create_date DESC
261
         order by create_date DESC
294
     </select>
262
     </select>
295
 
263
 
296
     <update id="updateTransaction" parameterType="com.community.huiju.model.TpTransaction">
264
     <update id="updateTransaction" parameterType="com.community.huiju.model.TpTransaction">
297
     update tp_transaction
265
     update tp_transaction
298
     set
266
     set
299
-    ta_user_id = #{userId,jdbcType=INTEGER},
267
+    uuid = #{userId,jdbcType=INTEGER},
300
     transaction_title = #{transactionTitle,jdbcType=VARCHAR},
268
     transaction_title = #{transactionTitle,jdbcType=VARCHAR},
301
     transaction_content = #{transactionContent,jdbcType=VARCHAR},
269
     transaction_content = #{transactionContent,jdbcType=VARCHAR},
302
     update_user = #{userId,jdbcType=INTEGER},
270
     update_user = #{userId,jdbcType=INTEGER},
323
       #{reportReasonId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER},#{createDate,jdbcType=TIMESTAMP})
291
       #{reportReasonId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER},#{createDate,jdbcType=TIMESTAMP})
324
   </insert>
292
   </insert>
325
     <select id="getUserTransactionList" resultMap="BaseResultMap">
293
     <select id="getUserTransactionList" resultMap="BaseResultMap">
326
-
327
         SELECT
294
         SELECT
328
-        <include refid="Base_Column_List"/>
295
+          <include refid="Base_Column_List"/>
329
         FROM
296
         FROM
330
-        tp_transaction t
331
-        WHERE t.create_user=#{id,jdbcType=INTEGER}
332
-        AND t.community_id=#{communityId,jdbcType=INTEGER}
333
-        UNION ALL
297
+          tp_transaction t
298
+        WHERE
299
+          t.community_id=#{communityId,jdbcType=INTEGER}
300
+        AND t.uuid = #{id} and t.uuid_type = 'app'
301
+        UNION
334
         SELECT
302
         SELECT
335
-        <include refid="Base_Column_List"/>
303
+          <include refid="Base_Column_List"/>
336
         FROM
304
         FROM
337
-        tp_transaction t
338
-        INNER JOIN(SELECT
339
-        y.transaction_id
305
+          tp_transaction
306
+        WHERE
307
+        id IN (
308
+        SELECT DISTINCT
309
+          t.transaction_id
340
         FROM
310
         FROM
341
-        tp_transaction_reply y
342
-        LEFT JOIN tp_transaction t ON y.transaction_id = t.id
311
+          tp_transaction_reply t
343
         WHERE
312
         WHERE
344
-        y.ta_user_id = #{id,jdbcType=INTEGER}
345
-        AND y.community_id = #{communityId,jdbcType=INTEGER}
346
-        AND y.transaction_id NOT IN ( SELECT t.id FROM tp_transaction t WHERE t.create_user = #{id,jdbcType=INTEGER} AND
347
-        t.community_id = #{communityId,jdbcType=INTEGER} )
348
-        GROUP BY
349
-        y.transaction_id) a ON a.transaction_id = t.id
350
-        order by create_date DESC
313
+          t.community_id=#{communityId,jdbcType=INTEGER}
314
+        AND t.uuid = #{id} and t.uuid_type = 'app'
315
+        )
316
+        ORDER BY
317
+        create_date DESC
351
     </select>
318
     </select>
352
 </mapper>
319
 </mapper>

+ 24
- 19
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionReplyMapper.xml 查看文件

4
   <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTransactionReply" >
4
   <resultMap id="BaseResultMap" type="com.community.huiju.model.TpTransactionReply" >
5
     <id column="id" property="id" jdbcType="INTEGER" />
5
     <id column="id" property="id" jdbcType="INTEGER" />
6
     <result column="community_id" property="communityId" jdbcType="INTEGER" />
6
     <result column="community_id" property="communityId" jdbcType="INTEGER" />
7
+    <result column="uuid" property="uuid" jdbcType="INTEGER" />
8
+    <result column="uuid_type" property="uuidType" jdbcType="VARCHAR" />
9
+    <result column="uuid_name" property="uuidName" jdbcType="VARCHAR" />
10
+    <result column="uuid_role" property="uuidRole" jdbcType="VARCHAR" />
11
+    <result column="reply_uuid" property="replyUuid" jdbcType="INTEGER" />
12
+    <result column="reply_uuid_type" property="replyUuidType" jdbcType="VARCHAR" />
13
+    <result column="reply_uuid_name" property="replyUuidName" jdbcType="VARCHAR" />
14
+    <result column="reply_uuid_role" property="replyUuidRole" jdbcType="VARCHAR" />
7
     <result column="transaction_id" property="transactionId" jdbcType="INTEGER" />
15
     <result column="transaction_id" property="transactionId" jdbcType="INTEGER" />
8
-    <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
9
-    <result column="ta_user_name" property="taUserName" jdbcType="VARCHAR" />
10
     <result column="reply_content" property="replyContent" jdbcType="VARCHAR" />
16
     <result column="reply_content" property="replyContent" jdbcType="VARCHAR" />
11
-    <result column="reply_ta_user_id" property="replyTaUserId" jdbcType="INTEGER" />
12
-    <result column="reply_ta_user_name" property="replyTaUserName" jdbcType="VARCHAR" />
13
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
17
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
14
     <result column="release_identity" property="releaseIdentity" jdbcType="VARCHAR" />
18
     <result column="release_identity" property="releaseIdentity" jdbcType="VARCHAR" />
15
-    <result column="ta_user_verify_id" property="taUserVerifyId" jdbcType="INTEGER" />
16
     <result column="room_no_name" property="roomNoName" jdbcType="INTEGER" />
19
     <result column="room_no_name" property="roomNoName" jdbcType="INTEGER" />
17
   </resultMap>
20
   </resultMap>
18
   <sql id="Base_Column_List" >
21
   <sql id="Base_Column_List" >
19
-    id, community_id, transaction_id, ta_user_id, ta_user_name, reply_content, reply_ta_user_id,ta_user_verify_id
20
-    reply_ta_user_name, create_date,room_no_name
22
+    id, community_id, transaction_id,uuid,uuid_type,uuid_role,reply_uuid_role,
23
+      uuid_name, reply_content,
24
+      reply_uuid, reply_uuid_type,reply_uuid_name, create_date,release_identity
21
   </sql>
25
   </sql>
22
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
26
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
23
     select 
27
     select 
30
     where id = #{id,jdbcType=INTEGER}
34
     where id = #{id,jdbcType=INTEGER}
31
   </delete>
35
   </delete>
32
   <insert id="insert" parameterType="com.community.huiju.model.TpTransactionReply" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
36
   <insert id="insert" parameterType="com.community.huiju.model.TpTransactionReply" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
33
-    insert into tp_transaction_reply (id, community_id, transaction_id,ta_user_verify_id,release_identity,
34
-      ta_user_id, ta_user_name, reply_content, 
35
-      reply_ta_user_id, reply_ta_user_name, create_date,room_no_name
37
+    insert into tp_transaction_reply (id, community_id, transaction_id,uuid,uuid_type,uuid_role,reply_uuid_role,
38
+      uuid_name, reply_content,
39
+      reply_uuid, reply_uuid_type,reply_uuid_name, create_date,release_identity
36
       )
40
       )
37
-    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{transactionId,jdbcType=INTEGER},#{taUserVerifyId},#{releaseIdentity},
38
-      #{taUserId,jdbcType=INTEGER}, #{taUserName,jdbcType=VARCHAR}, #{replyContent,jdbcType=VARCHAR},
39
-      #{replyTaUserId,jdbcType=INTEGER}, #{replyTaUserName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP},#{roomNoName,jdbcType=VARCHAR}
41
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{transactionId,jdbcType=INTEGER},#{uuid},#{uuidType},#{uuidRole},#{replyUuidRole},
42
+      #{uuidName,jdbcType=VARCHAR}, #{replyContent,jdbcType=VARCHAR}, #{replyUuid,jdbcType=INTEGER},
43
+      #{replyUuidType,jdbcType=VARCHAR}, #{replyUuidName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP},#{releaseIdentity,jdbcType=VARCHAR}
40
       )
44
       )
41
   </insert>
45
   </insert>
42
   <insert id="insertSelective" parameterType="com.community.huiju.model.TpTransactionReply" >
46
   <insert id="insertSelective" parameterType="com.community.huiju.model.TpTransactionReply" >
163
   </update>
167
   </update>
164
   <select id="getCommunityIdAndTransactionId" resultMap="BaseResultMap">
168
   <select id="getCommunityIdAndTransactionId" resultMap="BaseResultMap">
165
     SELECT
169
     SELECT
166
-	tr.*, (SELECT r.description FROM ta_sys_role r  where r.id = tr.ta_user_verify_id) AS taRoleName,
167
-	      (SELECT tsr.role_name FROM ta_sys_user_role tsur LEFT JOIN ta_sys_role tsr ON tsur.role_id = tsr.id WHERE tsur.user_id = tr.reply_ta_user_id) AS replyRoleName
170
+      *
168
     FROM
171
     FROM
169
-        tp_transaction_reply tr
172
+    tp_transaction_reply  tr
170
     WHERE
173
     WHERE
171
 	tr.community_id = #{communityId}
174
 	tr.community_id = #{communityId}
172
     and tr.transaction_id=#{transactionId}
175
     and tr.transaction_id=#{transactionId}
173
       <if test="type == 2" >
176
       <if test="type == 2" >
174
-        AND release_identity=1
177
+        AND (tr.uuid_type = 'prop' or tr.reply_uuid_type = 'prop')
175
       </if>
178
       </if>
176
       <if test="type == 1" >
179
       <if test="type == 1" >
177
-        AND  tr.ta_user_id = #{founderUserID}
180
+        AND (tr.uuid = #{uuid} OR tr.reply_uuid = #{uuid})
181
+        AND (tr.uuid_type =  #{uuidType} or tr.reply_uuid_type =  #{uuidType})
178
       </if>
182
       </if>
179
       <if test="type == 0" >
183
       <if test="type == 0" >
180
-        AND (tr.ta_user_id = #{founderUserID} OR tr.reply_ta_user_id = #{founderUserID})
184
+        AND (tr.uuid = #{userID} OR tr.reply_uuid = #{userID})
185
+        AND (tr.uuid_type = 'app' or tr.reply_uuid_type = 'app')
181
       </if>
186
       </if>
182
    </select>
187
    </select>
183
    <select id="selectUserTransactionReply" resultMap="BaseResultMap">
188
    <select id="selectUserTransactionReply" resultMap="BaseResultMap">

+ 1
- 1
CODE/smart-community/community-common/src/main/java/com/community/commom/fushi/FuShiRequestAPI.java 查看文件

158
         map.put("ParkingCode", ParkingCode);
158
         map.put("ParkingCode", ParkingCode);
159
         map.put("CardNo", CardNo);
159
         map.put("CardNo", CardNo);
160
         map.put("PayCostMachineOrderId", PayCostMachineOrderId);
160
         map.put("PayCostMachineOrderId", PayCostMachineOrderId);
161
-        map.put("CouponList", JSONObject.parseObject(CouponList).getInnerMap());
161
+        map.put("CouponList", null == CouponList ? null : JSONObject.parseObject(CouponList).getInnerMap());
162
 
162
 
163
         String json = JSONObject.toJSONString(map);
163
         String json = JSONObject.toJSONString(map);
164
         log.info("第三方临时卡上发缴费请求参数:{}", json);
164
         log.info("第三方临时卡上发缴费请求参数:{}", json);

+ 30
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/controller/UserController.java 查看文件

218
         return responseBean;
218
         return responseBean;
219
     }
219
     }
220
 
220
 
221
+    @ApiOperation(value = "获取用户反馈信息", notes = "获取用户反馈信息")
222
+    @ApiImplicitParams({
223
+            @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "content", value = "反馈内容"),
224
+            @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "tel", value = "手机号"),
225
+            @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "handleStatus", value = "1 是已处理 2是未处理 3 是正在处理"),
226
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "pageNum", value = "当前页"),
227
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "pageSize", value = "一页多少行"),
228
+    })
229
+    @RequestMapping(value = "/user/feedback", method = RequestMethod.GET)
230
+    public ResponseBean feedback(HttpSession session,
231
+                                     @RequestParam(value = "content", required = false) String content,
232
+                                     @RequestParam(value = "tel", required = false)String tel,
233
+                                     @RequestParam(value = "handleStatus", required = false)String handleStatus,
234
+                                     @RequestParam(value = "pageNum", defaultValue = "1")Integer pageNum,
235
+                                     @RequestParam(value = "pageSize", defaultValue = "10")Integer pageSize){
236
+        UserElement userElement = getUserElement(session);
237
+        ResponseBean  responseBean = iToUserService.feedback(userElement,content,tel,handleStatus,pageNum,pageSize);
238
+        return responseBean;
239
+    }
221
 
240
 
241
+
242
+    @ApiOperation(value = "修改反馈状态", notes = "修改反馈状态")
243
+    @ApiImplicitParams({
244
+            @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "parameter", value = "id[],handleStatus:状态,handleRemark:备注"),
245
+    })
246
+    @RequestMapping(value = "/user/updfeedback", method = RequestMethod.POST)
247
+    public ResponseBean feedbackEdit(HttpSession session,@RequestBody String parameter){
248
+        UserElement userElement = getUserElement(session);
249
+        ResponseBean  responseBean = iToUserService.updfeedback(userElement,parameter);
250
+        return responseBean;
251
+    }
222
 }
252
 }

+ 29
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/dao/TaFeedbackImgMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TaFeedbackImg;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+@Mapper
10
+public interface TaFeedbackImgMapper {
11
+    int deleteByPrimaryKey(Integer id);
12
+
13
+    int insert(TaFeedbackImg record);
14
+
15
+    int insertSelective(TaFeedbackImg record);
16
+
17
+    TaFeedbackImg selectByPrimaryKey(Integer id);
18
+
19
+    int updateByPrimaryKeySelective(TaFeedbackImg record);
20
+
21
+    int updateByPrimaryKey(TaFeedbackImg record);
22
+
23
+    /**
24
+     * 获取反馈当前图片
25
+     * @param id
26
+     * @return
27
+     */
28
+    List<String> selectImg(@Param("id") Integer id);
29
+}

+ 24
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/dao/TaFeedbackMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+
4
+import com.community.huiju.model.TaFeedback;
5
+import org.apache.ibatis.annotations.Mapper;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
9
+@Mapper
10
+public interface TaFeedbackMapper {
11
+    int deleteByPrimaryKey(Integer id);
12
+
13
+    int insert(TaFeedback record);
14
+
15
+    int insertSelective(TaFeedback record);
16
+
17
+    TaFeedback selectByPrimaryKey(Integer id);
18
+
19
+    int updateByPrimaryKeySelective(TaFeedback record);
20
+
21
+    int updateByPrimaryKey(TaFeedback record);
22
+
23
+    List<TaFeedback> getFeedback(@Param("content") String content, @Param("tel") String tel, @Param("handleStatus") String handleStatus);
24
+}

+ 140
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/TaFeedback.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+import java.util.List;
5
+
6
+public class TaFeedback {
7
+    private Integer id;
8
+
9
+    private String content;
10
+
11
+    private String taUserTel;
12
+
13
+    private String estateSource;
14
+
15
+    private String handleStatus;
16
+
17
+    private String handleRemark;
18
+
19
+    private String handleUser;
20
+
21
+    private Date handleTime;
22
+
23
+    private Date createDate;
24
+
25
+    private Integer createUser;
26
+
27
+    private Date updateDate;
28
+
29
+    private Integer updateUser;
30
+
31
+    /**
32
+     * 当前反馈图片
33
+     * @return
34
+     */
35
+    private List<String> taFeedbackImgLsit;
36
+
37
+    public List<String> getTaFeedbackImgLsit() {
38
+        return taFeedbackImgLsit;
39
+    }
40
+
41
+    public void setTaFeedbackImgLsit(List<String> taFeedbackImgLsit) {
42
+        this.taFeedbackImgLsit = taFeedbackImgLsit;
43
+    }
44
+
45
+    public Integer getId() {
46
+        return id;
47
+    }
48
+
49
+    public void setId(Integer id) {
50
+        this.id = id;
51
+    }
52
+
53
+    public String getContent() {
54
+        return content;
55
+    }
56
+
57
+    public void setContent(String content) {
58
+        this.content = content == null ? null : content.trim();
59
+    }
60
+
61
+    public String getTaUserTel() {
62
+        return taUserTel;
63
+    }
64
+
65
+    public void setTaUserTel(String taUserTel) {
66
+        this.taUserTel = taUserTel == null ? null : taUserTel.trim();
67
+    }
68
+
69
+    public String getEstateSource() {
70
+        return estateSource;
71
+    }
72
+
73
+    public void setEstateSource(String estateSource) {
74
+        this.estateSource = estateSource == null ? null : estateSource.trim();
75
+    }
76
+
77
+    public String getHandleStatus() {
78
+        return handleStatus;
79
+    }
80
+
81
+    public void setHandleStatus(String handleStatus) {
82
+        this.handleStatus = handleStatus == null ? null : handleStatus.trim();
83
+    }
84
+
85
+    public String getHandleRemark() {
86
+        return handleRemark;
87
+    }
88
+
89
+    public void setHandleRemark(String handleRemark) {
90
+        this.handleRemark = handleRemark == null ? null : handleRemark.trim();
91
+    }
92
+
93
+    public String getHandleUser() {
94
+        return handleUser;
95
+    }
96
+
97
+    public void setHandleUser(String handleUser) {
98
+        this.handleUser = handleUser == null ? null : handleUser.trim();
99
+    }
100
+
101
+    public Date getHandleTime() {
102
+        return handleTime;
103
+    }
104
+
105
+    public void setHandleTime(Date handleTime) {
106
+        this.handleTime = handleTime;
107
+    }
108
+
109
+    public Date getCreateDate() {
110
+        return createDate;
111
+    }
112
+
113
+    public void setCreateDate(Date createDate) {
114
+        this.createDate = createDate;
115
+    }
116
+
117
+    public Integer getCreateUser() {
118
+        return createUser;
119
+    }
120
+
121
+    public void setCreateUser(Integer createUser) {
122
+        this.createUser = createUser;
123
+    }
124
+
125
+    public Date getUpdateDate() {
126
+        return updateDate;
127
+    }
128
+
129
+    public void setUpdateDate(Date updateDate) {
130
+        this.updateDate = updateDate;
131
+    }
132
+
133
+    public Integer getUpdateUser() {
134
+        return updateUser;
135
+    }
136
+
137
+    public void setUpdateUser(Integer updateUser) {
138
+        this.updateUser = updateUser;
139
+    }
140
+}

+ 45
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/model/TaFeedbackImg.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import java.util.Date;
4
+
5
+public class TaFeedbackImg {
6
+    private Integer id;
7
+
8
+    private Integer feedbackId;
9
+
10
+    private String imgUrl;
11
+
12
+    private Date createDate;
13
+
14
+    public Integer getId() {
15
+        return id;
16
+    }
17
+
18
+    public void setId(Integer id) {
19
+        this.id = id;
20
+    }
21
+
22
+    public Integer getFeedbackId() {
23
+        return feedbackId;
24
+    }
25
+
26
+    public void setFeedbackId(Integer feedbackId) {
27
+        this.feedbackId = feedbackId;
28
+    }
29
+
30
+    public String getImgUrl() {
31
+        return imgUrl;
32
+    }
33
+
34
+    public void setImgUrl(String imgUrl) {
35
+        this.imgUrl = imgUrl == null ? null : imgUrl.trim();
36
+    }
37
+
38
+    public Date getCreateDate() {
39
+        return createDate;
40
+    }
41
+
42
+    public void setCreateDate(Date createDate) {
43
+        this.createDate = createDate;
44
+    }
45
+}

+ 20
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/IToUserService.java 查看文件

109
      * @return
109
      * @return
110
      */
110
      */
111
     ResponseBean operatedel(UserElement userElement, String parameter);
111
     ResponseBean operatedel(UserElement userElement, String parameter);
112
+
113
+    /**
114
+     *反馈信息
115
+     * @param userElement
116
+     * @param content
117
+     * @param tel
118
+     * @param handleStatus
119
+     * @param pageNum
120
+     * @param pageSize
121
+     * @return
122
+     */
123
+    ResponseBean feedback(UserElement userElement, String content, String tel, String handleStatus, Integer pageNum, Integer pageSize);
124
+
125
+    /**
126
+     * 处理消息
127
+     * @param userElement
128
+     * @param parameter
129
+     * @return
130
+     */
131
+    ResponseBean updfeedback(UserElement userElement, String parameter);
112
 }
132
 }

+ 13
- 17
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/CommunityServiceImpl.java 查看文件

74
 		}
74
 		}
75
 
75
 
76
 
76
 
77
-		Map<String,Object> map = Maps.newHashMap();
78
-		map.put("loginName", toCommunities.getLoginName());
79
-		TaUser taUser = taUserMapper.selectByLoginName(map);
80
-		if (null == taUser) {
81
-			//时维护ta_user(发帖需要)
82
-			taUser= new TaUser();
83
-			taUser.setLoginName(toCommunities.getLoginName());
84
-			taUser.setCreateDate(new Date());
85
-			taUser.setUserName(toCommunities.getUserName());
86
-			taUser.setStatus("1");
87
-			taUserMapper.insert(taUser);
88
-		}
89
-
90
-
91
-
92
-
77
+		//Map<String,Object> map = Maps.newHashMap();
78
+		//map.put("loginName", toCommunities.getLoginName());
79
+		//TaUser taUser = taUserMapper.selectByLoginName(map);
80
+		//if (null == taUser) {
81
+		//	//时维护ta_user(发帖需要)
82
+		//	taUser= new TaUser();
83
+		//	taUser.setLoginName(toCommunities.getLoginName());
84
+		//	taUser.setCreateDate(new Date());
85
+		//	taUser.setUserName(toCommunities.getUserName());
86
+		//	taUser.setStatus("1");
87
+		//	taUserMapper.insert(taUser);
88
+		//}
93
 
89
 
94
 		//构建用户信息
90
 		//构建用户信息
95
 		TpUser tpUser = new TpUser();
91
 		TpUser tpUser = new TpUser();
99
 		tpUser.setCreateUser(1);
95
 		tpUser.setCreateUser(1);
100
 		tpUser.setCommunityId(toCommunities.getId());
96
 		tpUser.setCommunityId(toCommunities.getId());
101
 		tpUser.setStatus(Constant.EFFECTIVE);
97
 		tpUser.setStatus(Constant.EFFECTIVE);
102
-		tpUser.setTaUserId(taUser.getId());
98
+		//tpUser.setTaUserId(taUser.getId());
103
 		//插入用户信息
99
 		//插入用户信息
104
 		tpUserMapper.insertSelective(tpUser);
100
 		tpUserMapper.insertSelective(tpUser);
105
 		//维护此用户的角色
101
 		//维护此用户的角色

+ 52
- 0
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java 查看文件

46
     @Autowired
46
     @Autowired
47
     private ToOperateTelMapper toOperateTelMapper;
47
     private ToOperateTelMapper toOperateTelMapper;
48
 
48
 
49
+    @Autowired
50
+    private TaFeedbackMapper taFeedbackMapper;
51
+
52
+    @Autowired
53
+    private TaFeedbackImgMapper taFeedbackImgMapper;
54
+
49
     @Override
55
     @Override
50
     public ResponseBean login(String loginName, String code) {
56
     public ResponseBean login(String loginName, String code) {
51
 
57
 
387
         return responseBean;
393
         return responseBean;
388
     }
394
     }
389
 
395
 
396
+    @Override
397
+    public ResponseBean feedback(UserElement userElement, String content, String tel, String handleStatus, Integer pageNum, Integer pageSize) {
398
+        ResponseBean response= new ResponseBean<>();
399
+
400
+        Page<TaFeedback> page = PageHelper.startPage(pageNum,pageSize);
401
+        List<TaFeedback> phoneList = taFeedbackMapper.getFeedback(content, tel, handleStatus);
402
+
403
+        for (TaFeedback taFeedback : phoneList){
404
+             List<String> feedbackImg = taFeedbackImgMapper.selectImg(taFeedback.getId());
405
+            taFeedback.setTaFeedbackImgLsit(feedbackImg);
406
+        }
407
+
408
+        Map<String,Object> map = Maps.newHashMap();
409
+        map.put("item",phoneList);
410
+        map.put("total",page.getTotal());
411
+        response.addSuccess(map);
412
+        return response;
413
+    }
414
+
415
+    @Override
416
+    public ResponseBean updfeedback(UserElement userElement, String parameter) {
417
+        ResponseBean response = new ResponseBean<>();
418
+
419
+        JSONObject object= JSONObject.parseObject(parameter);
420
+        String handleStatus= object.getString("handleStatus");
421
+        String handleRemark= object.getString("handleRemark");
422
+        Integer[] arrID = object.getJSONArray("id").toArray(new Integer[]{});
423
+
424
+        //减少数据库链接
425
+        List<TaFeedback> taFeedbackList = new ArrayList<>();
426
+        for (Integer id:arrID){
427
+            TaFeedback taFeedback = new TaFeedback();
428
+                       taFeedback.setId(id);
429
+                       taFeedback.setHandleUser(userElement.getUserName());
430
+                       taFeedback.setHandleStatus(handleStatus);
431
+                       taFeedback.setHandleRemark(handleRemark);
432
+                       taFeedback.setHandleTime(new Date());
433
+                       taFeedback.setUpdateDate(new Date());
434
+            taFeedbackList.add(taFeedback);
435
+            taFeedbackMapper.updateByPrimaryKeySelective(taFeedback);
436
+        }
437
+//        taFeedbackMapper.batchUpdate(taFeedbackList);
438
+        response.addSuccess("成功");
439
+        return response;
440
+    }
441
+
390
     //查询多个角色转换为字符串
442
     //查询多个角色转换为字符串
391
     public String selectRole(Integer id) {
443
     public String selectRole(Integer id) {
392
         List<ToUser> toUser= toUserMapper.selectRole(id);
444
         List<ToUser> toUser= toUserMapper.selectRole(id);

+ 86
- 0
CODE/smart-community/operate-api/src/main/resources/mapper/TaFeedbackImgMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaFeedbackImgMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TaFeedbackImg" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="feedback_id" property="feedbackId" jdbcType="INTEGER" />
7
+    <result column="img_url" property="imgUrl" jdbcType="VARCHAR" />
8
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
9
+  </resultMap>
10
+  <sql id="Base_Column_List" >
11
+    id, feedback_id, img_url, create_date
12
+  </sql>
13
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
14
+    select 
15
+    <include refid="Base_Column_List" />
16
+    from ta_feedback_img
17
+    where id = #{id,jdbcType=INTEGER}
18
+  </select>
19
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
20
+    delete from ta_feedback_img
21
+    where id = #{id,jdbcType=INTEGER}
22
+  </delete>
23
+  <insert id="insert" parameterType="com.community.huiju.model.TaFeedbackImg" >
24
+    insert into ta_feedback_img (id, feedback_id, img_url, 
25
+      create_date)
26
+    values (#{id,jdbcType=INTEGER}, #{feedbackId,jdbcType=INTEGER}, #{imgUrl,jdbcType=VARCHAR}, 
27
+      #{createDate,jdbcType=TIMESTAMP})
28
+  </insert>
29
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaFeedbackImg" >
30
+    insert into ta_feedback_img
31
+    <trim prefix="(" suffix=")" suffixOverrides="," >
32
+      <if test="id != null" >
33
+        id,
34
+      </if>
35
+      <if test="feedbackId != null" >
36
+        feedback_id,
37
+      </if>
38
+      <if test="imgUrl != null" >
39
+        img_url,
40
+      </if>
41
+      <if test="createDate != null" >
42
+        create_date,
43
+      </if>
44
+    </trim>
45
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
46
+      <if test="id != null" >
47
+        #{id,jdbcType=INTEGER},
48
+      </if>
49
+      <if test="feedbackId != null" >
50
+        #{feedbackId,jdbcType=INTEGER},
51
+      </if>
52
+      <if test="imgUrl != null" >
53
+        #{imgUrl,jdbcType=VARCHAR},
54
+      </if>
55
+      <if test="createDate != null" >
56
+        #{createDate,jdbcType=TIMESTAMP},
57
+      </if>
58
+    </trim>
59
+  </insert>
60
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaFeedbackImg" >
61
+    update ta_feedback_img
62
+    <set >
63
+      <if test="feedbackId != null" >
64
+        feedback_id = #{feedbackId,jdbcType=INTEGER},
65
+      </if>
66
+      <if test="imgUrl != null" >
67
+        img_url = #{imgUrl,jdbcType=VARCHAR},
68
+      </if>
69
+      <if test="createDate != null" >
70
+        create_date = #{createDate,jdbcType=TIMESTAMP},
71
+      </if>
72
+    </set>
73
+    where id = #{id,jdbcType=INTEGER}
74
+  </update>
75
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TaFeedbackImg" >
76
+    update ta_feedback_img
77
+    set feedback_id = #{feedbackId,jdbcType=INTEGER},
78
+      img_url = #{imgUrl,jdbcType=VARCHAR},
79
+      create_date = #{createDate,jdbcType=TIMESTAMP}
80
+    where id = #{id,jdbcType=INTEGER}
81
+  </update>
82
+
83
+  <select id="selectImg" resultType="string">
84
+    select img_url from  ta_feedback_img where feedback_id =  #{id,jdbcType=INTEGER}
85
+  </select>
86
+</mapper>

+ 197
- 0
CODE/smart-community/operate-api/src/main/resources/mapper/TaFeedbackMapper.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.community.huiju.dao.TaFeedbackMapper" >
4
+  <resultMap id="BaseResultMap" type="com.community.huiju.model.TaFeedback" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="content" property="content" jdbcType="VARCHAR" />
7
+    <result column="ta_user_tel" property="taUserTel" jdbcType="VARCHAR" />
8
+    <result column="estate_source" property="estateSource" jdbcType="VARCHAR" />
9
+    <result column="handle_status" property="handleStatus" jdbcType="VARCHAR" />
10
+    <result column="handle_remark" property="handleRemark" jdbcType="VARCHAR" />
11
+    <result column="handle_user" property="handleUser" jdbcType="VARCHAR" />
12
+    <result column="handle_time" property="handleTime" jdbcType="TIMESTAMP" />
13
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
14
+    <result column="create_user" property="createUser" jdbcType="INTEGER" />
15
+    <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
16
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
17
+  </resultMap>
18
+  <sql id="Base_Column_List" >
19
+    id, content, ta_user_tel, estate_source, handle_status, handle_remark, handle_user, 
20
+    handle_time, create_date, create_user, update_date, update_user
21
+  </sql>
22
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
23
+    select 
24
+    <include refid="Base_Column_List" />
25
+    from ta_feedback
26
+    where id = #{id,jdbcType=INTEGER}
27
+  </select>
28
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
29
+    delete from ta_feedback
30
+    where id = #{id,jdbcType=INTEGER}
31
+  </delete>
32
+  <insert id="insert" parameterType="com.community.huiju.model.TaFeedback" >
33
+    insert into ta_feedback (id, content, ta_user_tel, 
34
+      estate_source, handle_status, handle_remark, 
35
+      handle_user, handle_time, create_date, 
36
+      create_user, update_date, update_user
37
+      )
38
+    values (#{id,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{taUserTel,jdbcType=VARCHAR}, 
39
+      #{estateSource,jdbcType=VARCHAR}, #{handleStatus,jdbcType=VARCHAR}, #{handleRemark,jdbcType=VARCHAR}, 
40
+      #{handleUser,jdbcType=VARCHAR}, #{handleTime,jdbcType=TIMESTAMP}, #{createDate,jdbcType=TIMESTAMP}, 
41
+      #{createUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}
42
+      )
43
+  </insert>
44
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaFeedback" >
45
+    insert into ta_feedback
46
+    <trim prefix="(" suffix=")" suffixOverrides="," >
47
+      <if test="id != null" >
48
+        id,
49
+      </if>
50
+      <if test="content != null" >
51
+        content,
52
+      </if>
53
+      <if test="taUserTel != null" >
54
+        ta_user_tel,
55
+      </if>
56
+      <if test="estateSource != null" >
57
+        estate_source,
58
+      </if>
59
+      <if test="handleStatus != null" >
60
+        handle_status,
61
+      </if>
62
+      <if test="handleRemark != null" >
63
+        handle_remark,
64
+      </if>
65
+      <if test="handleUser != null" >
66
+        handle_user,
67
+      </if>
68
+      <if test="handleTime != null" >
69
+        handle_time,
70
+      </if>
71
+      <if test="createDate != null" >
72
+        create_date,
73
+      </if>
74
+      <if test="createUser != null" >
75
+        create_user,
76
+      </if>
77
+      <if test="updateDate != null" >
78
+        update_date,
79
+      </if>
80
+      <if test="updateUser != null" >
81
+        update_user,
82
+      </if>
83
+    </trim>
84
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
85
+      <if test="id != null" >
86
+        #{id,jdbcType=INTEGER},
87
+      </if>
88
+      <if test="content != null" >
89
+        #{content,jdbcType=VARCHAR},
90
+      </if>
91
+      <if test="taUserTel != null" >
92
+        #{taUserTel,jdbcType=VARCHAR},
93
+      </if>
94
+      <if test="estateSource != null" >
95
+        #{estateSource,jdbcType=VARCHAR},
96
+      </if>
97
+      <if test="handleStatus != null" >
98
+        #{handleStatus,jdbcType=VARCHAR},
99
+      </if>
100
+      <if test="handleRemark != null" >
101
+        #{handleRemark,jdbcType=VARCHAR},
102
+      </if>
103
+      <if test="handleUser != null" >
104
+        #{handleUser,jdbcType=VARCHAR},
105
+      </if>
106
+      <if test="handleTime != null" >
107
+        #{handleTime,jdbcType=TIMESTAMP},
108
+      </if>
109
+      <if test="createDate != null" >
110
+        #{createDate,jdbcType=TIMESTAMP},
111
+      </if>
112
+      <if test="createUser != null" >
113
+        #{createUser,jdbcType=INTEGER},
114
+      </if>
115
+      <if test="updateDate != null" >
116
+        #{updateDate,jdbcType=TIMESTAMP},
117
+      </if>
118
+      <if test="updateUser != null" >
119
+        #{updateUser,jdbcType=INTEGER},
120
+      </if>
121
+    </trim>
122
+  </insert>
123
+  <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TaFeedback" >
124
+    update ta_feedback
125
+    <set >
126
+      <if test="content != null" >
127
+        content = #{content,jdbcType=VARCHAR},
128
+      </if>
129
+      <if test="taUserTel != null" >
130
+        ta_user_tel = #{taUserTel,jdbcType=VARCHAR},
131
+      </if>
132
+      <if test="estateSource != null" >
133
+        estate_source = #{estateSource,jdbcType=VARCHAR},
134
+      </if>
135
+      <if test="handleStatus != null" >
136
+        handle_status = #{handleStatus,jdbcType=VARCHAR},
137
+      </if>
138
+      <if test="handleRemark != null" >
139
+        handle_remark = #{handleRemark,jdbcType=VARCHAR},
140
+      </if>
141
+      <if test="handleUser != null" >
142
+        handle_user = #{handleUser,jdbcType=VARCHAR},
143
+      </if>
144
+      <if test="handleTime != null" >
145
+        handle_time = #{handleTime,jdbcType=TIMESTAMP},
146
+      </if>
147
+      <if test="createDate != null" >
148
+        create_date = #{createDate,jdbcType=TIMESTAMP},
149
+      </if>
150
+      <if test="createUser != null" >
151
+        create_user = #{createUser,jdbcType=INTEGER},
152
+      </if>
153
+      <if test="updateDate != null" >
154
+        update_date = #{updateDate,jdbcType=TIMESTAMP},
155
+      </if>
156
+      <if test="updateUser != null" >
157
+        update_user = #{updateUser,jdbcType=INTEGER},
158
+      </if>
159
+    </set>
160
+    where id = #{id,jdbcType=INTEGER}
161
+  </update>
162
+  <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TaFeedback" >
163
+    update ta_feedback
164
+    set content = #{content,jdbcType=VARCHAR},
165
+      ta_user_tel = #{taUserTel,jdbcType=VARCHAR},
166
+      estate_source = #{estateSource,jdbcType=VARCHAR},
167
+      handle_status = #{handleStatus,jdbcType=VARCHAR},
168
+      handle_remark = #{handleRemark,jdbcType=VARCHAR},
169
+      handle_user = #{handleUser,jdbcType=VARCHAR},
170
+      handle_time = #{handleTime,jdbcType=TIMESTAMP},
171
+      create_date = #{createDate,jdbcType=TIMESTAMP},
172
+      create_user = #{createUser,jdbcType=INTEGER},
173
+      update_date = #{updateDate,jdbcType=TIMESTAMP},
174
+      update_user = #{updateUser,jdbcType=INTEGER}
175
+    where id = #{id,jdbcType=INTEGER}
176
+  </update>
177
+
178
+  <select id="getFeedback" resultMap="BaseResultMap">
179
+    select
180
+    <include refid="Base_Column_List" />
181
+     from  ta_feedback
182
+    <where>
183
+      <if test="tel != null and tel !=''">
184
+        and ta_user_tel like CONCAT('%', #{tel,jdbcType=VARCHAR}, '%')
185
+      </if>
186
+
187
+      <if test="content != null and content !=''">
188
+        and content like CONCAT('%', #{content,jdbcType=VARCHAR}, '%')
189
+      </if>
190
+
191
+      <if test="handleStatus != null and handleStatus !=''">
192
+        and handle_status like CONCAT('%', #{handleStatus,jdbcType=VARCHAR}, '%')
193
+      </if>
194
+    </where>
195
+    ORDER BY update_date desc
196
+  </select>
197
+</mapper>

+ 2
- 12
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/AnnouncementTelController.java 查看文件

80
 	@RequestMapping(value = "/tel/add",method = RequestMethod.POST)
80
 	@RequestMapping(value = "/tel/add",method = RequestMethod.POST)
81
 	public ResponseBean addTel(@Valid @RequestBody AnnouncementTel announcementTel, HttpSession session){
81
 	public ResponseBean addTel(@Valid @RequestBody AnnouncementTel announcementTel, HttpSession session){
82
 		ResponseBean responseBean = new ResponseBean();
82
 		ResponseBean responseBean = new ResponseBean();
83
-		boolean isPhone = true;
84
-		boolean isLandline = true;
85
-//		if (!AccountValidatorUtil.isLandline(announcementTel.getTel())){
86
-//			isLandline = false;
87
-//		}
88
-//		if (!AccountValidatorUtil.isPhone(announcementTel.getTel())){
89
-//			isPhone = false;
90
-//		}
91
-//		if (isPhone == false && isLandline == false) {
92
-//			responseBean.addError("输入的号码不正确!");
93
-//			return responseBean;
94
-//		}
83
+
95
 		if (!AccountValidatorUtil.isNumber(announcementTel.getTel())) {
84
 		if (!AccountValidatorUtil.isNumber(announcementTel.getTel())) {
96
 			responseBean.addError("输入的号码不正确!");
85
 			responseBean.addError("输入的号码不正确!");
97
 			return responseBean;
86
 			return responseBean;
98
 		}
87
 		}
88
+
99
 		UserElement userElement = getUserElement(session);
89
 		UserElement userElement = getUserElement(session);
100
 		QueryWrapper<AnnouncementTel> announcementTelQueryWrapper = new QueryWrapper<>();
90
 		QueryWrapper<AnnouncementTel> announcementTelQueryWrapper = new QueryWrapper<>();
101
 		announcementTelQueryWrapper.eq("tel", announcementTel.getTel());
91
 		announcementTelQueryWrapper.eq("tel", announcementTel.getTel());

+ 49
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/IndexCountController.java 查看文件

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.common.base.BaseController;
6
+import com.community.huiju.service.IndexCountServiceI;
7
+import com.google.common.collect.Maps;
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.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RequestMethod;
15
+import org.springframework.web.bind.annotation.RestController;
16
+
17
+import javax.servlet.http.HttpSession;
18
+import java.util.Map;
19
+
20
+/**
21
+ * @author FXF
22
+ * @date 2019-05-28
23
+ */
24
+@RestController
25
+@RequestMapping("/")
26
+public class IndexCountController extends BaseController {
27
+	
28
+	@Autowired
29
+	private IndexCountServiceI indexCountService;
30
+	
31
+	@ApiOperation(value = "获取物业端首页所有统计数据", notes = "获取物业端首页所有统计数据")
32
+	@ApiImplicitParams({
33
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
34
+	})
35
+	@RequestMapping(value = "/index/count", method = RequestMethod.GET)
36
+	public ResponseBean getIndexCount(HttpSession session){
37
+		UserElement userElement = getUserElement(session);
38
+		ResponseBean  responseBean = new ResponseBean();
39
+		Map<String,Object> indexCountMap = Maps.newHashMap();
40
+		try {
41
+			indexCountMap = indexCountService.getIndexCount(userElement);
42
+		}catch (Exception e){
43
+			responseBean.addError(e.getMessage());
44
+			return responseBean;
45
+		}
46
+		responseBean.addSuccess(indexCountMap);
47
+		return responseBean;
48
+	}
49
+}

+ 113
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TaTemporaryLicenseCountController.java 查看文件

1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.huiju.common.base.BaseController;
5
+import com.community.huiju.model.TaTemporaryLicenseCount;
6
+import com.community.huiju.service.ITaTemporaryLicenseCountService;
7
+import org.slf4j.Logger;
8
+import org.slf4j.LoggerFactory;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RequestMethod;
14
+import org.springframework.web.bind.annotation.ResponseBody;
15
+import org.springframework.web.bind.annotation.RestController;
16
+
17
+/**
18
+ * <p>
19
+    * 临时车统计表,按天计算 前端控制器
20
+    * </p>
21
+ *
22
+ * @author jobob
23
+ * @since 2019-05-28
24
+ */
25
+@RestController
26
+@RequestMapping("/")
27
+public class TaTemporaryLicenseCountController extends BaseController {
28
+
29
+    private final Logger logger = LoggerFactory.getLogger(TaTemporaryLicenseCountController.class);
30
+
31
+    @Autowired
32
+    public ITaTemporaryLicenseCountService iTaTemporaryLicenseCountService;
33
+
34
+
35
+    /**
36
+     * 保存对象
37
+     * @param taTemporaryLicenseCount 实体对象
38
+     * @return
39
+     */
40
+    @RequestMapping(value="/taTemporaryLicenseCount/add",method= RequestMethod.POST)
41
+    public ResponseBean tpShopImgAdd(@RequestBody TaTemporaryLicenseCount taTemporaryLicenseCount){
42
+        ResponseBean responseBean = new ResponseBean();
43
+        try {
44
+            if (iTaTemporaryLicenseCountService.save(taTemporaryLicenseCount)){
45
+                responseBean.addSuccess("success");
46
+            }else {
47
+                responseBean.addError("fail");
48
+            }
49
+        }catch (Exception e){
50
+            logger.error("taTemporaryLicenseCountAdd -=- {}",e.toString());
51
+            responseBean.addError(e.getMessage());
52
+        }
53
+        return responseBean;
54
+    }
55
+
56
+    /**
57
+     * 根据id删除对象
58
+     * @param id  实体ID
59
+     */
60
+    @ResponseBody
61
+    @RequestMapping(value="/taTemporaryLicenseCount/delete/{id}", method= RequestMethod.DELETE)
62
+    public ResponseBean taTemporaryLicenseCountDelete(@PathVariable Integer id){
63
+        ResponseBean responseBean = new ResponseBean();
64
+        try {
65
+            if(iTaTemporaryLicenseCountService.removeById(id)){
66
+                responseBean.addSuccess("success");
67
+            }else {
68
+                responseBean.addError("fail");
69
+            }
70
+        }catch (Exception e){
71
+            logger.error("taTemporaryLicenseCountDelete -=- {}",e.toString());
72
+            responseBean.addError(e.getMessage());
73
+        }
74
+        return responseBean;
75
+    }
76
+
77
+    /**
78
+     * 修改对象
79
+     * @param taTemporaryLicenseCount 实体对象
80
+     * @return
81
+     */
82
+    @RequestMapping(value="/taTemporaryLicenseCount/update",method= RequestMethod.PUT)
83
+    public ResponseBean tpShopImgUpdate(@RequestBody TaTemporaryLicenseCount taTemporaryLicenseCount){
84
+        ResponseBean responseBean = new ResponseBean();
85
+        try {
86
+            if (iTaTemporaryLicenseCountService.updateById(taTemporaryLicenseCount)){
87
+                responseBean.addSuccess("success");
88
+            }else {
89
+                responseBean.addError("fail");
90
+            }
91
+        }catch (Exception e){
92
+            logger.error("taTemporaryLicenseCountUpdate -=- {}",e.toString());
93
+            responseBean.addError(e.getMessage());
94
+        }
95
+        return responseBean;
96
+    }
97
+
98
+    /**
99
+     * 根据id查询对象
100
+     * @param id  实体ID
101
+     */
102
+    @RequestMapping(value="/taTemporaryLicenseCount/get/{id}",method= RequestMethod.GET)
103
+    public ResponseBean tpShopImgGet(@PathVariable Integer id){
104
+        ResponseBean responseBean = new ResponseBean();
105
+        try {
106
+            responseBean.addSuccess(iTaTemporaryLicenseCountService.getById(id));
107
+        }catch (Exception e){
108
+            logger.error("taTemporaryLicenseCountDelete -=- {}",e.toString());
109
+            responseBean.addError(e.getMessage());
110
+        }
111
+        return responseBean;
112
+    }
113
+}

+ 113
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TaUserLicenseCountController.java 查看文件

1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.huiju.common.base.BaseController;
5
+import com.community.huiju.model.TaUserLicenseCount;
6
+import com.community.huiju.service.ITaUserLicenseCountService;
7
+import org.slf4j.Logger;
8
+import org.slf4j.LoggerFactory;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RequestMethod;
14
+import org.springframework.web.bind.annotation.ResponseBody;
15
+import org.springframework.web.bind.annotation.RestController;
16
+
17
+/**
18
+ * <p>
19
+    * 月租车统计表,按天计算 前端控制器
20
+    * </p>
21
+ *
22
+ * @author jobob
23
+ * @since 2019-05-28
24
+ */
25
+@RestController
26
+@RequestMapping("/")
27
+public class TaUserLicenseCountController extends BaseController {
28
+
29
+    private final Logger logger = LoggerFactory.getLogger(TaUserLicenseCountController.class);
30
+
31
+    @Autowired
32
+    public ITaUserLicenseCountService iTaUserLicenseCountService;
33
+
34
+
35
+    /**
36
+     * 保存对象
37
+     * @param taUserLicenseCount 实体对象
38
+     * @return
39
+     */
40
+    @RequestMapping(value="/taUserLicenseCount/add",method= RequestMethod.POST)
41
+    public ResponseBean tpShopImgAdd(@RequestBody TaUserLicenseCount taUserLicenseCount){
42
+        ResponseBean responseBean = new ResponseBean();
43
+        try {
44
+            if (iTaUserLicenseCountService.save(taUserLicenseCount)){
45
+                responseBean.addSuccess("success");
46
+            }else {
47
+                responseBean.addError("fail");
48
+            }
49
+        }catch (Exception e){
50
+            logger.error("taUserLicenseCountAdd -=- {}",e.toString());
51
+            responseBean.addError(e.getMessage());
52
+        }
53
+        return responseBean;
54
+    }
55
+
56
+    /**
57
+     * 根据id删除对象
58
+     * @param id  实体ID
59
+     */
60
+    @ResponseBody
61
+    @RequestMapping(value="/taUserLicenseCount/delete/{id}", method= RequestMethod.DELETE)
62
+    public ResponseBean taUserLicenseCountDelete(@PathVariable Integer id){
63
+        ResponseBean responseBean = new ResponseBean();
64
+        try {
65
+            if(iTaUserLicenseCountService.removeById(id)){
66
+                responseBean.addSuccess("success");
67
+            }else {
68
+                responseBean.addError("fail");
69
+            }
70
+        }catch (Exception e){
71
+            logger.error("taUserLicenseCountDelete -=- {}",e.toString());
72
+            responseBean.addError(e.getMessage());
73
+        }
74
+        return responseBean;
75
+    }
76
+
77
+    /**
78
+     * 修改对象
79
+     * @param taUserLicenseCount 实体对象
80
+     * @return
81
+     */
82
+    @RequestMapping(value="/taUserLicenseCount/update",method= RequestMethod.PUT)
83
+    public ResponseBean tpShopImgUpdate(@RequestBody TaUserLicenseCount taUserLicenseCount){
84
+        ResponseBean responseBean = new ResponseBean();
85
+        try {
86
+            if (iTaUserLicenseCountService.updateById(taUserLicenseCount)){
87
+                responseBean.addSuccess("success");
88
+            }else {
89
+                responseBean.addError("fail");
90
+            }
91
+        }catch (Exception e){
92
+            logger.error("taUserLicenseCountUpdate -=- {}",e.toString());
93
+            responseBean.addError(e.getMessage());
94
+        }
95
+        return responseBean;
96
+    }
97
+
98
+    /**
99
+     * 根据id查询对象
100
+     * @param id  实体ID
101
+     */
102
+    @RequestMapping(value="/taUserLicenseCount/get/{id}",method= RequestMethod.GET)
103
+    public ResponseBean tpShopImgGet(@PathVariable Integer id){
104
+        ResponseBean responseBean = new ResponseBean();
105
+        try {
106
+            responseBean.addSuccess(iTaUserLicenseCountService.getById(id));
107
+        }catch (Exception e){
108
+            logger.error("taUserLicenseCountDelete -=- {}",e.toString());
109
+            responseBean.addError(e.getMessage());
110
+        }
111
+        return responseBean;
112
+    }
113
+}

+ 63
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TaVisitorLicenseSettingController.java 查看文件

1
+package com.community.huiju.controller;
2
+
3
+
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.commom.session.UserElement;
6
+import com.community.huiju.common.base.BaseController;
7
+import com.community.huiju.service.ITaVisitorLicenseSettingService;
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.RequestMapping;
14
+import org.springframework.web.bind.annotation.RequestMethod;
15
+import org.springframework.web.bind.annotation.RequestParam;
16
+import org.springframework.web.bind.annotation.RestController;
17
+
18
+import javax.servlet.http.HttpSession;
19
+
20
+/**
21
+ * <p>
22
+ * 录入访客车牌功能开关表 前端控制器
23
+ * </p>
24
+ *
25
+ * @author jobob
26
+ * @since 2019-05-27
27
+ */
28
+@RestController
29
+@RequestMapping("/")
30
+@Api(value = "录入访客车牌功能开关", description = "录入访客车牌功能开关")
31
+public class TaVisitorLicenseSettingController extends BaseController {
32
+
33
+    @Autowired
34
+    private ITaVisitorLicenseSettingService taVisitorLicenseSettingService;
35
+
36
+    @ApiOperation(value = "是否开启访客邀请车辆", notes = "是否开启访客邀请车辆")
37
+    @ApiImplicitParams({
38
+            @ApiImplicitParam(dataTypeClass = Boolean.class, paramType = "form", name = "visitorLicenseBool", value = "true 表示开启  false 关闭"),
39
+            @ApiImplicitParam(dataTypeClass = String.class, paramType = "header", name = "X-Auth-Token", value = "Token")
40
+    })
41
+    @RequestMapping(value = "/visitor/saveOrDelete", method = RequestMethod.POST)
42
+    public ResponseBean saveOrDelete(HttpSession session, @RequestParam("visitorLicenseBool") Boolean visitorLicenseBool){
43
+        ResponseBean responseBean = new ResponseBean();
44
+        UserElement userElement = getUserElement(session);
45
+        responseBean = taVisitorLicenseSettingService.saveOrDelete(userElement, visitorLicenseBool);
46
+
47
+        return responseBean;
48
+    }
49
+
50
+
51
+    @ApiOperation(value = "查看是否开启访客车辆邀请", notes = "查看是否开启访客车辆邀请")
52
+    @ApiImplicitParams({
53
+            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
54
+    })
55
+    @RequestMapping(value = "/visitor", method = RequestMethod.GET)
56
+    public ResponseBean getVisitorLicense(HttpSession session) {
57
+        ResponseBean responseBean = new ResponseBean();
58
+        UserElement userElement = getUserElement(session);
59
+        responseBean = taVisitorLicenseSettingService.getVisitorLicense(userElement);
60
+        return responseBean;
61
+    }
62
+
63
+}

+ 113
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TpBillInvoiceCountController.java 查看文件

1
+package com.community.huiju.controller;
2
+
3
+import com.community.commom.mode.ResponseBean;
4
+import com.community.huiju.common.base.BaseController;
5
+import com.community.huiju.model.TpBillInvoiceCount;
6
+import com.community.huiju.service.ITpBillInvoiceCountService;
7
+import org.slf4j.Logger;
8
+import org.slf4j.LoggerFactory;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RequestMethod;
14
+import org.springframework.web.bind.annotation.ResponseBody;
15
+import org.springframework.web.bind.annotation.RestController;
16
+
17
+/**
18
+ * <p>
19
+    * 收费单统计表,按天统计 前端控制器
20
+    * </p>
21
+ *
22
+ * @author jobob
23
+ * @since 2019-05-28
24
+ */
25
+@RestController
26
+@RequestMapping("/")
27
+public class TpBillInvoiceCountController extends BaseController {
28
+
29
+    private final Logger logger = LoggerFactory.getLogger(TpBillInvoiceCountController.class);
30
+
31
+    @Autowired
32
+    public ITpBillInvoiceCountService iTpBillInvoiceCountService;
33
+
34
+
35
+    /**
36
+     * 保存对象
37
+     * @param tpBillInvoiceCount 实体对象
38
+     * @return
39
+     */
40
+    @RequestMapping(value="/tpBillInvoiceCount/add",method= RequestMethod.POST)
41
+    public ResponseBean tpShopImgAdd(@RequestBody TpBillInvoiceCount tpBillInvoiceCount){
42
+        ResponseBean responseBean = new ResponseBean();
43
+        try {
44
+            if (iTpBillInvoiceCountService.save(tpBillInvoiceCount)){
45
+                responseBean.addSuccess("success");
46
+            }else {
47
+                responseBean.addError("fail");
48
+            }
49
+        }catch (Exception e){
50
+            logger.error("tpBillInvoiceCountAdd -=- {}",e.toString());
51
+            responseBean.addError(e.getMessage());
52
+        }
53
+        return responseBean;
54
+    }
55
+
56
+    /**
57
+     * 根据id删除对象
58
+     * @param id  实体ID
59
+     */
60
+    @ResponseBody
61
+    @RequestMapping(value="/tpBillInvoiceCount/delete/{id}", method= RequestMethod.DELETE)
62
+    public ResponseBean tpBillInvoiceCountDelete(@PathVariable Integer id){
63
+        ResponseBean responseBean = new ResponseBean();
64
+        try {
65
+            if(iTpBillInvoiceCountService.removeById(id)){
66
+                responseBean.addSuccess("success");
67
+            }else {
68
+                responseBean.addError("fail");
69
+            }
70
+        }catch (Exception e){
71
+            logger.error("tpBillInvoiceCountDelete -=- {}",e.toString());
72
+            responseBean.addError(e.getMessage());
73
+        }
74
+        return responseBean;
75
+    }
76
+
77
+    /**
78
+     * 修改对象
79
+     * @param tpBillInvoiceCount 实体对象
80
+     * @return
81
+     */
82
+    @RequestMapping(value="/tpBillInvoiceCount/update",method= RequestMethod.PUT)
83
+    public ResponseBean tpShopImgUpdate(@RequestBody TpBillInvoiceCount tpBillInvoiceCount){
84
+        ResponseBean responseBean = new ResponseBean();
85
+        try {
86
+            if (iTpBillInvoiceCountService.updateById(tpBillInvoiceCount)){
87
+                responseBean.addSuccess("success");
88
+            }else {
89
+                responseBean.addError("fail");
90
+            }
91
+        }catch (Exception e){
92
+            logger.error("tpBillInvoiceCountUpdate -=- {}",e.toString());
93
+            responseBean.addError(e.getMessage());
94
+        }
95
+        return responseBean;
96
+    }
97
+
98
+    /**
99
+     * 根据id查询对象
100
+     * @param id  实体ID
101
+     */
102
+    @RequestMapping(value="/tpBillInvoiceCount/get/{id}",method= RequestMethod.GET)
103
+    public ResponseBean tpShopImgGet(@PathVariable Integer id){
104
+        ResponseBean responseBean = new ResponseBean();
105
+        try {
106
+            responseBean.addSuccess(iTpBillInvoiceCountService.getById(id));
107
+        }catch (Exception e){
108
+            logger.error("tpBillInvoiceCountDelete -=- {}",e.toString());
109
+            responseBean.addError(e.getMessage());
110
+        }
111
+        return responseBean;
112
+    }
113
+}

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TransactionController.java 查看文件

88
 	@RequestMapping(value="/transactions/add",method = RequestMethod.POST)
88
 	@RequestMapping(value="/transactions/add",method = RequestMethod.POST)
89
 	public ResponseBean transactionsAdd(@RequestBody String paramets, HttpSession session){
89
 	public ResponseBean transactionsAdd(@RequestBody String paramets, HttpSession session){
90
 		UserElement userElement = getUserElement(session);
90
 		UserElement userElement = getUserElement(session);
91
-		ResponseBean  addAnnouncement= transactionService.transactionsAdd(paramets,userElement.getCommunityId(),userElement.getId());
91
+		ResponseBean  addAnnouncement= transactionService.transactionsAdd(paramets,userElement);
92
 		return addAnnouncement;
92
 		return addAnnouncement;
93
 	}
93
 	}
94
 
94
 
122
 	@RequestMapping(value="/transactionReplyList",method = RequestMethod.POST)
122
 	@RequestMapping(value="/transactionReplyList",method = RequestMethod.POST)
123
 	public ResponseBean transactionReplyList(@RequestBody String paramets, HttpSession session){
123
 	public ResponseBean transactionReplyList(@RequestBody String paramets, HttpSession session){
124
 		UserElement userElement = getUserElement(session);
124
 		UserElement userElement = getUserElement(session);
125
-		ResponseBean  transactionReplyList= transactionService.transactionReplyList(paramets,userElement.getCommunityId(),userElement.getId());
125
+		ResponseBean  transactionReplyList= transactionService.transactionReplyList(paramets,userElement);
126
 		return transactionReplyList;
126
 		return transactionReplyList;
127
 	}
127
 	}
128
 
128
 

+ 2
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/BillInvoiceMapper.java 查看文件

43
      * @return
43
      * @return
44
      */
44
      */
45
     IPage<BillInvoice> selectBillInvoiceEffective(Page page, @Param("map") Map<String, Object> map);
45
     IPage<BillInvoice> selectBillInvoiceEffective(Page page, @Param("map") Map<String, Object> map);
46
-
46
+	
47
+	List<Map<String, Object>> getPriceCount();
47
 }
48
 }

+ 48
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/IndexCountMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.community.huiju.model.TaBriskUser;
4
+import com.community.huiju.model.TaTemporaryLicenseCount;
5
+import com.community.huiju.model.TaUserLicenseCount;
6
+import com.community.huiju.model.TpBillInvoiceCount;
7
+import com.community.huiju.model.TpTicket;
8
+import org.apache.ibatis.annotations.Mapper;
9
+import org.apache.ibatis.annotations.Param;
10
+
11
+import java.util.List;
12
+import java.util.Map;
13
+
14
+@Mapper
15
+public interface IndexCountMapper {
16
+	/**
17
+	 * 获取工单统计
18
+	 * @param communityId
19
+	 * @return
20
+	 */
21
+	List<TpTicket> getTicketList(@Param("communityId") Integer communityId);
22
+	
23
+	Integer selectCommunityOpenDoorCount();
24
+	
25
+	Integer selectUnitsOpenDoorCount(Integer eventType);
26
+	
27
+	Integer getPublicCameraCount(@Param("communityId") Integer communityId);
28
+	
29
+	Integer getRemoteMonitoringCount(@Param("communityId") Integer communityId);
30
+	
31
+	Integer getRemoteUnitCount(@Param("communityId") Integer communityId);
32
+	
33
+	List<TpBillInvoiceCount> getBillInvoiceCountList(@Param("communityId") Integer communityId);
34
+	
35
+	List<TaUserLicenseCount> getUserLicenseCountList(@Param("communityId") Integer communityId);
36
+	
37
+	List<TaTemporaryLicenseCount> getTemporaryLicenseCountList(@Param("communityId") Integer communityId);
38
+	
39
+	Integer getRegisterUserCount(@Param("communityId") Integer communityId,@Param("roleId") Integer roleId);
40
+	
41
+	List<TaBriskUser> getBriskUserList(@Param("communityId") Integer communityId);
42
+	
43
+	Integer getAnnouncementCount(@Param("communityId") Integer communityId);
44
+	
45
+	Integer getActivityCount(@Param("communityId") Integer communityId);
46
+	
47
+	Integer getTopicCount(@Param("communityId") Integer communityId);
48
+}

+ 20
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaTemporaryLicenseCountMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TaTemporaryLicenseCount;
5
+
6
+import java.util.List;
7
+import java.util.Map;
8
+
9
+/**
10
+ * <p>
11
+ * 临时车统计表,按天计算 Mapper 接口
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2019-05-28
16
+ */
17
+public interface TaTemporaryLicenseCountMapper extends BaseMapper<TaTemporaryLicenseCount> {
18
+	
19
+	List<Map<String, Object>> getTemporaryLicenseOrderPriceCount();
20
+}

+ 16
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaUserLicenseCountMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TaUserLicenseCount;
5
+
6
+/**
7
+ * <p>
8
+ * 月租车统计表,按天计算 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-05-28
13
+ */
14
+public interface TaUserLicenseCountMapper extends BaseMapper<TaUserLicenseCount> {
15
+
16
+}

+ 4
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaUserLicenseOrderMapper.java 查看文件

7
 import org.apache.ibatis.annotations.Select;
7
 import org.apache.ibatis.annotations.Select;
8
 
8
 
9
 import java.util.List;
9
 import java.util.List;
10
+import java.util.Map;
10
 
11
 
11
 /**
12
 /**
12
  * <p>
13
  * <p>
37
     @ResultType(Integer.class)
38
     @ResultType(Integer.class)
38
     @Select("select count(*) from ta_user_license_order where community_id = #{communityId}")
39
     @Select("select count(*) from ta_user_license_order where community_id = #{communityId}")
39
     Integer getCount(@Param("communityId") Integer communityId);
40
     Integer getCount(@Param("communityId") Integer communityId);
40
-
41
-
41
+    
42
+    
43
+    List<Map<String, Object>> getPriceCount();
42
 }
44
 }

+ 12
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaUserVerifyMapper.java 查看文件

80
     TaUserVerify selectCommunityAndAddressName(@Param("communityId") Integer communityId, @Param("phaseName") String phaseName, @Param("buildingName") String buildingName, @Param("unitName") String unitName, @Param("levelName") String levelName, @Param("roomNoName") String roomNoName);
80
     TaUserVerify selectCommunityAndAddressName(@Param("communityId") Integer communityId, @Param("phaseName") String phaseName, @Param("buildingName") String buildingName, @Param("unitName") String unitName, @Param("levelName") String levelName, @Param("roomNoName") String roomNoName);
81
 
81
 
82
 
82
 
83
+    /**
84
+     * 查询用户审核数据!   小区id,用户id,期id,栋id,单元id,楼层id,房间id,审核状态
85
+     * @param userId
86
+     * @param communityId
87
+     * @param phaseId
88
+     * @param buildingId
89
+     * @param unitId
90
+     * @param levelId
91
+     * @param roomNoId
92
+     * @param verifyStatus
93
+     * @return
94
+     */
83
     List<TaUserVerify> selectUserVerifyCommunityAndAddress(@Param("userId") Integer userId,
95
     List<TaUserVerify> selectUserVerifyCommunityAndAddress(@Param("userId") Integer userId,
84
                                                  @Param("communityId") Integer communityId,
96
                                                  @Param("communityId") Integer communityId,
85
                                                  @Param("phaseId") Integer phaseId,
97
                                                  @Param("phaseId") Integer phaseId,

+ 16
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TaVisitorLicenseSettingMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TaVisitorLicenseSetting;
5
+
6
+/**
7
+ * <p>
8
+ * 录入访客车牌功能开关表 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-05-27
13
+ */
14
+public interface TaVisitorLicenseSettingMapper extends BaseMapper<TaVisitorLicenseSetting> {
15
+
16
+}

+ 16
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpBillInvoiceCountMapper.java 查看文件

1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TpBillInvoiceCount;
5
+
6
+/**
7
+ * <p>
8
+ * 收费单统计表,按天统计 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-05-28
13
+ */
14
+public interface TpBillInvoiceCountMapper extends BaseMapper<TpBillInvoiceCount> {
15
+
16
+}

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TransactionReplyMapper.java 查看文件

24
      * @param id
24
      * @param id
25
      * @return
25
      * @return
26
      */
26
      */
27
-    List<TransactionReply> transactionReplyList(Page page, @Param("id") Integer id, @Param("taUserId") Integer taUserId, @Param("status") Integer status,@Param("taUserName") String taUserName, @Param("createDate") Date createDate, @Param("replyTaUserName") String replyTaUserName);
27
+    List<TransactionReply> transactionReplyList(Page page, @Param("id") Integer id, @Param("uuid") Integer uuid,@Param("uuidType") String uuidType,@Param("userId") Integer userId, @Param("status") Integer status,@Param("taUserName") String taUserName, @Param("createDate") Date createDate, @Param("replyTaUserName") String replyTaUserName);
28
 }
28
 }

+ 29
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaBriskUser.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableField;
4
+import lombok.Data;
5
+import lombok.EqualsAndHashCode;
6
+import lombok.experimental.Accessors;
7
+
8
+import java.util.Date;
9
+
10
+/**
11
+ * @author FXF
12
+ * @date 2019-05-28
13
+ */
14
+@Data
15
+@EqualsAndHashCode(callSuper = false)
16
+@Accessors(chain = true)
17
+public class TaBriskUser {
18
+	
19
+	private Integer id;
20
+	
21
+	private Integer communityId;
22
+	
23
+	private Integer taUserVerifyId;
24
+	
25
+	private Date createDate;
26
+	
27
+	@TableField(exist = false)
28
+	private Integer briskCount;
29
+}

+ 41
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaTemporaryLicenseCount.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import lombok.Data;
4
+import lombok.EqualsAndHashCode;
5
+import lombok.experimental.Accessors;
6
+
7
+import java.io.Serializable;
8
+import java.time.LocalDateTime;
9
+
10
+/**
11
+ * <p>
12
+ * 临时车统计表,按天计算
13
+ * </p>
14
+ *
15
+ * @author jobob
16
+ * @since 2019-05-28
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+public class TaTemporaryLicenseCount implements Serializable {
22
+
23
+    private static final long serialVersionUID = 1L;
24
+
25
+    /**
26
+     * 小区id
27
+     */
28
+    private Integer communityId;
29
+
30
+    /**
31
+     * 价格总和
32
+     */
33
+    private Integer priceTotal;
34
+
35
+    /**
36
+     * 创建时间
37
+     */
38
+    private LocalDateTime createDate;
39
+
40
+
41
+}

+ 41
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaUserLicenseCount.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import lombok.Data;
4
+import lombok.EqualsAndHashCode;
5
+import lombok.experimental.Accessors;
6
+
7
+import java.io.Serializable;
8
+import java.time.LocalDateTime;
9
+
10
+/**
11
+ * <p>
12
+ * 月租车统计表,按天计算
13
+ * </p>
14
+ *
15
+ * @author jobob
16
+ * @since 2019-05-28
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+public class TaUserLicenseCount implements Serializable {
22
+
23
+    private static final long serialVersionUID = 1L;
24
+
25
+    /**
26
+     * 小区id
27
+     */
28
+    private Integer communityId;
29
+
30
+    /**
31
+     * 价格总和
32
+     */
33
+    private Integer priceTotal;
34
+
35
+    /**
36
+     * 创建时间
37
+     */
38
+    private LocalDateTime createDate;
39
+
40
+
41
+}

+ 49
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TaVisitorLicenseSetting.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableField;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import lombok.Data;
8
+import lombok.EqualsAndHashCode;
9
+import lombok.experimental.Accessors;
10
+
11
+import java.io.Serializable;
12
+import java.time.LocalDateTime;
13
+
14
+/**
15
+ * <p>
16
+ * 录入访客车牌功能开关表
17
+ * </p>
18
+ *
19
+ * @author jobob
20
+ * @since 2019-05-27
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@Accessors(chain = true)
25
+@TableName("ta_visitor_license_setting")
26
+public class TaVisitorLicenseSetting implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @TableId(value = "id", type = IdType.AUTO)
31
+    private Integer id;
32
+
33
+    /**
34
+     * 小区ID
35
+     */
36
+    private Integer communityId;
37
+
38
+    /**
39
+     * 创建时间
40
+     */
41
+    private LocalDateTime createDate;
42
+
43
+    /**
44
+     * 物业端创建人
45
+     */
46
+    private Integer createUser;
47
+
48
+
49
+}

+ 41
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpBillInvoiceCount.java 查看文件

1
+package com.community.huiju.model;
2
+
3
+import lombok.Data;
4
+import lombok.EqualsAndHashCode;
5
+import lombok.experimental.Accessors;
6
+
7
+import java.io.Serializable;
8
+import java.time.LocalDateTime;
9
+
10
+/**
11
+ * <p>
12
+ * 收费单统计表,按天统计
13
+ * </p>
14
+ *
15
+ * @author jobob
16
+ * @since 2019-05-28
17
+ */
18
+@Data
19
+@EqualsAndHashCode(callSuper = false)
20
+@Accessors(chain = true)
21
+public class TpBillInvoiceCount implements Serializable {
22
+
23
+    private static final long serialVersionUID = 1L;
24
+
25
+    /**
26
+     * 小区ID
27
+     */
28
+    private Integer communityId;
29
+
30
+    /**
31
+     * 价格总和
32
+     */
33
+    private Integer priceTotal;
34
+
35
+    /**
36
+     * 创建时间
37
+     */
38
+    private LocalDateTime createDate;
39
+
40
+
41
+}

+ 0
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpTransaction.java 查看文件


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