fix
This commit is contained in:
@@ -31,9 +31,9 @@ public class PlayUserInfoController {
|
||||
/**
|
||||
* 查询账号列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:list')")
|
||||
@GetMapping("/list")
|
||||
public R list(PlayUserInfoQueryVo vo) {
|
||||
@PreAuthorize("@customSs.hasPermission('play:user:list')")
|
||||
@PostMapping("/listByPage")
|
||||
public R listAll(@Validated @RequestBody PlayUserInfoQueryVo vo) {
|
||||
IPage<PlayUserInfoEntity> list = playUserInfoService.selectPlayUserInfoByPage(vo);
|
||||
return R.ok(list);
|
||||
}
|
||||
@@ -41,7 +41,7 @@ public class PlayUserInfoController {
|
||||
/**
|
||||
* 获取账号详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:query')")
|
||||
@PreAuthorize("@customSs.hasPermission('play:user:list')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R getInfo(@PathVariable("id") String id) {
|
||||
return R.ok(playUserInfoService.selectPlayUserInfoById(id));
|
||||
@@ -50,7 +50,7 @@ public class PlayUserInfoController {
|
||||
/**
|
||||
* 新增账号
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:create')")
|
||||
@PreAuthorize("@customSs.hasPermission('play:user:add')")
|
||||
@Log(title = "账号", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@Validated @RequestBody PlayUserInfoAddVo vo) {
|
||||
@@ -65,7 +65,7 @@ public class PlayUserInfoController {
|
||||
/**
|
||||
* 修改账号
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:edit')")
|
||||
@PreAuthorize("@customSs.hasPermission('play:user:update')")
|
||||
@Log(title = "账号", businessType = BusinessType.UPDATE)
|
||||
@PostMapping(value = "/update")
|
||||
public R update(@Validated @RequestBody PlayUserInfoUpEditVo vo) {
|
||||
@@ -80,7 +80,7 @@ public class PlayUserInfoController {
|
||||
/**
|
||||
* 删除账号
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:remove')")
|
||||
@PreAuthorize("@customSs.hasPermission('play:user:delete')")
|
||||
@Log(title = "账号", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R remove(@PathVariable String[] ids) {
|
||||
|
||||
@@ -4,18 +4,37 @@ import com.starry.common.domain.BasePageEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class PlayUserInfoQueryVo extends BasePageEntity {
|
||||
|
||||
|
||||
/**
|
||||
* UUID
|
||||
*/
|
||||
private String id;
|
||||
|
||||
|
||||
private String username;
|
||||
|
||||
|
||||
private String areaCode;
|
||||
/**
|
||||
* UUID
|
||||
*/
|
||||
|
||||
private String userCode;
|
||||
|
||||
|
||||
/**
|
||||
* 角色ID
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private List<String> addTime;
|
||||
}
|
||||
|
||||
@@ -51,11 +51,8 @@ public class PlayUserInfoServiceImpl extends ServiceImpl<PlayUserInfoMapper, Pla
|
||||
if (StrUtil.isNotBlank(vo.getId())) {
|
||||
lambdaQueryWrapper.eq(PlayUserInfoEntity::getId, vo.getId());
|
||||
}
|
||||
if (StrUtil.isNotBlank(vo.getUsername())) {
|
||||
lambdaQueryWrapper.eq(PlayUserInfoEntity::getUsername, vo.getUsername());
|
||||
}
|
||||
if (StrUtil.isNotBlank(vo.getAreaCode())) {
|
||||
lambdaQueryWrapper.eq(PlayUserInfoEntity::getAreaCode, vo.getAreaCode());
|
||||
if (StrUtil.isNotBlank(vo.getUserCode())) {
|
||||
lambdaQueryWrapper.eq(PlayUserInfoEntity::getAreaCode, vo.getUserCode());
|
||||
}
|
||||
Page<PlayUserInfoEntity> page = new Page<>(vo.getPageNum(), vo.getPageSize());
|
||||
return this.baseMapper.selectPage(page, lambdaQueryWrapper);
|
||||
|
||||
Reference in New Issue
Block a user