Browse Source

初始化提交,并集成四个模块

master
weikai 6 years ago
parent
commit
06e430b4df
  1. 28
      .gitignore
  2. 12
      .gitmodules
  3. 397
      db/epdc-user.html
  4. 2594
      db/esua_epdc_user.pdman.json
  5. 1
      epdc-cloud-client-yushan
  6. 1
      epdc-cloud-commons-yushan
  7. 1
      epdc-cloud-gateway-yushan
  8. 1
      epdc-cloud-parent-yushan
  9. 20
      epdc-cloud-user/Dockerfile
  10. 251
      epdc-cloud-user/pom.xml
  11. 31
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/UserApplication.java
  12. 33
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/async/NewsTask.java
  13. 54
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/async/PartyTask.java
  14. 26
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/config/ModuleConfigImpl.java
  15. 56
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/config/StreamUtils.java
  16. 423
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/EpdcAppUserController.java
  17. 92
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/EpdcAppUserWxFormIdController.java
  18. 65
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/EpdcAppVolunteerInfoController.java
  19. 83
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/EpdcUserGridRelationController.java
  20. 98
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/PartyAuthenticationFailedController.java
  21. 179
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/PartyMembersController.java
  22. 102
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/PartyTagRelationController.java
  23. 126
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserAuthenticateHistoryController.java
  24. 94
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserCarInfoController.java
  25. 286
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserController.java
  26. 135
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserGridInvitationCodeController.java
  27. 105
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserGridRelationController.java
  28. 94
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserInvitationRecordController.java
  29. 103
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserTagController.java
  30. 94
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserTagRelationController.java
  31. 94
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserWxFormIdController.java
  32. 183
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/VolunteerInfoController.java
  33. 67
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/PartyAuthenticationFailedDao.java
  34. 96
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/PartyMembersDao.java
  35. 36
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/PartyTagRelationDao.java
  36. 64
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserAuthenticateHistoryDao.java
  37. 33
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserCarInfoDao.java
  38. 244
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserDao.java
  39. 43
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserGridInvitationCodeDao.java
  40. 69
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserGridRelationDao.java
  41. 58
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserInvitationRecordDao.java
  42. 53
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserTagDao.java
  43. 45
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserTagRelationDao.java
  44. 41
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserWxFormIdDao.java
  45. 131
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/VolunteerInfoDao.java
  46. 14
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/datasources/DataSourceNames.java
  47. 112
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/PartyAuthenticationFailedEntity.java
  48. 90
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/PartyMembersEntity.java
  49. 53
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/PartyTagRelationEntity.java
  50. 76
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserAuthenticateHistoryEntity.java
  51. 51
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserCarInfoEntity.java
  52. 267
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserEntity.java
  53. 56
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserGridInvitationCodeEntity.java
  54. 67
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserGridRelationEntity.java
  55. 66
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserInvitationRecordEntity.java
  56. 59
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserTagEntity.java
  57. 51
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserTagRelationEntity.java
  58. 50
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserWxFormIdEntity.java
  59. 138
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/VolunteerInfoEntity.java
  60. 54
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/PartyAuthenticationFailedExcel.java
  61. 60
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/PartyMembersExcel.java
  62. 52
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/PartyTagRelationExcel.java
  63. 74
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserAuthenticateHistoryExcel.java
  64. 62
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserCarInfoExcel.java
  65. 52
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserExcel.java
  66. 65
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserGridInvitationCodeExcel.java
  67. 68
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserInvitationRecordExcel.java
  68. 52
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserTagExcel.java
  69. 62
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserTagRelationExcel.java
  70. 62
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserWxFormIdExcel.java
  71. 126
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/VolunteerInfoExcel.java
  72. 16
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/exception/UserModuleErrorCode.java
  73. 42
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/feign/AdminFeignClient.java
  74. 32
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/feign/NewsFeignClient.java
  75. 29
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/feign/fallback/AdminFeignClientFallback.java
  76. 23
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/feign/fallback/NewsFeignClientFallback.java
  77. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/PartyAuthenticationFailedRedis.java
  78. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/PartyMembersRedis.java
  79. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/PartyTagRelationRedis.java
  80. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserCarInfoRedis.java
  81. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserGridInvitationCodeRedis.java
  82. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserGridRelationRedis.java
  83. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserInvitationRecordRedis.java
  84. 46
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserRedis.java
  85. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserTagRedis.java
  86. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserTagRelationRedis.java
  87. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserWxFormIdRedis.java
  88. 47
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/VolunteerInfoRedis.java
  89. 65
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/rocketmq/consumer/OrganizationModifyConsumer.java
  90. 37
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/rocketmq/dto/OrganizationModifyDTO.java
  91. 107
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/PartyAuthenticationFailedService.java
  92. 132
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/PartyMembersService.java
  93. 50
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/PartyTagRelationService.java
  94. 116
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserAuthenticateHistoryService.java
  95. 104
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserCarInfoService.java
  96. 99
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserGridInvitationCodeService.java
  97. 191
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserGridRelationService.java
  98. 117
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserInvitationRecordService.java
  99. 410
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserService.java
  100. 116
      epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserTagRelationService.java

28
.gitignore

@ -0,0 +1,28 @@
# Created by .ignore support plugin (hsz.mobi)
### Java template
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
.idea/
*.iml
**/target/

12
.gitmodules

@ -0,0 +1,12 @@
[submodule "epdc-cloud-client-yushan"]
path = epdc-cloud-client-yushan
url = http://121.42.41.42:7070/r/epdc-cloud-client-yushan.git
[submodule "epdc-cloud-commons-yushan"]
path = epdc-cloud-commons-yushan
url = http://121.42.41.42:7070/r/epdc-cloud-commons-yushan.git
[submodule "epdc-cloud-gateway-yushan"]
path = epdc-cloud-gateway-yushan
url = http://121.42.41.42:7070/r/epdc-cloud-gateway-yushan.git
[submodule "epdc-cloud-parent-yushan"]
path = epdc-cloud-parent-yushan
url = http://121.42.41.42:7070/r/epdc-cloud-parent-yushan.git

397
db/epdc-user.html

@ -0,0 +1,397 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>epdc-job</title>
<style>
.index {
font-weight: bold;
font-size: 25px;
}
.title {
font-weight: bold;
font-size: 25px;
}
li {
list-style: none;
padding: 5px;
}
.first-li {
font-weight: bold;
font-size: 20px;
}
.second-li {
font-weight: bold;
}
.third-li {
font-weight: normal;
}
.block {
display: block;
}
table {
width: 100%;
margin-top: 10px;
border-color: #E8E8E8;
}
.first-tr {
text-align: center;
}
tr:hover {
background: #ECF9FF;
}
td {
font-weight: normal;
padding: 5px;
white-space: nowrap;
}
a {
color: #000000;
background-color: transparent;
text-decoration: none;
outline: none;
cursor: pointer;
}
.module {
color: green;
}
.module-list {
color: #1890ff;
}
</style>
</head>
<body><center class="index">目录</center>
<hr><ul>
<li class="first-li"><a class="module" id="module-DB_REVERSE_MYSQL-from" href="#module-DB_REVERSE_MYSQL-to">1 逆向解析_MYSQL</a>
<ul><li class="second-li"><a class="module-list" id="module-DB_REVERSE_MYSQL-relation-from" href="#module-DB_REVERSE_MYSQL-relation-to">1 关联关系</a></li>
<li class="second-li"><a class="module-list" id="module-DB_REVERSE_MYSQL-tableList-from" href="#module-DB_REVERSE_MYSQL-tableList-to">2 表清单</a></li>
<li class="second-li"><a class="module-list" id="module-DB_REVERSE_MYSQL-tableColumnList-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-to">3 表列清单</a>
<ul><li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_AUTHENTICATION_FAILED-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_AUTHENTICATION_FAILED-to">3.1 EPDC_PARTY_AUTHENTICATION_FAILED【党员认证失败表 党员认证失败表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_MEMBERS-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_MEMBERS-to">3.2 EPDC_PARTY_MEMBERS【党员表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_TAG_RELATION-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_TAG_RELATION-to">3.3 EPDC_PARTY_TAG_RELATION【党员标签关系表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER-to">3.4 EPDC_USER【用户信息表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_AUTHENTICATE_HISTORY-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_AUTHENTICATE_HISTORY-to">3.5 EPDC_USER_AUTHENTICATE_HISTORY【用户认证历史表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_BEHAVIOR-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_BEHAVIOR-to">3.6 EPDC_USER_BEHAVIOR【用户行为表 用户行为表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_GRID_RELATION-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_GRID_RELATION-to">3.7 EPDC_USER_GRID_RELATION【网格长与网格关系表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_MESSAGE-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_MESSAGE-to">3.8 EPDC_USER_MESSAGE【用户消息表 用户消息表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_TAG-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_TAG-to">3.9 EPDC_USER_TAG【用户标签表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_TAG_RELATION-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_TAG_RELATION-to">3.10 EPDC_USER_TAG_RELATION【用户标签关系表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_WX_FORM_ID-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_WX_FORM_ID-to">3.11 EPDC_USER_WX_FORM_ID【微信formId表】</a></li>
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-UNDO_LOG-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-UNDO_LOG-to">3.12 UNDO_LOG【】</a></li>
</ul></li></ul></li></ul>
<hr><ul>
<li class="first-li"><a class="module" id="module-DB_REVERSE_MYSQL-to" href="#module-DB_REVERSE_MYSQL-from">1 逆向解析_MYSQL</a><ul>
<li class="second-li"><a class="module-list" class="block" id="module-DB_REVERSE_MYSQL-relation-to" href="#module-DB_REVERSE_MYSQL-relation-from">1.1 关联关系</a>
<img style="width: 98%;margin-top: 10px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAYAAACI7Fo9AAANo0lEQVR4Xu3cz8tNaxjG8ceEFBNKmPiRpAyMmCADGRkJMZEUpZSJf8B/oJRSBkgpGZgwERlgQimkJCUTSn5MSJk43fv0vGftx7PWel7nkiu+b53BOe/a9773517XXs/68Z45379//574QQCBP1pgDkH/o+fLh0NgIkDQ2REQ+AsECPpfMGQ+IgIEXbAPXLt2bVJl165do9Xevn2bTp8+nQ4dOpTWrl37w/ZR68GDB+n48eNp2bJlo/Vig9b3r2334sWL9OzZs8HeW7YZajR/5tevX09tdvLkyapB04dmo1kJEPRZcdU3bg1aDuXHjx/TgQMH0ty5c6cKRiDu3LmTli5dmubNm5c2b97c2128Z65z48aNpi+aWp9Pnz5Nly9fTmvWrKn29Pnz53TmzJlJ/WPHjqUFCxZM9RRfAhHYoZ8NGzZUXxuv+fbtW7p06VK6ffv2T01i+/bt1b5/qtgf/CKCLhhua9Bbjubr169Py5cvT1euXEn79u37IVjRbg7fli1bJl8Gfe+ft4uVRqwe+rbLYa2FJl4Tv6+FvI8uh/fly5ejK5O87bp166a+2OI9z58/P/j6+/fvp+fPnxP0hn2YoDcgxSaxU+UjW+NLZjaLkORA5qPwhw8f0sWLF9PBgwcnS/TYse/evTuz0w4tl1t6ifeMI2n0PBb0/PnevXuXtm3blhYtWjTpPX8BzGaJnb/MNm3aVD0dKD9nLej5Cyq+nIZOhwh6+55I0NutBpfR8cuhnbI8mnePrrFjX7hwIe3evXvqvDy2WbJkydSRrjya59OB2vsPHdFbltx9H7gv+FEzeq4d/XMvjx8/Tnv37p35QimD3t2u7/3zyuPhw4cc0Rv3X4LeCDW02djSPe/MUSPOzbtH88WLF0/OUcula/f8tfu7uKD16NGjtHPnzplz/P+7dC8/W/f8v7yOUHNoPc+unat3g55XIPFlUNu2XM5zRG/feQl6u9VPH9FrQYij3saNGychj6Vy32ogvzZvEyG8evVqU9cnTpxIt27dalq6dwvOJujlZ+se7btX2/PpS9l4N+hx6pBPbeJofe/evZnVQYS6++/5dINz9KZdgQdm2piGtxo7ondf3T0K5aVnhPzcuXMpjmTlTxzZjhw5MlkS930h/O4jek0nX0foXuCLPuNiY/e2Yt/FuBzkfF0klvvllyFH9Pa9lyN6g1XLxa+xMnFEW7169dQFuLHXtP7eKeg5uO/fv586V4//HrfQYgXTPboPXYyrffGtWLFi5ko8QW/dQ3gEtl2qZ8vuUrpveRovrV1E+9k3b7mQFkfAHTt2VK+6x1F17N73WG+1C3KxVO/eSajVyF75CJ2DHrcUnzx5MlnVDN13z6+PlcKqVavSq1evuL02NiyedW8QGtgkjihxXhk/X79+nfyzdevW3ifeynPrw4cPT3bUlodFukvX8up2eUTP/94X9KG7A0P31PsoWi/Gla+PsMazAvHMQHkxsruK6vsC5Yjevv+ydG+3mtqyu5PlJ9MiWLXbZK1v0fpwyq8KevfuwPz581Msk4eezssrlb7PPHSEj89w8+bNtGfPnhR+tbsOUb/7JVI+0EPQW/cslu7tUp0ty6vS3SPq2NNvfW9Yvm7ogZnWoJdH7rGLhhGc69evT86BFy5cOLXsb4Eq7/t3g57r5af5cr3yHL12WtJ3356gt0zl3204ordbzZxnl09slQFqfbKr+9Z9NcpgxGt+RdDzUrl2e6zvD3DKsMYFuP37909WAvFTBj2eHzh79uzUc/VDV93ziiGuvOcLc1yMm8UO29mUoDe65SDUzhf7jpTx38u/ROuee+aLTm/evKk+Udb3vHdf0OOjxHWAbhjKMJa36MaeS295pDW+HGq3v/qW7vmCWrxu5cqVvQ8MjY2GI/qY0H+/J+gNVmPnzkNL4tjZT506lb58+ZI+ffo0dWspH/X6/my1fKKu7ym1vvcvL5KVXwDlFfAhirxt94uu9kVU3oqsfQHkVUn80crRo0cnD/W0XJCs9cdfrzXswCzd25DGtho79+17/WyuVs/mD0vG+s1h7AthS79DtxLH3r/7+7Gl+1Atjujt0hzR261+25b5Nl7L/9jitzXJG1sLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtQBBtx4PzSGgESDoGkeqIGAtQNCtx0NzCGgECLrGkSoIWAsQdOvx0BwCGgGCrnGkCgLWAgTdejw0h4BGgKBrHKmCgLUAQbceD80hoBEg6BpHqiBgLUDQrcdDcwhoBAi6xpEqCFgLEHTr8dAcAhoBgq5xpAoC1gIE3Xo8NIeARoCgaxypgoC1AEG3Hg/NIaARIOgaR6ogYC1A0K3HQ3MIaAQIusaRKghYCxB06/HQHAIaAYKucaQKAtYCBN16PDSHgEaAoGscqYKAtcA/uzO8i4BooncAAAAASUVORK5CYII=" title="DB_REVERSE_MYSQL-关系图"/>
</li><hr>
<li><a class="module-list" id="module-DB_REVERSE_MYSQL-tableList-to" href="module-DB_REVERSE_MYSQL-tableList-from">1.2 表清单</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>名称</td><td>代码</td><td>备注</td></tr>
<tr><td>党员认证失败表 党员认证失败表</td><td>EPDC_PARTY_AUTHENTICATION_FAILED</td><td></td></tr>
<tr><td>党员表</td><td>EPDC_PARTY_MEMBERS</td><td></td></tr>
<tr><td>党员标签关系表</td><td>EPDC_PARTY_TAG_RELATION</td><td></td></tr>
<tr><td>用户信息表</td><td>EPDC_USER</td><td></td></tr>
<tr><td>用户认证历史表</td><td>EPDC_USER_AUTHENTICATE_HISTORY</td><td></td></tr>
<tr><td>用户行为表 用户行为表</td><td>EPDC_USER_BEHAVIOR</td><td></td></tr>
<tr><td>网格长与网格关系表</td><td>EPDC_USER_GRID_RELATION</td><td></td></tr>
<tr><td>用户消息表 用户消息表</td><td>EPDC_USER_MESSAGE</td><td></td></tr>
<tr><td>用户标签表</td><td>EPDC_USER_TAG</td><td></td></tr>
<tr><td>用户标签关系表</td><td>EPDC_USER_TAG_RELATION</td><td></td></tr>
<tr><td>微信formId表</td><td>EPDC_USER_WX_FORM_ID</td><td></td></tr>
<tr><td></td><td>UNDO_LOG</td><td></td></tr>
</table>
</li><hr>
<li><a class="module-list" id="module-DB_REVERSE_MYSQL-tableColumnList-to" href="module-DB_REVERSE_MYSQL-tableColumnList-from">1.3 表列清单</a>
<ul style="padding: 0"> <li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_AUTHENTICATION_FAILED-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_AUTHENTICATION_FAILED-from">1.3.1 EPDC_PARTY_AUTHENTICATION_FAILED【党员认证失败表 党员认证失败表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REAL_NAME</td><td>姓名</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>MOBILE</td><td>手机号</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>IDENTITY_NO</td><td>身份证号</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>POST</td><td>职务 字典表dict_name</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>POST_VALUE</td><td>职务ID 字典表dict_value</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CADRE_FLAG</td><td>干部下沉标识 0-否,1-是</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>REGIST_FLAG</td><td>注册状态 0-否,1-是</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>REGIST_TIME</td><td>注册时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>STREET_NAME</td><td>街道名称</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>STREET_ID</td><td>街道ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>COMMUNITY_NAME</td><td>社区名称</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>COMMUNITY_ID</td><td>社区ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>GRID_NAME</td><td>网格名称</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>GRID_ID</td><td>网格ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>DEPT_ID</td><td>部门ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>STATE</td><td>状态 0-认证失败</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>PROCESSING_OPINIONS</td><td>处理意见</td><td>VARCHAR(500)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记 0-否,1-是</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>USER_ID</td><td>用户ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>ADDRESS</td><td>居民住址</td><td>VARCHAR(512)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_MEMBERS-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_MEMBERS-from">1.3.2 EPDC_PARTY_MEMBERS【党员表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REAL_NAME</td><td>姓名</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>MOBILE</td><td>手机号</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>IDENTITY_NO</td><td>身份证号</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>POST</td><td>职务(字典表dict_name)</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>POST_VALUE</td><td>职务ID(字典表dict_value)</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CADRE_FLAG</td><td>干部下沉标识(0-否,1-是)</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>REGIST_FLAG</td><td>注册状态(0-否,1-是)</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>REGIST_TIME</td><td>注册时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>STREET_NAME</td><td>街道名称</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>STREET_ID</td><td>街道ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>COMMUNITY_NAME</td><td>社区名称</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>COMMUNITY_ID</td><td>社区ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>GRID_NAME</td><td>网格名称</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>GRID_ID</td><td>网格ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>DEPT_ID</td><td>部门ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>ADDRESS</td><td>居民住址</td><td>VARCHAR(512)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_TAG_RELATION-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_PARTY_TAG_RELATION-from">1.3.3 EPDC_PARTY_TAG_RELATION【党员标签关系表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>PARTY_ID</td><td>党员ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>TAG_ID</td><td>标签ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER-from">1.3.4 EPDC_USER【用户信息表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>NICKNAME</td><td>昵称</td><td>VARCHAR(50)</td><td></td><td></td></tr>
<tr><td>MOBILE</td><td>手机号</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>PASSWORD</td><td>密码</td><td>VARCHAR(30)</td><td></td><td></td></tr>
<tr><td>REGISTER_TIME</td><td>注册时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>FACE_IMG</td><td>头像</td><td>VARCHAR(512)</td><td></td><td></td></tr>
<tr><td>SEX</td><td>性别(女性-0,男性-1)</td><td>VARCHAR(10)</td><td></td><td></td></tr>
<tr><td>BIRTHDAY</td><td>生日</td><td>DATE</td><td></td><td></td></tr>
<tr><td>EMAIL</td><td>邮箱</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>TELEPHONE</td><td>电话</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>ZIP_CODE</td><td>邮编</td><td>VARCHAR(10)</td><td></td><td></td></tr>
<tr><td>PROFESSION</td><td>职业</td><td>VARCHAR(50)</td><td></td><td></td></tr>
<tr><td>HOBBIES</td><td>爱好</td><td>VARCHAR(100)</td><td></td><td></td></tr>
<tr><td>USER_SIGN</td><td>个性签名</td><td>VARCHAR(100)</td><td></td><td></td></tr>
<tr><td>INVITATION_CODE</td><td>邀请码</td><td>VARCHAR(10)</td><td></td><td></td></tr>
<tr><td>LAST_LOGIN_TIME</td><td>最近登录时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>LAST_LOGIN_IP</td><td>最近登录IP</td><td>VARCHAR(50)</td><td></td><td></td></tr>
<tr><td>LAST_LONGITUDE</td><td>最近登录位置经度</td><td>VARCHAR(30)</td><td></td><td></td></tr>
<tr><td>LAST_LATITUDE</td><td>最近登录位置维度</td><td>VARCHAR(30)</td><td></td><td></td></tr>
<tr><td>REAL_NAME</td><td>真实姓名</td><td>VARCHAR(30)</td><td></td><td></td></tr>
<tr><td>IDENTITY_NO</td><td>身份证号</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>ROAD</td><td>所在道路(如山东路168号)</td><td>VARCHAR(64)</td><td></td><td></td></tr>
<tr><td>VILLAGE_NAME</td><td>小区名称</td><td>VARCHAR(64)</td><td></td><td></td></tr>
<tr><td>DWELLING_PLACE</td><td>住处(楼栋-单元-房间)</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>ADDRESS</td><td>居民住址</td><td>VARCHAR(512)</td><td></td><td></td></tr>
<tr><td>WX_OPEN_ID</td><td>微信OPENID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>WX_UNION_ID</td><td>微信unionId</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>PARTY_FLAG</td><td>是否是党员(0-否,1-是)</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REGISTER_WAY</td><td>注册方式(wx:微信注册)</td><td>VARCHAR(10)</td><td></td><td></td></tr>
<tr><td>REGISTER_SOURCE</td><td>用户来源(wp:公众号)</td><td>VARCHAR(10)</td><td></td><td></td></tr>
<tr><td>MOBILE_PROVINCE</td><td>手机号所属省份</td><td>VARCHAR(50)</td><td></td><td></td></tr>
<tr><td>MOBILE_CITY</td><td>手机号所属城市</td><td>VARCHAR(50)</td><td></td><td></td></tr>
<tr><td>MOBILE_CARRIER</td><td>手机号所属运营商</td><td>VARCHAR(50)</td><td></td><td></td></tr>
<tr><td>POINTS</td><td>用户积分</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>INVITE_USER_ID</td><td>邀请人ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>STATE</td><td>状态(0-已注册,1-已完善信息待审核,2-信息审核不通过,3-信息审核通过)</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>DISTRICT</td><td>区县</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>DISTRICT_ID</td><td>区县ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>STREET</td><td>街道</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>STREET_ID</td><td>街道ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>COMMUNITY</td><td>社区</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>COMMUNITY_ID</td><td>社区ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>GRID</td><td>网格</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>GRID_ID</td><td>网格ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>LAST_NAME</td><td></td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>FIRST_NAME</td><td></td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REMARK</td><td>审核备注</td><td>VARCHAR(255)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_AUTHENTICATE_HISTORY-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_AUTHENTICATE_HISTORY-from">1.3.5 EPDC_USER_AUTHENTICATE_HISTORY【用户认证历史表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>USER_ID</td><td>用户ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>MOBILE</td><td>手机号</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>REAL_NAME</td><td>姓名</td><td>VARCHAR(20)</td><td></td><td></td></tr>
<tr><td>ADDRESS</td><td>居民地址</td><td>VARCHAR(512)</td><td></td><td></td></tr>
<tr><td>AUTHENTICATED_FLAG</td><td>是否认证通过 0未通过1通过</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>REMARK</td><td>审核备注</td><td>VARCHAR(255)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记 0-否,1-是</td><td>VARCHAR(1)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_BEHAVIOR-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_BEHAVIOR-from">1.3.6 EPDC_USER_BEHAVIOR【用户行为表 用户行为表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>BEHAVIOR</td><td>行为</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>BEHAVIOR_TYPE</td><td>行为类型</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>USER_ID</td><td>用户ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REFERENCE_ID</td><td>引用ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_GRID_RELATION-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_GRID_RELATION-from">1.3.7 EPDC_USER_GRID_RELATION【网格长与网格关系表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>USER_ID</td><td>用户ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>DISTRICT</td><td>区县</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>DISTRICT_ID</td><td>区县ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>STREET_ID</td><td>街道ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>STREET</td><td>街道</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>COMMUNITY</td><td>社区</td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>COMMUNITY_ID</td><td>社区ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>GRID</td><td>所属网格</td><td>VARCHAR(64)</td><td></td><td></td></tr>
<tr><td>GRID_ID</td><td>网格ID</td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>SWITCHED_TIME</td><td>最后切换此网格的时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
<tr><td>LEADER_FLAG</td><td>是否是网格长 0-否,1-是</td><td>VARCHAR(1)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_MESSAGE-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_MESSAGE-from">1.3.8 EPDC_USER_MESSAGE【用户消息表 用户消息表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>MESS_TYPE</td><td>消息类型 审核通知、互动通知、项目通知</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>MESS_DETAIL_TYPE</td><td>消息详细类型</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>USER_ID</td><td>用户ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REFERENCE_ID</td><td>引用ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>ASSIST_REFERENCE_ID</td><td>辅助引用ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_TAG-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_TAG-from">1.3.9 EPDC_USER_TAG【用户标签表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>TAG_NAME</td><td>标签名</td><td>VARCHAR(50)</td><td></td><td></td></tr>
<tr><td>TAG_DESC</td><td>标签描述</td><td>VARCHAR(100)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_TAG_RELATION-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_TAG_RELATION-from">1.3.10 EPDC_USER_TAG_RELATION【用户标签关系表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>USER_ID</td><td>用户ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>TAG_ID</td><td>标签ID</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_WX_FORM_ID-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_USER_WX_FORM_ID-from">1.3.11 EPDC_USER_WX_FORM_ID【微信formId表】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td>主键</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>WX_OPEN_ID</td><td>微信openId</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>WX_FORM_ID</td><td>微信formId</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>REVISION</td><td>乐观锁</td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>CREATED_BY</td><td>创建人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>CREATED_TIME</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>UPDATED_BY</td><td>更新人</td><td>VARCHAR(32)</td><td></td><td></td></tr>
<tr><td>UPDATED_TIME</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr>
</table>
</li>
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-UNDO_LOG-to" href="module-DB_REVERSE_MYSQL-tableColumnList-UNDO_LOG-from">1.3.12 UNDO_LOG【】</a>
<table border="1" cellspacing="0">
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr>
<tr><td>ID</td><td></td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>BRANCH_ID</td><td></td><td>BIGINT(19)</td><td></td><td></td></tr>
<tr><td>XID</td><td></td><td>VARCHAR(100)</td><td></td><td></td></tr>
<tr><td>CONTEXT</td><td></td><td>VARCHAR(128)</td><td></td><td></td></tr>
<tr><td>ROLLBACK_INFO</td><td></td><td>LONGBLOB</td><td></td><td></td></tr>
<tr><td>LOG_STATUS</td><td></td><td>INT(10)</td><td></td><td></td></tr>
<tr><td>LOG_CREATED</td><td></td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>LOG_MODIFIED</td><td></td><td>DATETIME</td><td></td><td></td></tr>
<tr><td>EXT</td><td></td><td>VARCHAR(100)</td><td></td><td></td></tr>
</table>
</li>
</ul></li></ul><hr></li></ul></body>
</html>

2594
db/esua_epdc_user.pdman.json

File diff suppressed because it is too large

1
epdc-cloud-client-yushan

@ -0,0 +1 @@
Subproject commit cc0e5d4a31687b9224edc53d7b8d6414e7005d6a

1
epdc-cloud-commons-yushan

@ -0,0 +1 @@
Subproject commit f49128405cd591b9aab7f129df01518c5aea143e

1
epdc-cloud-gateway-yushan

@ -0,0 +1 @@
Subproject commit 29307425ebc6c065fa5c2559dd4aa1013a8a7a77

1
epdc-cloud-parent-yushan

@ -0,0 +1 @@
Subproject commit 7d5b8709e3fa8224b3463e120f7b79af1feea28c

20
epdc-cloud-user/Dockerfile

@ -0,0 +1,20 @@
# 基础镜像
FROM openjdk:8u242-jdk-buster
# 作者
MAINTAINER rongchao@elink-cn.com
# 对应pom.xml文件中的dockerfile-maven-plugin插件JAR_FILE的值
ARG JAR_FILE
# 对应pom.xml文件中的dockerfile-maven-plugin插件JAR_NAME的值
ARG JAR_NAME
# 对应pom.xml文件中的dockerfile-maven-plugin插件SERVER_PORT的值
ARG SERVER_PORT
# 复制打包完成后的jar文件到/opt目录下
ENV JAR_PATH /mnt/epdc/${JAR_NAME}.jar
ADD ${JAR_FILE} $JAR_PATH
# /data设为环境变量
ENV DATAPATH /data
# 挂载/data目录到主机
VOLUME $DATAPATH
# 启动容器时执行
ENTRYPOINT java -jar -Xmx1024m $JAR_PATH
EXPOSE ${SERVER_PORT}

251
epdc-cloud-user/pom.xml

@ -0,0 +1,251 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.esua.epdc.yushan</groupId>
<artifactId>epdc-cloud-parent-yushan</artifactId>
<version>1.0.0</version>
<relativePath>../epdc-cloud-parent-yushan</relativePath>
</parent>
<artifactId>epdc-cloud-user</artifactId>
<packaging>jar</packaging>
<description>榆山党群e事通微服务用户模块</description>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!--<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>-->
<!--RocketMQ-->
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
<version>2.0.3</version>
</dependency>
<!-- client start -->
<dependency>
<groupId>com.esua.epdc.yushan</groupId>
<artifactId>epdc-cloud-news-client</artifactId>
<version>${epdc-cloud-client.version}</version>
</dependency>
<dependency>
<groupId>com.esua.epdc.yushan</groupId>
<artifactId>epdc-cloud-admin-client</artifactId>
<version>${epdc-cloud-client.version}</version>
</dependency>
<dependency>
<groupId>com.esua.epdc.yushan</groupId>
<artifactId>epdc-cloud-user-client</artifactId>
<version>${epdc-cloud-client.version}</version>
</dependency>
<!-- client end -->
<!-- commons start -->
<dependency>
<groupId>com.esua.epdc.yushan</groupId>
<artifactId>epdc-commons-tools</artifactId>
<version>${epdc-cloud-commons.version}</version>
</dependency>
<dependency>
<groupId>com.esua.epdc.yushan</groupId>
<artifactId>epdc-commons-dynamic-datasource</artifactId>
<version>${epdc-cloud-commons.version}</version>
</dependency>
<dependency>
<groupId>com.esua.epdc.yushan</groupId>
<artifactId>epdc-commons-mybatis</artifactId>
<version>${epdc-cloud-commons.version}</version>
</dependency>
<!-- commons end -->
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
</plugin>
</plugins>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<resources>
<resource>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/application*.yml</include>
<include>**/*.properties</include>
<include>logback-spring.xml</include>
<include>registry.conf</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
<excludes>
<exclude>**/application*.yml</exclude>
<exclude>**/*.properties</exclude>
<exclude>logback-spring.xml</exclude>
<exclude>registry.conf</exclude>
</excludes>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<spring.profiles.active>dev</spring.profiles.active>
<docker.tag>dev</docker.tag>
<server.port>9068</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>47.104.224.45</spring.redis.host>
<spring.redis.port>6379</spring.redis.port>
<spring.redis.password>elink@888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://47.104.224.45:3308/esua_epdc_user?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
</spring.datasource.druid.url>
<spring.datasource.druid.username>epdc</spring.datasource.druid.username>
<spring.datasource.druid.password>elink833066</spring.datasource.druid.password>
<dynamic.datasource.first.url>
<![CDATA[jdbc:mysql://47.104.224.45:3308/esua_epdc_user?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
</dynamic.datasource.first.url>
<dynamic.datasource.first.username>epdc</dynamic.datasource.first.username>
<dynamic.datasource.first.password>elink833066</dynamic.datasource.first.password>
<nacos.register-enabled>false</nacos.register-enabled>
<nacos.server-addr>47.104.224.45:8848</nacos.server-addr>
<nacos.ip></nacos.ip>
<nacos.namespace>6a3577b4-7b79-43f6-aebb-9c3f31263f6a</nacos.namespace>
<!--RocketMQ-->
<rocketmq.name.server>47.104.85.99:9876;114.215.125.123:9876</rocketmq.name.server>
<rocketmq.consumer.group>organizationGroup</rocketmq.consumer.group>
</properties>
</profile>
<profile>
<id>test</id>
<properties>
<spring.profiles.active>test</spring.profiles.active>
<docker.tag>test</docker.tag>
<server.port>10014</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://47.104.224.45:3308/esua_epdc_user?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
</spring.datasource.druid.url>
<spring.datasource.druid.username>epdc</spring.datasource.druid.username>
<spring.datasource.druid.password>elink833066</spring.datasource.druid.password>
<dynamic.datasource.first.url>
<![CDATA[jdbc:mysql://47.104.224.45:3308/esua_epdc_user?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
</dynamic.datasource.first.url>
<dynamic.datasource.first.username>epdc</dynamic.datasource.first.username>
<dynamic.datasource.first.password>elink833066</dynamic.datasource.first.password>
<nacos.register-enabled>true</nacos.register-enabled>
<nacos.server-addr>47.104.224.45:8848</nacos.server-addr>
<nacos.ip>47.104.85.99</nacos.ip>
<nacos.namespace>6a3577b4-7b79-43f6-aebb-9c3f31263f6a</nacos.namespace>
<!--RocketMQ-->
<rocketmq.name.server>47.104.85.99:9876;114.215.125.123:9876</rocketmq.name.server>
<rocketmq.consumer.group>organizationGroup</rocketmq.consumer.group>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<spring.profiles.active>prod</spring.profiles.active>
<docker.tag>prod</docker.tag>
<server.port>9068</server.port>
<!-- redis配置 -->
<spring.redis.index>0</spring.redis.index>
<spring.redis.host>172.16.0.54</spring.redis.host>
<spring.redis.port>6379</spring.redis.port>
<spring.redis.password>Elink833066</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://172.16.0.52:3306/esua_epdc_user?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
</spring.datasource.druid.url>
<spring.datasource.druid.username>epdc</spring.datasource.druid.username>
<spring.datasource.druid.password>Elink@833066</spring.datasource.druid.password>
<dynamic.datasource.first.url>
<![CDATA[jdbc:mysql://172.16.0.54:3306/esua_epdc_user?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
</dynamic.datasource.first.url>
<dynamic.datasource.first.username>epdc</dynamic.datasource.first.username>
<dynamic.datasource.first.password>Elink@833066</dynamic.datasource.first.password>
<!-- nacos -->
<nacos.register-enabled>true</nacos.register-enabled>
<nacos.server-addr>172.16.0.52:8848</nacos.server-addr>
<nacos.ip></nacos.ip>
<nacos.namespace></nacos.namespace>
<!--RocketMQ-->
<rocketmq.name.server>172.16.0.52:9876;172.16.0.54:9876</rocketmq.name.server>
<rocketmq.consumer.group>organizationGroup</rocketmq.consumer.group>
</properties>
</profile>
</profiles>
</project>

31
epdc-cloud-user/src/main/java/com/elink/esua/epdc/UserApplication.java

@ -0,0 +1,31 @@
/**
* Copyright (c) 2018 人人开源 All rights reserved.
* <p>
* https://www.renren.io
* <p>
* 版权所有侵权必究
*/
package com.elink.esua.epdc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* APP用户模块
*
* @author Mark sunlightcs@gmail.com
* @since 1.1.0
*/
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class UserApplication {
public static void main(String[] args) {
SpringApplication.run(UserApplication.class, args);
}
}

33
epdc-cloud-user/src/main/java/com/elink/esua/epdc/async/NewsTask.java

@ -0,0 +1,33 @@
package com.elink.esua.epdc.async;
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO;
import com.elink.esua.epdc.feign.NewsFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
/**
* 志愿者审核结果通知消息模块 线程任务
*
* @author zy
* @date 2019/12/16 15:39
*/
@Component
public class NewsTask {
@Autowired
private NewsFeignClient newsFeignClient;
/**
* 志愿者审核结果消息推送到app
*
* @param informationDto
* @return void
* @author zy
* @date 2019/12/16 15:39
*/
@Async
public void insertUserInformation(EpdcInformationFormDTO informationDto) {
newsFeignClient.saveInformation(informationDto);
}
}

54
epdc-cloud-user/src/main/java/com/elink/esua/epdc/async/PartyTask.java

@ -0,0 +1,54 @@
package com.elink.esua.epdc.async;
import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ImportParams;
import com.alibaba.fastjson.JSON;
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils;
import com.elink.esua.epdc.config.StreamUtils;
import com.elink.esua.epdc.dto.PartyMembersDTO;
import com.elink.esua.epdc.entity.PartyMembersEntity;
import com.elink.esua.epdc.excel.PartyMembersExcel;
import com.elink.esua.epdc.service.PartyMembersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;
import java.io.File;
import java.util.List;
/**
* @author: qushutong
* @Date: 2019/10/24 16:00
* @Description: 党员导入异步
*/
@Component
public class PartyTask {
@Autowired
private PartyMembersService partyMembersService;
/***
* 批量插入党员
* @param file
* @return void
* @author qushutong
* @date 2019/10/24 16:02
*/
// @Async
// public void insertPartyList(MultipartFile file) {
// File f = StreamUtils.conversionFile(file);
// ImportParams importParams = new ImportParams();
// try {
// List<PartyMembersExcel> partyList = ExcelImportUtil.importExcel(f, PartyMembersExcel.class, importParams);
// partyMembersService.saveList(partyList);
// for (PartyMembersExcel partyMembers : partyList) {
// System.out.println("从Excel导入数据到数据库的详细为 :{}" + JSON.toJSONString(partyMembers));
// }
// System.out.println("从Excel导入数据一共 {} 行 " + partyList.size());
// } catch (Exception e1) {
// throw new RuntimeException("导入失败:{}" + e1.getMessage());
// }
// }
}

26
epdc-cloud-user/src/main/java/com/elink/esua/epdc/config/ModuleConfigImpl.java

@ -0,0 +1,26 @@
/**
* Copyright (c) 2018 人人开源 All rights reserved.
* <p>
* https://www.renren.io
* <p>
* 版权所有侵权必究
*/
package com.elink.esua.epdc.config;
import com.elink.esua.epdc.commons.tools.config.ModuleConfig;
import org.springframework.stereotype.Service;
/**
* 模块配置信息-生活服务模块
*
* @author Mark sunlightcs@gmail.com
* @since 1.0.0
*/
@Service
public class ModuleConfigImpl implements ModuleConfig {
@Override
public String getName() {
return "user";
}
}

56
epdc-cloud-user/src/main/java/com/elink/esua/epdc/config/StreamUtils.java

@ -0,0 +1,56 @@
package com.elink.esua.epdc.config;
import com.elink.esua.epdc.commons.tools.exception.RenException;
import org.springframework.web.multipart.MultipartFile;
import java.io.*;
/**
* 接收文件转化File
* Created by liuhongwei on 2019/6/21.
*/
public class StreamUtils {
public static File conversionFile(MultipartFile file){
File toFile =null;
InputStream ins = null;
try {
// 转化字节流
ins = file.getInputStream();
// 获取文件名字
toFile = new File(file.getOriginalFilename());
// 字节转化文件
inputStreamToFile(ins, toFile);
ins.close();
} catch (IOException e) {
new RenException(500,"文件转化失败");
}
return toFile;
}
/**
* 流转化
* @param ins file
* @return
* @author liuhongwei
* @date 2019/6/14 14:07
*/
public static void inputStreamToFile(InputStream ins, File file) {
try {
OutputStream os = new FileOutputStream(file);
int bytesRead = 0;
byte[] buffer = new byte[8192];
while ((bytesRead = ins.read(buffer, 0, 8192)) != -1) {
os.write(buffer, 0, bytesRead);
}
os.close();
ins.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}

423
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/EpdcAppUserController.java

@ -0,0 +1,423 @@
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.constant.Constant;
import com.elink.esua.epdc.commons.tools.security.user.SecurityUser;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.CachingUserInfoDTO;
import com.elink.esua.epdc.dto.UserDTO;
import com.elink.esua.epdc.dto.epdc.form.*;
import com.elink.esua.epdc.dto.epdc.result.*;
import com.elink.esua.epdc.service.UserInvitationRecordService;
import com.elink.esua.epdc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 对移动端开放
*
* @author yujintao
* @email yujintao@elink-cn.com
* @date 2019/9/6 20:31
*/
@RestController
@RequestMapping(Constant.EPDC_APP + "user")
public class EpdcAppUserController {
@Autowired
private UserService userService;
@Autowired
private UserInvitationRecordService userInvitationRecordService;
/**
* 根据用户openId获取用户信息(只查询已注册或审核中的用户)
*
* @param openId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/9/19 19:03
*/
@GetMapping("getByOpenId/{openId}")
public Result<UserDTO> getUserInfoByOpenId(@PathVariable("openId") String openId) {
return userService.getUserInfoByOpenId(openId);
}
/**
* 查询用户基础信息
*
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/10/26 15:13
*/
@GetMapping("getById/{userId}")
public Result<UserDTO> getUserInfoById(@PathVariable("userId") String userId) {
UserDTO dto = userService.get(userId);
return new Result().ok(dto);
}
/**
* 登录前获取用户信息
*
* @param openId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/9/24 13:57
*/
@GetMapping("getForLogin/{openId}")
public Result<UserDTO> getUserForLoginByOpenId(@PathVariable("openId") String openId) {
return userService.getUserForLoginByOpenId(openId);
}
/**
* 根据用户unionId获取用户信息(只查询已注册或审核中的用户)
*
* @param unionId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/9/19 19:03
*/
@GetMapping("getByUnionId/{unionId}")
public Result<UserDTO> getUserInfoByUnionId(@PathVariable("unionId") String unionId) {
return userService.getUserInfoByUnionId(unionId);
}
/**
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @Author yinzuomei
* @Description 获取用户信息 合并上面的getByUnionIdgetForLogin方法
* @Date 2019/12/7 13:57
**/
@PostMapping("queryUserDto")
public Result<UserDTO> queryUserDto(@RequestBody EpdcAppQueryUserInfoFormDTO formDTO) {
return userService.queryUserDto(formDTO);
}
/**
* 移动端用户注册
*
* @param userDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author yujintao
* @date 2019/9/7 14:20
*/
@PostMapping("regist")
public Result userRegister(@RequestBody UserDTO userDto) {
return userService.userRegister(userDto);
}
/**
* 网格长注册
*
* @param registerDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/10/23 09:34
*/
@PostMapping("gridLeaderRegister")
public Result<UserDTO> gridLeaderRegister(@RequestBody EpdcGridLeaderRegisterFormDTO registerDto) {
return userService.gridLeaderRegister(registerDto);
}
/***
* @Description 移动端获取用户信息
* @Author qushutong
* @Date 2019/9/9 17:00
* @Param [id]
* @Return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcUserInfoResultDTO>
* @Exception
*
*/
@GetMapping("getInfoById/{id}")
public Result<EpdcUserInfoResultDTO> getInfoById(@PathVariable("id") String id) {
return userService.getInfoById(id);
}
/***
* @Description 修改手机号 或者手机号
* @Author qushutong
* @Date 2019/9/9 17:12
* @Param [formDto]
* @Return com.elink.esua.epdc.commons.tools.utils.Result
* @Exception
*
*/
@PostMapping("updateMobileOrAvatar")
public Result updateMobileOrAvatar(@RequestBody UserDTO formDto) {
userService.updateMobileOrAvatar(formDto);
return new Result();
}
/**
* 验证用户提交的注册信息
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author work@yujt.net.cn
* @date 2019/9/21 11:03
*/
@Deprecated
@GetMapping("verify")
public Result verifyUserRegisterData(@RequestBody EpdcUserRegistFormDTO formDto) {
return userService.verifyUserRegisterData(formDto);
}
/**
* 用户注册审核之后查询用户审核结果用于发送服务消息和短信消息
*
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcUserRegisterAuditMsgResultDTO>
* @author work@yujt.net.cn
* @date 2019/9/27 09:13
*/
@GetMapping("registerResult/{userId}")
public Result<EpdcUserRegisterAuditMsgResultDTO> getUserRegisterAuditResult(@PathVariable("userId") String userId) {
return userService.getUserRegisterAuditResult(userId);
}
/**
* 社群添加好友列表
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcUserGroupInviteResultDTO>>
* @params [formDto]
* @author liuchuang
* @since 2019/10/23 16:22
*/
@GetMapping("getInviteUserList")
public Result<List<EpdcUserGroupInviteResultDTO>> getInviteUserList(@RequestBody EpdcUserGroupInviteFormDTO formDto) {
List<EpdcUserGroupInviteResultDTO> data = userService.listOfInviteUsers(formDto);
return new Result<List<EpdcUserGroupInviteResultDTO>>().ok(data);
}
/**
* 检查用户注册状态
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcCheckUserRegisterResultDTO>
* @params [fromDto]
* @author liuchuang
* @since 2019/10/25 11:11
*/
@GetMapping("checkUserRegister")
public Result<EpdcUserRegisterInfoResultDTO> getUserRegisterState(@RequestBody EpdcCheckUserRegisterFromDTO fromDto) {
return userService.checkUserRegisterState(fromDto);
}
/**
* 用户注册或绑定网格
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcUserRegisterInfoResultDTO>
* @params [fromDto]
* @author liuchuang
* @since 2019/10/25 14:30
*/
@PostMapping("registerOrBindGrid")
public Result<EpdcUserRegisterInfoResultDTO> registerOrBindGrid(@RequestBody EpdcUserRegisterBindGridFormDTO fromDto) {
return userService.saveUserOrBindGrid(fromDto);
}
/**
* 更新用户微信信息
*
* @param userDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author liuchuang
* @since 2019/10/25 17:10
*/
@PostMapping("updateWxInfo")
public Result<UserDTO> updateWxInfo(@RequestBody UserDTO userDto) {
// userDto 包含用户id,昵称,头像,性别,unionid,openid
UserDTO user = userService.updateWxInfo(userDto);
return new Result().ok(user);
}
/**
* 更新用户信息
*
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @params [userDTO]
* @author liuchuang
* @since 2019/10/25 17:10
*/
@PostMapping("updateUserInfo")
public Result updateUserInfo(@RequestBody UserDTO userDto) {
userService.update(userDto);
return new Result();
}
/**
* 验证用户完善个人信息时提交的数据校验成功返回用户当前状态
*
* @param userDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author work@yujt.net.cn
* @date 2019/9/21 11:03
*/
@GetMapping("verifyComplete")
public Result<String> verifyUserCompleteData(@RequestBody UserDTO userDto) {
return userService.verifyUserCompleteData(userDto);
}
/**
* 用户完善个人信息-保存
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author work@yujt.net.cn
* @date 2019/10/26 11:53
*/
@PostMapping("completeInfo")
public Result<UserDTO> completeUserInfo(@RequestBody EpdcAppUserCompleteInfoFormDTO formDto) {
return userService.completeUserInfo(formDto);
}
/**
* 获取居民详情已认证或待认证提交信息待审核的居民用户
*
* @param userId 用户Id
* @return
*/
@GetMapping("residentDetail/{userId}")
public Result<EpdcResidentDetailResultDTO> residentDetail(@PathVariable("userId") String userId) {
return userService.residentDetail(userId);
}
/**
* 获取党员详情已认证或未认证的党员用户
*
* @param userId
* @return
*/
@GetMapping("partyMemberDetail/{userId}")
public Result<EpdcPartyMemberDetailDto> partyMemberDetail(@PathVariable("userId") String userId) {
return userService.partyMemberDetail(userId);
}
/**
* 认证用户用户信息审核
*
* @param formDTO
* @return
*/
@PostMapping("authenticateResident")
public Result authenticateResident(@RequestBody EpdcAppAuthenticateResidentFormDTO formDTO) {
return userService.authenticateResident(formDTO);
}
/***
* 用户列表
* @param workUserFromDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcWorkUserResultFTO>
* @author qushutong
* @date 2019/11/18 13:47
*/
@GetMapping("listForWork")
public Result<List<EpdcWorkUserResultDTO>> listUserForWork(@RequestBody EpdcWorkUserFromDTO workUserFromDto) {
return userService.getWorkUserList(workUserFromDto);
}
/***
* 查询待认证用户数量
* @param fromDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.lang.Integer>
* @author qushutong
* @date 2019/11/19 13:25
*/
@GetMapping("unauthorizedAmount")
public Result<Integer> unauthorizedAmount(@RequestBody EpdcUnauthorizedAmountFromDTO fromDto) {
return userService.getUnauthorizedAmount(fromDto);
}
/**
* 获取邀请记录
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcUserGroupInviteResultDTO>>
* @params [formDto]
* @author liuchuang
* @since 2019/10/23 16:22
*/
@GetMapping("invitationRecord")
public Result<List<UserInvitationRecordResultDTO>> invitationRecord() {
List<UserInvitationRecordResultDTO> data = userInvitationRecordService.invitationRecord(SecurityUser.getUserId());
return new Result<List<UserInvitationRecordResultDTO>>().ok(data);
}
/**
* 获取用户最后一次切换的网格信息
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcUserRegisterInfoResultDTO>
* @params [openId]
* @author liuchuang
* @since 2019/12/6 11:01
*/
@GetMapping("lastSwitchGrid/{openId}")
public Result<EpdcUserRegisterInfoResultDTO> getUserLastSwitchGird(@PathVariable("openId") String openId) {
return userService.getUserLastSwitchGird(openId);
}
/**
* @param gridIdList
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcGridUserResultDTO>>
* @Author yinzuomei
* @Description 根据网格id查询网格下所有的用户
* @Date 2019/12/19 15:02
**/
@PostMapping("queryGroupUsers")
public Result<List<EpdcGridUserResultDTO>> queryGroupUsers(@RequestBody List<Long> gridIdList) {
return userService.listGridUserResultDTO(gridIdList);
}
/***
* 居民在防疫哨卡进行登记时上送数据并完善党群系统个人信息
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcGridUserResultDTO>>
* @author qushutong
* @date 2020/2/15 11:06
*/
@PostMapping("sentryPost/completeInfo")
public Result<List<EpdcGridUserResultDTO>> sentPidemicInfo(@RequestBody EpdcAppPidemicCompleteInfoFromDTO formDTO) {
return userService.createPidemicInfo(formDTO);
}
/***
* 完善企业信息必填表单 跟新用户
* @param
* @return Result<DeptOption>
* @author qushutong
* @date 2020/2/28 13:34
*/
@PostMapping("completeByEnterpriseInfo")
public Result completeRequisiteInfo(@RequestBody CompleteRequisiteUserInfoDTO fromDto) {
return userService.completeRequisiteInfo(fromDto);
}
/**
* 获取用户缓存信息
*
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.CachingUserInfoDTO>
* @author rongchao
* @since 2019-12-18
*/
@PostMapping("needCachingUserInfo")
public Result<CachingUserInfoDTO> needCachingUserInfo(@RequestBody EpdcAppQueryUserInfoFormDTO formDTO) {
return userService.queryCachingUserInfo(formDTO);
}
/**
* 根据用户ID获取用户缓存信息
*
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcUserRegisterInfoResultDTO>
* @author rongchao
* @since 2019-12-19
*/
@GetMapping("needCachingUserInfoByUserId/{userId}")
public Result<CachingUserInfoDTO> needCachingUserInfoByUserId(@PathVariable("userId") String userId) {
return userService.cachingUserInfoByUserId(userId);
}
}

92
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/EpdcAppUserWxFormIdController.java

@ -0,0 +1,92 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.constant.Constant;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.UserWxFormIdDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcDeleteWxFormIdFormDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcUserSaveWxFormIdFormDTO;
import com.elink.esua.epdc.service.UserWxFormIdService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* 微信formId表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-26
*/
@RestController
@RequestMapping(Constant.EPDC_APP + "wxformid")
public class EpdcAppUserWxFormIdController {
@Autowired
private UserWxFormIdService userWxFormIdService;
/***
* 完成推送之后删除用过的formid
* @param dto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author qushutong
* @date 2019/9/26 14:15
*/
@PostMapping("deleteById")
public Result deleteById(@RequestBody EpdcDeleteWxFormIdFormDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userWxFormIdService.deleteById(dto.getId());
return new Result();
}
/***
* 新增一条
* @param dto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author qushutong
* @date 2019/9/26 14:25
*/
@PostMapping("save")
public Result save(@RequestBody EpdcUserSaveWxFormIdFormDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
UserWxFormIdDTO userWxFormIdDTO = new UserWxFormIdDTO();
BeanUtils.copyProperties(dto, userWxFormIdDTO);
userWxFormIdService.save(userWxFormIdDTO);
return new Result();
}
/***
* 查出最新一条记录
* @param openId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserWxFormIdDTO>
* @author qushutong
* @date 2019/9/26 14:11
*/
@GetMapping("getByOpenId/{openId}")
public Result<UserWxFormIdDTO> get(@PathVariable("openId") String openId) {
UserWxFormIdDTO data = userWxFormIdService.getByOpenId(openId);
return new Result<UserWxFormIdDTO>().ok(data);
}
}

65
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/EpdcAppVolunteerInfoController.java

@ -0,0 +1,65 @@
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.constant.Constant;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.epdc.form.EpdcCompleteVolunteerInfoFormDTO;
import com.elink.esua.epdc.dto.epdc.result.EpdcGetVolunteerRankDTO;
import com.elink.esua.epdc.service.VolunteerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 对移动端开放
*
* @author wanggongfeng
* @date 2019/9/6 20:31
*/
@RestController
@RequestMapping(Constant.EPDC_APP + "volunteerinfo")
public class EpdcAppVolunteerInfoController {
@Autowired
private VolunteerInfoService volunteerInfoService;
/**
* 根据用户id 进行志愿者认证
* @param userId
* @author wanggongfeng
* @return
*/
@GetMapping("getVolunteerCountById/{userId}")
public Result<Integer> getVolunteerCountById(@PathVariable("userId") String userId) {
return volunteerInfoService.getVolunteerCountById(userId);
}
/**
* 插入一条志愿者数据
* @param epdcCompleteVolunteerInfoFormDTO
* @author wanggongfeng
* @return
*/
@GetMapping("insertVolunteerInfo")
public Result<Integer> insertVolunteerInfo(@RequestBody EpdcCompleteVolunteerInfoFormDTO epdcCompleteVolunteerInfoFormDTO) {
//效验数据
ValidatorUtils.validateEntity(epdcCompleteVolunteerInfoFormDTO, UpdateGroup.class, DefaultGroup.class);
Result<Integer> result = volunteerInfoService.insertVolunteerInfo(epdcCompleteVolunteerInfoFormDTO);
return result;
}
/**
* 获取排行榜数据
*
* @return
*/
@GetMapping("getRankingList")
public Result<List<EpdcGetVolunteerRankDTO>> getRankingList() {
return volunteerInfoService.getRankingList();
}
}

83
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/EpdcUserGridRelationController.java

@ -0,0 +1,83 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.constant.Constant;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.UserGridRelationDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcAppRemoveGridFormDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcLeaderSwitchGridFormDTO;
import com.elink.esua.epdc.dto.epdc.result.EpdcUserGridResultDTO;
import com.elink.esua.epdc.service.UserGridRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 网格长与网格关系表
*
* @author work@yujt.net.cn
* @since v1.0.0 2019-10-23
*/
@RestController
@RequestMapping(Constant.EPDC_APP + "usergrid")
public class EpdcUserGridRelationController {
@Autowired
private UserGridRelationService userGridRelationService;
/**
* 网格长小程序端切换网格
*
* @param switchGridDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserGridRelationDTO>
* @author work@yujt.net.cn
* @date 2019/10/23 11:04
*/
@GetMapping("userSwitchGrid")
public Result<UserGridRelationDTO> userSwitchGrid(@RequestBody EpdcLeaderSwitchGridFormDTO switchGridDto) {
return userGridRelationService.userSwitchGrid(switchGridDto);
}
/**
* 获取网格长管理的网格列表
*
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcUserGridResultDTO>>
* @author work@yujt.net.cn
* @date 2019/10/23 13:26
*/
@GetMapping("listUserGrid/{userId}")
public Result<List<EpdcUserGridResultDTO>> listGridForLeader(@PathVariable("userId") String userId) {
return userGridRelationService.listUserGridForApi(userId);
}
/**
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @Author yinzuomei
* @Description 解除与网格的关联
* @Date 2019/11/22 14:30
**/
@PostMapping("removeGrid")
public Result removeGrid(@RequestBody EpdcAppRemoveGridFormDTO formDto) {
return userGridRelationService.removeGrid(formDto);
}
}

98
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/PartyAuthenticationFailedController.java

@ -0,0 +1,98 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.mybatis.annotation.DataFilter;
import com.elink.esua.epdc.commons.tools.constant.FieldConstant;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.PartyAuthenticationFailedDTO;
import com.elink.esua.epdc.excel.PartyAuthenticationFailedExcel;
import com.elink.esua.epdc.service.PartyAuthenticationFailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 党员认证失败表 党员认证失败表
*
* @author gp gupeng@elink-cn.com
* @since v1.0.0 2019-11-15
*/
@RestController
@RequestMapping("partyauthenticationfailed")
public class PartyAuthenticationFailedController {
@Autowired
private PartyAuthenticationFailedService partyAuthenticationFailedService;
@GetMapping("page")
@DataFilter(tableAlias = "epaf", deptId = "grid_id", prefix = "AND", isPendingCreator = false)
public Result<PageData<PartyAuthenticationFailedDTO>> page(@RequestParam Map<String, Object> params) {
PageData<PartyAuthenticationFailedDTO> page = partyAuthenticationFailedService.page(params);
return new Result<PageData<PartyAuthenticationFailedDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<PartyAuthenticationFailedDTO> get(@PathVariable("id") String id) {
PartyAuthenticationFailedDTO data = partyAuthenticationFailedService.get(id);
return new Result<PartyAuthenticationFailedDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody PartyAuthenticationFailedDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
partyAuthenticationFailedService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody PartyAuthenticationFailedDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
partyAuthenticationFailedService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids) {
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
partyAuthenticationFailedService.delete(ids);
return new Result();
}
@GetMapping("export")
@DataFilter(tableAlias = "epaf", deptId = "grid_id", prefix = "AND", isPendingCreator = false)
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PartyAuthenticationFailedDTO> list = partyAuthenticationFailedService.list(params);
ExcelUtils.exportExcelToTarget(response, "认证失败党员", list, PartyAuthenticationFailedExcel.class);
}
}

179
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/PartyMembersController.java

@ -0,0 +1,179 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.mybatis.annotation.DataFilter;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.security.user.SecurityUser;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.PartyMembersDTO;
import com.elink.esua.epdc.excel.PartyMembersExcel;
import com.elink.esua.epdc.service.PartyMembersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 党员表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@RestController
@RequestMapping("/partymembers")
public class PartyMembersController {
@Autowired
private PartyMembersService partyMembersService;
/**
* 党员库
*
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.dto.PartyMembersDTO>>
* @author
* @date 2020/2/24 15:16
*/
@GetMapping("page")
public Result<PageData<PartyMembersDTO>> page(@RequestParam Map<String, Object> params) {
return partyMembersService.pageDIY(params);
}
/**
* 已认证党员列表
*
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.dto.PartyMembersDTO>>
* @author
* @date 2020/2/21 19:06
*/
@GetMapping("hasAuthenticationPartyPage")
@DataFilter(tableAlias = "eu", prefix = "AND", isPendingCreator = false)
public Result<PageData<PartyMembersDTO>> hasAuthenticationPartyPage(@RequestParam Map<String, Object> params) {
return partyMembersService.hasAuthenticationPartyPage(params);
}
@GetMapping("{id}")
public Result<PartyMembersDTO> get(@PathVariable("id") String id) {
PartyMembersDTO data = partyMembersService.get(id);
if (null != data && data.getTagIds() != null) {
data.setTagIdsNew(data.getTagIds().split(","));
}
return new Result<PartyMembersDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody PartyMembersDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
dto.setDeptId(SecurityUser.getDeptId());
partyMembersService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody PartyMembersDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
partyMembersService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids) {
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
return partyMembersService.delete(ids);
}
@GetMapping("export")
// @DataFilter(tableAlias = "pm", deptId = "grid_id", prefix = "AND")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PartyMembersDTO> list = partyMembersService.list(params);
ExcelUtils.exportExcelToTarget(response, "党员管理", list, PartyMembersExcel.class);
}
/***
* 批量导入
* @param file
* @return java.lang.String
* @author qushutong
* @date 2019/10/24 14:55
*/
@PostMapping("importExcel")
public Result importExcel(@RequestParam("file") MultipartFile file) {
return partyMembersService.insertPartyList(file);
}
/***
* 导出模板
* @param params
* @param response
* @return void
* @author qushutong
* @date 2019/11/1 17:14
*/
@GetMapping("exportMoudle")
public void exportMoudle(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PartyMembersDTO> list = partyMembersService.exportMoudle();
ExcelUtils.exportExcelToTarget(response, "党员模板", list, PartyMembersExcel.class);
}
/***
* 已认证党员导出
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.dto.PartyMembersDTO>>
* @author qushutong
* @date 2019/12/29 14:43
*/
@GetMapping("hasAuthenticationexport")
@DataFilter(tableAlias = "pm", deptId = "grid_id", prefix = "AND", isPendingCreator = false)
public void hasAuthenticationexport(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
ExcelUtils.exportExcelToTarget(response, "已认证党员", partyMembersService.exportHasMoudle(params), PartyMembersExcel.class);
}
/***
* 已认证党员优化
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.dto.PartyMembersDTO>>
* @author qushutong
* @date 2020/3/19 13:34
*/
@GetMapping("optimizeHasAuthenticationPartyPage")
@DataFilter(tableAlias = "eu", prefix = "AND", isPendingCreator = false)
public Result<PageData<PartyMembersDTO>> optimizeHasAuthenticationPartyPage(@RequestParam Map<String, Object> params) {
return partyMembersService.optimizeHasAuthenticationPartyPage(params);
}
}

102
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/PartyTagRelationController.java

@ -0,0 +1,102 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.PartyTagRelationDTO;
import com.elink.esua.epdc.excel.PartyTagRelationExcel;
import com.elink.esua.epdc.service.PartyTagRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 党员标签关系表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-04
*/
@RestController
@RequestMapping("/partytagrelation")
public class PartyTagRelationController {
@Autowired
private PartyTagRelationService partyTagRelationService;
@GetMapping("page")
public Result<PageData<PartyTagRelationDTO>> page(@RequestParam Map<String, Object> params){
PageData<PartyTagRelationDTO> page = partyTagRelationService.page(params);
return new Result<PageData<PartyTagRelationDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<PartyTagRelationDTO> get(@PathVariable("id") String id){
PartyTagRelationDTO data = partyTagRelationService.get(id);
return new Result<PartyTagRelationDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody PartyTagRelationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
partyTagRelationService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody PartyTagRelationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
partyTagRelationService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
partyTagRelationService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PartyTagRelationDTO> list = partyTagRelationService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, PartyTagRelationExcel.class);
}
}

126
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserAuthenticateHistoryController.java

@ -0,0 +1,126 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.constant.Constant;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.UserAuthenticateHistoryDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcAuthenticateHistoryFormDTO;
import com.elink.esua.epdc.dto.epdc.result.EpdcAuthenticateHistoryResultDTO;
import com.elink.esua.epdc.entity.UserAuthenticateHistoryEntity;
import com.elink.esua.epdc.excel.UserAuthenticateHistoryExcel;
import com.elink.esua.epdc.service.UserAuthenticateHistoryService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 用户认证历史表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-11-21
*/
@RestController
@RequestMapping("userauthenticatehistory")
public class UserAuthenticateHistoryController {
@Autowired
private UserAuthenticateHistoryService userAuthenticateHistoryService;
@GetMapping("page")
public Result<PageData<UserAuthenticateHistoryDTO>> page(@RequestParam Map<String, Object> params){
PageData<UserAuthenticateHistoryDTO> page = userAuthenticateHistoryService.page(params);
return new Result<PageData<UserAuthenticateHistoryDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<UserAuthenticateHistoryDTO> get(@PathVariable("id") String id){
UserAuthenticateHistoryDTO data = userAuthenticateHistoryService.get(id);
return new Result<UserAuthenticateHistoryDTO>().ok(data);
}
/**
* @param userId 用户id
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.UserAuthenticateHistoryDTO>>
* @Author yinzuomei
* @Description 根据用户id查询认证历史记录
* @Date 2019/11/21 13:59
**/
@GetMapping("listUserAuthenticateHistory/{userId}")
public Result<List<UserAuthenticateHistoryEntity>> listUserAuthenticateHistory(@PathVariable("userId") String userId) {
if (StringUtils.isBlank(userId)) {
return new Result().error("用户id不能为空");
}
List<UserAuthenticateHistoryEntity> list = userAuthenticateHistoryService.listUserAuthenticateHistory(userId);
return new Result<List<UserAuthenticateHistoryEntity>>().ok(list);
}
@PostMapping
public Result save(@RequestBody UserAuthenticateHistoryDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
userAuthenticateHistoryService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody UserAuthenticateHistoryDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userAuthenticateHistoryService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userAuthenticateHistoryService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserAuthenticateHistoryDTO> list = userAuthenticateHistoryService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, UserAuthenticateHistoryExcel.class);
}
/**
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAuthenticateHistoryResultDTO>>
* @Author yinzuomei
* @Description 用户认证审核历史
* @Date 2019/11/22 13:17
**/
@GetMapping("authenticateHistory")
public Result<List<EpdcAuthenticateHistoryResultDTO>> authenticateHistory(@RequestBody EpdcAuthenticateHistoryFormDTO formDTO) {
return userAuthenticateHistoryService.authenticateHistory(formDTO);
}
}

94
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserCarInfoController.java

@ -0,0 +1,94 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.epdc.UserCarInfoDTO;
import com.elink.esua.epdc.excel.UserCarInfoExcel;
import com.elink.esua.epdc.service.UserCarInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 用户车辆信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-02-15
*/
@RestController
@RequestMapping("usercarinfo")
public class UserCarInfoController {
@Autowired
private UserCarInfoService userCarInfoService;
@GetMapping("page")
public Result<PageData<UserCarInfoDTO>> page(@RequestParam Map<String, Object> params){
PageData<UserCarInfoDTO> page = userCarInfoService.page(params);
return new Result<PageData<UserCarInfoDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<UserCarInfoDTO> get(@PathVariable("id") String id){
UserCarInfoDTO data = userCarInfoService.get(id);
return new Result<UserCarInfoDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody UserCarInfoDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
userCarInfoService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody UserCarInfoDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userCarInfoService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userCarInfoService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserCarInfoDTO> list = userCarInfoService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, UserCarInfoExcel.class);
}
}

286
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserController.java

@ -0,0 +1,286 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.mybatis.annotation.DataFilter;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.PartyMemberModifyFormDTO;
import com.elink.esua.epdc.dto.UserDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcUserPointsFormDTO;
import com.elink.esua.epdc.enums.AppUserStatesEnum;
import com.elink.esua.epdc.excel.UserExcel;
import com.elink.esua.epdc.service.UserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.List;
import java.util.Map;
/**
* 用户信息表
*
* @author qu qu@gmail.com
* @since v1.0.0 2019-09-02
*/
@RestController
@RequestMapping("user")
public class UserController {
@Autowired
private UserService userService;
@GetMapping("page")
@DataFilter(tableAlias = "ug", isPendingCreator = false, deptId = "GRID_ID", prefix = "AND")
public Result<PageData<UserDTO>> page(@RequestParam Map<String, Object> params) {
PageData<UserDTO> page = userService.page(params);
return new Result<PageData<UserDTO>>().ok(page);
}
/**
*
* 待认证党员列表
*
* @params [params]
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData<com.elink.esua.epdc.dto.UserDTO>>
* @author liuchuang
* @since 2020/3/24 15:47
*/
@GetMapping("waitPartyPage")
@DataFilter(tableAlias = "u", isPendingCreator = false, deptId = "DEPT_ID", prefix = "AND")
public Result<PageData<UserDTO>> waitPartyPage(@RequestParam Map<String, Object> params) {
PageData<UserDTO> page = userService.waitPartyPage(params);
return new Result<PageData<UserDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<UserDTO> get(@PathVariable("id") String id) {
UserDTO data = userService.get(id);
return new Result<UserDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody UserDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
userService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody UserDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userService.update(dto);
return new Result();
}
/**
* 审核
*
* @param dto
* @return
*/
@PostMapping("audit")
public Result audit(@RequestBody UserDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userService.audit(dto);
return new Result();
}
/**
*
* 党员认证
*
* @params [dto]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author liuchuang
* @since 2020/3/24 15:58
*/
@PostMapping("partyReview")
public Result partyReview(@RequestBody UserDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
return userService.partyReview(dto);
}
/**
*
* 党员认证通过并更新党员库信息
*
* @params [dto]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author liuchuang
* @since 2020/3/24 19:38
*/
@PostMapping("updatePartyInfo")
public Result updatePartyInfo(@RequestBody PartyMemberModifyFormDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
if (StringUtils.isEmpty(dto.getPartyMemberId())) {
return new Result().error("党员ID不能为空");
}
return userService.modifyPartyInfo(dto);
}
/**
*
* 新增党员信息并认证通过
*
* @params [dto]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author liuchuang
* @since 2020/3/25 14:31
*/
@PostMapping("insertPartyInfo")
public Result insertPartyInfo(@RequestBody PartyMemberModifyFormDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
return userService.addPartyInfo(dto);
}
@DeleteMapping
public Result delete(@RequestBody String[] ids) {
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userService.delete(ids);
return new Result();
}
@GetMapping("export")
@DataFilter(tableAlias = "u", isPendingCreator = false, deptId = "DEPT_ID", prefix = "AND")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserDTO> list = userService.list(params);
String auditState = (String) params.get("state");
// 状态(0-未审核,1-审核通过,2-审核未通过)
String fileName = null;
if (AppUserStatesEnum.STATE_COMPLETED_INFORMATION_PENDING_REVIEW.value().equals(auditState)) {
fileName = "待认证居民";
} else if (AppUserStatesEnum.STATE_INFORMATION_PASSED.value().equals(auditState)) {
fileName = "已认证居民";
} else if (AppUserStatesEnum.STATE_INFORMATION_NOT_PASSED.value().equals(auditState)) {
fileName = "居民认证失败";
} else if (AppUserStatesEnum.STATE_REGISTERED.value().equals(auditState)) {
fileName = "未认证居民";
}
ExcelUtils.exportExcelToTarget(response, fileName, list, UserExcel.class);
}
/**
*
* 待认证党员导出
*
* @params [params, response]
* @return void
* @author liuchuang
* @since 2020/3/24 16:00
*/
@GetMapping("exportWaitParty")
@DataFilter(tableAlias = "u", isPendingCreator = false, deptId = "DEPT_ID", prefix = "AND")
public void exportWaitParty(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserDTO> list = userService.listOfWaitParty(params);
ExcelUtils.exportExcelToTarget(response, "待认证党员", list, UserExcel.class);
}
/***
* 未认证导出
* @param params
* @param response
* @return void
* @author qushutong
* @date 2020/3/18 15:59
*/
@GetMapping("unauthorizedexport")
@DataFilter(tableAlias = "ug", isPendingCreator = false, deptId = "GRID_ID", prefix = "AND")
public void unauthorizedExport(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserDTO> list = userService.list(params);
ExcelUtils.exportExcelToTarget(response, "未认证居民", list, UserExcel.class);
}
/***
* 批量导入
* @param file
* @return java.lang.String
* @author qushutong
* @date 2019/10/24 14:55
*/
@PostMapping("importExcel")
public Result importExcel(@RequestParam("file") MultipartFile file, @RequestParam Map<String, Object> params) {
return userService.insertUserList(file, params);
}
/**
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @Author yinzuomei
* @Description 根据操作类型更新用户积分
* @Date 2019/12/13 15:01
**/
@PostMapping("handleUserPoints")
public Result<UserDTO> handleUserPoints(@RequestBody @Valid EpdcUserPointsFormDTO formDTO) {
return userService.handleUserPoints(formDTO);
}
/***
* 展示所有的
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.dto.UserDTO>>
* @author qushutong
* @date 2020/3/16 10:51
*/
@GetMapping("alluserpage")
public Result<PageData<UserDTO>> alluserpage(@RequestParam Map<String, Object> params) {
PageData<UserDTO> page = userService.allUserPage(params);
return new Result<PageData<UserDTO>>().ok(page);
}
/***
* 已认证居民
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.dto.UserDTO>>
* @author qushutong
* @date 2020/3/16 16:54
*/
@GetMapping("authenticatedpage")
@DataFilter(tableAlias = "u", isPendingCreator = false, deptId = "DEPT_ID", prefix = "AND")
public Result<PageData<UserDTO>> authenticatedpage(@RequestParam Map<String, Object> params) {
PageData<UserDTO> page = userService.authenticatedpage(params);
return new Result<PageData<UserDTO>>().ok(page);
}
}

135
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserGridInvitationCodeController.java

@ -0,0 +1,135 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.UserGridInvitationCodeDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcUserGridInvitationCodeFormDTO;
import com.elink.esua.epdc.excel.UserGridInvitationCodeExcel;
import com.elink.esua.epdc.service.UserGridInvitationCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 用户网格邀请码表 用户网格邀请码表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-03-01
*/
@RestController
@RequestMapping("usergridinvitationcode")
public class UserGridInvitationCodeController {
@Autowired
private UserGridInvitationCodeService userGridInvitationCodeService;
@GetMapping("page")
public Result<PageData<UserGridInvitationCodeDTO>> page(@RequestParam Map<String, Object> params){
PageData<UserGridInvitationCodeDTO> page = userGridInvitationCodeService.page(params);
return new Result<PageData<UserGridInvitationCodeDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<UserGridInvitationCodeDTO> get(@PathVariable("id") String id){
UserGridInvitationCodeDTO data = userGridInvitationCodeService.get(id);
return new Result<UserGridInvitationCodeDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody UserGridInvitationCodeDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
userGridInvitationCodeService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody UserGridInvitationCodeDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userGridInvitationCodeService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userGridInvitationCodeService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserGridInvitationCodeDTO> list = userGridInvitationCodeService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, UserGridInvitationCodeExcel.class);
}
/**
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserGridInvitationCodeDTO>
* @param formDTO
* @Author yinzuomei
* @Description 查询用户邀请码生成记录
* @Date 2020/3/1 17:44
**/
@PostMapping("getUserGridInvitationCodeDTO")
public Result<UserGridInvitationCodeDTO> getUserGridInvitationCodeDTO(@RequestBody EpdcUserGridInvitationCodeFormDTO formDTO){
ValidatorUtils.validateEntity(formDTO);
return userGridInvitationCodeService.getUserGridInvitationCodeDTO(formDTO);
}
/**
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @param dto
* @Author yinzuomei
* @Description 回写用户网格邀请码表
* @Date 2020/3/1 18:00
**/
@PostMapping("updateInvitationCodeUrl")
public Result updateInvitationCodeUrl(@RequestBody UserGridInvitationCodeDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userGridInvitationCodeService.update(dto);
return new Result();
}
/**
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserGridInvitationCodeDTO>
* @param id
* @Author yinzuomei
* @Description 根据用户网格邀请码表主键查询记录
* @Date 2020/3/1 16:32
**/
@GetMapping("queryUserGridInvitationCodeDTO/{id}")
public Result<UserGridInvitationCodeDTO> queryUserGridInvitationCodeDTO(@PathVariable("id") String id){
UserGridInvitationCodeDTO data = userGridInvitationCodeService.get(id);
return new Result<UserGridInvitationCodeDTO>().ok(data);
}
}

105
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserGridRelationController.java

@ -0,0 +1,105 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.UserGridRelationDTO;
import com.elink.esua.epdc.service.UserGridRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
/**
* 网格长与网格关系表
*
* @author work@yujt.net.cn
* @since v1.0.0 2019-10-23
*/
@RestController
@RequestMapping("usergrid")
public class UserGridRelationController {
@Autowired
private UserGridRelationService userGridRelationService;
@GetMapping("page")
public Result<PageData<UserGridRelationDTO>> page(@RequestParam Map<String, Object> params){
PageData<UserGridRelationDTO> page = userGridRelationService.page(params);
return new Result<PageData<UserGridRelationDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<UserGridRelationDTO> get(@PathVariable("id") String id){
UserGridRelationDTO data = userGridRelationService.get(id);
return new Result<UserGridRelationDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody UserGridRelationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
userGridRelationService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody UserGridRelationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userGridRelationService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userGridRelationService.delete(ids);
return new Result();
}
@GetMapping("listUserGrid/{userId}")
public Result<List<UserGridRelationDTO>> listUserGrid(@PathVariable("userId") String userId){
List<UserGridRelationDTO> data = userGridRelationService.listUserGrid(userId);
return new Result<List<UserGridRelationDTO>>().ok(data);
}
/**
* @param id epdc_user_grid_relation表主键
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @Author yinzuomei
* @Description 解绑
* @Date 2019/11/21 19:00
**/
@GetMapping("unbindGridHandle/{id}")
public Result unbindGridHandle(@PathVariable("id") String id) {
userGridRelationService.unbindGridHandle(id);
return new Result();
}
}

94
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserInvitationRecordController.java

@ -0,0 +1,94 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.UserInvitationRecordDTO;
import com.elink.esua.epdc.excel.UserInvitationRecordExcel;
import com.elink.esua.epdc.service.UserInvitationRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 用户邀请记录表 用户邀请记录表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-02
*/
@RestController
@RequestMapping("userinvitationrecord")
public class UserInvitationRecordController {
@Autowired
private UserInvitationRecordService userInvitationRecordService;
@GetMapping("page")
public Result<PageData<UserInvitationRecordDTO>> page(@RequestParam Map<String, Object> params){
PageData<UserInvitationRecordDTO> page = userInvitationRecordService.page(params);
return new Result<PageData<UserInvitationRecordDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<UserInvitationRecordDTO> get(@PathVariable("id") String id){
UserInvitationRecordDTO data = userInvitationRecordService.get(id);
return new Result<UserInvitationRecordDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody UserInvitationRecordDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
userInvitationRecordService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody UserInvitationRecordDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userInvitationRecordService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userInvitationRecordService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserInvitationRecordDTO> list = userInvitationRecordService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, UserInvitationRecordExcel.class);
}
}

103
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserTagController.java

@ -0,0 +1,103 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.UserTagDTO;
import com.elink.esua.epdc.excel.UserTagExcel;
import com.elink.esua.epdc.service.UserTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 用户标签表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@RestController
@RequestMapping("/usertag")
public class UserTagController {
@Autowired
private UserTagService userTagService;
@GetMapping("page")
public Result<PageData<UserTagDTO>> page(@RequestParam Map<String, Object> params){
PageData<UserTagDTO> page = userTagService.page(params);
return new Result<PageData<UserTagDTO>>().ok(page);
}
@GetMapping("list")
public Result<List<UserTagDTO>> list(@RequestParam Map<String, Object> params){
List<UserTagDTO> list = userTagService.list(params);
return new Result<List<UserTagDTO>>().ok(list);
}
@GetMapping("{id}")
public Result<UserTagDTO> get(@PathVariable("id") String id){
UserTagDTO data = userTagService.get(id);
return new Result<UserTagDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody UserTagDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
return userTagService.save(dto);
}
@PutMapping
public Result update(@RequestBody UserTagDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
return userTagService.update(dto);
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userTagService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserTagDTO> list = userTagService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, UserTagExcel.class);
}
}

94
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserTagRelationController.java

@ -0,0 +1,94 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.UserTagRelationDTO;
import com.elink.esua.epdc.excel.UserTagRelationExcel;
import com.elink.esua.epdc.service.UserTagRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 用户标签关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-30
*/
@RestController
@RequestMapping("usertagrelation")
public class UserTagRelationController {
@Autowired
private UserTagRelationService userTagRelationService;
@GetMapping("page")
public Result<PageData<UserTagRelationDTO>> page(@RequestParam Map<String, Object> params){
PageData<UserTagRelationDTO> page = userTagRelationService.page(params);
return new Result<PageData<UserTagRelationDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<UserTagRelationDTO> get(@PathVariable("id") String id){
UserTagRelationDTO data = userTagRelationService.get(id);
return new Result<UserTagRelationDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody UserTagRelationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
userTagRelationService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody UserTagRelationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userTagRelationService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userTagRelationService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserTagRelationDTO> list = userTagRelationService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, UserTagRelationExcel.class);
}
}

94
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/UserWxFormIdController.java

@ -0,0 +1,94 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.UserWxFormIdDTO;
import com.elink.esua.epdc.excel.UserWxFormIdExcel;
import com.elink.esua.epdc.service.UserWxFormIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 用户标签表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-26
*/
@RestController
@RequestMapping("userwxformid")
public class UserWxFormIdController {
@Autowired
private UserWxFormIdService userWxFormIdService;
@GetMapping("page")
public Result<PageData<UserWxFormIdDTO>> page(@RequestParam Map<String, Object> params){
PageData<UserWxFormIdDTO> page = userWxFormIdService.page(params);
return new Result<PageData<UserWxFormIdDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<UserWxFormIdDTO> get(@PathVariable("id") String id){
UserWxFormIdDTO data = userWxFormIdService.get(id);
return new Result<UserWxFormIdDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody UserWxFormIdDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
userWxFormIdService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody UserWxFormIdDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
userWxFormIdService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
userWxFormIdService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<UserWxFormIdDTO> list = userWxFormIdService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, UserWxFormIdExcel.class);
}
}

183
epdc-cloud-user/src/main/java/com/elink/esua/epdc/controller/VolunteerInfoController.java

@ -0,0 +1,183 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.VolunteerInfoDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcVolunteerKindnessTimeFormDTO;
import com.elink.esua.epdc.dto.epdc.result.EpdcAdjustVolunteerPointsDTO;
import com.elink.esua.epdc.excel.VolunteerInfoExcel;
import com.elink.esua.epdc.service.UserTagService;
import com.elink.esua.epdc.service.VolunteerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 志愿者信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-11
*/
@RestController
@RequestMapping("volunteerinfo")
public class VolunteerInfoController {
@Autowired
private VolunteerInfoService volunteerInfoService;
@Autowired
private UserTagService userTagService; //标签表
/**
* @Description: 查询志愿者列表数据
* @Param: [params]
* @return: com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.dto.VolunteerInfoDTO>>
* @Author: zy
* @Date: 2019-12-17
*/
@GetMapping("page")
public Result<PageData<VolunteerInfoDTO>> page(@RequestParam Map<String, Object> params) {
PageData<VolunteerInfoDTO> page = volunteerInfoService.volunteerInfo(params);
return new Result<PageData<VolunteerInfoDTO>>().ok(page);
}
/**
* @Description: 根据志愿者ID查询志愿者 信息详情
* 积分需要连user表查询
* @Param: [id]
* @return: com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.VolunteerInfoDTO>
* @Author: zy
* @Date: 2019-12-17
*/
@GetMapping("getVolunteerDetail/{id}")
public Result<VolunteerInfoDTO> getVolunteerDetail(@PathVariable("id") String id) {
VolunteerInfoDTO data = volunteerInfoService.getVolunteerDetail(id);
return new Result<VolunteerInfoDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody VolunteerInfoDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
volunteerInfoService.save(dto);
return new Result();
}
@GetMapping("{id}")
public Result<VolunteerInfoDTO> get(@PathVariable("id") String id) {
VolunteerInfoDTO data = volunteerInfoService.get(id);
return new Result<VolunteerInfoDTO>().ok(data);
}
/**
* @Description: 志愿者 申请审批
* 审批不通过拉入黑名单清除用户标签关系表,志愿者标签,并进行消息推送
* @Param: [dto]
* @return: com.elink.esua.epdc.commons.tools.utils.Result
* @Author: zy
* @Date: 2019-12-17
*/
@PostMapping("volunteerInfoCheck")
public Result volunteerInfoCheck(@RequestBody VolunteerInfoDTO dto) {
return volunteerInfoService.volunteerInfoCheck(dto);
}
@PutMapping
public Result update(@RequestBody VolunteerInfoDTO dto) {
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
volunteerInfoService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids) {
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
volunteerInfoService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<VolunteerInfoDTO> list = volunteerInfoService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, VolunteerInfoExcel.class);
}
/**
* @param id
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcAdjustVolunteerPointsDTO>
* @Author yinzuomei
* @Description 积分调整按钮按下, 查询用户信息
* @Date 2019/12/16 17:48
**/
@GetMapping("queryById/{id}")
public Result<EpdcAdjustVolunteerPointsDTO> queryByUserId(@PathVariable("id") String id) {
return volunteerInfoService.getAdjustVolunteerPointsDTO(id);
}
/**
* @param userId 用户主键
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.lang.String>
* @Author yinzuomei
* @Description 根据用户主键获取用用户认证志愿者标识0-待审核1-认证通过2-待认证3-黑名单
* @Date 2020/2/5 16:48
**/
@GetMapping("queryUserVolunteerFlag/{userId}")
public Result<String> queryUserVolunteerFlag(@PathVariable("userId") String userId) {
return volunteerInfoService.queryUserVolunteerFlag(userId);
}
/**
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.VolunteerInfoDTO>
* @Author yinzuomei
* @Description 根据用户id查询志愿者信息
* @Date 2020/2/6 12:23
**/
@GetMapping("getVolunteerInfoDTOByUserId/{userId}")
public Result<VolunteerInfoDTO> getVolunteerInfoDTOByUserId(@PathVariable("userId") String userId) {
return volunteerInfoService.getVolunteerInfoDTOByUserId(userId);
}
/**
* 增加志愿者爱心时长
*
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @params [formDto]
* @author liuchuang
* @since 2020/2/7 18:40
*/
@PostMapping("addKindnessTime")
public Result addKindnessTime(@RequestBody EpdcVolunteerKindnessTimeFormDTO formDto) {
return volunteerInfoService.modifyVolunteerKindnessTime(formDto);
}
}

67
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/PartyAuthenticationFailedDao.java

@ -0,0 +1,67 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.PartyAuthenticationFailedDTO;
import com.elink.esua.epdc.entity.PartyAuthenticationFailedEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
/**
* 党员认证失败表 党员认证失败表
*
* @author gp gupeng@elink-cn.com
* @since v1.0.0 2019-11-15
*/
@Mapper
public interface PartyAuthenticationFailedDao extends BaseDao<PartyAuthenticationFailedEntity> {
/**
* 查询认证失败的党员列表
* @params params
* @return java.util.List<com.elink.esua.epdc.dto.UserDTO>
* @author gp
* @date 2019-11-18
*/
List<PartyAuthenticationFailedDTO> selectListDto(Map<String, Object> params);
/**
*
* 查询需要修改的组织机构信息
*
* @params [deptId]
* @return java.util.List<com.elink.esua.epdc.dto.PartyAuthenticationFailedDTO>
* @author liuchuang
* @since 2020/3/7 15:31
*/
List<PartyAuthenticationFailedDTO> selectListOfOrganizationInfo(String deptId);
/**
*
* 更新网格名称
*
* @params [newDeptName, deptId]
* @return void
* @author liuchuang
* @since 2020/3/7 1:20
*/
void updateGridByDeptId(String newDeptName, Long deptId);
}

96
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/PartyMembersDao.java

@ -0,0 +1,96 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.PartyMembersDTO;
import com.elink.esua.epdc.entity.PartyMembersEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* 党员表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@Mapper
public interface PartyMembersDao extends BaseDao<PartyMembersEntity> {
List<PartyMembersDTO> pageDIY(Map<String, Object> params);
PartyMembersDTO selectByIdNew(String id);
List<PartyMembersDTO> hasAuthenticationPartyPage(Map<String, Object> params);
/**
*
* 查询需要修改的组织机构信息
*
* @params [deptId]
* @return java.util.List<com.elink.esua.epdc.dto.PartyMembersDTO>
* @author liuchuang
* @since 2020/3/7 15:31
*/
List<PartyMembersDTO> selectListOfOrganizationInfo(String deptId);
/**
*
* 更新网格名称
*
* @params [newDeptName, deptId]
* @return void
* @author liuchuang
* @since 2020/3/7 1:20
*/
void updateGridByDeptId(String newDeptName, Long deptId);
/***
* 已认证党员查询优化
* @param
* @return java.util.List<java.lang.String>
* @author qushutong
* @date 2020/3/19 13:32
*/
List<String> optimizeHasAuthenticationPartyPage(Map<String, Object> params);
/***
* 已认证党员查询优化
* @param
* @return java.util.List<com.elink.esua.epdc.dto.PartyMembersDTO>
* @author qushutong
* @date 2020/3/19 13:33
*/
List<PartyMembersDTO> optimizeHasAuthenticationPartyPageInfo(@Param("userIdList") List<String> userIdList);
/***
* 删除时校验党员是否被认证
* @param IdentityNo
* @return
* @author qushutong
* @date 2020/3/20 9:21
*/
Integer selectCountByIdentity(String IdentityNo);
}

36
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/PartyTagRelationDao.java

@ -0,0 +1,36 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.entity.PartyTagRelationEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 党员标签关系表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-04
*/
@Mapper
public interface PartyTagRelationDao extends BaseDao<PartyTagRelationEntity> {
void deleteByPartyId(String partyId);
}

64
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserAuthenticateHistoryDao.java

@ -0,0 +1,64 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.epdc.result.EpdcAuthenticateHistoryResultDTO;
import com.elink.esua.epdc.entity.UserAuthenticateHistoryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;
/**
* 用户认证历史表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-11-21
*/
@Mapper
public interface UserAuthenticateHistoryDao extends BaseDao<UserAuthenticateHistoryEntity> {
/**
* @param userId 用户id
* @return java.util.List<com.elink.esua.epdc.entity.UserAuthenticateHistoryEntity>
* @Author yinzuomei
* @Description 根据用户id查询认证历史记录
* @Date 2019/11/21 15:26
**/
List<UserAuthenticateHistoryEntity> selectListUserAuthenticateHistory(String userId);
/**
* @param userId 用户id
* @param authenticatedFlag 是否认证通过 0未通过1通过
* @return java.lang.Integer
* @Author yinzuomei
* @Description 统计用户认证次数
* @Date 2019/11/21 15:55
**/
Integer countAuthenticateHistory(@Param("userId") String userId, @Param("authenticatedFlag")String authenticatedFlag);
/**
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcAuthenticateHistoryResultDTO>>
* @Author yinzuomei
* @Description 用户认证审核历史
* @Date 2019/11/22 13:30
**/
List<EpdcAuthenticateHistoryResultDTO> selectListAuthenticateHistory(String userId);
}

33
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserCarInfoDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.entity.UserCarInfoEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户车辆信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-02-15
*/
@Mapper
public interface UserCarInfoDao extends BaseDao<UserCarInfoEntity> {
}

244
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserDao.java

@ -0,0 +1,244 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.CachingUserInfoDTO;
import com.elink.esua.epdc.dto.UserDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcAppQueryUserInfoFormDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcUnauthorizedAmountFromDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcUserGroupInviteFormDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcWorkUserFromDTO;
import com.elink.esua.epdc.dto.epdc.result.*;
import com.elink.esua.epdc.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
* 用户信息表
*
* @author qu qu@gmail.com
* @since v1.0.0 2019-09-02
*/
@Mapper
public interface UserDao extends BaseDao<UserEntity> {
/**
* 获取个人用户信息
*
* @param id
* @return com.elink.esua.epdc.dto.epdc.result.EpdcUserInfoResultDTO
* @author yujintao
* @date 2019/9/12 15:29
*/
EpdcUserInfoResultDTO selectOneInfoById(String id);
/***
* 删除之前未通过的
* @param wxUnionId
* @return
* @author qushutong
* @date 2019/9/19 20:34
*/
void deleteByUnionId(String wxUnionId);
/**
* 用户注册审核之后查询用户审核结果用于发送服务消息和短信消息
*
* @param userId
* @return com.elink.esua.epdc.dto.epdc.result.EpdcUserRegisterAuditMsgResultDTO
* @author work@yujt.net.cn
* @date 2019/9/27 09:14
*/
EpdcUserRegisterAuditMsgResultDTO getUserRegisterAuditResult(@Param("userId") String userId);
/**
* 根据wxOpenId删除审核失败的记录
*
* @param wxOpenId
* @return int
* @author work@yujt.net.cn
* @date 2019/9/27 10:08
*/
int deleteAuditFailureByOpenId(@Param("wxOpenId") String wxOpenId);
/**
* 移动端-社群添加好友列表
*
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcUserGroupInviteResultDTO>
* @params [formDto]
* @author liuchuang
* @since 2019/10/23 16:25
*/
List<EpdcUserGroupInviteResultDTO> selectListOfInviteUsers(EpdcUserGroupInviteFormDTO formDto);
/**
* 查询用户列表
*
* @param params
* @return java.util.List<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/10/25 16:13
*/
List<UserDTO> selectListUserDto(Map<String, Object> params);
/**
*
* 待认证党员
*
* @params [params]
* @return java.util.List<com.elink.esua.epdc.dto.UserDTO>
* @author liuchuang
* @since 2020/3/23 15:59
*/
List<UserDTO> selectListOfWaitPartyUserDto(Map<String, Object> params);
/**
* 获取居民详情已认证或待认证提交信息待审核的居民用户
*
* @param userId 用户Id
* @return
*/
EpdcResidentDetailResultDTO residentDetailByUserId(@Param("userId") String userId);
/**
* 获取党员详情已认证或未认证的党员用户
*
* @param userId
* @return
*/
EpdcPartyMemberDetailDto partyMemberDetailByUserId(@Param("userId") String userId);
/**
* 未认证的党员用户
*
* @param userId
* @return
*/
EpdcPartyMemberDetailDto partyMemberDetailFaild(@Param("userId") String userId);
/**
* 通过用户ID获取党员身份证号
*
* @param userId
* @return
*/
String getPartyMemberIdNoByUserID(@Param("userId") String userId);
/***
* 用户党员待审核列表
* @param workUserFromDto
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcWorkUserResultDTO>
* @author qushutong
* @date 2019/11/18 19:28
*/
List<EpdcWorkUserResultDTO> selectWorkUserList(EpdcWorkUserFromDTO workUserFromDto);
/***
* 查询待认证用户数量
* @param fromDto
* @return java.lang.Integer
* @author qushutong
* @date 2019/11/19 13:31
*/
int selectCountUnauthorizedAmount(EpdcUnauthorizedAmountFromDTO fromDto);
/**
* @param workUserFromDto
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcWorkUserResultDTO>
* @Author yinzuomei
* @Description 获取用户列表党员认证失败
* @Date 2019/12/7 11:23
**/
List<EpdcWorkUserResultDTO> selectPartyAuthenticationFailedList(EpdcWorkUserFromDTO workUserFromDto);
/**
* @param gridIdList
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcGridUserResultDTO>
* @Author yinzuomei
* @Description 根据网格id查询网格下所有的用户
* @Date 2019/12/19 15:05
**/
List<EpdcGridUserResultDTO> selectListGridUserResultDTO(@Param("gridIdList") List<Long> gridIdList);
/**
* 小程序用户登录getToken接口用获取用户基本信息因为用户和网格时一对多关系所有返回为集合
*
* @param wxOpenId
* @param wxUnionId
* @return java.util.List<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2020/2/25 13:54
*/
List<UserDTO> selectListUserByWxForLogin(@Param("wxOpenId") String wxOpenId, @Param("wxUnionId") String wxUnionId);
/**
* @param openId
* @param unionId
* @return com.elink.esua.epdc.dto.CachingUserInfoDTO
* @Author yinzuomei
* @Description 获取用户缓存信息
* @Date 2019/12/18 14:12
**/
CachingUserInfoDTO selectCachingUserInfoDTO(@Param("openId") String openId, @Param("unionId") String unionId);
/**
* @param userId
* @return com.elink.esua.epdc.dto.CachingUserInfoDTO
* @Author yinzuomei
* @Description 根据用户id查询CachingUserInfoDTO
* @Date 2020/1/15 17:43
**/
CachingUserInfoDTO selectCachingUserInfoDTOByUserId(String userId);
/**
*
* 查询需要修改的组织机构信息
*
* @params [deptId]
* @return java.util.List<com.elink.esua.epdc.dto.UserDTO>
* @author liuchuang
* @since 2020/3/7 15:31
*/
List<UserDTO> selectListOfOrganizationInfo(String deptId);
/***
* 用户不关联网格关系表
* @param params
* @return java.util.List<com.elink.esua.epdc.dto.UserDTO>
* @author qushutong
* @date 2020/3/16 16:18
*/
List<UserDTO> selectAuthenticatedListUserDto(Map<String, Object> params);
/**
*
* 待认证居民
*
* @params [params]
* @return java.util.List<com.elink.esua.epdc.dto.UserDTO>
* @author liuchuang
* @since 2020/4/1 18:26
*/
List<UserDTO> selectWaitAuthenticatedListUserDto(Map<String, Object> params);
}

43
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserGridInvitationCodeDao.java

@ -0,0 +1,43 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.UserGridInvitationCodeDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcUserGridInvitationCodeFormDTO;
import com.elink.esua.epdc.entity.UserGridInvitationCodeEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户网格邀请码表 用户网格邀请码表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-03-01
*/
@Mapper
public interface UserGridInvitationCodeDao extends BaseDao<UserGridInvitationCodeEntity> {
/**
* @return com.elink.esua.epdc.dto.UserGridInvitationCodeDTO
* @param formDto
* @Author yinzuomei
* @Description 根据网格id邀请人ID查询邀请码
* @Date 2020/3/1 15:29
**/
UserGridInvitationCodeDTO selectUserGridInvitationCodeDTO(EpdcUserGridInvitationCodeFormDTO formDto);
}

69
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserGridRelationDao.java

@ -0,0 +1,69 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.UserGridRelationDTO;
import com.elink.esua.epdc.entity.UserGridRelationEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 网格长与网格关系表
*
* @author work@yujt.net.cn
* @since v1.0.0 2019-10-23
*/
@Mapper
public interface UserGridRelationDao extends BaseDao<UserGridRelationEntity> {
/**
*
* 获取用户最后一次切换的网格信息
*
* @params [userId]
* @return com.elink.esua.epdc.dto.UserGridRelationDTO
* @author liuchuang
* @since 2019/12/6 10:45
*/
UserGridRelationDTO selectOneOfGird(String userId);
/**
*
* 查询需要修改的组织机构信息
*
* @params [deptId]
* @return java.util.List<com.elink.esua.epdc.dto.UserGridRelationDTO>
* @author liuchuang
* @since 2020/3/7 15:31
*/
List<UserGridRelationDTO> selectListOfOrganizationInfo(String deptId);
/**
*
* 更新网格名称
*
* @params [newDeptName, deptId]
* @return void
* @author liuchuang
* @since 2020/3/7 1:20
*/
void updateGridByDeptId(String newDeptName, Long deptId);
}

58
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserInvitationRecordDao.java

@ -0,0 +1,58 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.epdc.result.UserInvitationRecordResultDTO;
import com.elink.esua.epdc.entity.UserInvitationRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 用户邀请记录表 用户邀请记录表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-02
*/
@Mapper
public interface UserInvitationRecordDao extends BaseDao<UserInvitationRecordEntity> {
/**
* 获取邀请记录
*
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcUserGroupInviteResultDTO>
* @params [formDto]
* @author liuchuang
* @since 2019/10/23 16:25
*/
List<UserInvitationRecordResultDTO> invitationRecord(@Param("userId") Long userId);
/**
*
* 更新网格名称
*
* @params [newDeptName, deptId]
* @return void
* @author liuchuang
* @since 2020/3/7 1:20
*/
void updateGridByDeptId(String newDeptName, Long deptId);
}

53
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserTagDao.java

@ -0,0 +1,53 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.UserTagInfo;
import com.elink.esua.epdc.entity.UserTagEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 用户标签表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@Mapper
public interface UserTagDao extends BaseDao<UserTagEntity> {
/**
* @param tagCode
* @return com.elink.esua.epdc.entity.UserTagEntity
* @Author yinzuomei
* @Description 根据标签编码查询信息
* @Date 2019/12/17 19:17
**/
UserTagEntity selectByTagCode(String tagCode);
/**
* @param userId
* @return java.util.List<com.elink.esua.epdc.dto.UserTagInfo>
* @Author yinzuomei
* @Description 根据用户id查询用户标签id用户标签编码
* @Date 2020/2/7 14:17
**/
List<UserTagInfo> selectByUserId(String userId);
}

45
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserTagRelationDao.java

@ -0,0 +1,45 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.entity.UserTagRelationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 用户标签关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-30
*/
@Mapper
public interface UserTagRelationDao extends BaseDao<UserTagRelationEntity> {
/**
* 根据user_id 删除
* 用户标签关系表
*
* @param userId
* @return void
* @author zy
* @date 2019-12-16
*/
void removeUserTagRelation(@Param("userId") String userId, @Param("tagCode") String tagCode);
}

41
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/UserWxFormIdDao.java

@ -0,0 +1,41 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.UserWxFormIdDTO;
import com.elink.esua.epdc.entity.UserWxFormIdEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 微信formId表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-26
*/
@Mapper
public interface UserWxFormIdDao extends BaseDao<UserWxFormIdEntity> {
/***
* 获取最新一条formid
* @param openId
* @return com.elink.esua.epdc.dto.UserWxFormIdDTO
* @author qushutong
* @date 2019/9/26 14:05
*/
UserWxFormIdDTO getByOpenId(String openId);
}

131
epdc-cloud-user/src/main/java/com/elink/esua/epdc/dao/VolunteerInfoDao.java

@ -0,0 +1,131 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.UserTagDTO;
import com.elink.esua.epdc.dto.VolunteerInfoDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcVolunteerKindnessTimeFormDTO;
import com.elink.esua.epdc.dto.epdc.result.EpdcAdjustVolunteerPointsDTO;
import com.elink.esua.epdc.dto.epdc.result.EpdcGetVolunteerRankDTO;
import com.elink.esua.epdc.entity.VolunteerInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
* 志愿者信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-11
*/
@Mapper
public interface VolunteerInfoDao extends BaseDao<VolunteerInfoEntity> {
/**
* 志愿者申请根据用户表基础信息 赋默认值
* @param id
* @return VolunteerInfoDTO
* @author zy
* @date 2019-12-11
*/
VolunteerInfoDTO getVolunteerUserDefaultValue(String id);
/**
* 根据查询条件返回首页 志愿者信息列表
* @param params
* @return
*/
List<VolunteerInfoDTO> volunteerInfoList(Map<String, Object> params);
/**
* 根据志愿者ID查询志愿者 单条详情
* 积分需要连user表查询
*
* @param id
* @return VolunteerInfoDTO
* @author generator
* @date 2019-12-11
*/
VolunteerInfoDTO getVolunteerDetail(String id);
/**
* 根据查询条件返回首页 志愿者信息列表总数
* @param params
* @return
*/
int volunteerInfoCount(Map<String, Object> params);
/**
* 自定义 志愿者表修改方法
* @param dto
*/
void updateVolunteerInfo(VolunteerInfoDTO dto);
/**
* 向标签表中查询唯一志愿者标签tag_code = volunteer
* @param tagCode
* @return
*/
UserTagDTO volunteerTagQuery(String tagCode);
/**
* 志愿者认证
* @param userId
* @return
*/
int getVolunteerCountById(@Param("userId") String userId);
/**
* @param id
* @return com.elink.esua.epdc.dto.epdc.result.EpdcAdjustVolunteerPointsDTO
* @Author yinzuomei
* @Description 积分调整按钮按下, 查询用户信息
* @Date 2019/12/16 17:54
**/
EpdcAdjustVolunteerPointsDTO selectAdjustVolunteerPointsDTO(String id);
/**
* 获取排行榜
*
* @return
* @author wanggongfeng
*/
List<EpdcGetVolunteerRankDTO> getRankingList();
/**
* @param userId
* @return com.elink.esua.epdc.dto.VolunteerInfoDTO
* @Author yinzuomei
* @Description 根据用户id查询志愿者信息
* @Date 2020/2/6 12:25
**/
VolunteerInfoDTO selectOneVolunteerInfoDTO(String userId);
/**
*
* 增加志愿者爱心时长
*
* @params [formDto]
* @return void
* @author liuchuang
* @since 2020/2/7 18:34
*/
void updateVolunteerKindnessTime(EpdcVolunteerKindnessTimeFormDTO formDto);
}

14
epdc-cloud-user/src/main/java/com/elink/esua/epdc/datasources/DataSourceNames.java

@ -0,0 +1,14 @@
package com.elink.esua.epdc.datasources;
/**
* 增加多数据源除默认数据源外每增加一个数据源添加一个新的常量
*
* @author work@yujt.net.cn
* @date 2020/2/27 15:03
*/
public interface DataSourceNames {
/**
* 多数据源配置一对应yml文件中 dynamic:datasource:first:
*/
String FIRST = "first";
}

112
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/PartyAuthenticationFailedEntity.java

@ -0,0 +1,112 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import com.elink.esua.epdc.commons.mybatis.entity.DeptScope;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 党员认证失败表 党员认证失败表
*
* @author gp gupeng@elink-cn.com
* @since v1.0.0 2019-11-15
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("epdc_party_authentication_failed")
public class PartyAuthenticationFailedEntity extends DeptScope {
private static final long serialVersionUID = 1L;
/**
* 姓名
*/
private String realName;
/**
* 手机号
*/
private String mobile;
/**
* 身份证号
*/
private String identityNo;
/**
* 职务 字典表dict_name
*/
private String post;
/**
* 职务ID 字典表dict_value
*/
private String postValue;
/**
* 干部下沉标识 0-1-
*/
private String cadreFlag;
/**
* 注册状态 0-1-
*/
private String registFlag;
/**
* 注册时间
*/
private Date registTime;
/**
* 网格名称
*/
private String gridName;
/**
* 网格ID
*/
private Long gridId;
/**
* 部门ID
*/
private Long deptId;
/**
* 状态 0-认证失败
*/
private String state;
/**
* 用户ID
*/
private String userId;
/**
* 居民住址
*/
private String address;
}

90
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/PartyMembersEntity.java

@ -0,0 +1,90 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.DeptScope;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 党员表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("epdc_party_members")
public class PartyMembersEntity extends DeptScope {
private static final long serialVersionUID = 1L;
/**
* 姓名
*/
private String realName;
/**
* 手机号
*/
private String mobile;
/**
* 身份证号
*/
private String identityNo;
/**
* 职务
*/
private String post;
/**
* 职务ID字典表
*/
private String postValue;
/**
* 干部下沉标识(0-1-)
*/
private String cadreFlag;
/**
* 注册状态0-1-
*/
private String registFlag;
/**
* 注册时间
*/
private Date registTime;
/**
* 网格名称
*/
private String gridName;
/**
* 网格ID
*/
private long gridId;
/**
* 部门ID
*/
private long deptId;
/***
* 所在党委
*/
private String partyOrganization;
}

53
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/PartyTagRelationEntity.java

@ -0,0 +1,53 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEntity;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 党员标签关系表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-04
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_party_tag_relation")
public class PartyTagRelationEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 党员ID
*/
private String partyId;
/**
* 标签ID
*/
private String tagId;
}

76
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserAuthenticateHistoryEntity.java

@ -0,0 +1,76 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 用户认证历史表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-11-21
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("epdc_user_authenticate_history")
public class UserAuthenticateHistoryEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 用户ID
*/
private String userId;
/**
* 手机号
*/
private String mobile;
/**
* 姓名
*/
private String realName;
/**
* 居民地址
*/
private String address;
/**
* 是否认证通过 0未通过1通过
*/
private String authenticatedFlag;
/**
* 认证类别(0-居民认证1-党员认证2-志愿者认证)
*/
private String authenticatedType;
/**
* 审核备注
*/
private String remark;
}

51
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserCarInfoEntity.java

@ -0,0 +1,51 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 用户车辆信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-02-15
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_user_car_info")
public class UserCarInfoEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 昵称
*/
private String userId;
/**
* 手机号
*/
private String carNumber;
}

267
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserEntity.java

@ -0,0 +1,267 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import com.elink.esua.epdc.commons.mybatis.entity.DeptScope;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 用户信息表
*
* @author qu qu@gmail.com
* @since v1.0.0 2019-09-02
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("epdc_user")
public class UserEntity extends DeptScope {
private static final long serialVersionUID = -6047044658708037479L;
/**
* 昵称
*/
private String nickname;
/**
* 手机号
*/
private String mobile;
/**
* 密码
*/
private String password;
/**
* 注册时间
*/
private Date registerTime;
/**
* 头像
*/
private String faceImg;
/**
* 性别(女性-female男性-male)
*/
private String sex;
/**
* 生日
*/
private Date birthday;
/**
* 邮箱
*/
private String email;
/**
* 电话
*/
private String telephone;
/**
* 邮编
*/
private String zipCode;
/**
* 职业
*/
private String profession;
/**
* 爱好
*/
private String hobbies;
/**
* 个性签名
*/
private String userSign;
/**
* 邀请码
*/
private String invitationCode;
/**
* 最近登录时间
*/
private Date lastLoginTime;
/**
* 最近登录IP
*/
private String lastLoginIp;
/**
* 最近登录位置经度
*/
private String lastLongitude;
/**
* 最近登录位置维度
*/
private String lastLatitude;
/**
* 真实姓名
*/
private String realName;
/**
* 身份证号
*/
private String identityNo;
/**
* 所在道路如山东路168号
*/
private String road;
/**
* 小区名称
*/
private String villageName;
/**
* 住处楼栋-单元-房间
*/
private String dwellingPlace;
/**
* 居民住址
*/
private String address;
/**
* 微信OPENID
*/
private String wxOpenId;
/**
* 微信unionId
*/
private String wxUnionId;
/**
* 是否是党员(0-1-)
*/
private String partyFlag;
/**
* 注册方式wx微信注册
*/
private String registerWay;
/**
* 用户来源(wp:公众号)
*/
private String registerSource;
/**
* 手机号所属省份
*/
private String mobileProvince;
/**
* 手机号所属城市
*/
private String mobileCity;
/**
* 手机号所属运营商
*/
private String mobileCarrier;
/**
* 用户积分
*/
private Integer points;
/**
* 邀请人ID
*/
private String inviteUserId;
/**
* 状态(0-未审核1-审核通过2-审核未通过)
*/
private String state;
/**
*
*/
private String lastName;
/**
*
*/
private String firstName;
/**
* 审核备注
*/
private String remark;
/**
* 居住网格id
*/
private Long deptId;
/**
* 父所有部门
*/
private String parentDeptIds;
/**
* 父所有部门
*/
private String parentDeptNames;
/**
* 所有部门ID
*/
private String allDeptIds;
/**
* 所有部门名称
*/
private String allDeptNames;
/**
* 是否有车
*/
private String rentFlag;
/**
* 是否租房
*/
private String driverFlag;
}

56
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserGridInvitationCodeEntity.java

@ -0,0 +1,56 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 用户网格邀请码表 用户网格邀请码表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-03-01
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_user_grid_invitation_code")
public class UserGridInvitationCodeEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 网格ID
*/
private String gridId;
/**
* 邀请人ID
*/
private String inviteUserId;
/**
* 邀请码
*/
private String invitationCodeUrl;
}

67
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserGridRelationEntity.java

@ -0,0 +1,67 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import com.elink.esua.epdc.commons.mybatis.entity.DeptScope;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 网格长与网格关系表
*
* @author work@yujt.net.cn
* @since v1.0.0 2019-10-23
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("epdc_user_grid_relation")
public class UserGridRelationEntity extends DeptScope {
private static final long serialVersionUID = 8308463158510832072L;
/**
* 用户ID
*/
private String userId;
/**
* 所属网格
*/
private String grid;
/**
* 网格ID
*/
private Long gridId;
/**
* 最后切换此网格的时间
*/
private Date switchedTime;
/**
* 是否是网格长 0否1是
*/
private String leaderFlag;
}

66
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserInvitationRecordEntity.java

@ -0,0 +1,66 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 用户邀请记录表 用户邀请记录表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_user_invitation_record")
public class UserInvitationRecordEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 用户ID
*/
private String userId;
/**
* 邀请人ID
*/
private String inviteUserId;
/**
* 网格
*/
private String grid;
/**
* 网格ID
*/
private Long gridId;
/**
* 注册时间
*/
private Date registerTime;
}

59
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserTagEntity.java

@ -0,0 +1,59 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEntity;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 用户标签表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_user_tag")
public class UserTagEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 标签名
*/
private String tagName;
/**
* 标签编码
*/
private String tagCode;
/**
* 标签描述
*/
private String tagDesc;
}

51
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserTagRelationEntity.java

@ -0,0 +1,51 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 用户标签关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-30
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_user_tag_relation")
public class UserTagRelationEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 用户ID
*/
private String userId;
/**
* 标签ID
*/
private String tagId;
}

50
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/UserWxFormIdEntity.java

@ -0,0 +1,50 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 微信formId表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-26
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_user_wx_form_id")
public class UserWxFormIdEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 微信openId
*/
private String wxOpenId;
/**
* 微信formId
*/
private String wxFormId;
}

138
epdc-cloud-user/src/main/java/com/elink/esua/epdc/entity/VolunteerInfoEntity.java

@ -0,0 +1,138 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.DeptScope;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
/**
* 志愿者信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-11
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("epdc_volunteer_info")
public class VolunteerInfoEntity extends DeptScope {
private static final long serialVersionUID = -4777998686764924965L;
/**
* 用户ID
*/
private String userId;
/**
* 姓名
*/
private String realName;
/**
* 性别(0-1-)
*/
private String sex;
/**
* 出生日期
*/
private Date birthday;
/**
* 手机号
*/
private String mobile;
/**
* 身份证
*/
private String identityNo;
/**
* 爱心时长(单位分钟)
*/
private BigDecimal kindnessTime;
/**
* 参加活动次数
*/
private Integer participationNum;
/**
* 网格ID
*/
private Long gridId;
/**
* 所属道路
*/
private String road;
/**
* 小区名称
*/
private String villageName;
/**
* 住处
*/
private String dwellingPlace;
/**
* 居住地址
*/
private String address;
/**
* 自我介绍
*/
private String introduce;
/**
* 志愿者注册时间
*/
private Date registTime;
/**
* 审核状态0-未审核1-审核通过2-审核不通过
*/
private String auditStatus;
/**
* 审核不通过的原因
*/
private String failureReason;
/**
* 审核时间
*/
private Date auditTime;
/**
* 审核人
*/
private Long auditor;
}

54
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/PartyAuthenticationFailedExcel.java

@ -0,0 +1,54 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 党员认证失败表 党员认证失败表
*
* @author gp gupeng@elink-cn.com
* @since v1.0.0 2019-11-15
*/
@Data
public class PartyAuthenticationFailedExcel {
@Excel(name = "姓名")
private String realName;
@Excel(name = "身份证号")
private String identityNo;
@Excel(name = "手机号")
private String mobile;
@Excel(name = "所属网格")
private String allDeptNames;
@Excel(name = "认证时间", format = "yyyy-MM-dd HH:mm:ss")
private Date createdTime;
@Excel(name = "居民住址")
private String address;
}

60
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/PartyMembersExcel.java

@ -0,0 +1,60 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 党员表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@Data
public class PartyMembersExcel {
@Excel(name = "姓名")
private String realName;
@Excel(name = "联系电话")
private String mobile;
@Excel(name = "身份证号")
private String identityNo;
@Excel(name = "职务")
private String post;
@Excel(name = "干部下沉", replace = {"下沉_1", "不下沉_0"})
private String cadreFlag;
@Excel(name = "是否注册", replace = {"是_1", "否_0"})
private String registFlag;
@Excel(name = "认证时间", format = "yyyy-MM-dd HH:mm:ss")
private Date registTime;
@Excel(name = "注册时间", format = "yyyy-MM-dd HH:mm:ss")
private Date createdTime;
@Excel(name = "街道-社区-网格")
private String allDeptNames;
}

52
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/PartyTagRelationExcel.java

@ -0,0 +1,52 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 党员标签关系表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-04
*/
@Data
public class PartyTagRelationExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "党员ID")
private String partyId;
@Excel(name = "标签ID")
private String tagId;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
@Excel(name = "删除标记")
private String delFlag;
}

74
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserAuthenticateHistoryExcel.java

@ -0,0 +1,74 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 用户认证历史表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-11-21
*/
@Data
public class UserAuthenticateHistoryExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "用户ID")
private String userId;
@Excel(name = "手机号")
private String mobile;
@Excel(name = "姓名")
private String realName;
@Excel(name = "居民地址")
private String address;
@Excel(name = "是否认证通过 0未通过1通过")
private String authenticatedFlag;
@Excel(name = "审核备注")
private String remark;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
@Excel(name = "删除标记 0-否,1-是")
private String delFlag;
}

62
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserCarInfoExcel.java

@ -0,0 +1,62 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 用户车辆信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-02-15
*/
@Data
public class UserCarInfoExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "昵称")
private String userId;
@Excel(name = "手机号")
private String carNumber;
@Excel(name = "删除标记")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "注册时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

52
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserExcel.java

@ -0,0 +1,52 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 用户信息表
*
* @author qu qu@gmail.com
* @since v1.0.0 2019-09-02
*/
@Data
public class UserExcel {
@Excel(name = "真实姓名")
private String realName;
@Excel(name = "手机号")
private String mobile;
@Excel(name = "居民住址")
private String address;
@Excel(name = "昵称")
private String nickname;
@Excel(name = "注册时间", format = "yyyy-MM-dd HH:mm:ss")
private Date registerTime;
@Excel(name = "身份证号")
private String identityNo;
}

65
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserGridInvitationCodeExcel.java

@ -0,0 +1,65 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 用户网格邀请码表 用户网格邀请码表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-03-01
*/
@Data
public class UserGridInvitationCodeExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "网格ID")
private String gridId;
@Excel(name = "邀请人ID")
private String inviteUserId;
@Excel(name = "邀请码")
private String invitationCodeUrl;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
@Excel(name = "删除标记")
private String delFlag;
}

68
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserInvitationRecordExcel.java

@ -0,0 +1,68 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 用户邀请记录表 用户邀请记录表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-02
*/
@Data
public class UserInvitationRecordExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "用户ID")
private String userId;
@Excel(name = "邀请人ID")
private String inviteUserId;
@Excel(name = "网格")
private String grid;
@Excel(name = "网格ID")
private Long gridId;
@Excel(name = "注册时间")
private Date registerTime;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
@Excel(name = "删除标记")
private String delFlag;
}

52
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserTagExcel.java

@ -0,0 +1,52 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 用户标签表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@Data
public class UserTagExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "标签名")
private String tagName;
@Excel(name = "标签描述")
private String tagDesc;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
@Excel(name = "删除标记")
private String delFlag;
}

62
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserTagRelationExcel.java

@ -0,0 +1,62 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 用户标签关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-30
*/
@Data
public class UserTagRelationExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "用户ID")
private String userId;
@Excel(name = "标签ID")
private String tagId;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
@Excel(name = "删除标记")
private String delFlag;
}

62
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/UserWxFormIdExcel.java

@ -0,0 +1,62 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 用户标签表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-26
*/
@Data
public class UserWxFormIdExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "微信openId")
private String wxOpenId;
@Excel(name = "微信formId")
private String wxFormId;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
@Excel(name = "删除标记")
private String delFlag;
}

126
epdc-cloud-user/src/main/java/com/elink/esua/epdc/excel/VolunteerInfoExcel.java

@ -0,0 +1,126 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* 志愿者信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-11
*/
@Data
public class VolunteerInfoExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "用户ID")
private String userId;
@Excel(name = "姓名")
private String realName;
@Excel(name = "性别(0-女,1-男)")
private String sex;
@Excel(name = "出生日期")
private Date birthday;
@Excel(name = "手机号")
private String mobile;
@Excel(name = "身份证")
private String identityNo;
@Excel(name = "爱心时长(单位:分钟)")
private BigDecimal kindnessTime;
@Excel(name = "参加活动次数")
private Integer participationNum;
@Excel(name = "积分")
private Integer points;
@Excel(name = "网格ID")
private Long gridId;
@Excel(name = "父所有部门ID")
private String parentDeptIds;
@Excel(name = "父所有部门名称")
private String parentDeptNames;
@Excel(name = "所有部门ID")
private String allDeptIds;
@Excel(name = "所有部门名称")
private String allDeptNames;
@Excel(name = "所属道路")
private String road;
@Excel(name = "小区名称")
private String villageName;
@Excel(name = "住处")
private String dwellingPlace;
@Excel(name = "居住地址")
private String address;
@Excel(name = "自我介绍")
private String introduce;
@Excel(name = "志愿者注册时间")
private Date registTime;
@Excel(name = "审核状态(0-未审核,1-审核通过,2-审核不通过)")
private String auditStatus;
@Excel(name = "审核不通过的原因")
private String failureReason;
@Excel(name = "审核时间")
private Date auditTime;
@Excel(name = "审核人")
private Long auditor;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

16
epdc-cloud-user/src/main/java/com/elink/esua/epdc/exception/UserModuleErrorCode.java

@ -0,0 +1,16 @@
package com.elink.esua.epdc.exception;
import com.elink.esua.epdc.commons.tools.exception.ErrorCode;
/**
* @author: qushutong
* @Date: 2020/1/3 17:31
* @Description:
*/
public interface UserModuleErrorCode extends ErrorCode {
/***
* 党员认证失败
*/
int AUTHENTICATION_CODE= 100006001;
}

42
epdc-cloud-user/src/main/java/com/elink/esua/epdc/feign/AdminFeignClient.java

@ -0,0 +1,42 @@
package com.elink.esua.epdc.feign;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO;
import com.elink.esua.epdc.feign.fallback.AdminFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;
/**
* @author yujintao
* @email yujintao@elink-cn.com
* @date 2019/9/5 14:44
*/
@FeignClient(name = ServiceConstant.EPDC_ADMIN_SERVER, fallback = AdminFeignClientFallback.class)
public interface AdminFeignClient {
/**
* 根据部门ID获取下属所有网格ID
*
* @param pid
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < java.lang.Long>>
* @author yujintao
* @date 2019/9/5 14:49
*/
@GetMapping("/sys/dept/listGridId/{pid}")
Result<List<Long>> listGridIdByDeptPid(@PathVariable("pid") Long pid);
/**
* 根据部门ID获取上级所有部门信息
*
* @param deptId
* @return com.elink.esua.epdc.commons.tools.utils.Result<ParentAndAllDeptDTO>
* @author gp
* @date 2019-11-29
*/
@GetMapping("/sys/dept/getParentAndAllDept/{deptId}")
Result<ParentAndAllDeptDTO> getParentAndAllDept(@PathVariable("deptId") String deptId);
}

32
epdc-cloud-user/src/main/java/com/elink/esua/epdc/feign/NewsFeignClient.java

@ -0,0 +1,32 @@
package com.elink.esua.epdc.feign;
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.feign.fallback.NewsFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
* 志愿者审核结果通知消息模块 线程任务
*
* @author zy
* @date 2019/12/16 15:39
*/
@FeignClient(name = ServiceConstant.EPDC_NEWS_SERVER, fallback = NewsFeignClientFallback.class)
public interface NewsFeignClient {
/**
* 志愿者审核结果消息推送到app
*
* @param formDto
* @return void
* @author zy
* @date 2019/12/16 15:39
*/
@PostMapping(value = "news/epdc-app/information/save", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
Result saveInformation(@RequestBody EpdcInformationFormDTO formDto);
}

29
epdc-cloud-user/src/main/java/com/elink/esua/epdc/feign/fallback/AdminFeignClientFallback.java

@ -0,0 +1,29 @@
package com.elink.esua.epdc.feign.fallback;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.ModuleUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO;
import com.elink.esua.epdc.feign.AdminFeignClient;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @author yujintao
* @email yujintao@elink-cn.com
* @date 2019/9/5 14:44
*/
@Component
public class AdminFeignClientFallback implements AdminFeignClient {
@Override
public Result<List<Long>> listGridIdByDeptPid(Long pid) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ADMIN_SERVER, "listGridIdByDeptPid", pid);
}
@Override
public Result<ParentAndAllDeptDTO> getParentAndAllDept(String depId) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ADMIN_SERVER, "getParentAndAllDept", depId);
}
}

23
epdc-cloud-user/src/main/java/com/elink/esua/epdc/feign/fallback/NewsFeignClientFallback.java

@ -0,0 +1,23 @@
package com.elink.esua.epdc.feign.fallback;
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.ModuleUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.feign.NewsFeignClient;
import org.springframework.stereotype.Component;
/**
* 志愿者审核结果通知消息模块 线程任务
*
* @author zy
* @date 2019/12/16 15:39
*/
@Component
public class NewsFeignClientFallback implements NewsFeignClient {
@Override
public Result saveInformation(EpdcInformationFormDTO formDto) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_NEWS_SERVER, "saveInformation", formDto);
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/PartyAuthenticationFailedRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 党员认证失败表 党员认证失败表
*
* @author gp gupeng@elink-cn.com
* @since v1.0.0 2019-11-15
*/
@Component
public class PartyAuthenticationFailedRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/PartyMembersRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 党员表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@Component
public class PartyMembersRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/PartyTagRelationRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 党员标签关系表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-04
*/
@Component
public class PartyTagRelationRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserCarInfoRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 用户车辆信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-02-15
*/
@Component
public class UserCarInfoRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserGridInvitationCodeRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 用户网格邀请码表 用户网格邀请码表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-03-01
*/
@Component
public class UserGridInvitationCodeRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserGridRelationRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 网格长与网格关系表
*
* @author work@yujt.net.cn
* @since v1.0.0 2019-10-23
*/
@Component
public class UserGridRelationRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserInvitationRecordRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 用户邀请记录表 用户邀请记录表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-02
*/
@Component
public class UserInvitationRecordRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

46
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserRedis.java

@ -0,0 +1,46 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 用户信息表
*
* @author qu qu@gmail.com
* @since v1.0.0 2019-09-02
*/
@Component
public class UserRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserTagRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 用户标签表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
@Component
public class UserTagRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserTagRelationRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 用户标签关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-30
*/
@Component
public class UserTagRelationRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/UserWxFormIdRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 用户标签表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-26
*/
@Component
public class UserWxFormIdRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epdc-cloud-user/src/main/java/com/elink/esua/epdc/redis/VolunteerInfoRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 志愿者信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-11
*/
@Component
public class VolunteerInfoRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

65
epdc-cloud-user/src/main/java/com/elink/esua/epdc/rocketmq/consumer/OrganizationModifyConsumer.java

@ -0,0 +1,65 @@
package com.elink.esua.epdc.rocketmq.consumer;
import com.alibaba.fastjson.JSONObject;
import com.elink.esua.epdc.commons.tools.constant.RocketMqConstant;
import com.elink.esua.epdc.rocketmq.dto.OrganizationModifyDTO;
import com.elink.esua.epdc.service.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.MessageModel;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
*
* 组织机构信息修改-监听MQ消息
*
* @Authorliuchuang
* @Date2020/3/7 13:47
*/
@Slf4j
@Component
@RocketMQMessageListener(topic = RocketMqConstant.MQ_TOPIC_ORGANIZATION, consumerGroup = "${rocketmq.consumer.group}", messageModel = MessageModel.BROADCASTING)
public class OrganizationModifyConsumer implements RocketMQListener<MessageExt> {
@Autowired
private PartyAuthenticationFailedService partyAuthenticationFailedService;
@Autowired
private PartyMembersService partyMembersService;
@Autowired
private UserService userService;
@Autowired
private UserGridRelationService userGridRelationService;
@Autowired
private UserInvitationRecordService userInvitationRecordService;
@Override
public void onMessage(MessageExt messageExt) {
log.info("EPDC-USER-SERVER消费消息START:{topic:{}, msgId:{}}", RocketMqConstant.MQ_TOPIC_ORGANIZATION, messageExt.getMsgId());
try {
String charset = "UTF-8";
String body = new String(messageExt.getBody(), charset);
OrganizationModifyDTO dto = JSONObject.parseObject(body, OrganizationModifyDTO.class);
// 党员认证失败表修改组织机构信息
partyAuthenticationFailedService.modifyOrganizationInfo(dto);
// 党员表修改组织机构信息
partyMembersService.modifyOrganizationInfo(dto);
// 用户表修改组织机构信息
userService.modifyOrganizationInfo(dto);
// 用户网格关系表修改组织机构信息
userGridRelationService.modifyOrganizationInfo(dto);
// 用户邀请记录表修改组织机构信息
userInvitationRecordService.modifyOrganizationInfo(dto);
log.info("EPDC-USER-SERVER消费消息END:{topic:{}, msgId:{}, body:{}}", RocketMqConstant.MQ_TOPIC_ORGANIZATION, messageExt.getMsgId(), body);
} catch (Exception e) {
log.info("EPDC-USER-SERVER消费消息失败:msgId:{}", messageExt.getMsgId());
e.printStackTrace();
}
}
}

37
epdc-cloud-user/src/main/java/com/elink/esua/epdc/rocketmq/dto/OrganizationModifyDTO.java

@ -0,0 +1,37 @@
package com.elink.esua.epdc.rocketmq.dto;
import lombok.Data;
import java.io.Serializable;
/**
*
* 组织机构信息修改-接收MQ消息DTO
*
* @Authorliuchuang
* @Date2020/3/7 13:46
*/
@Data
public class OrganizationModifyDTO implements Serializable {
private static final long serialVersionUID = -5692602006311937083L;
/**
* 部门ID
*/
private Long deptId;
/**
* 旧部门名称
*/
private String oldDeptName;
/**
* 新部门名称
*/
private String newDeptName;
/**
* 部门类型
*/
private String typeKey;
}

107
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/PartyAuthenticationFailedService.java

@ -0,0 +1,107 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.PartyAuthenticationFailedDTO;
import com.elink.esua.epdc.entity.PartyAuthenticationFailedEntity;
import com.elink.esua.epdc.rocketmq.dto.OrganizationModifyDTO;
import java.util.List;
import java.util.Map;
/**
* 党员认证失败表 党员认证失败表
*
* @author gp gupeng@elink-cn.com
* @since v1.0.0 2019-11-15
*/
public interface PartyAuthenticationFailedService extends BaseService<PartyAuthenticationFailedEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<PartyAuthenticationFailedDTO>
* @author generator
* @date 2019-11-15
*/
PageData<PartyAuthenticationFailedDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<PartyAuthenticationFailedDTO>
* @author generator
* @date 2019-11-15
*/
List<PartyAuthenticationFailedDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return PartyAuthenticationFailedDTO
* @author generator
* @date 2019-11-15
*/
PartyAuthenticationFailedDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2019-11-15
*/
void save(PartyAuthenticationFailedDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2019-11-15
*/
void update(PartyAuthenticationFailedDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2019-11-15
*/
void delete(String[] ids);
/**
*
* 事件修改组织机构信息
*
* @params [dto]
* @return void
* @author liuchuang
* @since 2020/3/7 1:23
*/
void modifyOrganizationInfo(OrganizationModifyDTO dto);
}

132
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/PartyMembersService.java

@ -0,0 +1,132 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.PartyMembersDTO;
import com.elink.esua.epdc.entity.PartyMembersEntity;
import com.elink.esua.epdc.entity.UserEntity;
import com.elink.esua.epdc.excel.PartyMembersExcel;
import com.elink.esua.epdc.rocketmq.dto.OrganizationModifyDTO;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.Map;
/**
* 党员表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-02
*/
public interface PartyMembersService extends BaseService<PartyMembersEntity> {
PageData<PartyMembersDTO> page(Map<String, Object> params);
Result<PageData<PartyMembersDTO>> pageDIY(Map<String, Object> params);
Result<PageData<PartyMembersDTO>> hasAuthenticationPartyPage(Map<String, Object> params);
List<PartyMembersDTO> list(Map<String, Object> params);
PartyMembersDTO get(String id);
void save(PartyMembersDTO dto);
void update(PartyMembersDTO dto);
Result delete(String[] ids);
/***
*
* @return
* @author qushutong
* @date 2019/11/1 17:17
*/
List<PartyMembersDTO> exportMoudle();
/***
* 导入党员
* @param file
* @return void
* @author qushutong
* @date 2019/11/4 10:08
*/
Result insertPartyList(MultipartFile file);
/**
* 根据身份证号和姓名获取党员数量
*
* @param identityNo
* @param realName
* @return int
* @author rongchao
* @since 2019-12-18
*/
int countPartyMemberByIdNoAndRealName(String identityNo, String realName);
/***
* 已认证党员
* @param params
* @return java.util.List<com.elink.esua.epdc.dto.PartyMembersDTO>
* @author qushutong
* @date 2019/12/29 14:47
*/
List<PartyMembersDTO> exportHasMoudle(Map<String, Object> params);
/***
* 临时 更新党员库
* @param userEntities
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author qushutong
* @date 2020/2/16 16:18
*/
Result upDataInfo(List<UserEntity> userEntities);
/**
*
* 事件修改组织机构信息
*
* @params [dto]
* @return void
* @author liuchuang
* @since 2020/3/7 1:23
*/
void modifyOrganizationInfo(OrganizationModifyDTO dto);
/***
* 已认证党员优化
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData<com.elink.esua.epdc.dto.PartyMembersDTO>>
* @author qushutong
* @date 2020/3/19 13:36
*/
Result<PageData<PartyMembersDTO>> optimizeHasAuthenticationPartyPage(Map<String, Object> params);
/***
* 通过身份证校验此党员是否被认证
* @param IdentityNo
* @return java.lang.Integer
* @author qushutong
* @date 2020/3/20 9:10
*/
Integer checkCertificationByIdentityNo(String IdentityNo);
}

50
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/PartyTagRelationService.java

@ -0,0 +1,50 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.PartyTagRelationDTO;
import com.elink.esua.epdc.entity.PartyTagRelationEntity;
import java.util.List;
import java.util.Map;
/**
* 党员标签关系表
*
* @author Mark sunlightcs@gmail.com
* @since v1.0.0 2019-09-04
*/
public interface PartyTagRelationService extends BaseService<PartyTagRelationEntity> {
PageData<PartyTagRelationDTO> page(Map<String, Object> params);
List<PartyTagRelationDTO> list(Map<String, Object> params);
PartyTagRelationDTO get(String id);
void save(PartyTagRelationDTO dto);
void update(PartyTagRelationDTO dto);
void delete(String[] ids);
void deleteByPartyId(String partyId);
}

116
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserAuthenticateHistoryService.java

@ -0,0 +1,116 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.UserAuthenticateHistoryDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcAuthenticateHistoryFormDTO;
import com.elink.esua.epdc.dto.epdc.result.EpdcAuthenticateHistoryResultDTO;
import com.elink.esua.epdc.entity.UserAuthenticateHistoryEntity;
import java.util.List;
import java.util.Map;
/**
* 用户认证历史表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-11-21
*/
public interface UserAuthenticateHistoryService extends BaseService<UserAuthenticateHistoryEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<UserAuthenticateHistoryDTO>
* @author generator
* @date 2019-11-21
*/
PageData<UserAuthenticateHistoryDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<UserAuthenticateHistoryDTO>
* @author generator
* @date 2019-11-21
*/
List<UserAuthenticateHistoryDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return UserAuthenticateHistoryDTO
* @author generator
* @date 2019-11-21
*/
UserAuthenticateHistoryDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2019-11-21
*/
void save(UserAuthenticateHistoryDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2019-11-21
*/
void update(UserAuthenticateHistoryDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2019-11-21
*/
void delete(String[] ids);
/**
* @param userId 用户id
* @return java.util.List<com.elink.esua.epdc.dto.UserAuthenticateHistoryDTO>
* @Author yinzuomei
* @Description 根据用户id查询认证历史记录
* @Date 2019/11/21 14:01
**/
List<UserAuthenticateHistoryEntity> listUserAuthenticateHistory(String userId);
/**
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAuthenticateHistoryResultDTO>>
* @Author yinzuomei
* @Description 用户认证审核历史
* @Date 2019/11/22 13:17
**/
Result<List<EpdcAuthenticateHistoryResultDTO>> authenticateHistory(EpdcAuthenticateHistoryFormDTO formDTO);
}

104
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserCarInfoService.java

@ -0,0 +1,104 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.epdc.UserCarInfoDTO;
import com.elink.esua.epdc.entity.UserCarInfoEntity;
import java.util.List;
import java.util.Map;
/**
* 用户车辆信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-02-15
*/
public interface UserCarInfoService extends BaseService<UserCarInfoEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<UserCarInfoDTO>
* @author generator
* @date 2020-02-15
*/
PageData<UserCarInfoDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<UserCarInfoDTO>
* @author generator
* @date 2020-02-15
*/
List<UserCarInfoDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return UserCarInfoDTO
* @author generator
* @date 2020-02-15
*/
UserCarInfoDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-02-15
*/
void save(UserCarInfoDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-02-15
*/
void update(UserCarInfoDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-02-15
*/
void delete(String[] ids);
/***
* 根据carNumber
* @param carNumber
* @return com.elink.esua.epdc.dto.epdc.UserCarInfoDTO
* @author qushutong
* @date 2020/2/15 18:42
*/
UserCarInfoDTO selectOneByCarNumber(String carNumber);
}

99
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserGridInvitationCodeService.java

@ -0,0 +1,99 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.UserGridInvitationCodeDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcUserGridInvitationCodeFormDTO;
import com.elink.esua.epdc.entity.UserGridInvitationCodeEntity;
import java.util.List;
import java.util.Map;
/**
* 用户网格邀请码表 用户网格邀请码表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-03-01
*/
public interface UserGridInvitationCodeService extends BaseService<UserGridInvitationCodeEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<UserGridInvitationCodeDTO>
* @author generator
* @date 2020-03-01
*/
PageData<UserGridInvitationCodeDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<UserGridInvitationCodeDTO>
* @author generator
* @date 2020-03-01
*/
List<UserGridInvitationCodeDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return UserGridInvitationCodeDTO
* @author generator
* @date 2020-03-01
*/
UserGridInvitationCodeDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-03-01
*/
void save(UserGridInvitationCodeDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-03-01
*/
void update(UserGridInvitationCodeDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-03-01
*/
void delete(String[] ids);
Result<UserGridInvitationCodeDTO> getUserGridInvitationCodeDTO(EpdcUserGridInvitationCodeFormDTO formDTO);
}

191
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserGridRelationService.java

@ -0,0 +1,191 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.UserGridRelationDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcAppRemoveGridFormDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcLeaderSwitchGridFormDTO;
import com.elink.esua.epdc.dto.epdc.result.EpdcUserGridResultDTO;
import com.elink.esua.epdc.entity.UserGridRelationEntity;
import com.elink.esua.epdc.rocketmq.dto.OrganizationModifyDTO;
import java.util.List;
import java.util.Map;
/**
* 网格长与网格关系表
*
* @author work@yujt.net.cn
* @since v1.0.0 2019-10-23
*/
public interface UserGridRelationService extends BaseService<UserGridRelationEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<UserGridRelationDTO>
* @author generator
* @date 2019-10-23
*/
PageData<UserGridRelationDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<UserGridRelationDTO>
* @author generator
* @date 2019-10-23
*/
List<UserGridRelationDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return UserGridRelationDTO
* @author generator
* @date 2019-10-23
*/
UserGridRelationDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2019-10-23
*/
void save(UserGridRelationDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2019-10-23
*/
void update(UserGridRelationDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2019-10-23
*/
void delete(String[] ids);
/**
* 网格长小程序端切换网格
*
* @param switchGridDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserGridRelationDTO>
* @author work@yujt.net.cn
* @date 2019/10/23 11:05
*/
Result<UserGridRelationDTO> userSwitchGrid(EpdcLeaderSwitchGridFormDTO switchGridDto);
/**
* 获取网格长管理的网格列表
*
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcUserGridResultDTO>>
* @author work@yujt.net.cn
* @date 2019/10/23 13:28
*/
Result<List<EpdcUserGridResultDTO>> listUserGridForApi(String userId);
/**
* 获取用户绑定网格信息
*
* @return com.elink.esua.epdc.dto.UserGridRelationDTO
* @params [userId, gridId]
* @author liuchuang
* @since 2019/10/25 11:21
*/
UserGridRelationDTO getUserRelationInfo(String userId, Long gridId);
/**
* 获取用户所有网格
*
* @param userId
* @return java.util.List<com.elink.esua.epdc.dto.UserGridRelationDTO>
* @author work@yujt.net.cn
* @date 2019/10/25 18:20
*/
List<UserGridRelationDTO> listUserGrid(String userId);
/**
* 按用户id和网格id删除用户网格关系
*
* @param userId 用户id
* @param gridId 网格id
* @return int
* @author work@yujt.net.cn
* @date 2019/10/30 17:55
*/
int delete(String userId, Long gridId);
/**
* @param id 主键
* @return void
* @Author yinzuomei
* @Description 解绑
* @Date 2019/11/21 18:06
**/
void unbindGridHandle(String id);
/**
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @Author yinzuomei
* @Description 解除与网格的关联
* @Date 2019/11/22 14:31
**/
Result removeGrid(EpdcAppRemoveGridFormDTO formDto);
/**
*
* 获取用户最后一次切换的网格信息
*
* @params [userId]
* @return com.elink.esua.epdc.dto.UserGridRelationDTO
* @author liuchuang
* @since 2019/12/6 10:47
*/
UserGridRelationDTO getUserLastSwitchGird(String userId);
/**
*
* 事件修改组织机构信息
*
* @params [dto]
* @return void
* @author liuchuang
* @since 2020/3/7 1:23
*/
void modifyOrganizationInfo(OrganizationModifyDTO dto);
}

117
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserInvitationRecordService.java

@ -0,0 +1,117 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.UserInvitationRecordDTO;
import com.elink.esua.epdc.dto.epdc.result.UserInvitationRecordResultDTO;
import com.elink.esua.epdc.entity.UserInvitationRecordEntity;
import com.elink.esua.epdc.rocketmq.dto.OrganizationModifyDTO;
import java.util.List;
import java.util.Map;
/**
* 用户邀请记录表 用户邀请记录表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-12-02
*/
public interface UserInvitationRecordService extends BaseService<UserInvitationRecordEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<UserInvitationRecordDTO>
* @author generator
* @date 2019-12-02
*/
PageData<UserInvitationRecordDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<UserInvitationRecordDTO>
* @author generator
* @date 2019-12-02
*/
List<UserInvitationRecordDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return UserInvitationRecordDTO
* @author generator
* @date 2019-12-02
*/
UserInvitationRecordDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2019-12-02
*/
void save(UserInvitationRecordDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2019-12-02
*/
void update(UserInvitationRecordDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2019-12-02
*/
void delete(String[] ids);
/**
* 获取邀请记录
*
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcUserGroupInviteResultDTO>
* @params [formDto]
* @author liuchuang
* @since 2019/10/23 16:24
*/
List<UserInvitationRecordResultDTO> invitationRecord(Long userId);
/**
*
* 事件修改组织机构信息
*
* @params [dto]
* @return void
* @author liuchuang
* @since 2020/3/7 1:23
*/
void modifyOrganizationInfo(OrganizationModifyDTO dto);
}

410
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserService.java

@ -0,0 +1,410 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.PartyMemberModifyFormDTO;
import com.elink.esua.epdc.dto.PartyMembersDTO;
import com.elink.esua.epdc.dto.CachingUserInfoDTO;
import com.elink.esua.epdc.dto.UserDTO;
import com.elink.esua.epdc.dto.epdc.form.*;
import com.elink.esua.epdc.dto.epdc.result.*;
import com.elink.esua.epdc.entity.UserEntity;
import com.elink.esua.epdc.rocketmq.dto.OrganizationModifyDTO;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.Map;
/**
* 用户信息表
*
* @author qu qu@gmail.com
* @since v1.0.0 2019-09-02
*/
public interface UserService extends BaseService<UserEntity> {
PageData<UserDTO> page(Map<String, Object> params);
/**
*
* 待认证党员列表
*
* @params [params]
* @return com.elink.esua.epdc.commons.tools.page.PageData<com.elink.esua.epdc.dto.UserDTO>
* @author liuchuang
* @since 2020/3/23 15:57
*/
PageData<UserDTO> waitPartyPage(Map<String, Object> params);
List<UserDTO> list(Map<String, Object> params);
/**
*
* 待认证党员导出
*
* @params [params]
* @return java.util.List<com.elink.esua.epdc.dto.UserDTO>
* @author liuchuang
* @since 2020/3/23 16:25
*/
List<UserDTO> listOfWaitParty(Map<String, Object> params);
UserDTO get(String id);
void save(UserDTO dto);
void update(UserDTO dto);
void delete(String[] ids);
void audit(UserDTO dto);
/**
*
* 党员认证
*
* @params [dto]
* @return void
* @author liuchuang
* @since 2020/3/23 17:56
*/
Result<List<PartyMembersDTO>> partyReview(UserDTO dto);
/**
*
* 党员认证通过并更新党员库信息
*
* @params [dto]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author liuchuang
* @since 2020/3/24 19:46
*/
Result modifyPartyInfo(PartyMemberModifyFormDTO dto);
/**
*
* 新增党员信息并认证通过
*
* @params [dto]
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author liuchuang
* @since 2020/3/25 14:33
*/
Result addPartyInfo(PartyMemberModifyFormDTO dto);
/**
* 根据用户微信openId获取用户信息
*
* @param openId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/9/19 19:01
*/
Result<UserDTO> getUserInfoByOpenId(String openId);
/**
* 根据用户微信unionID获取用户信息
*
* @param unionId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/9/19 19:01
*/
@Deprecated
Result<UserDTO> getUserInfoByUnionId(String unionId);
/**
* 移动端用户注册
*
* @param userDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author yujintao
* @date 2019/9/7 14:20
*/
Result userRegister(UserDTO userDto);
/***
* @Description 移动端查询个人信息
* @Author qushutong
* @Date 2019/9/9 16:02
* @Param []
* @Return com.elink.esua.epdc.commons.tools.utils.Result
* @Exception
*
*/
Result<EpdcUserInfoResultDTO> getInfoById(String id);
/***
* @Description 修改手机号 或者头像
* @Author qushutong
* @Date 2019/9/9 17:14
* @Param [formDto]
* @Return com.elink.esua.epdc.commons.tools.utils.Result
* @Exception
*
*/
void updateMobileOrAvatar(UserDTO userDto);
/**
* 验证用户提交的注册信息
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author work@yujt.net.cn
* @date 2019/9/21 11:04
*/
@Deprecated
Result verifyUserRegisterData(EpdcUserRegistFormDTO formDto);
/**
* 登录前获取用户信息
*
* @param openId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/9/24 13:57
*/
@Deprecated
Result<UserDTO> getUserForLoginByOpenId(String openId);
/**
* 用户注册审核之后查询用户审核结果用于发送服务消息和短信消息
*
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcUserRegisterAuditMsgResultDTO>
* @author work@yujt.net.cn
* @date 2019/9/27 09:13
*/
Result<EpdcUserRegisterAuditMsgResultDTO> getUserRegisterAuditResult(String userId);
/**
* 移动端-社群添加好友列表
*
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcUserGroupInviteResultDTO>
* @params [formDto]
* @author liuchuang
* @since 2019/10/23 16:24
*/
List<EpdcUserGroupInviteResultDTO> listOfInviteUsers(EpdcUserGroupInviteFormDTO formDto);
/**
* 网格长注册
*
* @param registerDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @author work@yujt.net.cn
* @date 2019/10/23 09:35
*/
Result<UserDTO> gridLeaderRegister(EpdcGridLeaderRegisterFormDTO registerDto);
/**
* 检查用户注册状态
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcCheckUserRegisterResultDTO>
* @params [fromDto]
* @author liuchuang
* @since 2019/10/25 11:13
*/
Result<EpdcUserRegisterInfoResultDTO> checkUserRegisterState(EpdcCheckUserRegisterFromDTO fromDto);
/**
* 保存用户信息或关联网格信息
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcUserRegisterInfoResultDTO>
* @params [fromDto]
* @author liuchuang
* @since 2019/10/25 14:35
*/
Result<EpdcUserRegisterInfoResultDTO> saveUserOrBindGrid(EpdcUserRegisterBindGridFormDTO fromDto);
/**
* 验证用户完善个人信息时提交的数据
*
* @param userDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author work@yujt.net.cn
* @date 2019/10/26 11:18
*/
Result<String> verifyUserCompleteData(UserDTO userDto);
/**
* 用户完善个人信息
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author work@yujt.net.cn
* @date 2019/10/26 11:53
*/
Result<UserDTO> completeUserInfo(EpdcAppUserCompleteInfoFormDTO formDto);
/**
* 获取居民详情已认证或待认证提交信息待审核的居民用户
*
* @param userId 用户Id
* @return
*/
Result<EpdcResidentDetailResultDTO> residentDetail(String userId);
/**
* 获取党员详情已认证或未认证的党员用户
*
* @param userId
* @return
*/
Result<EpdcPartyMemberDetailDto> partyMemberDetail(String userId);
/**
* 认证用户用户信息审核
*
* @param formDTO
* @return
*/
Result authenticateResident(EpdcAppAuthenticateResidentFormDTO formDTO);
/***
* 获取用户列表
* @param workUserFromDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcWorkUserResultDTO>>
* @author qushutong
* @date 2019/11/18 14:00
*/
Result<List<EpdcWorkUserResultDTO>> getWorkUserList(EpdcWorkUserFromDTO workUserFromDto);
/***
* 查询待认证用户数量
* @param fromDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.lang.Integer>
* @author qushutong
* @date 2019/11/19 13:28
*/
Result<Integer> getUnauthorizedAmount(EpdcUnauthorizedAmountFromDTO fromDto);
/**
* 获取用户最后一次切换的网格信息
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.epdc.result.EpdcUserRegisterInfoResultDTO>
* @params [openId]
* @author liuchuang
* @since 2019/12/6 10:59
*/
Result<EpdcUserRegisterInfoResultDTO> getUserLastSwitchGird(String openId);
/**
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.UserDTO>
* @Author yinzuomei
* @Description 获取用户信息 合并上面的getByUnionIdgetForLogin方法
* @Date 2019/12/7 13:58
**/
Result<UserDTO> queryUserDto(EpdcAppQueryUserInfoFormDTO formDTO);
/**
* @param gridIdList
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcGridUserResultDTO>>
* @Author yinzuomei
* @Description 根据网格id查询网格下所有的用户
* @Date 2019/12/19 15:03
**/
Result<List<EpdcGridUserResultDTO>> listGridUserResultDTO(List<Long> gridIdList);
/***
* 居民在防疫哨卡进行登记时上送数据并完善党群系统个人信息
* @param completeInfoFromDto
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author qushutong
* @date 2020/2/15 10:58
*/
Result createPidemicInfo(EpdcAppPidemicCompleteInfoFromDTO completeInfoFromDto);
Result insertUserList(MultipartFile file, Map<String, Object> params);
/***
* 完善企业信息必填表单
* @param
* @return
* @author qushutong
* @date 2020/2/28 13:44
*/
Result completeRequisiteInfo(CompleteRequisiteUserInfoDTO fromDto);
/**
* @param formDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.CachingUserInfoDTO>
* @Author yinzuomei
* @Description 获取用户缓存信息
* @Date 2019/12/18 14:01
**/
Result<CachingUserInfoDTO> queryCachingUserInfo(EpdcAppQueryUserInfoFormDTO formDTO);
/**
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @Author yinzuomei
* @Description 根据操作类型更新用户积分
* @Date 2019/12/13 15:10
**/
Result<UserDTO> handleUserPoints(EpdcUserPointsFormDTO formDTO);
/**
* @param userId
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.CachingUserInfoDTO>
* @Author yinzuomei
* @Description 获取用户缓存信息
* @Date 2020/1/15 17:40
**/
Result<CachingUserInfoDTO> cachingUserInfoByUserId(String userId);
UserDTO updateWxInfo(UserDTO userDto);
/**
*
* 事件修改组织机构信息
*
* @params [dto]
* @return void
* @author liuchuang
* @since 2020/3/7 1:23
*/
void modifyOrganizationInfo(OrganizationModifyDTO dto);
/***
* 所有用户 用来锁定已注册在别的微信里面的信息
* @param params
* @return com.elink.esua.epdc.commons.tools.page.PageData<com.elink.esua.epdc.dto.UserDTO>
* @author qushutong
* @date 2020/3/16 10:53
*/
PageData<UserDTO> allUserPage(Map<String, Object> params);
/***
* 已认证列表
* @param params
* @return com.elink.esua.epdc.commons.tools.page.PageData<com.elink.esua.epdc.dto.UserDTO>
* @author qushutong
* @date 2020/3/16 16:16
*/
PageData<UserDTO> authenticatedpage(Map<String, Object> params);
}

116
epdc-cloud-user/src/main/java/com/elink/esua/epdc/service/UserTagRelationService.java

@ -0,0 +1,116 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.UserTagRelationDTO;
import com.elink.esua.epdc.entity.UserTagRelationEntity;
import java.util.List;
import java.util.Map;
/**
* 用户标签关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2019-09-30
*/
public interface UserTagRelationService extends BaseService<UserTagRelationEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<UserTagRelationDTO>
* @author generator
* @date 2019-09-30
*/
PageData<UserTagRelationDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<UserTagRelationDTO>
* @author generator
* @date 2019-09-30
*/
List<UserTagRelationDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return UserTagRelationDTO
* @author generator
* @date 2019-09-30
*/
UserTagRelationDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2019-09-30
*/
void save(UserTagRelationDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2019-09-30
*/
void update(UserTagRelationDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2019-09-30
*/
void delete(String[] ids);
/**
* @param userId 用户id
* @param tagCode 用户标签code
* @return void
* @Author yinzuomei
* @Description 新增用户标签关系
* @Date 2020/2/7 12:05
**/
void addUserTagRelation(String userId, String tagCode);
/**
* 移除用户标签关系
*
* @param userId 用户id
* @param tagCode 标签编码
* @return void
* @author work@yujt.net.cn
* @date 2020/4/10 13:28
*/
void removeUserTagRelation(String userId, String tagCode);
}

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save