Commit 28c80e3a authored by wzp's avatar wzp

修改审核状态值查询

parent dc74d79a
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
} }
...@@ -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));
} }
} }
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("禁用");
......
...@@ -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);
......
...@@ -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) {
......
...@@ -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
......
...@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment