174 changed files with 18316 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||
# 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/ |
|||
|
|||
@ -0,0 +1,558 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<title>epdc-admin</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-AREA-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-AREA-to">3.1 AREA【】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_DEPT_MA_CODE-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-EPDC_DEPT_MA_CODE-to">3.2 EPDC_DEPT_MA_CODE【网格小程序码】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_MENU-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_MENU-to">3.3 SYS_APP_MENU【菜单管理】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_MENU_TEMPLATE-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_MENU_TEMPLATE-to">3.4 SYS_APP_MENU_TEMPLATE【APP菜单模板管理】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_ROLE_MENU-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_ROLE_MENU-to">3.5 SYS_APP_ROLE_MENU【角色菜单关系】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_DEPT-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_DEPT-to">3.6 SYS_DEPT【部门管理】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_DICT-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_DICT-to">3.7 SYS_DICT【数据字典】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LANGUAGE-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_LANGUAGE-to">3.8 SYS_LANGUAGE【国际化】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_ERROR-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_ERROR-to">3.9 SYS_LOG_ERROR【异常日志】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_LOGIN-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_LOGIN-to">3.10 SYS_LOG_LOGIN【登录日志】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_OPERATION-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_OPERATION-to">3.11 SYS_LOG_OPERATION【操作日志】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MAIL_LOG-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_MAIL_LOG-to">3.12 SYS_MAIL_LOG【邮件发送记录】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MAIL_TEMPLATE-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_MAIL_TEMPLATE-to">3.13 SYS_MAIL_TEMPLATE【邮件模板】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MENU-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_MENU-to">3.14 SYS_MENU【菜单管理】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_OSS-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_OSS-to">3.15 SYS_OSS【文件上传】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_PARAMS-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_PARAMS-to">3.16 SYS_PARAMS【参数管理】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_PARTY_DEPT-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_PARTY_DEPT-to">3.17 SYS_PARTY_DEPT【党委部门管理 党委部门管理】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_RESOURCE-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_RESOURCE-to">3.18 SYS_RESOURCE【资源管理】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE-to">3.19 SYS_ROLE【角色管理】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_DATA_SCOPE-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_DATA_SCOPE-to">3.20 SYS_ROLE_DATA_SCOPE【角色数据权限】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_MENU-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_MENU-to">3.21 SYS_ROLE_MENU【角色菜单关系】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_USER-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_USER-to">3.22 SYS_ROLE_USER【角色用户关系】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_SMS-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_SMS-to">3.23 SYS_SMS【短信】</a></li> |
|||
<li class="third-li"><a id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_USER-from" href="#module-DB_REVERSE_MYSQL-tableColumnList-SYS_USER-to">3.24 SYS_USER【用户管理】</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.25 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>AREA</td><td></td></tr> |
|||
<tr><td>网格小程序码</td><td>EPDC_DEPT_MA_CODE</td><td></td></tr> |
|||
<tr><td>菜单管理</td><td>SYS_APP_MENU</td><td></td></tr> |
|||
<tr><td>APP菜单模板管理</td><td>SYS_APP_MENU_TEMPLATE</td><td></td></tr> |
|||
<tr><td>角色菜单关系</td><td>SYS_APP_ROLE_MENU</td><td></td></tr> |
|||
<tr><td>部门管理</td><td>SYS_DEPT</td><td></td></tr> |
|||
<tr><td>数据字典</td><td>SYS_DICT</td><td></td></tr> |
|||
<tr><td>国际化</td><td>SYS_LANGUAGE</td><td></td></tr> |
|||
<tr><td>异常日志</td><td>SYS_LOG_ERROR</td><td></td></tr> |
|||
<tr><td>登录日志</td><td>SYS_LOG_LOGIN</td><td></td></tr> |
|||
<tr><td>操作日志</td><td>SYS_LOG_OPERATION</td><td></td></tr> |
|||
<tr><td>邮件发送记录</td><td>SYS_MAIL_LOG</td><td></td></tr> |
|||
<tr><td>邮件模板</td><td>SYS_MAIL_TEMPLATE</td><td></td></tr> |
|||
<tr><td>菜单管理</td><td>SYS_MENU</td><td></td></tr> |
|||
<tr><td>文件上传</td><td>SYS_OSS</td><td></td></tr> |
|||
<tr><td>参数管理</td><td>SYS_PARAMS</td><td></td></tr> |
|||
<tr><td>党委部门管理 党委部门管理</td><td>SYS_PARTY_DEPT</td><td></td></tr> |
|||
<tr><td>资源管理</td><td>SYS_RESOURCE</td><td></td></tr> |
|||
<tr><td>角色管理</td><td>SYS_ROLE</td><td></td></tr> |
|||
<tr><td>角色数据权限</td><td>SYS_ROLE_DATA_SCOPE</td><td></td></tr> |
|||
<tr><td>角色菜单关系</td><td>SYS_ROLE_MENU</td><td></td></tr> |
|||
<tr><td>角色用户关系</td><td>SYS_ROLE_USER</td><td></td></tr> |
|||
<tr><td>短信</td><td>SYS_SMS</td><td></td></tr> |
|||
<tr><td>用户管理</td><td>SYS_USER</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-AREA-to" href="module-DB_REVERSE_MYSQL-tableColumnList-AREA-from">1.3.1 AREA【】</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>INT(10)</td><td>√</td><td></td></tr> |
|||
<tr><td>PARENT_ID</td><td>父级ID</td><td>INT(10)</td><td></td><td></td></tr> |
|||
<tr><td>NAME</td><td>名称</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>SHORT_NAME</td><td>简称</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>LONGITUDE</td><td>经度</td><td>FLOAT(12)</td><td></td><td></td></tr> |
|||
<tr><td>LATITUDE</td><td>纬度</td><td>FLOAT(12)</td><td></td><td></td></tr> |
|||
<tr><td>LEVEL</td><td>等级(1省/直辖市,2地级市,3区县,4镇/街道)</td><td>INT(10)</td><td></td><td></td></tr> |
|||
<tr><td>SORT</td><td>排序</td><td>INT(10)</td><td></td><td></td></tr> |
|||
<tr><td>STATUS</td><td>状态(0禁用/1启用)</td><td>INT(10)</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_DEPT_MA_CODE-to" href="module-DB_REVERSE_MYSQL-tableColumnList-EPDC_DEPT_MA_CODE-from">1.3.2 EPDC_DEPT_MA_CODE【网格小程序码】</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>GRID_ID</td><td>网格ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CODE_URL</td><td>小程序码URL</td><td>VARCHAR(512)</td><td></td><td></td></tr> |
|||
<tr><td>LEADER_FLAG</td><td>是否是网格长码,0否 1是</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>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-SYS_APP_MENU-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_MENU-from">1.3.3 SYS_APP_MENU【菜单管理】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>PID</td><td>上级ID,一级菜单为0</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>URL</td><td>菜单URL</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>TYPE</td><td>类型 0:菜单 1:按钮</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>ICON</td><td>菜单图标</td><td>VARCHAR(500)</td><td></td><td></td></tr> |
|||
<tr><td>PERMISSIONS</td><td>权限标识,如:sys:menu:save</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>SORT</td><td>排序</td><td>INT(10)</td><td></td><td></td></tr> |
|||
<tr><td>DEL_FLAG</td><td>删除标识 0:未删除 1:删除</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>MENU_CODE</td><td>菜单编码</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>REMARK</td><td>备注</td><td>VARCHAR(255)</td><td></td><td></td></tr> |
|||
<tr><td>TEMPLATE_ID</td><td>模板ID</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_MENU_TEMPLATE-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_MENU_TEMPLATE-from">1.3.4 SYS_APP_MENU_TEMPLATE【APP菜单模板管理】</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>GRADATION_FLAG</td><td>是否渐变色(0否1是)</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>BACKGROUND_COLOR</td><td>背景颜色(渐变色为0时使用)</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>START_COLOR</td><td>开始色(渐变色为1时使用)</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>END_COLOR</td><td>终止色(渐变色为1时使用)</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>LABLE_COLOR</td><td>标签颜色</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>TEMPLATE_CODE</td><td>模板编码(tem-1,tem-2,tem-3)</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>TEMPLATE_NAME</td><td>模板名称</td><td>VARCHAR(50)</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-SYS_APP_ROLE_MENU-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_APP_ROLE_MENU-from">1.3.5 SYS_APP_ROLE_MENU【角色菜单关系】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>ROLE_ID</td><td>角色ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>MENU_ID</td><td>菜单ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_DEPT-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_DEPT-from">1.3.6 SYS_DEPT【部门管理】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>PID</td><td>上级ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>PIDS</td><td>所有上级ID,用逗号分开</td><td>VARCHAR(500)</td><td></td><td></td></tr> |
|||
<tr><td>NAME</td><td>部门名称</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>SORT</td><td>排序</td><td>INT UNSIGNED(10)</td><td></td><td></td></tr> |
|||
<tr><td>DEL_FLAG</td><td>删除标识 0:未删除 1:删除</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>TYPE_KEY</td><td>机构类型键值</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>PARTY_CODE</td><td>部门编码</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>PPID</td><td>所属党委ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_DICT-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_DICT-from">1.3.7 SYS_DICT【数据字典】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>PID</td><td>上级ID,一级为0</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>DICT_TYPE</td><td>字典类型</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>DICT_NAME</td><td>字典名称</td><td>VARCHAR(255)</td><td></td><td></td></tr> |
|||
<tr><td>DICT_VALUE</td><td>字典值</td><td>VARCHAR(255)</td><td></td><td></td></tr> |
|||
<tr><td>REMARK</td><td>备注</td><td>VARCHAR(255)</td><td></td><td></td></tr> |
|||
<tr><td>SORT</td><td>排序</td><td>INT UNSIGNED(10)</td><td></td><td></td></tr> |
|||
<tr><td>DEL_FLAG</td><td>删除标识 0:未删除 1:删除</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LANGUAGE-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LANGUAGE-from">1.3.8 SYS_LANGUAGE【国际化】</a> |
|||
|
|||
<table border="1" cellspacing="0"> |
|||
<tr class="first-tr"><td>代码</td><td>名称</td><td>数据类型(MYSQL)</td><td>主键</td><td>备注</td></tr> |
|||
<tr><td>TABLE_NAME</td><td>表名</td><td>VARCHAR(32)</td><td>√</td><td></td></tr> |
|||
<tr><td>TABLE_ID</td><td>表主键</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>FIELD_NAME</td><td>字段名</td><td>VARCHAR(32)</td><td>√</td><td></td></tr> |
|||
<tr><td>FIELD_VALUE</td><td>字段值</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>LANGUAGE</td><td>语言</td><td>VARCHAR(10)</td><td>√</td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_ERROR-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_ERROR-from">1.3.9 SYS_LOG_ERROR【异常日志】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>MODULE</td><td>模块名称,如:sys</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>REQUEST_URI</td><td>请求URI</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>REQUEST_METHOD</td><td>请求方式</td><td>VARCHAR(20)</td><td></td><td></td></tr> |
|||
<tr><td>REQUEST_PARAMS</td><td>请求参数</td><td>TEXT</td><td></td><td></td></tr> |
|||
<tr><td>USER_AGENT</td><td>用户代理</td><td>VARCHAR(500)</td><td></td><td></td></tr> |
|||
<tr><td>IP</td><td>操作IP</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>ERROR_INFO</td><td>异常信息</td><td>TEXT</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_LOGIN-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_LOGIN-from">1.3.10 SYS_LOG_LOGIN【登录日志】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>OPERATION</td><td>用户操作 0:用户登录 1:用户退出</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>STATUS</td><td>状态 0:失败 1:成功 2:账号已锁定</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>USER_AGENT</td><td>用户代理</td><td>VARCHAR(500)</td><td></td><td></td></tr> |
|||
<tr><td>IP</td><td>操作IP</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR_NAME</td><td>用户名</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_OPERATION-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_LOG_OPERATION-from">1.3.11 SYS_LOG_OPERATION【操作日志】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>MODULE</td><td>模块名称,如:sys</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>OPERATION</td><td>用户操作</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>REQUEST_URI</td><td>请求URI</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>REQUEST_METHOD</td><td>请求方式</td><td>VARCHAR(20)</td><td></td><td></td></tr> |
|||
<tr><td>REQUEST_PARAMS</td><td>请求参数</td><td>TEXT</td><td></td><td></td></tr> |
|||
<tr><td>REQUEST_TIME</td><td>请求时长(毫秒)</td><td>INT UNSIGNED(10)</td><td></td><td></td></tr> |
|||
<tr><td>USER_AGENT</td><td>用户代理</td><td>VARCHAR(500)</td><td></td><td></td></tr> |
|||
<tr><td>IP</td><td>操作IP</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>STATUS</td><td>状态 0:失败 1:成功</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR_NAME</td><td>用户名</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MAIL_LOG-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MAIL_LOG-from">1.3.12 SYS_MAIL_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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>TEMPLATE_ID</td><td>邮件模板ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>MAIL_FROM</td><td>发送者</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>MAIL_TO</td><td>收件人</td><td>VARCHAR(400)</td><td></td><td></td></tr> |
|||
<tr><td>MAIL_CC</td><td>抄送者</td><td>VARCHAR(400)</td><td></td><td></td></tr> |
|||
<tr><td>SUBJECT</td><td>邮件主题</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>CONTENT</td><td>邮件正文</td><td>TEXT</td><td></td><td></td></tr> |
|||
<tr><td>STATUS</td><td>发送状态 0:失败 1:成功</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MAIL_TEMPLATE-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MAIL_TEMPLATE-from">1.3.13 SYS_MAIL_TEMPLATE【邮件模板】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>NAME</td><td>模板名称</td><td>VARCHAR(100)</td><td></td><td></td></tr> |
|||
<tr><td>SUBJECT</td><td>邮件主题</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>CONTENT</td><td>邮件正文</td><td>TEXT</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MENU-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_MENU-from">1.3.14 SYS_MENU【菜单管理】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>PID</td><td>上级ID,一级菜单为0</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>URL</td><td>菜单URL</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>TYPE</td><td>类型 0:菜单 1:按钮</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>ICON</td><td>菜单图标</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>PERMISSIONS</td><td>权限标识,如:sys:menu:save</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>SORT</td><td>排序</td><td>INT(10)</td><td></td><td></td></tr> |
|||
<tr><td>DEL_FLAG</td><td>删除标识 0:未删除 1:删除</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>MENU_CODE</td><td>菜单编码</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_OSS-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_OSS-from">1.3.15 SYS_OSS【文件上传】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>URL</td><td>URL地址</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_PARAMS-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_PARAMS-from">1.3.16 SYS_PARAMS【参数管理】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>PARAM_CODE</td><td>参数编码</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>PARAM_VALUE</td><td>参数值</td><td>VARCHAR(2000)</td><td></td><td></td></tr> |
|||
<tr><td>PARAM_TYPE</td><td>类型 0:系统参数 1:非系统参数</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>REMARK</td><td>备注</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>DEL_FLAG</td><td>删除标识 0:未删除 1:删除</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_PARTY_DEPT-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_PARTY_DEPT-from">1.3.17 SYS_PARTY_DEPT【党委部门管理 党委部门管理】</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>PID</td><td>上级ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>PIDS</td><td>所有上级ID,用逗号分开</td><td>VARCHAR(500)</td><td></td><td></td></tr> |
|||
<tr><td>NAME</td><td>部门名称</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>TYPE_KEY</td><td>机构类型键值</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>PARTY_CODE</td><td>部门编码</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>SORT</td><td>排序</td><td>INT(10)</td><td></td><td></td></tr> |
|||
<tr><td>DEL_FLAG</td><td>删除标记</td><td>VARCHAR(1)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATED_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATED_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_RESOURCE-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_RESOURCE-from">1.3.18 SYS_RESOURCE【资源管理】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>RESOURCE_CODE</td><td>资源编码,如菜单ID</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>RESOURCE_NAME</td><td>资源名称</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>RESOURCE_URL</td><td>资源URL</td><td>VARCHAR(100)</td><td></td><td></td></tr> |
|||
<tr><td>RESOURCE_METHOD</td><td>请求方式(如:GET、POST、PUT、DELETE)</td><td>VARCHAR(8)</td><td></td><td></td></tr> |
|||
<tr><td>MENU_FLAG</td><td>菜单标识 0:非菜单资源 1:菜单资源</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>AUTH_LEVEL</td><td>认证等级 0:权限认证 1:登录认证 2:无需认证</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE-from">1.3.19 SYS_ROLE【角色管理】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>NAME</td><td>角色名称</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>TYPE_KEY</td><td>角色类型键值(数据字典sysRoleType)</td><td>VARCHAR(32)</td><td></td><td></td></tr> |
|||
<tr><td>REMARK</td><td>备注</td><td>VARCHAR(100)</td><td></td><td></td></tr> |
|||
<tr><td>DEL_FLAG</td><td>删除标识 0:未删除 1:删除</td><td>TINYINT UNSIGNED(3)</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>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_DATA_SCOPE-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_DATA_SCOPE-from">1.3.20 SYS_ROLE_DATA_SCOPE【角色数据权限】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>ROLE_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>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_MENU-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_MENU-from">1.3.21 SYS_ROLE_MENU【角色菜单关系】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>ROLE_ID</td><td>角色ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>MENU_ID</td><td>菜单ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_USER-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_ROLE_USER-from">1.3.22 SYS_ROLE_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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>ROLE_ID</td><td>角色ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>USER_ID</td><td>用户ID</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_SMS-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_SMS-from">1.3.23 SYS_SMS【短信】</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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>PLATFORM</td><td>平台类型</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>MOBILE</td><td>手机号</td><td>VARCHAR(20)</td><td></td><td></td></tr> |
|||
<tr><td>PARAMS_1</td><td>参数1</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>PARAMS_2</td><td>参数2</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>PARAMS_3</td><td>参数3</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>PARAMS_4</td><td>参数4</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>STATUS</td><td>发送状态 0:失败 1:成功</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
</table> |
|||
</li> |
|||
|
|||
<li><a class="block" id="module-DB_REVERSE_MYSQL-tableColumnList-SYS_USER-to" href="module-DB_REVERSE_MYSQL-tableColumnList-SYS_USER-from">1.3.24 SYS_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>id</td><td>BIGINT(19)</td><td>√</td><td></td></tr> |
|||
<tr><td>USERNAME</td><td>用户名</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>PASSWORD</td><td>密码</td><td>VARCHAR(100)</td><td></td><td></td></tr> |
|||
<tr><td>REAL_NAME</td><td>姓名</td><td>VARCHAR(50)</td><td></td><td></td></tr> |
|||
<tr><td>HEAD_URL</td><td>头像</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>GENDER</td><td>性别 1:男 0:女 2:保密</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>EMAIL</td><td>邮箱</td><td>VARCHAR(100)</td><td></td><td></td></tr> |
|||
<tr><td>MOBILE</td><td>手机号</td><td>VARCHAR(20)</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>SUPER_ADMIN</td><td>超级管理员 0:否 1:是</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>STATUS</td><td>状态 0:停用 1:正常</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>REMARK</td><td>备注</td><td>VARCHAR(200)</td><td></td><td></td></tr> |
|||
<tr><td>DEL_FLAG</td><td>删除标识 0:未删除 1:删除</td><td>TINYINT UNSIGNED(3)</td><td></td><td></td></tr> |
|||
<tr><td>CREATOR</td><td>创建者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>CREATE_DATE</td><td>创建时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>UPDATER</td><td>更新者</td><td>BIGINT(19)</td><td></td><td></td></tr> |
|||
<tr><td>UPDATE_DATE</td><td>更新时间</td><td>DATETIME</td><td></td><td></td></tr> |
|||
<tr><td>USER_TAG_KEY</td><td>用户标签键值</td><td>VARCHAR(15)</td><td></td><td></td></tr> |
|||
<tr><td>OPEN_ID</td><td>微信openId</td><td>VARCHAR(32)</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.25 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> |
|||
File diff suppressed because it is too large
@ -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 $JAR_CONFIG $JAR_PATH |
|||
EXPOSE ${SERVER_PORT} |
|||
@ -0,0 +1,257 @@ |
|||
<?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-admin</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> |
|||
|
|||
<!-- zipkin client --> |
|||
<dependency> |
|||
<groupId>org.springframework.cloud</groupId> |
|||
<artifactId>spring-cloud-starter-zipkin</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- 替换Feign原生httpclient --> |
|||
<dependency> |
|||
<groupId>io.github.openfeign</groupId> |
|||
<artifactId>feign-httpclient</artifactId> |
|||
</dependency> |
|||
|
|||
<!--RocketMq--> |
|||
<dependency> |
|||
<groupId>org.apache.rocketmq</groupId> |
|||
<artifactId>rocketmq-spring-boot-starter</artifactId> |
|||
<version>2.0.3</version> |
|||
</dependency> |
|||
|
|||
<!-- common start --> |
|||
<dependency> |
|||
<groupId>com.esua.epdc.yushan</groupId> |
|||
<artifactId>epdc-commons-mybatis</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-tools-wx-ma</artifactId> |
|||
<version>${epdc-cloud-commons.version}</version> |
|||
</dependency> |
|||
|
|||
<!-- common end --> |
|||
|
|||
<!-- client start --> |
|||
<dependency> |
|||
<groupId>com.esua.epdc.yushan</groupId> |
|||
<artifactId>epdc-cloud-events-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> |
|||
<!-- client 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> |
|||
<server.port>9092</server.port> |
|||
<spring.profiles.active>dev</spring.profiles.active> |
|||
<docker.tag>dev</docker.tag> |
|||
|
|||
<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> |
|||
|
|||
<!-- nacos --> |
|||
<nacos.register-enabled>false</nacos.register-enabled> |
|||
<nacos.server-addr>47.104.224.45:8848</nacos.server-addr> |
|||
<nacos.ip></nacos.ip> |
|||
<nacos.namespace>a746dde3-7a13-4521-b986-7369b0b7c269</nacos.namespace> |
|||
|
|||
<spring.zipkin.base-url>http://localhost:9411</spring.zipkin.base-url> |
|||
<!--小程序配置--> |
|||
<wx.ma.appId>wxdd8530c5f4926766</wx.ma.appId> |
|||
<wx.ma.secret>5bf4fb813145431b3493a10aa7e041e9</wx.ma.secret> |
|||
<!--工作端小程序--> |
|||
<work.wx.ma.appId>wx29b074840ef4bfd9</work.wx.ma.appId> |
|||
<work.wx.ma.secret>4adb1afccc69f205cdf5b521d74e2aca</work.wx.ma.secret> |
|||
<!--数据分析端小程序--> |
|||
<analysis.wx.ma.appId>wxfa4afaa2b5f9c876</analysis.wx.ma.appId> |
|||
<analysis.wx.ma.secret>7db9f049c78c9a6cafa673deebe8330d</analysis.wx.ma.secret> |
|||
<!--RocketMQ--> |
|||
<rocketmq.name.server>47.104.85.99:9876;114.215.125.123:9876</rocketmq.name.server> |
|||
<rocketmq.producer.group>organizationGroup</rocketmq.producer.group> |
|||
</properties> |
|||
</profile> |
|||
|
|||
<profile> |
|||
<id>test</id> |
|||
<properties> |
|||
<server.port>10021</server.port> |
|||
<spring.profiles.active>test</spring.profiles.active> |
|||
<docker.tag>test</docker.tag> |
|||
|
|||
<!-- nacos --> |
|||
<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> |
|||
|
|||
<spring.zipkin.base-url>http://localhost:9411</spring.zipkin.base-url> |
|||
<!--亿联小程序配置--> |
|||
<!-- <wx.ma.appId>wxdd8530c5f4926766</wx.ma.appId>--> |
|||
<!-- <wx.ma.secret>5bf4fb813145431b3493a10aa7e041e9</wx.ma.secret>--> |
|||
|
|||
<!--先锋市北小程序配置--> |
|||
<wx.ma.appId>wx5d3e97461d248397</wx.ma.appId> |
|||
<wx.ma.secret>bfed51b731e53db9affb9e6131e7ae12</wx.ma.secret> |
|||
<!--工作端小程序--> |
|||
<work.wx.ma.appId>wx9f20a46906ab2c3e</work.wx.ma.appId> |
|||
<work.wx.ma.secret>dc13065f79429979d9f687d249eb5c4e</work.wx.ma.secret> |
|||
<!--数据分析端小程序--> |
|||
<analysis.wx.ma.appId>wxfa4afaa2b5f9c876</analysis.wx.ma.appId> |
|||
<analysis.wx.ma.secret>7db9f049c78c9a6cafa673deebe8330d</analysis.wx.ma.secret> |
|||
<!--RocketMQ--> |
|||
<rocketmq.name.server>47.104.85.99:9876;114.215.125.123:9876</rocketmq.name.server> |
|||
<rocketmq.producer.group>organizationGroup</rocketmq.producer.group> |
|||
</properties> |
|||
</profile> |
|||
|
|||
<profile> |
|||
<id>prod</id> |
|||
<properties> |
|||
<server.port>9055</server.port> |
|||
<spring.profiles.active>prod</spring.profiles.active> |
|||
<docker.tag>prod</docker.tag> |
|||
|
|||
<!-- 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> |
|||
|
|||
<!-- 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> |
|||
|
|||
<spring.zipkin.base-url>http://172.31.171.61:9411</spring.zipkin.base-url> |
|||
|
|||
<!--党群e家小程序配置--> |
|||
<wx.ma.appId>wxdd8530c5f4926766</wx.ma.appId> |
|||
<wx.ma.secret>5bf4fb813145431b3493a10aa7e041e9</wx.ma.secret> |
|||
<!--先锋市北小程序配置--> |
|||
<!-- <wx.ma.appId>wx5d3e97461d248397</wx.ma.appId>--> |
|||
<!-- <wx.ma.secret>bfed51b731e53db9affb9e6131e7ae12</wx.ma.secret>--> |
|||
<!--工作端小程序--> |
|||
<work.wx.ma.appId>wx9f20a46906ab2c3e</work.wx.ma.appId> |
|||
<work.wx.ma.secret>dc13065f79429979d9f687d249eb5c4e</work.wx.ma.secret> |
|||
<!--数据分析端小程序--> |
|||
<analysis.wx.ma.appId>wxfa4afaa2b5f9c876</analysis.wx.ma.appId> |
|||
<analysis.wx.ma.secret>7db9f049c78c9a6cafa673deebe8330d</analysis.wx.ma.secret> |
|||
|
|||
<spring.datasource.druid.url> |
|||
<![CDATA[jdbc:mysql://172.16.0.52:3306/esua_epdc_admin?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> |
|||
<!--RocketMQ--> |
|||
<rocketmq.name.server>172.16.0.52:9876;172.16.0.54:9876</rocketmq.name.server> |
|||
<rocketmq.producer.group>organizationGroup</rocketmq.producer.group> |
|||
</properties> |
|||
</profile> |
|||
</profiles> |
|||
</project> |
|||
@ -0,0 +1,31 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
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; |
|||
|
|||
/** |
|||
* 管理后台 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@SpringBootApplication |
|||
@EnableDiscoveryClient |
|||
@EnableFeignClients |
|||
public class AdminApplication { |
|||
|
|||
public static void main(String[] args) { |
|||
SpringApplication.run(AdminApplication.class, args); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
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 "sys"; |
|||
} |
|||
} |
|||
@ -0,0 +1,68 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.config; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.constant.Constant; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
|||
import springfox.documentation.builders.ApiInfoBuilder; |
|||
import springfox.documentation.builders.PathSelectors; |
|||
import springfox.documentation.builders.RequestHandlerSelectors; |
|||
import springfox.documentation.service.ApiInfo; |
|||
import springfox.documentation.service.ApiKey; |
|||
import springfox.documentation.spi.DocumentationType; |
|||
import springfox.documentation.spring.web.plugins.Docket; |
|||
import springfox.documentation.swagger2.annotations.EnableSwagger2; |
|||
|
|||
import java.util.List; |
|||
|
|||
import static com.google.common.collect.Lists.newArrayList; |
|||
|
|||
/** |
|||
* Swagger配置 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Configuration |
|||
@EnableSwagger2 |
|||
public class SwaggerConfig { |
|||
|
|||
@Bean |
|||
public Docket createRestApi() { |
|||
return new Docket(DocumentationType.SWAGGER_2) |
|||
.apiInfo(apiInfo()) |
|||
.select() |
|||
//加了ApiOperation注解的类,才生成接口文档
|
|||
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) |
|||
//包下的类,才生成接口文档
|
|||
//.apis(RequestHandlerSelectors.basePackage("io.renren.controller"))
|
|||
.paths(PathSelectors.any()) |
|||
.build() |
|||
.directModelSubstitute(java.util.Date.class, String.class) |
|||
.securitySchemes(security()); |
|||
} |
|||
|
|||
private ApiInfo apiInfo() { |
|||
return new ApiInfoBuilder() |
|||
.title("人人开源") |
|||
.description("系统模块开发文档") |
|||
.termsOfServiceUrl("https://www.renren.io/community") |
|||
.version("1.1.0") |
|||
.build(); |
|||
} |
|||
|
|||
private List<ApiKey> security() { |
|||
return newArrayList( |
|||
new ApiKey(Constant.TOKEN_HEADER, Constant.TOKEN_HEADER, "header") |
|||
); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,141 @@ |
|||
/** |
|||
* 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.exception.ErrorCode; |
|||
import com.elink.esua.epdc.commons.tools.security.user.UserDetail; |
|||
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.AppMenuDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.EpdcAppIndexPanelResultDTO; |
|||
import com.elink.esua.epdc.excel.AppMenuExcel; |
|||
import com.elink.esua.epdc.service.AppMenuService; |
|||
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; |
|||
|
|||
|
|||
/** |
|||
* APP菜单管理 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("appmenu") |
|||
public class AppMenuController { |
|||
|
|||
@Autowired |
|||
private AppMenuService appMenuService; |
|||
|
|||
/** |
|||
* 获取APP菜单列表 |
|||
* |
|||
* @param type 菜单类型 0:菜单 1:按钮 null:全部 |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.AppMenuDTO>> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/19 13:26 |
|||
*/ |
|||
@GetMapping("list") |
|||
public Result<List<AppMenuDTO>> list(Integer type) { |
|||
List<AppMenuDTO> list = appMenuService.getAppMenuList(type); |
|||
return new Result<List<AppMenuDTO>>().ok(list); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<AppMenuDTO> get(@PathVariable("id") String id) { |
|||
AppMenuDTO data = appMenuService.get(id); |
|||
return new Result<AppMenuDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody AppMenuDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
appMenuService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody AppMenuDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
appMenuService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping("{id}") |
|||
public Result delete(@PathVariable("id") Long id){ |
|||
//效验数据
|
|||
AssertUtils.isNull(id, "id"); |
|||
|
|||
//判断是否有子菜单或按钮
|
|||
if(appMenuService.hasChileMenu(id)){ |
|||
return new Result().error(ErrorCode.SUB_MENU_EXIST); |
|||
} |
|||
|
|||
appMenuService.delete(id); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<AppMenuDTO> list = appMenuService.list(params); |
|||
ExcelUtils.exportExcelToTarget(response, null, list, AppMenuExcel.class); |
|||
} |
|||
|
|||
@GetMapping("select") |
|||
public Result<List<AppMenuDTO>> select(UserDetail userDetail) { |
|||
List<AppMenuDTO> list = appMenuService.getUserMenuList(userDetail, null); |
|||
|
|||
return new Result<List<AppMenuDTO>>().ok(list); |
|||
} |
|||
|
|||
/** |
|||
* @param mobile |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcIndexPanelResultDTO>> |
|||
* @Author yinzuomei |
|||
* @Description 首页面板 获取工作端APP菜单 |
|||
* @Date 2019/11/20 10:43 |
|||
**/ |
|||
@GetMapping("/indexPanel/{mobile}") |
|||
public Result<List<EpdcAppIndexPanelResultDTO>> indexPanel(@PathVariable("mobile") String mobile) { |
|||
return appMenuService.indexPanel(mobile); |
|||
} |
|||
/** |
|||
* @param userId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO>> |
|||
* @Author lpf |
|||
* @Description 首页面板 获取数据端APP菜单 |
|||
* @Date 2020/03/18 10:42 |
|||
**/ |
|||
@GetMapping("/analysisIndexPanel/{userId}") |
|||
public Result<List<EpdcAppChildNavResultDTO>> analysisIndexPanel(@PathVariable("userId") String userId) { |
|||
return appMenuService.getAnalysisIndexPanel(userId); |
|||
} |
|||
} |
|||
@ -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.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.AppMenuTemplateDTO; |
|||
import com.elink.esua.epdc.service.AppMenuTemplateService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* APP菜单模板管理 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("appmenutemplate") |
|||
public class AppMenuTemplateController { |
|||
|
|||
@Autowired |
|||
private AppMenuTemplateService appMenuTemplateService; |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<AppMenuTemplateDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<AppMenuTemplateDTO> page = appMenuTemplateService.page(params); |
|||
return new Result<PageData<AppMenuTemplateDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("list") |
|||
public Result<List<AppMenuTemplateDTO>> list(){ |
|||
List<AppMenuTemplateDTO> list = appMenuTemplateService.list(new HashMap<>()); |
|||
return new Result<List<AppMenuTemplateDTO>>().ok(list); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<AppMenuTemplateDTO> get(@PathVariable("id") String id){ |
|||
AppMenuTemplateDTO data = appMenuTemplateService.get(id); |
|||
return new Result<AppMenuTemplateDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody AppMenuTemplateDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
appMenuTemplateService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody AppMenuTemplateDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
appMenuTemplateService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
appMenuTemplateService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
|||
@ -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.AppRoleMenuDTO; |
|||
import com.elink.esua.epdc.excel.AppRoleMenuExcel; |
|||
import com.elink.esua.epdc.service.AppRoleMenuService; |
|||
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; |
|||
|
|||
|
|||
/** |
|||
* APP角色菜单关系 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("approlemenu") |
|||
public class AppRoleMenuController { |
|||
|
|||
@Autowired |
|||
private AppRoleMenuService appRoleMenuService; |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<AppRoleMenuDTO>> page(@RequestParam Map<String, Object> params) { |
|||
PageData<AppRoleMenuDTO> page = appRoleMenuService.page(params); |
|||
return new Result<PageData<AppRoleMenuDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<AppRoleMenuDTO> get(@PathVariable("id") String id) { |
|||
AppRoleMenuDTO data = appRoleMenuService.get(id); |
|||
return new Result<AppRoleMenuDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody AppRoleMenuDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
appRoleMenuService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody AppRoleMenuDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
appRoleMenuService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids) { |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
appRoleMenuService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<AppRoleMenuDTO> list = appRoleMenuService.list(params); |
|||
ExcelUtils.exportExcelToTarget(response, null, list, AppRoleMenuExcel.class); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,55 @@ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.annotation.DataFilter; |
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.dto.SimpleAreaDTO; |
|||
import com.elink.esua.epdc.dto.SysSimpleDeptDTO; |
|||
import com.elink.esua.epdc.service.AreaService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 获取行政区划 |
|||
* |
|||
* @author liuhongwei @elink-cn.com |
|||
* @since v1.0.0 2019-05-13 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("area") |
|||
public class AreaController { |
|||
|
|||
@Autowired |
|||
private AreaService areaService; |
|||
|
|||
/** |
|||
* 根据区划ID,获取下属区域列表 |
|||
* |
|||
* @param areaId |
|||
* @return com.elink.esua.commons.tools.utils.Result<java.util.List < com.elink.esua.dto.AreaDTO>> |
|||
* @author yujintao |
|||
* @date 2019/9/3 16:28 |
|||
*/ |
|||
@GetMapping("listSimple/{areaId}") |
|||
public Result<List<SimpleAreaDTO>> listSimpleAreaInfo(@PathVariable("areaId") String areaId) { |
|||
return this.areaService.listSimpleAreaInfo(areaId); |
|||
} |
|||
|
|||
/** |
|||
* 数据权限控制用户可操作的部门(用于下拉菜单显示) |
|||
* |
|||
* @param params |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.SysSimpleDeptDTO>> |
|||
* @author yujintao |
|||
* @date 2019/9/4 19:21 |
|||
*/ |
|||
@GetMapping("listSimpleDept") |
|||
@DataFilter(tableAlias = "temp", deptId = "id", prefix = "WHERE") |
|||
public Result<List<SysSimpleDeptDTO>> listSimpleDeptInfo(@RequestParam Map<String, Object> params) { |
|||
return this.areaService.listSimpleDeptInfo(params); |
|||
} |
|||
} |
|||
@ -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.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.DeptGridPlatformDTO; |
|||
import com.elink.esua.epdc.excel.DeptGridPlatformExcel; |
|||
import com.elink.esua.epdc.service.DeptGridPlatformService; |
|||
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-25 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("deptgridplatform") |
|||
public class DeptGridPlatformController { |
|||
|
|||
@Autowired |
|||
private DeptGridPlatformService deptGridPlatformService; |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<DeptGridPlatformDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<DeptGridPlatformDTO> page = deptGridPlatformService.page(params); |
|||
return new Result<PageData<DeptGridPlatformDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<DeptGridPlatformDTO> get(@PathVariable("id") String id){ |
|||
DeptGridPlatformDTO data = deptGridPlatformService.get(id); |
|||
return new Result<DeptGridPlatformDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody DeptGridPlatformDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
deptGridPlatformService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody DeptGridPlatformDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
deptGridPlatformService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
deptGridPlatformService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<DeptGridPlatformDTO> list = deptGridPlatformService.list(params); |
|||
ExcelUtils.exportExcelToTarget(response, null, list, DeptGridPlatformExcel.class); |
|||
} |
|||
|
|||
/** |
|||
* @param deptId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptGridPlatformDTO> |
|||
* @Author yinzuomei |
|||
* @Description 根据部门id查询记录 |
|||
* @Date 2019/12/25 15:09 |
|||
**/ |
|||
@GetMapping("selectByDeptId/{deptId}") |
|||
public Result<DeptGridPlatformDTO> selectByDeptId(@PathVariable("deptId") String deptId){ |
|||
return deptGridPlatformService.getDeptGridPlatformDTO(deptId); |
|||
} |
|||
} |
|||
@ -0,0 +1,134 @@ |
|||
/** |
|||
* 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.UpdateGroup; |
|||
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
|||
import com.elink.esua.epdc.dto.DeptMaCodeDTO; |
|||
import com.elink.esua.epdc.excel.DeptMaCodeExcel; |
|||
import com.elink.esua.epdc.service.DeptMaCodeService; |
|||
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 work@yujt.net.cn |
|||
* @since v1.0.0 2019-09-19 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("deptmacode") |
|||
public class DeptMaCodeController { |
|||
|
|||
@Autowired |
|||
private DeptMaCodeService deptMaCodeService; |
|||
|
|||
@GetMapping("page") |
|||
@DataFilter(tableAlias = "dg", deptId = "id", prefix = "AND") |
|||
public Result<PageData<DeptMaCodeDTO>> page(@RequestParam Map<String, Object> params) { |
|||
PageData<DeptMaCodeDTO> page = deptMaCodeService.page(params); |
|||
return new Result<PageData<DeptMaCodeDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<DeptMaCodeDTO> get(@PathVariable("id") String id) { |
|||
DeptMaCodeDTO data = deptMaCodeService.get(id); |
|||
return new Result<DeptMaCodeDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody DeptMaCodeDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
deptMaCodeService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody DeptMaCodeDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
deptMaCodeService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids) { |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
deptMaCodeService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<DeptMaCodeDTO> list = deptMaCodeService.list(params); |
|||
ExcelUtils.exportExcelToTarget(response, null, list, DeptMaCodeExcel.class); |
|||
} |
|||
|
|||
/** |
|||
* 所有部门小程序码初始化 |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/9/19 09:33 |
|||
*/ |
|||
@PostMapping("init") |
|||
public Result initDeptMaCode() { |
|||
return deptMaCodeService.initDeptMaCode(); |
|||
} |
|||
|
|||
/** |
|||
* 生成指定网格小程序码 |
|||
* |
|||
* @param gridId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/9/19 11:04 |
|||
*/ |
|||
@PostMapping("create/{gridId}") |
|||
public Result createDeptMaCode(@PathVariable("gridId") String gridId) { |
|||
return deptMaCodeService.createDeptMaCode(gridId); |
|||
} |
|||
|
|||
/** |
|||
* 创建网格长注册小程序码 |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/10/22 09:59 |
|||
*/ |
|||
@PostMapping("gridLeader") |
|||
public Result createGridLeaderMaCode() { |
|||
return deptMaCodeService.createGridLeaderMaCode(); |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -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.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.exception.ErrorCode; |
|||
import com.elink.esua.epdc.commons.tools.page.PageData; |
|||
import com.elink.esua.epdc.commons.tools.security.user.UserDetail; |
|||
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.*; |
|||
import com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO; |
|||
import com.elink.esua.epdc.excel.*; |
|||
import com.elink.esua.epdc.service.SysAnalysisMenuService; |
|||
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 elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("analysismenu") |
|||
public class SysAnalysisMenuController { |
|||
|
|||
@Autowired |
|||
private SysAnalysisMenuService sysAnalysisMenuService; |
|||
|
|||
/** |
|||
* 获取APP菜单列表 |
|||
* |
|||
* @param type 菜单类型 0:菜单 1:按钮 null:全部 |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.AppMenuDTO>> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/19 13:26 |
|||
*/ |
|||
@GetMapping("list") |
|||
public Result<List<AppMenuDTO>> list(Integer type) { |
|||
List<AppMenuDTO> list = sysAnalysisMenuService.getAnalysisMenuList(type); |
|||
return new Result<List<AppMenuDTO>>().ok(list); |
|||
} |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<SysAnalysisMenuDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<SysAnalysisMenuDTO> page = sysAnalysisMenuService.page(params); |
|||
return new Result<PageData<SysAnalysisMenuDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<SysAnalysisMenuDTO> get(@PathVariable("id") String id){ |
|||
SysAnalysisMenuDTO data = sysAnalysisMenuService.get(id); |
|||
return new Result<SysAnalysisMenuDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody SysAnalysisMenuDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
sysAnalysisMenuService.save(dto); |
|||
return new Result(); |
|||
} |
|||
@GetMapping("select") |
|||
public Result<List<AppMenuDTO>> select(UserDetail userDetail) { |
|||
List<AppMenuDTO> list = sysAnalysisMenuService.getUserMenuList(userDetail, null); |
|||
|
|||
return new Result<List<AppMenuDTO>>().ok(list); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody SysAnalysisMenuDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
sysAnalysisMenuService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping("{id}") |
|||
public Result delete(@PathVariable("id") Long id){ |
|||
//效验数据
|
|||
AssertUtils.isNull(id, "id"); |
|||
//判断是否有子菜单或按钮
|
|||
if(sysAnalysisMenuService.hasChileMenu(id)){ |
|||
return new Result().error(ErrorCode.SUB_MENU_EXIST); |
|||
} |
|||
sysAnalysisMenuService.delete(id); |
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<SysAnalysisMenuDTO> list = sysAnalysisMenuService.list(params); |
|||
ExcelUtils.exportExcelToTarget(response, null, list, SysAnalysisMenuExcel.class); |
|||
} |
|||
/** |
|||
* @param userId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO>> |
|||
* @Author lpf |
|||
* @Description 首页面板 获取数据端APP菜单 |
|||
* @Date 2020/03/18 10:42 |
|||
**/ |
|||
@GetMapping("/analysisIndexPanel/{userId}") |
|||
public Result<List<EpdcAppChildNavResultDTO>> analysisIndexPanel(@PathVariable("userId") String userId) { |
|||
return sysAnalysisMenuService.getAnalysisIndexPanel(userId); |
|||
} |
|||
|
|||
} |
|||
@ -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.*; |
|||
import com.elink.esua.epdc.excel.*; |
|||
import com.elink.esua.epdc.service.SysAnalysisRoleMenuService; |
|||
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 elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("analysisrolemenu") |
|||
public class SysAnalysisRoleMenuController { |
|||
|
|||
@Autowired |
|||
private SysAnalysisRoleMenuService sysAnalysisRoleMenuService; |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<SysAnalysisRoleMenuDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<SysAnalysisRoleMenuDTO> page = sysAnalysisRoleMenuService.page(params); |
|||
return new Result<PageData<SysAnalysisRoleMenuDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<SysAnalysisRoleMenuDTO> get(@PathVariable("id") String id){ |
|||
SysAnalysisRoleMenuDTO data = sysAnalysisRoleMenuService.get(id); |
|||
return new Result<SysAnalysisRoleMenuDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody SysAnalysisRoleMenuDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
sysAnalysisRoleMenuService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody SysAnalysisRoleMenuDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
sysAnalysisRoleMenuService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
sysAnalysisRoleMenuService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<SysAnalysisRoleMenuDTO> list = sysAnalysisRoleMenuService.list(params); |
|||
ExcelUtils.exportExcelToTarget(response, null, list, SysAnalysisRoleMenuExcel.class); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,297 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
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.DefaultGroup; |
|||
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
|||
import com.elink.esua.epdc.dto.*; |
|||
import com.elink.esua.epdc.dto.epdc.form.UserSysDeptInfoFormDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.UserSysDeptInfoResultDTO; |
|||
import com.elink.esua.epdc.service.SysDeptService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 部门管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("dept") |
|||
@Api(tags = "部门管理") |
|||
public class SysDeptController { |
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
@GetMapping("list") |
|||
@ApiOperation("列表") |
|||
public Result<List<SysDeptDTO>> list() { |
|||
List<SysDeptDTO> list = sysDeptService.list(new HashMap<>(1)); |
|||
|
|||
return new Result<List<SysDeptDTO>>().ok(list); |
|||
} |
|||
|
|||
@GetMapping("sublist/{pid}") |
|||
@ApiOperation("子列表") |
|||
public Result<List<SysSimpleDeptDTO>> sublist(@PathVariable("pid") String pid) { |
|||
List<SysSimpleDeptDTO> list = sysDeptService.subList(pid); |
|||
return new Result().ok(list); |
|||
} |
|||
|
|||
/*** |
|||
* 通过编码得到党委编码 |
|||
* @param partyCode |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.Map < java.lang.String, java.lang.String>> |
|||
* @author qushutong |
|||
* @date 2019/9/20 19:56 |
|||
*/ |
|||
@GetMapping("getIdByCode/{partyCode}") |
|||
public Result<Map<String, String>> getIdByCode(@PathVariable("partyCode") String partyCode) { |
|||
return new Result<Map<String, String>>().ok(sysDeptService.getIdByCode(partyCode)); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
@ApiOperation("信息") |
|||
public Result<SysDeptDTO> get(@PathVariable("id") Long id) { |
|||
SysDeptDTO data = sysDeptService.get(id); |
|||
|
|||
return new Result<SysDeptDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
@ApiOperation("保存") |
|||
@LogOperation("Save Dept") |
|||
public Result save(@RequestBody SysDeptDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
|
|||
sysDeptService.save(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
@ApiOperation("修改") |
|||
@LogOperation("Update Dept") |
|||
public Result update(@RequestBody SysDeptDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
|
|||
sysDeptService.update(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping("{id}") |
|||
@ApiOperation("删除") |
|||
@LogOperation("Delete Dept") |
|||
public Result delete(@PathVariable("id") Long id) { |
|||
//效验数据
|
|||
AssertUtils.isNull(id, "id"); |
|||
// sysDeptService.delete(id);
|
|||
sysDeptService.deleteBatchIds(Arrays.asList(new Long[]{id})); |
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("listGridId/{pid}") |
|||
@ApiOperation("获取所有下属网格ID集合") |
|||
public Result<List<Long>> listGridIdByPid(@PathVariable("pid") Long pid) { |
|||
return sysDeptService.listGridIdByPid(pid); |
|||
} |
|||
|
|||
/** |
|||
* 通过网格ID获取该网格所有上级机构 |
|||
* |
|||
* @param gridId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.CompleteDeptDTO> |
|||
* @author yujintao |
|||
* @date 2019/9/7 09:12 |
|||
*/ |
|||
@GetMapping("getCompleteDept/{gridId}") |
|||
public Result<CompleteDeptDTO> getCompleteDept(@PathVariable("gridId") String gridId) { |
|||
return sysDeptService.getCompleteDept(gridId); |
|||
} |
|||
|
|||
/** |
|||
* 通过网格ID获取该网格所有上级机构 |
|||
* |
|||
* @param deptId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.CompleteDeptDTO> |
|||
* @author yujintao |
|||
* @date 2019/9/7 09:12 |
|||
*/ |
|||
@GetMapping("getParentAndAllDept/{deptId}") |
|||
public Result<ParentAndAllDeptDTO> getParentAndAllDept(@PathVariable("deptId") String deptId) { |
|||
return new Result().ok(sysDeptService.getParentAndAllDept(deptId)); |
|||
} |
|||
|
|||
/** |
|||
* 通过街道ID获取项目可流转部门 |
|||
* |
|||
* @Params: [deptId] |
|||
* @Return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.SysDeptDTO>> |
|||
* @Author: liuchuang |
|||
* @Date: 2019/9/16 17:00 |
|||
*/ |
|||
@GetMapping("getCirculationDept/{deptId}") |
|||
public Result<List<SysDeptDTO>> listOfItemCirculationDept(@PathVariable("deptId") Long deptId) { |
|||
List<SysDeptDTO> data = sysDeptService.listOfItemCirculationDept(deptId); |
|||
return new Result<List<SysDeptDTO>>().ok(data); |
|||
} |
|||
|
|||
/** |
|||
* 根据部门id,获取所有上级部门id,英文逗号隔开拼接字符串 |
|||
* |
|||
* @param deptId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.lang.String> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/27 15:07 |
|||
*/ |
|||
@GetMapping("getParentDeptIds/{deptId}") |
|||
public Result<String> getParentDeptIds(@PathVariable("deptId") Long deptId) { |
|||
return sysDeptService.getParentDeptIds(deptId); |
|||
} |
|||
|
|||
/** |
|||
* 根据部门id,获取部门所在四级机构的所有机构名称 |
|||
* |
|||
* @param deptId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < java.lang.String>> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/27 15:08 |
|||
*/ |
|||
@GetMapping("getCompleteDeptList/{deptId}") |
|||
public Result<List<String>> getCompleteDeptList(@PathVariable("deptId") Long deptId) { |
|||
return sysDeptService.getCompleteDeptList(deptId); |
|||
} |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.UserSysDeptInfoResultDTO>> |
|||
* @Author yinzuomei |
|||
* @Description 获取用户数据权限下各部门基本信息 |
|||
* @Date 2019/12/4 19:41 |
|||
**/ |
|||
@PostMapping("queryUserSysDeptInfo") |
|||
public Result<List<UserSysDeptInfoResultDTO>> queryUserSysDeptInfo(@RequestBody UserSysDeptInfoFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
List<UserSysDeptInfoResultDTO> list = sysDeptService.listUserSysDeptInfoResultDTO(formDTO); |
|||
return new Result<List<UserSysDeptInfoResultDTO>>().ok(list); |
|||
} |
|||
|
|||
/*** |
|||
* 获取所有部门树 |
|||
* @param |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption> |
|||
* @author qushutong |
|||
* @date 2019/12/13 15:25 |
|||
*/ |
|||
@GetMapping("party/getDeptTree") |
|||
public Result<DeptOption> getDeptTree() { |
|||
return sysDeptService.getDeptTree(); |
|||
} |
|||
|
|||
/** |
|||
* @param |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption> |
|||
* @Author yinzuomei |
|||
* @Description 获取所有部门树:二级只要街道 |
|||
* @Date 2020/1/31 10:30 |
|||
**/ |
|||
@GetMapping("party/getDeptTreeForEpiDemic") |
|||
public Result<DeptOption> getDeptTreeForEpiDemic() { |
|||
return sysDeptService.getDeptTreeForEpiDemic(); |
|||
} |
|||
|
|||
/** |
|||
* @param params |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.CompleteDeptDTO> |
|||
* @Author yinzuomei |
|||
* @Description 查询未建立党员群的网格列表 |
|||
* @Date 2019/12/19 11:19 |
|||
**/ |
|||
@GetMapping("queryCompleteDept") |
|||
public Result<PageData<CompleteDeptDTO>> queryCompleteDept(@RequestParam Map<String, Object> params) { |
|||
PageData<CompleteDeptDTO> page = sysDeptService.listCompleteDeptDTO(params); |
|||
return new Result<PageData<CompleteDeptDTO>>().ok(page); |
|||
} |
|||
|
|||
/*** |
|||
* 获取所有网格 kpi模块原始数据 |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
* @author qushutong |
|||
* @date 2019/12/12 17:26 |
|||
*/ |
|||
@GetMapping("listAllGridId") |
|||
public Result listAllGridId() { |
|||
return sysDeptService.listAllGridId(); |
|||
} |
|||
|
|||
/** |
|||
* 按部门类型,分页查询部门列表 |
|||
* |
|||
* @param typeKey 部门类型 |
|||
* @param pageSize 页容量 |
|||
* @param pageIndex 页码 |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/12/17 16:03 |
|||
*/ |
|||
@GetMapping("pageDeptIdByTypeKey/{typeKey}/{pageSize}/{pageIndex}") |
|||
public Result<List<Long>> pageDeptIdByTypeKey(@PathVariable("typeKey") String typeKey, |
|||
@PathVariable("pageSize") Integer pageSize, |
|||
@PathVariable("pageIndex") Integer pageIndex) { |
|||
return sysDeptService.pageDeptIdByTypeKey(typeKey, pageSize, pageIndex); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 根据部门id,获取部门层级关系,获取部门领导姓名 |
|||
* |
|||
* @param deptId 部门id |
|||
* @param leaderFlag 是否需要查询网格长姓名 0 否 、1 是 |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptLevelAndLeaderDTO> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/12/18 11:04 |
|||
*/ |
|||
@GetMapping("getDeptInfoById/{deptId}/{leaderFlag}") |
|||
public Result<DeptLevelAndLeaderDTO> getDeptInfoById(@PathVariable("deptId") Long deptId, |
|||
@PathVariable("leaderFlag") String leaderFlag) { |
|||
DeptLevelAndLeaderDTO dto = sysDeptService.getDeptInfoById(deptId, leaderFlag); |
|||
return new Result<DeptLevelAndLeaderDTO>().ok(dto); |
|||
} |
|||
|
|||
/** |
|||
* @Description: 获取全部的部门基本信息 |
|||
* @Param: [userSysDeptInfoFormDTO] |
|||
* @return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.epdc.result.UserSysDeptInfoResultDTO>> |
|||
* @Author: zy |
|||
* @Date: 2020-04-14 |
|||
*/ |
|||
@PostMapping("queryAllDeptInfo") |
|||
public Result<List<UserSysDeptInfoResultDTO>> queryAllDeptInfo(@RequestBody UserSysDeptInfoFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
List<UserSysDeptInfoResultDTO> list = sysDeptService.listAllDeptInfo(formDTO); |
|||
return new Result<List<UserSysDeptInfoResultDTO>>().ok(list); |
|||
} |
|||
} |
|||
@ -0,0 +1,155 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
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.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.DefaultGroup; |
|||
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
|||
import com.elink.esua.epdc.dto.SysDictDTO; |
|||
import com.elink.esua.epdc.dto.SysSimpleDictDTO; |
|||
import com.elink.esua.epdc.service.SysDictService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import springfox.documentation.annotations.ApiIgnore; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 数据字典 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("dict") |
|||
@Api(tags = "数据字典") |
|||
public class SysDictController { |
|||
@Autowired |
|||
private SysDictService sysDictService; |
|||
|
|||
@GetMapping("page") |
|||
@ApiOperation("字典分类") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"), |
|||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"), |
|||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType = "String"), |
|||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType = "String"), |
|||
@ApiImplicitParam(name = "dictType", value = "字典类型", paramType = "query", dataType = "String"), |
|||
@ApiImplicitParam(name = "dictName", value = "字典名称", paramType = "query", dataType = "String") |
|||
}) |
|||
public Result<PageData<SysDictDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params) { |
|||
//字典分类
|
|||
PageData<SysDictDTO> page = sysDictService.page(params); |
|||
|
|||
return new Result<PageData<SysDictDTO>>().ok(page); |
|||
} |
|||
|
|||
|
|||
@GetMapping("sublist/{pid}") |
|||
@ApiOperation("子列表") |
|||
public Result<List<SysDictDTO>> sublist(@PathVariable("pid") String pid) { |
|||
Map map = new HashMap(); |
|||
map.put("pid", pid); |
|||
List<SysDictDTO> list = sysDictService.subList(map); |
|||
return new Result<List<SysDictDTO>>().ok(list); |
|||
} |
|||
|
|||
@GetMapping("list") |
|||
@ApiOperation("字典分类数据") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "dictName", value = "字典名称", paramType = "query", dataType = "String"), |
|||
@ApiImplicitParam(name = "dictValue", value = "字典值", paramType = "query", dataType = "String") |
|||
}) |
|||
public Result<List<SysDictDTO>> list(@ApiIgnore @RequestParam Map<String, Object> params) { |
|||
//字典分类数据
|
|||
List<SysDictDTO> list = sysDictService.list(params); |
|||
|
|||
return new Result<List<SysDictDTO>>().ok(list); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
@ApiOperation("信息") |
|||
public Result<SysDictDTO> get(@PathVariable("id") Long id) { |
|||
SysDictDTO data = sysDictService.get(id); |
|||
|
|||
return new Result<SysDictDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
@ApiOperation("保存") |
|||
@LogOperation("Save Dict") |
|||
public Result save(@RequestBody SysDictDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, DefaultGroup.class); |
|||
|
|||
sysDictService.save(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
@ApiOperation("修改") |
|||
@LogOperation("Update Dict") |
|||
public Result update(@RequestBody SysDictDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
|
|||
sysDictService.update(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
@ApiOperation("删除") |
|||
@LogOperation("Delete Dict") |
|||
public Result delete(@RequestBody Long[] ids) { |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
|
|||
sysDictService.delete(ids); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* 根据数据字典类型获取简版数据字典列表,用于页面下拉菜单 |
|||
* |
|||
* @param dictType 数据字典类型 |
|||
* @return com.elink.esua.commons.tools.utils.Result<java.util.List < com.elink.esua.dto.SysSimpleDictDTO>> |
|||
* @author yujintao |
|||
* @date 2019/7/15 09:33 |
|||
*/ |
|||
@GetMapping("listSimple/{dictType}") |
|||
@ApiOperation("字典分类数据") |
|||
public Result<List<SysSimpleDictDTO>> listSimpleDictInfo(@PathVariable("dictType") String dictType) { |
|||
//字典分类数据
|
|||
return sysDictService.listSimpleDictInfo(dictType); |
|||
} |
|||
|
|||
@DeleteMapping("{id}") |
|||
@ApiOperation("删除") |
|||
@LogOperation("Delete Dict") |
|||
public Result delete(@PathVariable Long id) { |
|||
//效验数据
|
|||
sysDictService.delete(id); |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,69 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
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.dto.SysLogErrorDTO; |
|||
import com.elink.esua.epdc.excel.SysLogErrorExcel; |
|||
import com.elink.esua.epdc.service.SysLogErrorService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import springfox.documentation.annotations.ApiIgnore; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 异常日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("log/error") |
|||
@Api(tags="异常日志") |
|||
public class SysLogErrorController { |
|||
@Autowired |
|||
private SysLogErrorService sysLogErrorService; |
|||
|
|||
@GetMapping("page") |
|||
@ApiOperation("分页") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = "module", value = "模块名称,如:sys", paramType = "query", dataType="String") |
|||
}) |
|||
public Result<PageData<SysLogErrorDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){ |
|||
PageData<SysLogErrorDTO> page = sysLogErrorService.page(params); |
|||
|
|||
return new Result<PageData<SysLogErrorDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
@ApiOperation("导出") |
|||
@LogOperation("Export Log Error") |
|||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<SysLogErrorDTO> list = sysLogErrorService.list(params); |
|||
|
|||
ExcelUtils.exportExcelToTarget(response, null, list, SysLogErrorExcel.class); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,74 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
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.dto.SysLogLoginDTO; |
|||
import com.elink.esua.epdc.excel.SysLogLoginExcel; |
|||
import com.elink.esua.epdc.service.SysLogLoginService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import springfox.documentation.annotations.ApiIgnore; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 登录日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("log/login") |
|||
@Api(tags="登录日志") |
|||
public class SysLogLoginController { |
|||
@Autowired |
|||
private SysLogLoginService sysLogLoginService; |
|||
|
|||
@GetMapping("page") |
|||
@ApiOperation("分页") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = "status", value = "状态 0:失败 1:成功 2:账号已锁定", paramType = "query", dataType="int"), |
|||
@ApiImplicitParam(name = "creatorName", value = "用户名", paramType = "query", dataType="String") |
|||
}) |
|||
public Result<PageData<SysLogLoginDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){ |
|||
PageData<SysLogLoginDTO> page = sysLogLoginService.page(params); |
|||
|
|||
return new Result<PageData<SysLogLoginDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
@ApiOperation("导出") |
|||
@LogOperation("Export Log Login") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "status", value = "状态 0:失败 1:成功 2:账号已锁定", paramType = "query", dataType="int"), |
|||
@ApiImplicitParam(name = "creatorName", value = "用户名", paramType = "query", dataType="String") |
|||
}) |
|||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<SysLogLoginDTO> list = sysLogLoginService.list(params); |
|||
|
|||
ExcelUtils.exportExcelToTarget(response, null, list, SysLogLoginExcel.class); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,73 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
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.dto.SysLogOperationDTO; |
|||
import com.elink.esua.epdc.excel.SysLogOperationExcel; |
|||
import com.elink.esua.epdc.service.SysLogOperationService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import springfox.documentation.annotations.ApiIgnore; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 操作日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("log/operation") |
|||
@Api(tags="操作日志") |
|||
public class SysLogOperationController { |
|||
@Autowired |
|||
private SysLogOperationService sysLogOperationService; |
|||
|
|||
@GetMapping("page") |
|||
@ApiOperation("分页") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = "module", value = "模块名称,如:sys", paramType = "query", dataType="String"), |
|||
@ApiImplicitParam(name = "status", value = "状态 0:失败 1:成功", paramType = "query", dataType="int") |
|||
}) |
|||
public Result<PageData<SysLogOperationDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){ |
|||
PageData<SysLogOperationDTO> page = sysLogOperationService.page(params); |
|||
|
|||
return new Result<PageData<SysLogOperationDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
@ApiOperation("导出") |
|||
@LogOperation("Export Log Operation") |
|||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<SysLogOperationDTO> list = sysLogOperationService.list(params); |
|||
|
|||
ExcelUtils.exportExcelToTarget(response, null, list, SysLogOperationExcel.class); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,134 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
import com.elink.esua.epdc.commons.tools.exception.ErrorCode; |
|||
import com.elink.esua.epdc.commons.tools.security.user.UserDetail; |
|||
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.DefaultGroup; |
|||
import com.elink.esua.epdc.dto.MenuResourceDTO; |
|||
import com.elink.esua.epdc.dto.SysMenuDTO; |
|||
import com.elink.esua.epdc.service.SysMenuService; |
|||
import com.elink.esua.epdc.service.SysResourceService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import springfox.documentation.annotations.ApiIgnore; |
|||
|
|||
import java.util.List; |
|||
import java.util.Set; |
|||
|
|||
/** |
|||
* 菜单管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("menu") |
|||
@Api(tags="菜单管理") |
|||
public class SysMenuController { |
|||
@Autowired |
|||
private SysMenuService sysMenuService; |
|||
@Autowired |
|||
private SysResourceService sysResourceService; |
|||
|
|||
@GetMapping("nav") |
|||
@ApiOperation("导航") |
|||
public Result<List<SysMenuDTO>> nav(@ApiIgnore UserDetail userDetail){ |
|||
List<SysMenuDTO> list = sysMenuService.getUserMenuNavList(userDetail); |
|||
|
|||
return new Result<List<SysMenuDTO>>().ok(list); |
|||
} |
|||
|
|||
@GetMapping("permissions") |
|||
@ApiOperation("权限标识") |
|||
public Result<Set<String>> permissions(@ApiIgnore UserDetail userDetail){ |
|||
Set<String> set = sysMenuService.getUserPermissions(userDetail); |
|||
|
|||
return new Result<Set<String>>().ok(set); |
|||
} |
|||
|
|||
@GetMapping("list") |
|||
@ApiOperation("列表") |
|||
@ApiImplicitParam(name = "type", value = "菜单类型 0:菜单 1:按钮 null:全部", paramType = "query", dataType="int") |
|||
public Result<List<SysMenuDTO>> list(Integer type){ |
|||
List<SysMenuDTO> list = sysMenuService.getMenuList(type); |
|||
|
|||
return new Result<List<SysMenuDTO>>().ok(list); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
@ApiOperation("信息") |
|||
public Result<SysMenuDTO> get(@PathVariable("id") Long id){ |
|||
SysMenuDTO data = sysMenuService.get(id); |
|||
|
|||
//菜单资源列表
|
|||
List<MenuResourceDTO> resourceList = sysResourceService.getMenuResourceList(id); |
|||
data.setResourceList(resourceList); |
|||
|
|||
return new Result<SysMenuDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
@ApiOperation("保存") |
|||
@LogOperation("Save Menu") |
|||
public Result save(@RequestBody SysMenuDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, DefaultGroup.class); |
|||
|
|||
sysMenuService.save(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
@ApiOperation("修改") |
|||
@LogOperation("Update Menu") |
|||
public Result update(@RequestBody SysMenuDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, DefaultGroup.class); |
|||
|
|||
sysMenuService.update(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping("{id}") |
|||
@ApiOperation("删除") |
|||
@LogOperation("Delete Menu") |
|||
public Result delete(@PathVariable("id") Long id){ |
|||
//效验数据
|
|||
AssertUtils.isNull(id, "id"); |
|||
|
|||
//判断是否有子菜单或按钮
|
|||
List<SysMenuDTO> list = sysMenuService.getListPid(id); |
|||
if(list.size() > 0){ |
|||
return new Result().error(ErrorCode.SUB_MENU_EXIST); |
|||
} |
|||
|
|||
sysMenuService.delete(id); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("select") |
|||
@ApiOperation("角色菜单权限") |
|||
public Result<List<SysMenuDTO>> select(@ApiIgnore UserDetail userDetail){ |
|||
List<SysMenuDTO> list = sysMenuService.getUserMenuList(userDetail, null); |
|||
|
|||
return new Result<List<SysMenuDTO>>().ok(list); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,138 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
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.DefaultGroup; |
|||
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
|||
import com.elink.esua.epdc.dto.SysParamsDTO; |
|||
import com.elink.esua.epdc.excel.SysParamsExcel; |
|||
import com.elink.esua.epdc.service.SysParamsService; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import springfox.documentation.annotations.ApiIgnore; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 参数管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("params") |
|||
@Api(tags="参数管理") |
|||
public class SysParamsController { |
|||
@Autowired |
|||
private SysParamsService sysParamsService; |
|||
|
|||
@GetMapping("page") |
|||
@ApiOperation("分页") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = "paramCode", value = "参数编码", paramType = "query", dataType="String") |
|||
}) |
|||
public Result<PageData<SysParamsDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){ |
|||
PageData<SysParamsDTO> page = sysParamsService.page(params); |
|||
|
|||
return new Result<PageData<SysParamsDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
@ApiOperation("信息") |
|||
public Result<SysParamsDTO> get(@PathVariable("id") Long id){ |
|||
SysParamsDTO data = sysParamsService.get(id); |
|||
|
|||
return new Result<SysParamsDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
@ApiOperation("保存") |
|||
@LogOperation("Save Params") |
|||
public Result save(@RequestBody SysParamsDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
|
|||
sysParamsService.save(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
@ApiOperation("修改") |
|||
@LogOperation("Update Params") |
|||
public Result update(@RequestBody SysParamsDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
|
|||
sysParamsService.update(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
@ApiOperation("删除") |
|||
@LogOperation("Delete Params") |
|||
public Result delete(@RequestBody Long[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
|
|||
sysParamsService.delete(ids); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
@ApiOperation("导出") |
|||
@LogOperation("Export Params") |
|||
@ApiImplicitParam(name = "paramCode", value = "参数编码", paramType = "query", dataType="String") |
|||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<SysParamsDTO> list = sysParamsService.list(params); |
|||
|
|||
ExcelUtils.exportExcelToTarget(response, null, list, SysParamsExcel.class); |
|||
} |
|||
|
|||
/** |
|||
* 根据参数编码,获取参数值 |
|||
* @param paramCode 参数编码 |
|||
* @return 返回参数值 |
|||
*/ |
|||
@GetMapping("code/{paramCode}") |
|||
public String getValue(@PathVariable("paramCode") String paramCode){ |
|||
return sysParamsService.getValue(paramCode); |
|||
} |
|||
|
|||
/** |
|||
* 根据参数编码,更新参数值 |
|||
* @param paramCode 参数编码 |
|||
* @param paramValue 参数值 |
|||
*/ |
|||
@PutMapping("code/{paramCode}") |
|||
public void updateValueByCode(@PathVariable("paramCode") String paramCode, @RequestParam("paramValue") String paramValue){ |
|||
sysParamsService.updateValueByCode(paramCode, paramValue); |
|||
} |
|||
} |
|||
@ -0,0 +1,41 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.security.bo.ResourceBO; |
|||
import com.elink.esua.epdc.service.SysResourceService; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 资源管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("resource") |
|||
@Api(tags="资源管理") |
|||
public class SysResourceController { |
|||
@Autowired |
|||
private SysResourceService sysResourceService; |
|||
|
|||
/** |
|||
* 获取所有资源列表 |
|||
*/ |
|||
@GetMapping("list") |
|||
public List<ResourceBO> list(){ |
|||
return sysResourceService.getResourceList(); |
|||
} |
|||
} |
|||
@ -0,0 +1,136 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
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.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.SysRoleDTO; |
|||
import com.elink.esua.epdc.service.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import springfox.documentation.annotations.ApiIgnore; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 角色管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("role") |
|||
@Api(tags="角色管理") |
|||
public class SysRoleController { |
|||
@Autowired |
|||
private SysRoleService sysRoleService; |
|||
@Autowired |
|||
private SysRoleMenuService sysRoleMenuService; |
|||
@Autowired |
|||
private SysRoleDataScopeService sysRoleDataScopeService; |
|||
@Autowired |
|||
private AppRoleMenuService appRoleMenuService; |
|||
@Autowired |
|||
private SysAnalysisRoleMenuService sysAnalysisRoleMenuService; |
|||
|
|||
@GetMapping("page") |
|||
@ApiOperation("分页") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") , |
|||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String") , |
|||
@ApiImplicitParam(name = "name", value = "角色名", paramType = "query", dataType="String") |
|||
}) |
|||
public Result<PageData<SysRoleDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){ |
|||
PageData<SysRoleDTO> page = sysRoleService.page(params); |
|||
|
|||
return new Result<PageData<SysRoleDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("list") |
|||
@ApiOperation("列表") |
|||
public Result<List<SysRoleDTO>> list(){ |
|||
List<SysRoleDTO> data = sysRoleService.list(new HashMap<>(1)); |
|||
|
|||
return new Result<List<SysRoleDTO>>().ok(data); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
@ApiOperation("信息") |
|||
public Result<SysRoleDTO> get(@PathVariable("id") Long id){ |
|||
SysRoleDTO data = sysRoleService.get(id); |
|||
|
|||
//查询角色对应的菜单
|
|||
List<Long> menuIdList = sysRoleMenuService.getMenuIdList(id); |
|||
data.setMenuIdList(menuIdList); |
|||
|
|||
//查询角色对应的数据权限
|
|||
List<Long> deptIdList = sysRoleDataScopeService.getDeptIdList(id); |
|||
data.setDeptIdList(deptIdList); |
|||
|
|||
//查询角色对应app菜单权限
|
|||
List<Long> appMenuIdList = appRoleMenuService.getAppMenuIdList(id); |
|||
data.setAppMenuIdList(appMenuIdList); |
|||
//查询角色对应数据端菜单权限
|
|||
List<Long> analysisMenuIdList = sysAnalysisRoleMenuService.getAnalysisMenuIdList(id); |
|||
data.setAnalysisMenuIdList(analysisMenuIdList); |
|||
return new Result<SysRoleDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
@ApiOperation("保存") |
|||
@LogOperation("Save Role") |
|||
public Result save(@RequestBody SysRoleDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
|
|||
sysRoleService.save(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
@ApiOperation("修改") |
|||
@LogOperation("Update Role") |
|||
public Result update(@RequestBody SysRoleDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
|
|||
sysRoleService.update(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
@ApiOperation("删除") |
|||
@LogOperation("Delete Role") |
|||
public Result delete(@RequestBody Long[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
|
|||
sysRoleService.delete(ids); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,466 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|||
import com.elink.esua.epdc.commons.tools.constant.Constant; |
|||
import com.elink.esua.epdc.commons.tools.exception.ErrorCode; |
|||
import com.elink.esua.epdc.commons.tools.page.PageData; |
|||
import com.elink.esua.epdc.commons.tools.security.bo.ResourceBO; |
|||
import com.elink.esua.epdc.commons.tools.security.password.PasswordUtils; |
|||
import com.elink.esua.epdc.commons.tools.security.user.SecurityUser; |
|||
import com.elink.esua.epdc.commons.tools.security.user.UserDetail; |
|||
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|||
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.*; |
|||
import com.elink.esua.epdc.dto.epdc.GridLeaderRegisterDTO; |
|||
import com.elink.esua.epdc.excel.SysUserExcel; |
|||
import com.elink.esua.epdc.service.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import springfox.documentation.annotations.ApiIgnore; |
|||
|
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 用户管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("user") |
|||
@Api(tags = "用户管理") |
|||
public class SysUserController { |
|||
@Autowired |
|||
private SysUserService sysUserService; |
|||
@Autowired |
|||
private SysRoleUserService sysRoleUserService; |
|||
@Autowired |
|||
private SysRoleDataScopeService sysRoleDataScopeService; |
|||
@Autowired |
|||
private SysResourceService sysResourceService; |
|||
@Autowired |
|||
private SysDeptService sysDeptService; |
|||
|
|||
@GetMapping("page") |
|||
@ApiOperation("分页") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"), |
|||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"), |
|||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType = "String"), |
|||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType = "String"), |
|||
@ApiImplicitParam(name = "username", value = "用户名", paramType = "query", dataType = "String") |
|||
}) |
|||
public Result<PageData<SysUserDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params) { |
|||
PageData<SysUserDTO> page = sysUserService.page(params); |
|||
|
|||
return new Result<PageData<SysUserDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
@ApiOperation("信息") |
|||
public Result<SysUserDTO> get(@PathVariable("id") Long id) { |
|||
SysUserDTO data = sysUserService.get(id); |
|||
|
|||
//用户角色列表
|
|||
List<Long> roleIdList = sysRoleUserService.getRoleIdList(id); |
|||
data.setRoleIdList(roleIdList); |
|||
|
|||
return new Result<SysUserDTO>().ok(data); |
|||
} |
|||
|
|||
/** |
|||
* @param userId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < java.lang.Long>> |
|||
* @Author yinzuomei |
|||
* @Description 查询用户角色Id |
|||
* @Date 2020/2/3 8:13 |
|||
**/ |
|||
@GetMapping("getRoleIdList/{userId}") |
|||
public Result<List<Long>> getRoleIdList(@PathVariable("userId") Long userId) { |
|||
//用户角色列表
|
|||
List<Long> roleIdList = sysRoleUserService.getRoleIdList(userId); |
|||
return new Result<List<Long>>().ok(roleIdList); |
|||
} |
|||
|
|||
@GetMapping("info") |
|||
@ApiOperation("登录用户信息") |
|||
public Result<SysUserDTO> info(@ApiIgnore UserDetail user) { |
|||
SysUserDTO data = ConvertUtils.sourceToTarget(user, SysUserDTO.class); |
|||
return new Result<SysUserDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
@ApiOperation("保存") |
|||
@LogOperation("Save User") |
|||
public Result save(@RequestBody SysUserDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
|
|||
sysUserService.save(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
@ApiOperation("修改") |
|||
@LogOperation("Update User") |
|||
public Result update(@RequestBody SysUserDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
|
|||
sysUserService.update(dto); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping("password") |
|||
@ApiOperation("修改密码") |
|||
@LogOperation("Password User") |
|||
public Result password(@RequestBody PasswordDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto); |
|||
|
|||
UserDetail user = SecurityUser.getUser(); |
|||
|
|||
//原密码不正确
|
|||
if (!PasswordUtils.matches(dto.getPassword(), user.getPassword())) { |
|||
return new Result().error(ErrorCode.PASSWORD_ERROR); |
|||
} |
|||
|
|||
sysUserService.updatePassword(user.getId(), dto.getNewPassword()); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
@ApiOperation("删除") |
|||
@LogOperation("Delete User") |
|||
public Result delete(@RequestBody Long[] ids) { |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
|
|||
sysUserService.delete(ids); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
@GetMapping("export") |
|||
@ApiOperation("导出") |
|||
@LogOperation("Export User") |
|||
@ApiImplicitParam(name = "username", value = "用户名", paramType = "query", dataType = "String") |
|||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|||
List<SysUserDTO> list = sysUserService.list(params); |
|||
|
|||
ExcelUtils.exportExcelToTarget(response, null, list, SysUserExcel.class); |
|||
} |
|||
|
|||
/** |
|||
* 根据用户名,获取用户信息 |
|||
*/ |
|||
@GetMapping("getByUsername") |
|||
public Result<UserDetail> getByUsername(String username) { |
|||
SysUserDTO user = sysUserService.getByUsername(username); |
|||
|
|||
UserDetail userDetail = ConvertUtils.sourceToTarget(user, UserDetail.class); |
|||
//初始化用户数据
|
|||
initUserData(userDetail); |
|||
|
|||
return new Result<UserDetail>().ok(userDetail); |
|||
} |
|||
|
|||
/** |
|||
* 根据用户ID,获取用户信息 |
|||
*/ |
|||
@GetMapping("getById") |
|||
public Result<UserDetail> getById(Long id) { |
|||
SysUserDTO user = sysUserService.get(id); |
|||
|
|||
UserDetail userDetail = ConvertUtils.sourceToTarget(user, UserDetail.class); |
|||
//初始化用户数据
|
|||
initUserData(userDetail); |
|||
|
|||
return new Result<UserDetail>().ok(userDetail); |
|||
} |
|||
|
|||
/** |
|||
* 根据openId获取用户信息 |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.SysUserDTO> |
|||
* @params [openId] |
|||
* @author liuchuang |
|||
* @since 2019/11/20 13:54 |
|||
*/ |
|||
@GetMapping("getUserInfo/{openId}") |
|||
public Result<SysUserDTO> getSysUserInfoByOpenId(@PathVariable("openId") String openId) { |
|||
SysUserDTO data = sysUserService.getSysUserInfoByOpenId(openId); |
|||
|
|||
return new Result<SysUserDTO>().ok(data); |
|||
} |
|||
|
|||
/** |
|||
* 根据用户ID 获取用户角色权限信息 |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.DataScopeDeptList>> |
|||
* @params [id] |
|||
* @author liuchuang |
|||
* @since 2019/11/19 23:36 |
|||
*/ |
|||
@GetMapping("getDataScope") |
|||
public Result<List<DataScopeDeptList>> getDataScopeList(Long id) { |
|||
List<DataScopeDeptList> data = sysRoleDataScopeService.getDataScopeDetailList(id); |
|||
|
|||
return new Result<List<DataScopeDeptList>>().ok(data); |
|||
} |
|||
@GetMapping("getWorkRecordRoleUser/{menuCode}") |
|||
public Result<List<Long>> getWorkRecordRoleUser(@PathVariable("menuCode") String menuCode) { |
|||
List<Long> data = sysRoleUserService.getWorkRecordRoleUser(menuCode); |
|||
|
|||
return new Result<List<Long>>().ok(data); |
|||
} |
|||
|
|||
/** |
|||
* 根据用户名更新用户微信openId |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
* @params [sysUserOpenIdFormDto] |
|||
* @author liuchuang |
|||
* @since 2019/11/20 9:52 |
|||
*/ |
|||
@PostMapping("modifyOpenId") |
|||
public Result modifyOpenIdByUsername(@RequestBody SysUserOpenIdFormDTO sysUserOpenIdFormDto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(sysUserOpenIdFormDto); |
|||
return sysUserService.modifyOpenIdByUsername(sysUserOpenIdFormDto); |
|||
} |
|||
|
|||
/** |
|||
* 初始化用户数据 |
|||
*/ |
|||
private void initUserData(UserDetail userDetail) { |
|||
if (userDetail == null) { |
|||
return; |
|||
} |
|||
|
|||
//用户机构类型键值
|
|||
SysDeptDTO deptDto = sysDeptService.get(userDetail.getDeptId()); |
|||
if (null != deptDto) { |
|||
userDetail.setTypeKey(deptDto.getTypeKey()); |
|||
} |
|||
|
|||
//用户部门数据权限
|
|||
List<Long> deptIdList = sysRoleDataScopeService.getDataScopeList(userDetail.getId()); |
|||
userDetail.setDeptIdList(deptIdList); |
|||
|
|||
//用户资源列表
|
|||
List<ResourceBO> resourceList = sysResourceService.getUserResourceList(userDetail.getId()); |
|||
userDetail.setResourceList(resourceList); |
|||
} |
|||
|
|||
/** |
|||
* 网格长注册时,根据手机号,查询网格长管理的所有网格 |
|||
* |
|||
* @param mobile |
|||
* @return java.util.List<com.elink.esua.epdc.dto.epdc.GridLeaderRegisterDTO> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/10/22 16:18 |
|||
*/ |
|||
@GetMapping("/listGridForLeader/{mobile}") |
|||
public Result<GridLeaderRegisterDTO> listGridWhileLeaderRegister(@PathVariable("mobile") String mobile) { |
|||
return sysUserService.listGridWhileLeaderRegister(mobile); |
|||
} |
|||
|
|||
/** |
|||
* 获取部门下的所有用户ID |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < java.lang.Long>> |
|||
* @params [deptId] |
|||
* @author liuchuang |
|||
* @since 2019/10/29 17:31 |
|||
*/ |
|||
@GetMapping("ids/{deptId}") |
|||
public Result<List<Long>> getUserIdsByDeptIds(@PathVariable("deptId") Long deptId) { |
|||
List<Long> data = sysUserService.listOfUserIdsByDeptId(deptId); |
|||
return new Result<List<Long>>().ok(data); |
|||
} |
|||
|
|||
/** |
|||
* 组装用户部门多层结构 |
|||
* <p>auth模块调用,用户登录时,获取用户机构权限,返回页面组装下拉菜单所需数据,保存在redis</p> |
|||
* <p>组装三层,街道-社区-网格</p> |
|||
* |
|||
* @param userId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/27 14:31 |
|||
*/ |
|||
@GetMapping("packageOption/{userId}") |
|||
public Result packageUserDeptOption(@PathVariable("userId") Long userId) { |
|||
sysDeptService.packageUserDeptOption(userId); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户部门多层结构,用户前端显示,请求需携带token |
|||
* <p>调接口,从redis获取{@link SysUserController#packageUserDeptOption(Long)}接口生成的数据。</p> |
|||
* <p>此接口展示三级机构层级(街道-社区-网格),不包括区级</p> |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/27 14:31 |
|||
*/ |
|||
@GetMapping("deptOptions/getByLoginUser") |
|||
public Result<DeptOption> getUserDeptOption() { |
|||
DeptOption deptOption = sysDeptService.getUserDeptOption(); |
|||
return new Result().ok(deptOption); |
|||
} |
|||
/** |
|||
* 获取用户部门多层结构,用户前端显示,请求需携带token |
|||
* <p>调接口,从redis获取{@link SysUserController#packageUserDeptOption(Long)}接口生成的数据。</p> |
|||
* <p>此接口展示三级机构层级(街道-社区-网格),不包括区级</p> |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/27 14:31 |
|||
*/ |
|||
@GetMapping("deptOptions/getDeptAuthByUser") |
|||
public Result<DeptOption> getDeptAuthByUser() { |
|||
DeptOption deptOption = sysDeptService.getDeptAuthByUser(); |
|||
return new Result().ok(deptOption); |
|||
} |
|||
@GetMapping("deptOptions/getGridAuthByUser") |
|||
public Result<List<DeptGridDTO>> getGridAuthByUser() { |
|||
List<DeptGridDTO> deptOption = sysDeptService.getGridAuthByUser(); |
|||
return new Result().ok(deptOption); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户部门多层结构(完整层级结构,包括顶级部门),用户前端显示,请求需携带token |
|||
* <p>新闻、通知发布,选择机构可多选,且展示完整层级结构,市区-街道-社区-网格</p> |
|||
* <P>新闻、通知页面主动触发,不在用户登录是自动调用</P> |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption> |
|||
* @author work@yujt.net.cn |
|||
* @date 2020/1/28 10:40 |
|||
*/ |
|||
@GetMapping("deptOptions/getAllByLoginUser") |
|||
public Result<DeptOption> getAllDeptOptionByLoginUser() { |
|||
DeptOption option = sysDeptService.getAllDeptOptionByLoginUser(); |
|||
return new Result().ok(option); |
|||
} |
|||
|
|||
/** |
|||
* pc端页面,获取用户街道-社区层级关系,前端显示,请求需携带token |
|||
* <p>只组装 街道-社区 两级 |
|||
* <li>相关页面:用户数据分析-网格开通情况</li> |
|||
* </p> |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption> |
|||
* @author work@yujt.net.cn |
|||
* @date 2020/2/10 14:45 |
|||
*/ |
|||
@GetMapping("deptOptions/getMiddleByLoginUser") |
|||
public Result<DeptOption> getMiddleByLoginUser() { |
|||
DeptOption option = sysDeptService.getMiddleByLoginUser(); |
|||
return new Result().ok(option); |
|||
} |
|||
|
|||
/** |
|||
* pc端页面,获取用户 所有街道权限,前端显示,请求需携带token |
|||
* <p>只组装 街道 一级 |
|||
* <li>相关页面:用户数据分析-排名分析-居民注册</li> |
|||
* <li>相关页面:用户数据分析-排名分析-党员注册</li> |
|||
* </p> |
|||
* |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption> |
|||
* @author work@yujt.net.cn |
|||
* @date 2020/2/11 11:22 |
|||
*/ |
|||
@GetMapping("deptOptions/getStreetByLoginUser") |
|||
public Result<DeptOption> getStreetByLoginUser() { |
|||
DeptOption option = sysDeptService.getStreetByLoginUser(); |
|||
return new Result().ok(option); |
|||
} |
|||
|
|||
/** |
|||
* 退出登录 |
|||
* |
|||
* @param userId @RequestBody SysUserDTO dto |
|||
* @return |
|||
*/ |
|||
@GetMapping("updateUserOpenId/{userId}") |
|||
public Result updateUserOpenId(@PathVariable("userId") Long userId) { |
|||
|
|||
sysUserService.updateUserOpenId(userId); |
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description: 根据部门id,查询部门下的所有用户手机号 |
|||
* @Param: [deptId] |
|||
* @return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < java.lang.String>> |
|||
* @Author: zy |
|||
* @Date: 2020-01-09 |
|||
*/ |
|||
@GetMapping("getUserPhoneByListDeptId") |
|||
public Result<List<String>> getUserPhoneByListDeptId(@RequestBody List<Long> deptId) { |
|||
return sysUserService.getUserPhoneByListDeptId(deptId); |
|||
} |
|||
|
|||
/** |
|||
* @Description: 根据议题网格ID查询拥有这个网格数据权限且是网格长的角色,再根据角色查出所有用户手机号 |
|||
* @Param: [deptId] |
|||
* @return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < java.lang.String>> |
|||
* @Author: zy |
|||
* @Date: 2020-01-09 |
|||
*/ |
|||
@GetMapping("getSysGridLeaderPhone/{deptId}") |
|||
public Result<List<String>> getSysGridLeaderPhone(@PathVariable("deptId") Long deptId) { |
|||
return sysUserService.getSysGridLeaderPhone(deptId); |
|||
} |
|||
|
|||
/** |
|||
* @describe: 判断是否更新头像 |
|||
* @author wangtong |
|||
* @date 2020/3/30 13:49 |
|||
* @param [] |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
*/ |
|||
@GetMapping("checkUpdateAvatar") |
|||
public Result checkUpdateAvatar() { |
|||
return sysUserService.checkUpdateAvatar(); |
|||
} |
|||
|
|||
/** |
|||
* @describe: 更新头像 |
|||
* @author wangtong |
|||
* @date 2020/3/30 16:11 |
|||
* @param [avatar] |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
*/ |
|||
@GetMapping("updateAvatar") |
|||
public Result updateAvatar(String avatar) { |
|||
return sysUserService.updateAvatar(avatar); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,91 @@ |
|||
/** |
|||
* 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.AppMenuDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.EpdcAppIndexPanelResultDTO; |
|||
import com.elink.esua.epdc.entity.AppMenuEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 菜单管理 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Mapper |
|||
public interface AppMenuDao extends BaseDao<AppMenuEntity> { |
|||
|
|||
|
|||
/** |
|||
* 获取app菜单列表 |
|||
* |
|||
* @param type 菜单类型 |
|||
* @param language 语言 |
|||
* @return java.util.List<com.elink.esua.epdc.dto.AppMenuDTO> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/19 13:43 |
|||
*/ |
|||
List<AppMenuDTO> selectListAppMenu(@Param("type") Integer type, @Param("language") String language); |
|||
|
|||
/** |
|||
* 获取菜单详细信息 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
AppMenuDTO selectByIdDIY(@Param("id") String id, @Param("language") String language); |
|||
/** |
|||
* 查询所有菜单列表 |
|||
* |
|||
* @param type 菜单类型 |
|||
* @param language 语言 |
|||
*/ |
|||
List<AppMenuEntity> getMenuList(@Param("type") Integer type, @Param("language") String language); |
|||
|
|||
/** |
|||
* 查询用户菜单列表 |
|||
* |
|||
* @param userId 用户ID |
|||
* @param type 菜单类型 |
|||
* @param language 语言 |
|||
*/ |
|||
List<AppMenuEntity> getUserMenuList(@Param("userId") Long userId, @Param("type") Integer type, @Param("language") String language); |
|||
|
|||
/** |
|||
* @param mobile 手机号 |
|||
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.EpdcIndexPanelResultDTO> |
|||
* @Author yinzuomei |
|||
* @Description |
|||
* @Date 2019/11/20 11:10 |
|||
**/ |
|||
List<EpdcAppIndexPanelResultDTO> indexPanelByMobile(String mobile); |
|||
|
|||
/** |
|||
* @param userId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO>> |
|||
* @Author lpf |
|||
* @Description 首页面板 获取数据端APP菜单 |
|||
* @Date 2020/03/18 10:42 |
|||
**/ |
|||
List<EpdcAppChildNavResultDTO> getAnalysisIndexPanel(String userId); |
|||
} |
|||
@ -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.AppMenuTemplateEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* APP菜单模板管理 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Mapper |
|||
public interface AppMenuTemplateDao extends BaseDao<AppMenuTemplateEntity> { |
|||
|
|||
} |
|||
@ -0,0 +1,48 @@ |
|||
/** |
|||
* 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.AppRoleMenuEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 角色菜单关系 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Mapper |
|||
public interface AppRoleMenuDao extends BaseDao<AppRoleMenuEntity> { |
|||
/** |
|||
* 根据角色id,删除角色数据权限关系 |
|||
* |
|||
* @param roleId 角色id |
|||
*/ |
|||
void deleteByRoleId(Long roleId); |
|||
|
|||
/** |
|||
* 根据角色ID,获取菜单ID列表 |
|||
* |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
List<Long> getAppMenuIdList(Long id); |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.AreaEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
|
|||
/** |
|||
* @author yujintao |
|||
* @date 2019/9/3 16:54 |
|||
*/ |
|||
@Mapper |
|||
public interface AreaDao extends BaseDao<AreaEntity> { |
|||
|
|||
} |
|||
@ -0,0 +1,42 @@ |
|||
/** |
|||
* 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.DeptGridPlatformDTO; |
|||
import com.elink.esua.epdc.entity.DeptGridPlatformEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-12-25 |
|||
*/ |
|||
@Mapper |
|||
public interface DeptGridPlatformDao extends BaseDao<DeptGridPlatformEntity> { |
|||
|
|||
/** |
|||
* @param deptId |
|||
* @return com.elink.esua.epdc.dto.DeptGridPlatformDTO |
|||
* @Author yinzuomei |
|||
* @Description 根据部门id查询记录 |
|||
* @Date 2019/12/25 15:12 |
|||
**/ |
|||
DeptGridPlatformDTO selectDeptGridPlatformDTO(String deptId); |
|||
} |
|||
@ -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.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.dto.DeptMaCodeDTO; |
|||
import com.elink.esua.epdc.entity.DeptMaCodeEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 网格小程序码 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-09-19 |
|||
*/ |
|||
@Mapper |
|||
public interface DeptMaCodeDao extends BaseDao<DeptMaCodeEntity> { |
|||
|
|||
/** |
|||
* 获取部门小程序码列表 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<com.elink.esua.epdc.dto.DeptMaCodeDTO> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/9/19 09:18 |
|||
*/ |
|||
List<DeptMaCodeDTO> selectListDeptMaCode(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 查询所有未生成小程序码的网格ID |
|||
* |
|||
* @param |
|||
* @return java.util.List<java.lang.Long> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/9/19 10:38 |
|||
*/ |
|||
List<Long> selectListNoCodeGridId(); |
|||
} |
|||
@ -0,0 +1,84 @@ |
|||
/** |
|||
* 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.AppMenuDTO; |
|||
import com.elink.esua.epdc.dto.SysAnalysisMenuDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO; |
|||
import com.elink.esua.epdc.entity.AppMenuEntity; |
|||
import com.elink.esua.epdc.entity.SysAnalysisMenuEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 菜单管理 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@Mapper |
|||
public interface SysAnalysisMenuDao extends BaseDao<SysAnalysisMenuEntity> { |
|||
|
|||
/** |
|||
* @param userId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO>> |
|||
* @Author lpf |
|||
* @Description 首页面板 获取数据端APP菜单 |
|||
* @Date 2020/03/18 10:42 |
|||
**/ |
|||
List<EpdcAppChildNavResultDTO> getAnalysisIndexPanel(String userId); |
|||
|
|||
/** |
|||
* 获取菜单详细信息 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
SysAnalysisMenuDTO selectByIdDIY(@Param("id") String id, @Param("language") String language); |
|||
|
|||
/** |
|||
* 查询所有菜单列表 |
|||
* |
|||
* @param type 菜单类型 |
|||
* @param language 语言 |
|||
*/ |
|||
List<AppMenuEntity> getMenuList(@Param("type") Integer type, @Param("language") String language); |
|||
|
|||
/** |
|||
* 查询用户菜单列表 |
|||
* |
|||
* @param userId 用户ID |
|||
* @param type 菜单类型 |
|||
* @param language 语言 |
|||
*/ |
|||
List<AppMenuEntity> getUserMenuList(@Param("userId") Long userId, @Param("type") Integer type, @Param("language") String language); |
|||
|
|||
/** |
|||
* 获取app菜单列表 |
|||
* |
|||
* @param type 菜单类型 |
|||
* @param language 语言 |
|||
* @return java.util.List<com.elink.esua.epdc.dto.AppMenuDTO> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/19 13:43 |
|||
*/ |
|||
List<AppMenuDTO> selectListAppMenu(@Param("type") Integer type, @Param("language") String language); |
|||
|
|||
} |
|||
@ -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.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysAnalysisRoleMenuEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 角色菜单关系 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@Mapper |
|||
public interface SysAnalysisRoleMenuDao extends BaseDao<SysAnalysisRoleMenuEntity> { |
|||
|
|||
/** |
|||
* 根据角色id,删除角色数据权限关系 |
|||
* |
|||
* @param roleId 角色id |
|||
*/ |
|||
void deleteByRoleId(Long roleId); |
|||
|
|||
/** |
|||
* 根据角色ID,获取菜单ID列表 |
|||
* |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
List<Long> getAnalysisMenuIdList(Long id); |
|||
|
|||
} |
|||
@ -0,0 +1,204 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.dto.*; |
|||
import com.elink.esua.epdc.dto.epdc.GridForLeaderRegisterDTO; |
|||
import com.elink.esua.epdc.dto.epdc.form.UserSysDeptInfoFormDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.UserSysDeptInfoResultDTO; |
|||
import com.elink.esua.epdc.entity.SysDeptEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 部门管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysDeptDao extends BaseDao<SysDeptEntity> { |
|||
|
|||
List<SysDeptEntity> getList(Map<String, Object> params); |
|||
|
|||
SysDeptEntity getById(Long id); |
|||
|
|||
/** |
|||
* 获取所有部门的id、pid列表 |
|||
*/ |
|||
List<SysDeptEntity> getIdAndPidList(); |
|||
|
|||
/** |
|||
* 根据部门ID,获取所有子部门ID列表 |
|||
* |
|||
* @param id 部门ID |
|||
*/ |
|||
List<Long> getSubDeptIdList(String id); |
|||
|
|||
/** |
|||
* 根据上级部门ID,获取下属部门简要信息列表 |
|||
* |
|||
* @param params 父部门ID |
|||
* @return java.util.List < com.elink.esua.epdc.dto.SysSimpleDeptDTO> |
|||
* @author yujintao |
|||
* @date 2019/9/4 16:21 |
|||
*/ |
|||
List<SysSimpleDeptDTO> listSimpleDeptInfo(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 获取所有下属网格ID集合 |
|||
* |
|||
* @param pid |
|||
* @return java.util.List<java.lang.Long> |
|||
* @author yujintao |
|||
* @date 2019/9/5 13:46 |
|||
*/ |
|||
List<Long> listGridIdByPid(@Param("pid") Long pid); |
|||
|
|||
/** |
|||
* 通过网格ID获取该网格所有上级机构 |
|||
* |
|||
* @param gridId |
|||
* @return com.elink.esua.epdc.dto.CompleteDeptDTO |
|||
* @author yujintao |
|||
* @date 2019/9/7 09:20 |
|||
*/ |
|||
CompleteDeptDTO getCompleteDept(@Param("gridId") Long gridId); |
|||
|
|||
/** |
|||
* 通过网格ID获取该网格所有上级机构 |
|||
* |
|||
* @param deptId |
|||
* @return com.elink.esua.epdc.dto.CompleteDeptDTO |
|||
* @author yujintao |
|||
* @date 2019/9/7 09:20 |
|||
*/ |
|||
CompleteDeptDTO getParentAndAllDept(@Param("deptId") Long deptId); |
|||
|
|||
/** |
|||
* 通过街道ID获取项目可流转部门 |
|||
* |
|||
* @Params: [deptId] |
|||
* @Return: java.util.List<com.elink.esua.epdc.dto.SysDeptDTO> |
|||
* @Author: liuchuang |
|||
* @Date: 2019/9/16 16:54 |
|||
*/ |
|||
List<SysDeptDTO> selectListOfItemCirculationDept(@Param("deptId") Long deptId); |
|||
|
|||
/** |
|||
* 通过网格id集合,获取网格长管理的所有网格 |
|||
* |
|||
* @param gridIdList |
|||
* @return java.util.List<com.elink.esua.epdc.dto.epdc.GridLeaderRegisterDTO> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/10/24 15:27 |
|||
*/ |
|||
List<GridForLeaderRegisterDTO> selectListGridForLeader(@Param("gridIdList") List<String> gridIdList); |
|||
|
|||
/** |
|||
* 通过用户部门权限 获取第一级部门节点 |
|||
* |
|||
* @param dataScopeDeptList |
|||
* @return java.util.List<com.elink.esua.epdc.entity.SysDeptEntity> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/27 19:10 |
|||
*/ |
|||
List<SysDeptEntity> selectListHeadDeptNode(@Param("dataScopeDeptList") List<Long> dataScopeDeptList); |
|||
|
|||
/** |
|||
* 通过数据权限和上级机构列表查询下级机构id列表 |
|||
* |
|||
* @param dataScopeDeptList |
|||
* @param parentDeptIdList |
|||
* @return java.util.List<com.elink.esua.epdc.entity.SysDeptEntity> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/27 19:32 |
|||
*/ |
|||
List<SysDeptEntity> selectChildrenDeptNode(@Param("dataScopeDeptList") List<Long> dataScopeDeptList, @Param("parentDeptIdList") List<Long> parentDeptIdList); |
|||
|
|||
List<SysDeptEntity> selectChildrenDeptAuth(@Param("dataScopeDeptList") List<Long> dataScopeDeptList); |
|||
List<DeptGridDTO> getGridAuthByUser(@Param("deptList") List<Long> deptList); |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @return java.util.List<com.elink.esua.epdc.dto.epdc.result.UserSysDeptInfoResultDTO> |
|||
* @Author yinzuomei |
|||
* @Description |
|||
* @Date 2019/12/4 20:22 |
|||
**/ |
|||
List<UserSysDeptInfoResultDTO> selectListUserSysDeptInfo(UserSysDeptInfoFormDTO formDTO); |
|||
|
|||
|
|||
/** |
|||
* @author: qushutong |
|||
* @Date: 2019/12/13 14:17 |
|||
* @Description: 查询所有 |
|||
*/ |
|||
List<DeptTreeDTO> selectListDeptTree(); |
|||
|
|||
/** |
|||
* @param params |
|||
* @return java.util.List<com.elink.esua.epdc.dto.CompleteDeptDTO> |
|||
* @Author yinzuomei |
|||
* @Description 查询未建立党员群的网格列表 |
|||
* @Date 2019/12/19 12:54 |
|||
**/ |
|||
List<CompleteDeptDTO> selectListCompleteDeptDTO(Map<String, Object> params); |
|||
|
|||
List<DeptTreeDTO> selectListDeptTreeForEpiDemic(); |
|||
|
|||
|
|||
/*** |
|||
* 查询所有网格 |
|||
* @param |
|||
* @return java.util.List<java.lang.Long> |
|||
* @author qushutong |
|||
* @date 2019/12/12 18:12 |
|||
*/ |
|||
List<Long> selectListAllGridId(); |
|||
|
|||
/** |
|||
* 按部门类型,分页查询部门列表 |
|||
* |
|||
* @param typeKey 部门类型 |
|||
* @param pageSize 页容量 |
|||
* @param pageIndex 页码 |
|||
* @return java.util.List<java.lang.Long> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/12/17 16:11 |
|||
*/ |
|||
List<Long> pageDeptIdByTypeKey(@Param("typeKey") String typeKey, |
|||
@Param("pageSize") Integer pageSize, |
|||
@Param("pageIndex") Integer pageIndex); |
|||
|
|||
/** |
|||
* 根据部门id,查询该部门指定角色的用户姓名 |
|||
* |
|||
* @param deptId 部门id |
|||
* @param roleType 角色类型 |
|||
* @return java.lang.String |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/12/18 13:45 |
|||
*/ |
|||
String selectDeptLeaderName(@Param("deptId") Long deptId, @Param("roleType") String roleType); |
|||
|
|||
/** |
|||
* @Description: 获取全部的部门基本信息 |
|||
* @Param: [userSysDeptInfoFormDTO] |
|||
* @return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.epdc.result.UserSysDeptInfoResultDTO>> |
|||
* @Author: zy |
|||
* @Date: 2020-04-14 |
|||
*/ |
|||
List<UserSysDeptInfoResultDTO> selectListAllDeptInfo(Map<String, Object> map); |
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysDictEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysDictEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 数据字典 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysDictDao extends BaseDao<SysDictEntity> { |
|||
|
|||
List<SysDictEntity> getSubList(Map<String, Object> params); |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysLanguageEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysLanguageEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 国际化 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
*/ |
|||
@Mapper |
|||
public interface SysLanguageDao extends BaseDao<SysLanguageEntity> { |
|||
|
|||
SysLanguageEntity getLanguage(SysLanguageEntity entity); |
|||
|
|||
void updateLanguage(SysLanguageEntity entity); |
|||
|
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysLogErrorEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysLogErrorEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 异常日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysLogErrorDao extends BaseDao<SysLogErrorEntity> { |
|||
|
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysLogLoginEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysLogLoginEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 登录日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysLogLoginDao extends BaseDao<SysLogLoginEntity> { |
|||
|
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysLogOperationEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysLogOperationEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 操作日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysLogOperationDao extends BaseDao<SysLogOperationEntity> { |
|||
|
|||
} |
|||
@ -0,0 +1,53 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysMenuEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysMenuEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 菜单管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysMenuDao extends BaseDao<SysMenuEntity> { |
|||
|
|||
SysMenuEntity getById(@Param("id") Long id, @Param("language") String language); |
|||
|
|||
/** |
|||
* 查询所有菜单列表 |
|||
* |
|||
* @param type 菜单类型 |
|||
* @param language 语言 |
|||
*/ |
|||
List<SysMenuEntity> getMenuList(@Param("type") Integer type, @Param("language") String language); |
|||
|
|||
/** |
|||
* 查询用户菜单列表 |
|||
* |
|||
* @param userId 用户ID |
|||
* @param type 菜单类型 |
|||
* @param language 语言 |
|||
*/ |
|||
List<SysMenuEntity> getUserMenuList(@Param("userId") Long userId, @Param("type") Integer type, @Param("language") String language); |
|||
|
|||
|
|||
/** |
|||
* 根据父菜单,查询子菜单 |
|||
* @param pid 父菜单ID |
|||
*/ |
|||
List<SysMenuEntity> getListPid(Long pid); |
|||
} |
|||
@ -0,0 +1,47 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysParamsEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysParamsEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 参数管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysParamsDao extends BaseDao<SysParamsEntity> { |
|||
/** |
|||
* 根据参数编码,查询value |
|||
* @param paramCode 参数编码 |
|||
* @return 参数值 |
|||
*/ |
|||
String getValueByCode(String paramCode); |
|||
|
|||
/** |
|||
* 获取参数编码列表 |
|||
* @param ids ids |
|||
* @return 返回参数编码列表 |
|||
*/ |
|||
List<String> getParamCodeList(Long[] ids); |
|||
|
|||
/** |
|||
* 根据参数编码,更新value |
|||
* @param paramCode 参数编码 |
|||
* @param paramValue 参数值 |
|||
*/ |
|||
int updateValueByCode(@Param("paramCode") String paramCode, @Param("paramValue") String paramValue); |
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysResourceEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysResourceEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 资源管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysResourceDao extends BaseDao<SysResourceEntity> { |
|||
/** |
|||
* 根据资源编码,删除对应的资源 |
|||
* @param code 资源编码 |
|||
*/ |
|||
void deleteByCode(String code); |
|||
|
|||
/** |
|||
* 获取资源列表 |
|||
* @param menuId 菜单ID |
|||
*/ |
|||
List<SysResourceEntity> getMenuResourceList(String menuId); |
|||
|
|||
/** |
|||
* 获取所有资源列表 |
|||
*/ |
|||
List<SysResourceEntity> getResourceList(); |
|||
|
|||
/** |
|||
* 获取用户资源列表 |
|||
* @param userId 用户ID |
|||
*/ |
|||
List<SysResourceEntity> getUserResourceList(@Param("userId") Long userId); |
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysRoleEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysRoleEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 角色管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysRoleDao extends BaseDao<SysRoleEntity> { |
|||
|
|||
/** |
|||
* 根据角色类型,获取机构的此类角色数量 |
|||
* |
|||
* @param roleType |
|||
* @param deptIdList |
|||
* @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/12/18 10:20 |
|||
*/ |
|||
List<Map<String, Object>> selectAmountByRoleTpye(@Param("roleType") String roleType, @Param("deptIdList") List<Long> deptIdList); |
|||
} |
|||
@ -0,0 +1,47 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.dto.DataScopeDeptList; |
|||
import com.elink.esua.epdc.entity.SysRoleDataScopeEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 角色数据权限 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysRoleDataScopeDao extends BaseDao<SysRoleDataScopeEntity> { |
|||
|
|||
/** |
|||
* 根据角色ID,获取部门ID列表 |
|||
*/ |
|||
List<Long> getDeptIdList(Long roleId); |
|||
|
|||
/** |
|||
* 获取用户的部门数据权限列表 |
|||
*/ |
|||
List<Long> getDataScopeList(Long userId); |
|||
|
|||
/** |
|||
* 获取用户的部门数据权限列表 |
|||
*/ |
|||
List<DataScopeDeptList> getDataScopeDetailList(Long userId); |
|||
|
|||
/** |
|||
* 根据角色id,删除角色数据权限关系 |
|||
* @param roleId 角色id |
|||
*/ |
|||
void deleteByRoleId(Long roleId); |
|||
} |
|||
@ -0,0 +1,43 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysRoleMenuEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysRoleMenuEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 角色菜单关系 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysRoleMenuDao extends BaseDao<SysRoleMenuEntity> { |
|||
|
|||
/** |
|||
* 根据角色ID,获取菜单ID列表 |
|||
*/ |
|||
List<Long> getMenuIdList(Long roleId); |
|||
|
|||
/** |
|||
* 根据角色id,删除角色菜单关系 |
|||
* @param roleId 角色id |
|||
*/ |
|||
void deleteByRoleId(Long roleId); |
|||
|
|||
/** |
|||
* 根据菜单id,删除角色菜单关系 |
|||
* @param menuId 菜单id |
|||
*/ |
|||
void deleteByMenuId(Long menuId); |
|||
} |
|||
@ -0,0 +1,48 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.entity.SysRoleUserEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.SysRoleUserEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 角色用户关系 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysRoleUserDao extends BaseDao<SysRoleUserEntity> { |
|||
|
|||
/** |
|||
* 根据角色ids,删除角色用户关系 |
|||
* @param roleIds 角色ids |
|||
*/ |
|||
void deleteByRoleIds(Long[] roleIds); |
|||
|
|||
/** |
|||
* 根据用户id,删除角色用户关系 |
|||
* @param userId 用户id |
|||
*/ |
|||
void deleteByUserId(Long userId); |
|||
|
|||
/** |
|||
* 角色ID列表 |
|||
* @param userId 用户ID |
|||
* |
|||
* @return |
|||
*/ |
|||
List<Long> getRoleIdList(Long userId); |
|||
|
|||
List<Long> getWorkRecordRoleUser(String menuCode); |
|||
} |
|||
@ -0,0 +1,108 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.dto.SysUserDTO; |
|||
import com.elink.esua.epdc.dto.SysUserOpenIdFormDTO; |
|||
import com.elink.esua.epdc.entity.SysUserEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 用户管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysUserDao extends BaseDao<SysUserEntity> { |
|||
|
|||
List<SysUserEntity> getList(Map<String, Object> params); |
|||
|
|||
SysUserEntity getById(Long id); |
|||
|
|||
SysUserEntity getByUsername(String username); |
|||
|
|||
int updatePassword(@Param("id") Long id, @Param("newPassword") String newPassword); |
|||
|
|||
/** |
|||
* 根据部门ID,查询用户数 |
|||
*/ |
|||
int getCountByDeptId(Long deptId); |
|||
|
|||
/** |
|||
* 网格长注册时,根据手机号,查询网格长管理的所有网格 |
|||
* |
|||
* @param mobile |
|||
* @return java.util.List<com.elink.esua.epdc.dto.epdc.GridForLeaderRegisterDTO> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/10/22 16:27 |
|||
*/ |
|||
List<String> selectListLeaderGridId(@Param("mobile") String mobile); |
|||
|
|||
/** |
|||
* |
|||
* 获取部门下的所有用户ID |
|||
* |
|||
* @params [deptId] |
|||
* @return java.util.List<java.lang.Long> |
|||
* @author liuchuang |
|||
* @since 2019/10/29 16:18 |
|||
*/ |
|||
List<Long> selectListOfUserIdsByDeptId(@Param("deptId") Long deptId); |
|||
|
|||
/** |
|||
* |
|||
* 根据用户名更新用户微信openId |
|||
* |
|||
* @params [sysUserOpenIdFormDto] |
|||
* @return void |
|||
* @author liuchuang |
|||
* @since 2019/11/20 9:59 |
|||
*/ |
|||
void updateOpenIdByUsername(SysUserOpenIdFormDTO sysUserOpenIdFormDto); |
|||
|
|||
/** |
|||
* |
|||
* 根据openId获取用户信息 |
|||
* |
|||
* @params [openId] |
|||
* @return com.elink.esua.epdc.dto.SysUserDTO |
|||
* @author liuchuang |
|||
* @since 2019/11/20 13:56 |
|||
*/ |
|||
SysUserDTO selectOneOfSysUserByOpenId(String openId); |
|||
|
|||
/** |
|||
* 退出登录 |
|||
*/ |
|||
void updateUserOpenId(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* @Description: 根据部门id,查询部门下的所有用户手机号 |
|||
* @Param: [map] |
|||
* @return: java.util.List<java.lang.String> |
|||
* @Author: zy |
|||
* @Date: 2020-01-09 |
|||
*/ |
|||
List<String> getUserPhoneByListDeptId(Map<String, Object> deptId); |
|||
|
|||
/** |
|||
* @Description: 根据议题网格ID查询拥有这个网格数据权限且是网格长的角色,再根据角色查出所有用户手机号 |
|||
* @Param: [deptId] |
|||
* @return: java.util.List<java.lang.String> |
|||
* @Author: zy |
|||
* @Date: 2020-01-09 |
|||
*/ |
|||
List<String> getSysGridLeaderPhone(Long deptId); |
|||
} |
|||
@ -0,0 +1,119 @@ |
|||
/** |
|||
* 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.FieldFill; |
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* APP菜单管理 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = false) |
|||
@TableName("sys_app_menu") |
|||
public class AppMenuEntity extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID = 8343477172739451636L; |
|||
|
|||
|
|||
/** |
|||
* 上级ID,一级菜单为0 |
|||
*/ |
|||
private Long pid; |
|||
|
|||
/** |
|||
* 菜单名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String name; |
|||
|
|||
/** |
|||
* 类型 0:菜单 1:按钮 |
|||
*/ |
|||
private Integer type; |
|||
|
|||
/** |
|||
* 菜单图标 |
|||
*/ |
|||
private String icon; |
|||
|
|||
/** |
|||
* 样式名称 |
|||
*/ |
|||
private String className; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 删除标识 0:未删除 1:删除 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
/** |
|||
* 上级菜单名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String parentName; |
|||
|
|||
/** |
|||
* 菜单编码 |
|||
*/ |
|||
private String menuCode; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* 子模板ID |
|||
*/ |
|||
private String templateId; |
|||
|
|||
/** |
|||
* 是否显示数字 0否 1是 |
|||
*/ |
|||
private String numFlag; |
|||
|
|||
} |
|||
@ -0,0 +1,72 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
/** |
|||
* APP菜单模板管理 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_app_menu_template") |
|||
public class AppMenuTemplateEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 3771232002180783503L; |
|||
|
|||
|
|||
/** |
|||
* 背景颜色(渐变色为0时使用) |
|||
*/ |
|||
private String backgroundColor; |
|||
|
|||
/** |
|||
* CSS类名 |
|||
*/ |
|||
private String className; |
|||
|
|||
/** |
|||
* 备用CSS类名 |
|||
*/ |
|||
private String spareClassName; |
|||
|
|||
/** |
|||
* 模板编码(tem-1,tem-2,tem-3) |
|||
*/ |
|||
private String templateCode; |
|||
|
|||
/** |
|||
* 模板名称 |
|||
*/ |
|||
private String templateName; |
|||
|
|||
/** |
|||
* 模块列数 |
|||
*/ |
|||
private Integer columnAmount; |
|||
|
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
/** |
|||
* 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.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
/** |
|||
* APP角色菜单关系 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = false) |
|||
@TableName("sys_app_role_menu") |
|||
public class AppRoleMenuEntity extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID = 5439181968297858519L; |
|||
|
|||
/** |
|||
* 角色ID |
|||
*/ |
|||
private Long roleId; |
|||
|
|||
/** |
|||
* 菜单ID |
|||
*/ |
|||
private Long menuId; |
|||
|
|||
} |
|||
@ -0,0 +1,60 @@ |
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 行政区划 |
|||
* |
|||
* @author yujintao |
|||
* @date 2019/9/3 16:25 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = false) |
|||
@TableName("area") |
|||
public class AreaEntity implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -2139014717755304245L; |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
private Integer id; |
|||
/** |
|||
* 父级ID |
|||
*/ |
|||
private Integer parentId; |
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String name; |
|||
/** |
|||
* 简称 |
|||
*/ |
|||
private String shortName; |
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private Float longitude; |
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private Float latitude; |
|||
/** |
|||
* 等级(1省/直辖市,2地级市,3区县,4镇/街道) |
|||
*/ |
|||
private Integer level; |
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
/** |
|||
* 状态(0禁用/1启用) |
|||
*/ |
|||
private Integer status; |
|||
|
|||
|
|||
} |
|||
@ -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-25 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epdc_dept_grid_platform") |
|||
public class DeptGridPlatformEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 部门ID |
|||
*/ |
|||
private Long deptId; |
|||
|
|||
/** |
|||
* 部门编码 |
|||
*/ |
|||
private String deptCode; |
|||
|
|||
/** |
|||
* 街道编码 |
|||
*/ |
|||
private String streetCode; |
|||
|
|||
/** |
|||
* 部门名称 |
|||
*/ |
|||
private String deptName; |
|||
|
|||
/** |
|||
* 启用标识 0-否,1-是 |
|||
*/ |
|||
private String enableFlag; |
|||
|
|||
} |
|||
@ -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.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
/** |
|||
* 网格小程序码 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-09-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epdc_dept_ma_code") |
|||
public class DeptMaCodeEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 7851330983990440333L; |
|||
|
|||
/** |
|||
* 网格ID |
|||
*/ |
|||
private Long gridId; |
|||
|
|||
/** |
|||
* 小程序码URL |
|||
*/ |
|||
private String codeUrl; |
|||
|
|||
/** |
|||
* 是否是网格长码,0否 1是 |
|||
*/ |
|||
private String leaderFlag; |
|||
|
|||
} |
|||
@ -0,0 +1,121 @@ |
|||
/** |
|||
* 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.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 elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_analysis_menu") |
|||
public class SysAnalysisMenuEntity extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
/** |
|||
* 上级ID,一级菜单为0 |
|||
*/ |
|||
private Long pid; |
|||
|
|||
/** |
|||
* 菜单名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String name; |
|||
|
|||
/** |
|||
* 类型 0:菜单 1:按钮 |
|||
*/ |
|||
private Integer type; |
|||
|
|||
/** |
|||
* 菜单图标 |
|||
*/ |
|||
private String icon; |
|||
|
|||
/** |
|||
* 样式名称 |
|||
*/ |
|||
private String className; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 删除标识 0:未删除 1:删除 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
/** |
|||
* 上级菜单名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String parentName; |
|||
|
|||
/** |
|||
* 菜单编码 |
|||
*/ |
|||
private String menuCode; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* 子模板ID |
|||
*/ |
|||
private String templateId; |
|||
|
|||
/** |
|||
* 是否显示数字 0否 1是 |
|||
*/ |
|||
private String numFlag; |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,63 @@ |
|||
/** |
|||
* 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.BaseEntity; |
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 角色菜单关系 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_analysis_role_menu") |
|||
public class SysAnalysisRoleMenuEntity extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
/** |
|||
* 角色ID |
|||
*/ |
|||
private Long roleId; |
|||
|
|||
/** |
|||
* 菜单ID |
|||
*/ |
|||
private Long menuId; |
|||
|
|||
/** |
|||
* 创建者 |
|||
*/ |
|||
private Long creator; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createDate; |
|||
|
|||
} |
|||
@ -0,0 +1,82 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.FieldFill; |
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableLogic; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 部门管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = false) |
|||
@TableName("sys_dept") |
|||
public class SysDeptEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 上级ID |
|||
*/ |
|||
private Long pid; |
|||
/** |
|||
* 所有上级ID,用逗号分开 |
|||
*/ |
|||
private String pids; |
|||
/** |
|||
* 部门名称 |
|||
*/ |
|||
private String name; |
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
/** |
|||
* 删除标识 0:未删除 1:删除 |
|||
*/ |
|||
@TableLogic |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Integer delFlag; |
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
/** |
|||
* 上级部门名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String parentName; |
|||
|
|||
/** |
|||
* 部门类型键值 |
|||
*/ |
|||
private String typeKey; |
|||
|
|||
/** |
|||
* 部门编码 |
|||
*/ |
|||
private String partyCode; |
|||
|
|||
} |
|||
@ -0,0 +1,74 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.FieldFill; |
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableLogic; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 数据字典 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_dict") |
|||
public class SysDictEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 上级ID,一级为0 |
|||
*/ |
|||
private Long pid; |
|||
/** |
|||
* 字典类型 |
|||
*/ |
|||
private String dictType; |
|||
/** |
|||
* 字典名称 |
|||
*/ |
|||
private String dictName; |
|||
/** |
|||
* 字典值 |
|||
*/ |
|||
private String dictValue; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
/** |
|||
* 删除标识 0:未删除 1:删除 |
|||
*/ |
|||
@TableLogic |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Integer delFlag; |
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 国际化 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_language") |
|||
public class SysLanguageEntity implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 表名 |
|||
*/ |
|||
private String tableName; |
|||
/** |
|||
* 表主键 |
|||
*/ |
|||
private Long tableId; |
|||
/** |
|||
* 字段名 |
|||
*/ |
|||
private String fieldName; |
|||
/** |
|||
* 字段值 |
|||
*/ |
|||
private String fieldValue; |
|||
/** |
|||
* 语言 |
|||
*/ |
|||
private String language; |
|||
|
|||
} |
|||
@ -0,0 +1,71 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 异常日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@TableName("sys_log_error") |
|||
public class SysLogErrorEntity implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 模块名称,如:sys |
|||
*/ |
|||
private String module; |
|||
/** |
|||
* 请求URI |
|||
*/ |
|||
private String requestUri; |
|||
/** |
|||
* 请求方式 |
|||
*/ |
|||
private String requestMethod; |
|||
/** |
|||
* 请求参数 |
|||
*/ |
|||
private String requestParams; |
|||
/** |
|||
* 用户代理 |
|||
*/ |
|||
private String userAgent; |
|||
/** |
|||
* 操作IP |
|||
*/ |
|||
private String ip; |
|||
/** |
|||
* 异常信息 |
|||
*/ |
|||
private String errorInfo; |
|||
/** |
|||
* 创建者 |
|||
*/ |
|||
private Long creator; |
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createDate; |
|||
|
|||
} |
|||
@ -0,0 +1,63 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 登录日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@TableName("sys_log_login") |
|||
public class SysLogLoginEntity implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 用户操作 0:用户登录 1:用户退出 |
|||
*/ |
|||
private Integer operation; |
|||
/** |
|||
* 状态 0:失败 1:成功 2:账号已锁定 |
|||
*/ |
|||
private Integer status; |
|||
/** |
|||
* 用户代理 |
|||
*/ |
|||
private String userAgent; |
|||
/** |
|||
* 操作IP |
|||
*/ |
|||
private String ip; |
|||
/** |
|||
* 用户名 |
|||
*/ |
|||
private String creatorName; |
|||
/** |
|||
* 创建者 |
|||
*/ |
|||
private Long creator; |
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createDate; |
|||
|
|||
} |
|||
@ -0,0 +1,82 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 操作日志 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@TableName("sys_log_operation") |
|||
public class SysLogOperationEntity implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 模块名称,如:sys |
|||
*/ |
|||
private String module; |
|||
/** |
|||
* 用户操作 |
|||
*/ |
|||
private String operation; |
|||
/** |
|||
* 请求URI |
|||
*/ |
|||
private String requestUri; |
|||
/** |
|||
* 请求方式 |
|||
*/ |
|||
private String requestMethod; |
|||
/** |
|||
* 请求参数 |
|||
*/ |
|||
private String requestParams; |
|||
/** |
|||
* 请求时长(毫秒) |
|||
*/ |
|||
private Integer requestTime; |
|||
/** |
|||
* 用户代理 |
|||
*/ |
|||
private String userAgent; |
|||
/** |
|||
* 操作IP |
|||
*/ |
|||
private String ip; |
|||
/** |
|||
* 状态 0:失败 1:成功 |
|||
*/ |
|||
private Integer status; |
|||
/** |
|||
* 用户名 |
|||
*/ |
|||
private String creatorName; |
|||
/** |
|||
* 创建者 |
|||
*/ |
|||
private Long creator; |
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createDate; |
|||
|
|||
} |
|||
@ -0,0 +1,88 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
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 lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 菜单管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_menu") |
|||
public class SysMenuEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 上级ID,一级菜单为0 |
|||
*/ |
|||
private Long pid; |
|||
/** |
|||
* 菜单名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String name; |
|||
/** |
|||
* 菜单URL |
|||
*/ |
|||
private String url; |
|||
/** |
|||
* 类型 0:菜单 1:按钮 |
|||
*/ |
|||
private Integer type; |
|||
/** |
|||
* 菜单图标 |
|||
*/ |
|||
private String icon; |
|||
/** |
|||
* 权限标识,如:sys:menu:save |
|||
*/ |
|||
private String permissions; |
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
/** |
|||
* 删除标识 0:未删除 1:删除 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Integer delFlag; |
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
/** |
|||
* 上级菜单名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String parentName; |
|||
|
|||
/** |
|||
* 菜单编码 |
|||
*/ |
|||
private String menuCode; |
|||
|
|||
} |
|||
@ -0,0 +1,64 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
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 lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 参数管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_params") |
|||
public class SysParamsEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 参数编码 |
|||
*/ |
|||
private String paramCode; |
|||
/** |
|||
* 参数值 |
|||
*/ |
|||
private String paramValue; |
|||
/** |
|||
* 类型 0:系统参数 1:非系统参数 |
|||
*/ |
|||
private Integer paramType; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 删除标识 0:未删除 1:删除 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Integer delFlag; |
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
} |
|||
@ -0,0 +1,67 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
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 lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 资源管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_resource") |
|||
public class SysResourceEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 资源编码,如菜单ID |
|||
*/ |
|||
private String resourceCode; |
|||
/** |
|||
* 资源名称 |
|||
*/ |
|||
private String resourceName; |
|||
/** |
|||
* 资源URL |
|||
*/ |
|||
private String resourceUrl; |
|||
/** |
|||
* 请求方式(如:GET、POST、PUT、DELETE) |
|||
*/ |
|||
private String resourceMethod; |
|||
/** |
|||
* 菜单标识 0:非菜单资源 1:菜单资源 |
|||
*/ |
|||
private Integer menuFlag; |
|||
/** |
|||
* 认证等级 0:权限认证 1:登录认证 2:无需认证 |
|||
*/ |
|||
private Integer authLevel; |
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
} |
|||
@ -0,0 +1,40 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
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 lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
/** |
|||
* 角色数据权限 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_role_data_scope") |
|||
public class SysRoleDataScopeEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 角色ID |
|||
*/ |
|||
private Long roleId; |
|||
/** |
|||
* 部门ID |
|||
*/ |
|||
@TableField(fill = FieldFill.DEFAULT) |
|||
private Long deptId; |
|||
|
|||
} |
|||
@ -0,0 +1,66 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
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 lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 角色管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = false) |
|||
@TableName("sys_role") |
|||
public class SysRoleEntity extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID = -5938313610523405964L; |
|||
|
|||
/** |
|||
* 角色名称 |
|||
*/ |
|||
private String name; |
|||
/** |
|||
* 角色类型键值(数据字典sysRoleType) |
|||
*/ |
|||
private String typeKey; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 删除标识 0:未删除 1:删除 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Integer delFlag; |
|||
/** |
|||
* 部门ID |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Long deptId; |
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
} |
|||
@ -0,0 +1,36 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
/** |
|||
* 角色菜单关系 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_role_menu") |
|||
public class SysRoleMenuEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 角色ID |
|||
*/ |
|||
private Long roleId; |
|||
/** |
|||
* 菜单ID |
|||
*/ |
|||
private Long menuId; |
|||
|
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
/** |
|||
* 角色用户关系 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("sys_role_user") |
|||
public class SysRoleUserEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 角色ID |
|||
*/ |
|||
private Long roleId; |
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private Long userId; |
|||
|
|||
} |
|||
@ -0,0 +1,108 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
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 lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 用户管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = false) |
|||
@TableName("sys_user") |
|||
public class SysUserEntity extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 用户名 |
|||
*/ |
|||
private String username; |
|||
/** |
|||
* 密码 |
|||
*/ |
|||
private String password; |
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
private String realName; |
|||
/** |
|||
* 头像 |
|||
*/ |
|||
private String headUrl; |
|||
/** |
|||
* 性别 0:男 1:女 2:保密 |
|||
*/ |
|||
private Integer gender; |
|||
/** |
|||
* 邮箱 |
|||
*/ |
|||
private String email; |
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
private String mobile; |
|||
/** |
|||
* 超级管理员 0:否 1:是 |
|||
*/ |
|||
private Integer superAdmin; |
|||
/** |
|||
* 状态 0:停用 1:正常 |
|||
*/ |
|||
private Integer status; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 部门ID |
|||
*/ |
|||
private Long deptId; |
|||
/** |
|||
* 删除标识 0:未删除 1:删除 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private Integer delFlag; |
|||
/** |
|||
* 更新者 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Long updater; |
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private Date updateDate; |
|||
|
|||
/** |
|||
* 部门名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String deptName; |
|||
|
|||
/** |
|||
* 用户标签键值 |
|||
*/ |
|||
private String userTagKey; |
|||
|
|||
/** |
|||
* 用户微信openId |
|||
*/ |
|||
private String openId; |
|||
|
|||
} |
|||
@ -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 work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Data |
|||
public class AppMenuExcel { |
|||
|
|||
@Excel(name = "id") |
|||
private Long id; |
|||
|
|||
@Excel(name = "上级ID,一级菜单为0") |
|||
private Long pid; |
|||
|
|||
@Excel(name = "菜单URL") |
|||
private String url; |
|||
|
|||
@Excel(name = "类型 0:菜单 1:按钮") |
|||
private Integer type; |
|||
|
|||
@Excel(name = "菜单图标") |
|||
private String icon; |
|||
|
|||
@Excel(name = "权限标识,如:sys:menu:save") |
|||
private String permissions; |
|||
|
|||
@Excel(name = "排序") |
|||
private Integer sort; |
|||
|
|||
@Excel(name = "删除标识 0:未删除 1:删除") |
|||
private Integer delFlag; |
|||
|
|||
@Excel(name = "创建者") |
|||
private Long creator; |
|||
|
|||
@Excel(name = "创建时间") |
|||
private Date createDate; |
|||
|
|||
@Excel(name = "更新者") |
|||
private Long updater; |
|||
|
|||
@Excel(name = "更新时间") |
|||
private Date updateDate; |
|||
|
|||
@Excel(name = "菜单编码") |
|||
private String menuCode; |
|||
|
|||
|
|||
} |
|||
@ -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.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 角色菜单关系 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Data |
|||
public class AppRoleMenuExcel { |
|||
|
|||
@Excel(name = "id") |
|||
private Long id; |
|||
|
|||
@Excel(name = "角色ID") |
|||
private Long roleId; |
|||
|
|||
@Excel(name = "菜单ID") |
|||
private Long menuId; |
|||
|
|||
@Excel(name = "创建者") |
|||
private Long creator; |
|||
|
|||
@Excel(name = "创建时间") |
|||
private Date createDate; |
|||
|
|||
|
|||
} |
|||
@ -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-25 |
|||
*/ |
|||
@Data |
|||
public class DeptGridPlatformExcel { |
|||
|
|||
@Excel(name = "主键") |
|||
private String id; |
|||
|
|||
@Excel(name = "部门ID") |
|||
private Long deptId; |
|||
|
|||
@Excel(name = "部门编码") |
|||
private String deptCode; |
|||
|
|||
@Excel(name = "街道编码") |
|||
private String streetCode; |
|||
|
|||
@Excel(name = "部门名称") |
|||
private String deptName; |
|||
|
|||
@Excel(name = "启用标识 0-否,1-是") |
|||
private String enableFlag; |
|||
|
|||
@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; |
|||
|
|||
|
|||
} |
|||
@ -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 work@yujt.net.cn |
|||
* @since v1.0.0 2019-09-19 |
|||
*/ |
|||
@Data |
|||
public class DeptMaCodeExcel { |
|||
|
|||
@Excel(name = "主键") |
|||
private String id; |
|||
|
|||
@Excel(name = "网格ID") |
|||
private Long gridId; |
|||
|
|||
@Excel(name = "小程序码URL") |
|||
private String codeUrl; |
|||
|
|||
@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; |
|||
|
|||
|
|||
} |
|||
@ -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.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 菜单管理 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@Data |
|||
public class SysAnalysisMenuExcel { |
|||
|
|||
@Excel(name = "id") |
|||
private Long id; |
|||
|
|||
@Excel(name = "上级ID,一级菜单为0") |
|||
private Long pid; |
|||
|
|||
@Excel(name = "类型 0:菜单 1:按钮") |
|||
private Integer type; |
|||
|
|||
@Excel(name = "模块名称") |
|||
private String modelname; |
|||
|
|||
@Excel(name = "菜单图标") |
|||
private String icon; |
|||
|
|||
@Excel(name = "样式名称") |
|||
private String className; |
|||
|
|||
@Excel(name = "菜单编码(议题管理-待回应:10001,议题管理-待处理:10002,项目管理-待处理:10003,用户管理-待认证居民:10004,消息:10005)") |
|||
private String menuCode; |
|||
|
|||
@Excel(name = "模板ID") |
|||
private String templateId; |
|||
|
|||
@Excel(name = "是否显示数字 0否 1是") |
|||
private String numFlag; |
|||
|
|||
@Excel(name = "排序") |
|||
private Integer sort; |
|||
|
|||
@Excel(name = "备注") |
|||
private String remark; |
|||
|
|||
@Excel(name = "删除标识 0:未删除 1:删除") |
|||
private Integer delFlag; |
|||
|
|||
@Excel(name = "创建者") |
|||
private Long creator; |
|||
|
|||
@Excel(name = "创建时间") |
|||
private Date createDate; |
|||
|
|||
@Excel(name = "更新者") |
|||
private Long updater; |
|||
|
|||
@Excel(name = "更新时间") |
|||
private Date updateDate; |
|||
|
|||
|
|||
} |
|||
@ -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.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 角色菜单关系 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@Data |
|||
public class SysAnalysisRoleMenuExcel { |
|||
|
|||
@Excel(name = "id") |
|||
private Long id; |
|||
|
|||
@Excel(name = "角色ID") |
|||
private Long roleId; |
|||
|
|||
@Excel(name = "菜单ID") |
|||
private Long menuId; |
|||
|
|||
@Excel(name = "创建者") |
|||
private Long creator; |
|||
|
|||
@Excel(name = "创建时间") |
|||
private Date createDate; |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
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 1.0.0 |
|||
*/ |
|||
@Data |
|||
public class SysLogErrorExcel { |
|||
@Excel(name = "模块名称") |
|||
private String module; |
|||
@Excel(name = "请求URI") |
|||
private String requestUri; |
|||
@Excel(name = "请求方式") |
|||
private String requestMethod; |
|||
@Excel(name = "请求参数") |
|||
private String requestParams; |
|||
@Excel(name = "User-Agent") |
|||
private String userAgent; |
|||
@Excel(name = "操作IP") |
|||
private String ip; |
|||
@Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss") |
|||
private Date createDate; |
|||
|
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
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 1.0.0 |
|||
*/ |
|||
@Data |
|||
public class SysLogLoginExcel { |
|||
@Excel(name = "用户操作") |
|||
private String operation; |
|||
@Excel(name = "状态", replace = {"失败_0", "成功_1", "账号已锁定_1"}) |
|||
private Integer status; |
|||
@Excel(name = "User-Agent") |
|||
private String userAgent; |
|||
@Excel(name = "操作IP") |
|||
private String ip; |
|||
@Excel(name = "用户名") |
|||
private String creatorName; |
|||
@Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss") |
|||
private Date createDate; |
|||
|
|||
} |
|||
@ -0,0 +1,47 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
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 1.0.0 |
|||
*/ |
|||
@Data |
|||
public class SysLogOperationExcel { |
|||
@Excel(name = "模块名称") |
|||
private String module; |
|||
@Excel(name = "用户操作") |
|||
private String operation; |
|||
@Excel(name = "请求URI") |
|||
private String requestUri; |
|||
@Excel(name = "请求方式") |
|||
private String requestMethod; |
|||
@Excel(name = "请求参数") |
|||
private String requestParams; |
|||
@Excel(name = "请求时长(毫秒)") |
|||
private Integer requestTime; |
|||
@Excel(name = "User-Agent") |
|||
private String userAgent; |
|||
@Excel(name = "操作IP") |
|||
private String ip; |
|||
@Excel(name = "状态", replace = {"失败_0", "成功_1"}) |
|||
private Integer status; |
|||
@Excel(name = "用户名") |
|||
private String creatorName; |
|||
@Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss") |
|||
private Date createDate; |
|||
|
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 参数管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Data |
|||
public class SysParamsExcel { |
|||
@Excel(name = "参数编码") |
|||
private String paramCode; |
|||
@Excel(name = "参数值") |
|||
private String paramValue; |
|||
@Excel(name = "备注") |
|||
private String remark; |
|||
|
|||
} |
|||
@ -0,0 +1,43 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
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 1.0.0 |
|||
*/ |
|||
@Data |
|||
public class SysUserExcel { |
|||
@Excel(name = "用户名") |
|||
private String username; |
|||
@Excel(name = "姓名") |
|||
private String realName; |
|||
@Excel(name = "性别", replace = {"男_0", "女_1", "保密_2"}) |
|||
private Integer gender; |
|||
@Excel(name = "邮箱") |
|||
private String email; |
|||
@Excel(name = "手机号") |
|||
private String mobile; |
|||
@Excel(name = "部门名称") |
|||
private String deptName; |
|||
@Excel(name = "状态", replace = {"停用_0", "正常_1"}) |
|||
private Integer status; |
|||
@Excel(name = "备注") |
|||
private String remark; |
|||
@Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss") |
|||
private Date createDate; |
|||
|
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
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.CompleteDeptDTO; |
|||
import com.elink.esua.epdc.feign.fallback.GroupFeignClientFallback; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.http.MediaType; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* |
|||
* 友邻社群模块调用 |
|||
* |
|||
* @Author:liuchuang |
|||
* @Date:2019/11/20 23:41 |
|||
*/ |
|||
@FeignClient(name = ServiceConstant.EPDC_GROUP_SERVER, fallback = GroupFeignClientFallback.class) |
|||
public interface GroupFeignClient { |
|||
|
|||
/** |
|||
* |
|||
* 创建网格党员群 |
|||
* |
|||
* @params [formDto] |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|||
* @author liuchuang |
|||
* @since 2019/11/21 0:01 |
|||
*/ |
|||
@PostMapping(value = "group/epdc-app/group/createParty", consumes = MediaType.APPLICATION_JSON_VALUE) |
|||
Result createPartyGroup(CompleteDeptDTO formDto); |
|||
|
|||
/** |
|||
* @param |
|||
* @return java.util.List<java.lang.String> |
|||
* @Author yinzuomei |
|||
* @Description 查询已经建立党员群的网格id |
|||
* @Date 2019/12/19 13:01 |
|||
**/ |
|||
@GetMapping(value = "group/epdc-app/group/listPartyMemberGridId") |
|||
Result<List<String>> listPartyMemberGridId(); |
|||
} |
|||
@ -0,0 +1,30 @@ |
|||
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.UploadToOssDTO; |
|||
import com.elink.esua.epdc.feign.fallback.OssFeignClientFallback; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.http.MediaType; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
|
|||
|
|||
/** |
|||
* @author work@yujt.net.cn |
|||
* @date 19/9/19 10:12 |
|||
*/ |
|||
@FeignClient(name = ServiceConstant.EPDC_OSS_SERVER, fallback = OssFeignClientFallback.class) |
|||
public interface OssFeignClient { |
|||
|
|||
/** |
|||
* File文件上传到文件服务器 |
|||
* |
|||
* @param dto |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.lang.String> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/9/19 10:15 |
|||
*/ |
|||
@PostMapping(value = "oss/file/uploadFile", consumes = MediaType.APPLICATION_JSON_VALUE) |
|||
Result<String> uploadFile(UploadToOssDTO dto); |
|||
|
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
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.CompleteDeptDTO; |
|||
import com.elink.esua.epdc.feign.GroupFeignClient; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author:liuchuang |
|||
* @Date:2019/11/20 23:41 |
|||
*/ |
|||
@Component |
|||
public class GroupFeignClientFallback implements GroupFeignClient { |
|||
|
|||
@Override |
|||
public Result createPartyGroup(CompleteDeptDTO formDto) { |
|||
return ModuleUtils.feignConError(ServiceConstant.EPDC_GROUP_SERVER, "createPartyGroup", formDto); |
|||
} |
|||
|
|||
@Override |
|||
public Result<List<String>> listPartyMemberGridId() { |
|||
return ModuleUtils.feignConError(ServiceConstant.EPDC_GROUP_SERVER, "listPartyMemberGridId"); |
|||
} |
|||
} |
|||
@ -0,0 +1,22 @@ |
|||
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.UploadToOssDTO; |
|||
import com.elink.esua.epdc.feign.OssFeignClient; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @author work@yujt.net.cn |
|||
* @date 19/9/19 10:12 |
|||
*/ |
|||
@Component |
|||
public class OssFeignClientFallback implements OssFeignClient { |
|||
|
|||
@Override |
|||
public Result<String> uploadFile(UploadToOssDTO dto) { |
|||
return ModuleUtils.feignConError(ServiceConstant.EPDC_OSS_SERVER, "uploadFile", dto.getFileName()); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,91 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.log; |
|||
|
|||
import com.elink.esua.epdc.entity.SysLogLoginEntity; |
|||
import com.elink.esua.epdc.entity.SysLogOperationEntity; |
|||
import com.elink.esua.epdc.service.SysLogErrorService; |
|||
import com.elink.esua.epdc.service.SysLogLoginService; |
|||
import com.elink.esua.epdc.service.SysLogOperationService; |
|||
import com.elink.esua.epdc.commons.tools.log.BaseLog; |
|||
import com.elink.esua.epdc.commons.tools.log.enums.LogTypeEnum; |
|||
import com.elink.esua.epdc.commons.tools.redis.RedisKeys; |
|||
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|||
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|||
import com.elink.esua.epdc.entity.SysLogErrorEntity; |
|||
import com.elink.esua.epdc.entity.SysLogLoginEntity; |
|||
import com.elink.esua.epdc.entity.SysLogOperationEntity; |
|||
import com.elink.esua.epdc.service.SysLogErrorService; |
|||
import com.elink.esua.epdc.service.SysLogLoginService; |
|||
import com.elink.esua.epdc.service.SysLogOperationService; |
|||
import org.apache.commons.lang3.concurrent.BasicThreadFactory; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.boot.CommandLineRunner; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.concurrent.ScheduledExecutorService; |
|||
import java.util.concurrent.ScheduledThreadPoolExecutor; |
|||
import java.util.concurrent.TimeUnit; |
|||
|
|||
/** |
|||
* 从Redis队列中获取Log,保存到DB |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Component |
|||
public class LogConsumer implements CommandLineRunner { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
@Autowired |
|||
private SysLogErrorService sysLogErrorService; |
|||
@Autowired |
|||
private SysLogLoginService sysLogLoginService; |
|||
@Autowired |
|||
private SysLogOperationService sysLogOperationService; |
|||
private ScheduledExecutorService scheduledService = new ScheduledThreadPoolExecutor(1, |
|||
new BasicThreadFactory.Builder().namingPattern("log-consumer-schedule-pool-%d").daemon(true).build()); |
|||
|
|||
@Override |
|||
public void run(String... args) { |
|||
//上次任务结束后,等待10秒钟,再执行下次任务
|
|||
scheduledService.scheduleWithFixedDelay(() -> receiveQueue(), 1, 10, TimeUnit.SECONDS); |
|||
} |
|||
|
|||
private void receiveQueue() { |
|||
String key = RedisKeys.getSysLogKey(); |
|||
//每次插入100条
|
|||
int count = 100; |
|||
for(int i = 0; i < count; i++){ |
|||
BaseLog log = (BaseLog) redisUtils.rightPop(key); |
|||
if(log == null){ |
|||
return; |
|||
} |
|||
|
|||
//登录日志
|
|||
if(log.getType() == LogTypeEnum.LOGIN.value()){ |
|||
SysLogLoginEntity entity = ConvertUtils.sourceToTarget(log, SysLogLoginEntity.class); |
|||
sysLogLoginService.save(entity); |
|||
} |
|||
|
|||
//操作日志
|
|||
if(log.getType() == LogTypeEnum.OPERATION.value()){ |
|||
SysLogOperationEntity entity = ConvertUtils.sourceToTarget(log, SysLogOperationEntity.class); |
|||
sysLogOperationService.save(entity); |
|||
} |
|||
|
|||
//异常日志
|
|||
if(log.getType() == LogTypeEnum.ERROR.value()){ |
|||
SysLogErrorEntity entity = ConvertUtils.sourceToTarget(log, SysLogErrorEntity.class); |
|||
sysLogErrorService.save(entity); |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
|||
@ -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-11-19 |
|||
*/ |
|||
@Component |
|||
public class AppMenuRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
@ -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; |
|||
|
|||
/** |
|||
* APP菜单模板管理 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
@Component |
|||
public class AppMenuTemplateRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
@ -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-11-19 |
|||
*/ |
|||
@Component |
|||
public class AppRoleMenuRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
@ -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.redis; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.redis.RedisKeys; |
|||
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|||
import com.elink.esua.epdc.dto.SimpleAreaDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 区划信息表 |
|||
* |
|||
* @author yujintao yujintao@elink-cn.com |
|||
* @since v1.0.0 2019-05-08 |
|||
*/ |
|||
@Component |
|||
public class AreaRedis { |
|||
|
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
/** |
|||
* 取出区划信息 |
|||
* |
|||
* @param areaId 区域ID |
|||
* @return java.lang.String |
|||
* @author yujintao |
|||
* @date 2019/6/13 11:05 |
|||
*/ |
|||
public List<SimpleAreaDTO> getSimpleAreaList(String areaId) { |
|||
String configAreaKey = RedisKeys.getSimpleAreaKey(areaId); |
|||
return (List<SimpleAreaDTO>) redisUtils.get(configAreaKey); |
|||
} |
|||
|
|||
/** |
|||
* 缓存区划信息 |
|||
* |
|||
* @param areaId |
|||
* @param areaDtoList |
|||
* @return void |
|||
* @author yujintao |
|||
* @date 2019/6/13 11:02 |
|||
*/ |
|||
public void setSimpleAreaList(String areaId, List<SimpleAreaDTO> areaDtoList) { |
|||
String configAreaKey = RedisKeys.getSimpleAreaKey(areaId); |
|||
redisUtils.set(configAreaKey, areaDtoList); |
|||
} |
|||
|
|||
} |
|||
@ -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-25 |
|||
*/ |
|||
@Component |
|||
public class DeptGridPlatformRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
@ -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 elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@Component |
|||
public class SysAnalysisMenuRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
@ -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 elink elink@elink-cn.com |
|||
* @since v1.0.0 2020-03-25 |
|||
*/ |
|||
@Component |
|||
public class SysAnalysisRoleMenuRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,81 @@ |
|||
/** |
|||
* 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.RedisKeys; |
|||
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|||
import com.elink.esua.epdc.dto.SimpleAreaDTO; |
|||
import com.elink.esua.epdc.dto.SysSimpleDictDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 区划信息表 |
|||
* |
|||
* @author yujintao yujintao@elink-cn.com |
|||
* @since v1.0.0 2019-05-08 |
|||
*/ |
|||
@Component |
|||
public class SysDictRedis { |
|||
|
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
/** |
|||
* 根据数据字典类型,从redis获取简版数据字典列表 |
|||
* |
|||
* @param dictType 数据字典类型 |
|||
* @return java.util.List<com.elink.esua.dto.SysSimpleDictDTO> |
|||
* @author yujintao |
|||
* @date 2019/7/15 09:42 |
|||
*/ |
|||
public List<SysSimpleDictDTO> getSimpleDictList(String dictType) { |
|||
String dictKey = RedisKeys.getSimpleDictKey(dictType); |
|||
return (List<SysSimpleDictDTO>) redisUtils.get(dictKey); |
|||
} |
|||
|
|||
/** |
|||
* 根据数据字典类型,将简版数据字典列表放入缓存 |
|||
* |
|||
* @param dictType 数据字典类型 |
|||
* @param simpleDictList 列表 |
|||
* @return void |
|||
* @author yujintao |
|||
* @date 2019/7/15 09:50 |
|||
*/ |
|||
public void setSimpleDictList(String dictType, List<SysSimpleDictDTO> simpleDictList) { |
|||
String dictKey = RedisKeys.getSimpleDictKey(dictType); |
|||
redisUtils.set(dictKey, simpleDictList); |
|||
} |
|||
|
|||
/** |
|||
* 根据数据字典类型,从redis删除简版数据字典列表 |
|||
* |
|||
* @param dictType |
|||
* @return void |
|||
* @author yujintao |
|||
* @date 2019/7/15 10:10 |
|||
*/ |
|||
public void removeSimpleDictList(String dictType) { |
|||
String dictKey = RedisKeys.getSimpleDictKey(dictType); |
|||
redisUtils.delete(dictKey); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,58 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.redis; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.redis.RedisKeys; |
|||
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|||
import com.elink.esua.epdc.commons.tools.utils.HttpContextUtils; |
|||
import com.elink.esua.epdc.dto.SysMenuDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
import java.util.Set; |
|||
|
|||
/** |
|||
* 菜单管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Component |
|||
public class SysMenuRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Long userId){ |
|||
//清空菜单导航、权限标识
|
|||
redisUtils.deleteByPattern(RedisKeys.getUserMenuNavKey(userId)); |
|||
redisUtils.delete(RedisKeys.getUserPermissionsKey(userId)); |
|||
} |
|||
|
|||
public void setUserMenuNavList(Long userId, List<SysMenuDTO> menuList){ |
|||
String key = RedisKeys.getUserMenuNavKey(userId, HttpContextUtils.getLanguage()); |
|||
redisUtils.set(key, menuList); |
|||
} |
|||
|
|||
public List<SysMenuDTO> getUserMenuNavList(Long userId){ |
|||
String key = RedisKeys.getUserMenuNavKey(userId, HttpContextUtils.getLanguage()); |
|||
return (List<SysMenuDTO>)redisUtils.get(key); |
|||
} |
|||
|
|||
public void setUserPermissions(Long userId, Set<String> permsSet){ |
|||
String key = RedisKeys.getUserPermissionsKey(userId); |
|||
redisUtils.set(key, permsSet); |
|||
} |
|||
|
|||
public Set<String> getUserPermissions(Long userId){ |
|||
String key = RedisKeys.getUserPermissionsKey(userId); |
|||
return (Set<String>)redisUtils.get(key); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.redis; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.redis.RedisKeys; |
|||
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 1.0.0 |
|||
*/ |
|||
@Component |
|||
public class SysParamsRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] paramCodes) { |
|||
String key = RedisKeys.getSysParamsKey(); |
|||
redisUtils.hDel(key, paramCodes); |
|||
} |
|||
|
|||
public void set(String paramCode, String paramValue){ |
|||
if(paramValue == null){ |
|||
return ; |
|||
} |
|||
String key = RedisKeys.getSysParamsKey(); |
|||
redisUtils.hSet(key, paramCode, paramValue); |
|||
} |
|||
|
|||
public String get(String paramCode){ |
|||
String key = RedisKeys.getSysParamsKey(); |
|||
return (String)redisUtils.hGet(key, paramCode); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,49 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* |
|||
* https://www.renren.io
|
|||
* |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.redis; |
|||
|
|||
import com.elink.esua.epdc.entity.SysResourceEntity; |
|||
import com.elink.esua.epdc.commons.tools.redis.RedisKeys; |
|||
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|||
import com.elink.esua.epdc.entity.SysResourceEntity; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 资源管理 |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Component |
|||
public class SysResourceRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete() { |
|||
String key = RedisKeys.getSysResourceKey(); |
|||
|
|||
redisUtils.delete(key); |
|||
} |
|||
|
|||
public void set(List<SysResourceEntity> list){ |
|||
String key = RedisKeys.getSysResourceKey(); |
|||
|
|||
redisUtils.set(key, list); |
|||
} |
|||
|
|||
public List<SysResourceEntity> get(){ |
|||
String key = RedisKeys.getSysResourceKey(); |
|||
|
|||
return (List<SysResourceEntity>)redisUtils.get(key); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
package com.elink.esua.epdc.rocketmq.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* |
|||
* 组织机构信息修改-发送MQ消息DTO |
|||
* |
|||
* @Author:liuchuang |
|||
* @Date:2020/3/6 19:58 |
|||
*/ |
|||
@Data |
|||
public class OrganizationModifyDTO implements Serializable { |
|||
private static final long serialVersionUID = -1330090682508121169L; |
|||
|
|||
/** |
|||
* 部门ID |
|||
*/ |
|||
private Long deptId; |
|||
|
|||
/** |
|||
* 旧部门名称 |
|||
*/ |
|||
private String oldDeptName; |
|||
|
|||
/** |
|||
* 新部门名称 |
|||
*/ |
|||
private String newDeptName; |
|||
|
|||
/** |
|||
* 部门类型 |
|||
*/ |
|||
private String typeKey; |
|||
} |
|||
@ -0,0 +1,44 @@ |
|||
package com.elink.esua.epdc.rocketmq.producer; |
|||
|
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.apache.rocketmq.client.producer.SendResult; |
|||
import org.apache.rocketmq.common.message.Message; |
|||
import org.apache.rocketmq.spring.core.RocketMQTemplate; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* |
|||
* 组织机构信息修改-发送MQ消息 |
|||
* |
|||
* @Author:liuchuang |
|||
* @Date:2020/3/5 17:53 |
|||
*/ |
|||
@Slf4j |
|||
@Component |
|||
public class OrganizationModifyProducer { |
|||
|
|||
@Autowired |
|||
private RocketMQTemplate rocketMQTemplate; |
|||
|
|||
/** |
|||
* |
|||
* 发送消息 |
|||
* |
|||
* @params [topic, tag, keys, body] |
|||
* @return void |
|||
* @author liuchuang |
|||
* @since 2020/3/6 21:09 |
|||
*/ |
|||
public void sendMessage(String topic, String tag, String keys, String body) { |
|||
Message message = new Message(topic, tag, keys, body.getBytes()); |
|||
try { |
|||
SendResult sendResult = rocketMQTemplate.getProducer().send(message); |
|||
log.info("EPDC-ADMIN-SERVER发送消息结果:{sendStatus:{}, topic:{}, msgId:{}}", sendResult.getSendStatus(), topic, sendResult.getMsgId()); |
|||
} catch (Exception e) { |
|||
log.error("EPDC-ADMIN-SERVER发送消息异常:{topic:{}, tag:{}, keys:{}, body:{}}", topic, tag, keys, body); |
|||
e.printStackTrace(); |
|||
} |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,155 @@ |
|||
/** |
|||
* 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.security.user.UserDetail; |
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.dto.AppMenuDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO; |
|||
import com.elink.esua.epdc.dto.epdc.result.EpdcAppIndexPanelResultDTO; |
|||
import com.elink.esua.epdc.entity.AppMenuEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* APP菜单管理 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
* @since v1.0.0 2019-11-19 |
|||
*/ |
|||
public interface AppMenuService extends BaseService<AppMenuEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<AppMenuDTO> |
|||
* @author generator |
|||
* @date 2019-11-19 |
|||
*/ |
|||
PageData<AppMenuDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<AppMenuDTO> |
|||
* @author generator |
|||
* @date 2019-11-19 |
|||
*/ |
|||
List<AppMenuDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return AppMenuDTO |
|||
* @author generator |
|||
* @date 2019-11-19 |
|||
*/ |
|||
AppMenuDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2019-11-19 |
|||
*/ |
|||
void save(AppMenuDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2019-11-19 |
|||
*/ |
|||
void update(AppMenuDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2019-11-19 |
|||
*/ |
|||
void delete(String[] ids); |
|||
|
|||
|
|||
/** |
|||
* 获取APP菜单列表 |
|||
* |
|||
* @param type 菜单类型 0:菜单 1:按钮 null:全部 |
|||
* @return java.util.List<com.elink.esua.epdc.dto.AppMenuDTO> |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/19 13:27 |
|||
*/ |
|||
List<AppMenuDTO> getAppMenuList(Integer type); |
|||
|
|||
/** |
|||
* 根据ID删除 |
|||
* |
|||
* @param id 菜单ID |
|||
* @return void |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/19 14:31 |
|||
*/ |
|||
void delete(Long id); |
|||
|
|||
/** |
|||
* 判断是否有子级菜单 |
|||
* |
|||
* @param id 菜单ID |
|||
* @return boolean |
|||
* @author work@yujt.net.cn |
|||
* @date 2019/11/19 14:30 |
|||
*/ |
|||
boolean hasChileMenu(Long id); |
|||
|
|||
/** |
|||
* 用户app端菜单列表 |
|||
* |
|||
* @param userDetail 用户信息 |
|||
* @param type 菜单类型 |
|||
*/ |
|||
List<AppMenuDTO> getUserMenuList(UserDetail userDetail, Integer type); |
|||
|
|||
/** |
|||
* @param mobile |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcIndexPanelResultDTO>> |
|||
* @Author yinzuomei |
|||
* @Description 首页面板 获取工作端APP菜单 |
|||
* @Date 2019/11/20 10:42 |
|||
**/ |
|||
Result<List<EpdcAppIndexPanelResultDTO>> indexPanel(String mobile); |
|||
/** |
|||
* @param userId |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO>> |
|||
* @Author lpf |
|||
* @Description 首页面板 获取数据端APP菜单 |
|||
* @Date 2020/03/18 10:42 |
|||
**/ |
|||
Result<List<EpdcAppChildNavResultDTO>> getAnalysisIndexPanel(String userId); |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue