Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liqin
chnmuseum-party
Commits
1ebf431d
Commit
1ebf431d
authored
Mar 29, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.203.232.171:8888/lee/chnmuseum-party
into master
parents
6c8ba60d
28c80e3a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
14 deletions
+16
-14
AuditMapper.java
...java/cn/wisenergy/chnmuseum/party/mapper/AuditMapper.java
+1
-1
TUserMapper.java
...java/cn/wisenergy/chnmuseum/party/mapper/TUserMapper.java
+1
-1
AuditService.java
...va/cn/wisenergy/chnmuseum/party/service/AuditService.java
+1
-1
AuditServiceImpl.java
...energy/chnmuseum/party/service/impl/AuditServiceImpl.java
+1
-1
TUserServiceImpl.java
...energy/chnmuseum/party/service/impl/TUserServiceImpl.java
+4
-2
AuditController.java
...nergy/chnmuseum/party/web/controller/AuditController.java
+2
-2
ChinaMobileRestApiController.java
...um/party/web/controller/ChinaMobileRestApiController.java
+4
-4
AuditMapper.xml
src/main/resources/mapper/AuditMapper.xml
+1
-1
TUserMapper.xml
src/main/resources/mapper/TUserMapper.xml
+1
-1
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/mapper/AuditMapper.java
View file @
1ebf431d
...
@@ -18,5 +18,5 @@ import java.util.List;
...
@@ -18,5 +18,5 @@ import java.util.List;
*/
*/
public
interface
AuditMapper
extends
BaseMapper
<
Audit
>
{
public
interface
AuditMapper
extends
BaseMapper
<
Audit
>
{
List
<
Audit
>
getUserList
(
Page
<
Audit
>
page
,
@Param
(
"name"
)
String
name
,
@Param
(
"status"
)
Integer
status
);
List
<
Audit
>
getUserList
(
Page
<
Audit
>
page
,
@Param
(
"name"
)
String
name
,
@Param
(
"status"
)
String
status
);
}
}
src/main/java/cn/wisenergy/chnmuseum/party/mapper/TUserMapper.java
View file @
1ebf431d
...
@@ -23,5 +23,5 @@ public interface TUserMapper extends BaseMapper<TUser> {
...
@@ -23,5 +23,5 @@ public interface TUserMapper extends BaseMapper<TUser> {
TUser
getById
(
String
id
);
TUser
getById
(
String
id
);
List
<
TUser
>
getUserList
(
TUser
user
);
List
<
TUser
>
getUserList
(
@Param
(
"user"
)
TUser
user
);
}
}
src/main/java/cn/wisenergy/chnmuseum/party/service/AuditService.java
View file @
1ebf431d
...
@@ -14,5 +14,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -14,5 +14,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
*/
public
interface
AuditService
extends
IService
<
Audit
>
{
public
interface
AuditService
extends
IService
<
Audit
>
{
Page
<
Audit
>
getUserList
(
Page
<
Audit
>
page
,
String
name
,
Integer
status
);
Page
<
Audit
>
getUserList
(
Page
<
Audit
>
page
,
String
name
,
String
status
);
}
}
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/AuditServiceImpl.java
View file @
1ebf431d
...
@@ -29,7 +29,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
...
@@ -29,7 +29,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
private
AuditMapper
auditMapper
;
private
AuditMapper
auditMapper
;
@Override
@Override
public
Page
<
Audit
>
getUserList
(
Page
<
Audit
>
page
,
String
name
,
Integer
status
)
{
public
Page
<
Audit
>
getUserList
(
Page
<
Audit
>
page
,
String
name
,
String
status
)
{
return
page
.
setRecords
(
auditMapper
.
getUserList
(
page
,
name
,
status
));
return
page
.
setRecords
(
auditMapper
.
getUserList
(
page
,
name
,
status
));
}
}
}
}
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/TUserServiceImpl.java
View file @
1ebf431d
package
cn
.
wisenergy
.
chnmuseum
.
party
.
service
.
impl
;
package
cn
.
wisenergy
.
chnmuseum
.
party
.
service
.
impl
;
import
cn.wisenergy.chnmuseum.party.common.enums.AuditOperationEnum
;
import
cn.wisenergy.chnmuseum.party.common.enums.AuditStatusEnum
;
import
cn.wisenergy.chnmuseum.party.mapper.TAreaMapper
;
import
cn.wisenergy.chnmuseum.party.mapper.TAreaMapper
;
import
cn.wisenergy.chnmuseum.party.model.TUser
;
import
cn.wisenergy.chnmuseum.party.model.TUser
;
import
cn.wisenergy.chnmuseum.party.mapper.TUserMapper
;
import
cn.wisenergy.chnmuseum.party.mapper.TUserMapper
;
...
@@ -43,8 +45,8 @@ public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements
...
@@ -43,8 +45,8 @@ public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements
public
Page
<
TUser
>
getList
(
Page
<
TUser
>
page
,
TUser
user
)
{
public
Page
<
TUser
>
getList
(
Page
<
TUser
>
page
,
TUser
user
)
{
List
<
TUser
>
list
=
tUserMapper
.
getList
(
page
,
user
);
List
<
TUser
>
list
=
tUserMapper
.
getList
(
page
,
user
);
for
(
TUser
u
:
list
)
{
for
(
TUser
u
:
list
)
{
if
(
"2"
.
equals
(
u
.
getAuditStatus
())||
"4"
.
equals
(
u
.
getAuditStatus
())){
if
(
AuditStatusEnum
.
REFUSED
.
name
().
equals
(
u
.
getAuditStatus
())||
AuditStatusEnum
.
APPROVED_FINAL
.
name
()
.
equals
(
u
.
getAuditStatus
())){
if
(
"1"
.
equals
(
u
.
getStatus
())){
if
(
AuditOperationEnum
.
UNABLE
.
name
()
.
equals
(
u
.
getStatus
())){
u
.
setStatusName
(
"活跃"
);
u
.
setStatusName
(
"活跃"
);
}
else
{
}
else
{
u
.
setStatusName
(
"禁用"
);
u
.
setStatusName
(
"禁用"
);
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/AuditController.java
View file @
1ebf431d
...
@@ -53,9 +53,9 @@ public class AuditController extends BaseController {
...
@@ -53,9 +53,9 @@ public class AuditController extends BaseController {
@ApiImplicitParam
(
name
=
"_index"
,
value
=
"分页起始偏移量"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"_index"
,
value
=
"分页起始偏移量"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"_size"
,
value
=
"返回条数"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"_size"
,
value
=
"返回条数"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"name"
,
value
=
"账号名称或提交人"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"name"
,
value
=
"账号名称或提交人"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"status"
,
value
=
"
1待初审 2 驳回 3 待复审 4通过
"
,
paramType
=
"query"
,
dataType
=
"String"
)
@ApiImplicitParam
(
name
=
"status"
,
value
=
"
待初审 TBC, 驳回 REFUSED,待复审 TBCA, 通过APPROVED_FINAL
"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
})
public
Map
<
String
,
Object
>
getUserList
(
String
name
,
Integer
status
)
{
public
Map
<
String
,
Object
>
getUserList
(
String
name
,
String
status
)
{
Page
<
Audit
>
auditList
;
Page
<
Audit
>
auditList
;
try
{
try
{
auditList
=
auditService
.
getUserList
(
getPage
(),
name
,
status
);
auditList
=
auditService
.
getUserList
(
getPage
(),
name
,
status
);
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/ChinaMobileRestApiController.java
View file @
1ebf431d
...
@@ -70,6 +70,9 @@ public class ChinaMobileRestApiController extends BaseController {
...
@@ -70,6 +70,9 @@ public class ChinaMobileRestApiController extends BaseController {
@Resource
@Resource
private
TAreaServiceImpl
areaService
;
private
TAreaServiceImpl
areaService
;
@Resource
private
AssetServiceImpl
assetService
;
@Resource
@Resource
private
TBoxOperationServiceImpl
boxOperationService
;
private
TBoxOperationServiceImpl
boxOperationService
;
...
@@ -94,9 +97,6 @@ public class ChinaMobileRestApiController extends BaseController {
...
@@ -94,9 +97,6 @@ public class ChinaMobileRestApiController extends BaseController {
@Resource
@Resource
private
LearningContentBoardService
learningContentBoardService
;
private
LearningContentBoardService
learningContentBoardService
;
@Resource
private
AssetService
assetService
;
private
static
final
String
SHIRO_JWT_TOKEN
=
"shiro:jwt:token:"
;
private
static
final
String
SHIRO_JWT_TOKEN
=
"shiro:jwt:token:"
;
//用户登录次数计数 redisKey 前缀
//用户登录次数计数 redisKey 前缀
private
static
final
String
SHIRO_LOGIN_COUNT
=
"shiro_login_count_"
;
private
static
final
String
SHIRO_LOGIN_COUNT
=
"shiro_login_count_"
;
...
@@ -397,7 +397,7 @@ public class ChinaMobileRestApiController extends BaseController {
...
@@ -397,7 +397,7 @@ public class ChinaMobileRestApiController extends BaseController {
@ApiImplicitParam
(
name
=
"startDate"
,
value
=
"创建时间-开始"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"startDate"
,
value
=
"创建时间-开始"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"endDate"
,
value
=
"创建时间-结束"
,
paramType
=
"query"
,
dataType
=
"String"
)
@ApiImplicitParam
(
name
=
"endDate"
,
value
=
"创建时间-结束"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
})
@PostMapping
(
"/
exhibitionBoard/getPage
"
)
@PostMapping
(
"/
getPageList
"
)
@RequiresPermissions
(
"exhibition:board:page"
)
@RequiresPermissions
(
"exhibition:board:page"
)
@ApiOperation
(
value
=
"获取展板分页列表"
,
notes
=
"获取展板分页列表"
)
@ApiOperation
(
value
=
"获取展板分页列表"
,
notes
=
"获取展板分页列表"
)
public
Map
<
String
,
Object
>
getExhibitionBoardPageList
(
GenericPageParam
genericPageParam
)
{
public
Map
<
String
,
Object
>
getExhibitionBoardPageList
(
GenericPageParam
genericPageParam
)
{
...
...
src/main/resources/mapper/AuditMapper.xml
View file @
1ebf431d
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
and (u.user_name LIKE concat('%', #{name}, '%') or a.audit_content LIKE concat('%', #{name}, '%'))
and (u.user_name LIKE concat('%', #{name}, '%') or a.audit_content LIKE concat('%', #{name}, '%'))
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"status != null
and name != ''
"
>
and a.status = #{status}
and a.status = #{status}
</if>
</if>
and a.is_deleted = false
and a.is_deleted = false
...
...
src/main/resources/mapper/TUserMapper.xml
View file @
1ebf431d
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
and u.status = #{user.status}
and u.status = #{user.status}
</if>
</if>
<if
test=
" user.auditStatus != null and user.auditStatus != '' "
>
<if
test=
" user.auditStatus != null and user.auditStatus != '' "
>
and
(u.audit_status = "1" or u.audit_status = "3")
and
u.audit_status LIKE "TBC%"
</if>
</if>
<if
test=
" user.type != null and user.type != '' "
>
<if
test=
" user.type != null and user.type != '' "
>
and u.type = #{user.type}
and u.type = #{user.type}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment