店员业绩
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.starry.admin.modules.personnel.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.starry.admin.modules.personnel.module.vo.PlayPersonnelUserInfoQueryVo;
|
||||
import com.starry.admin.modules.personnel.module.vo.PlayPersonnelUserInfoReturnVo;
|
||||
import com.starry.admin.modules.system.service.SysUserService;
|
||||
import com.starry.common.result.R;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 管理员管理Controller
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-06-14
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/personnel/user")
|
||||
public class PlayPersonnelUserInfoController {
|
||||
|
||||
@Resource
|
||||
private SysUserService sysUserService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询管理员管理信息列表
|
||||
*/
|
||||
@PostMapping("/listByPage")
|
||||
public R listByPage(@Validated @RequestBody PlayPersonnelUserInfoQueryVo vo) {
|
||||
IPage<PlayPersonnelUserInfoReturnVo> list = sysUserService.selectByPage(vo);
|
||||
return R.ok(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.starry.admin.modules.personnel.module.vo;
|
||||
|
||||
import com.starry.common.domain.BasePageEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
* @since 2024/6/15 下午9:42
|
||||
**/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class PlayPersonnelUserInfoQueryVo extends BasePageEntity {
|
||||
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private String sysUserId;
|
||||
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
private String userCode;
|
||||
|
||||
/**
|
||||
* 角色类型[0:用户;1:店员;2:组长]
|
||||
*/
|
||||
private String ruleType;
|
||||
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
|
||||
private List<String> addTime;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.starry.admin.modules.personnel.module.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
* @since 2024/6/15 下午9:42
|
||||
**/
|
||||
@Data
|
||||
public class PlayPersonnelUserInfoReturnVo {
|
||||
/**
|
||||
* 店员ID
|
||||
*/
|
||||
private String clerkId;
|
||||
|
||||
/**
|
||||
* 店员昵称
|
||||
*/
|
||||
private String clerkNickname;
|
||||
|
||||
/**
|
||||
* 店员头像
|
||||
*/
|
||||
private String clerkAvatar;
|
||||
|
||||
private String userId;
|
||||
|
||||
private String userCode;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private String addTime;
|
||||
}
|
||||
@@ -6,6 +6,8 @@ import com.starry.admin.modules.personnel.module.entity.PlayPersonnelGroupInfoEn
|
||||
import com.starry.admin.modules.personnel.module.vo.PlayPersonnelGroupInfoQueryVo;
|
||||
import com.starry.admin.modules.personnel.module.vo.PlayPersonnelGroupInfoReturnVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 店员分组信息Service接口
|
||||
*
|
||||
@@ -21,6 +23,16 @@ public interface IPlayPersonnelGroupInfoService extends IService<PlayPersonnelGr
|
||||
*/
|
||||
PlayPersonnelGroupInfoEntity selectPlayClerkGroupInfoById(String id);
|
||||
|
||||
|
||||
/**
|
||||
* 查询店员分组信息列表
|
||||
*
|
||||
* @return PlayPersonnelGroupInfoReturnVo
|
||||
* @author 杭州世平信息科技有限公司-xuhq
|
||||
* @since 2024/6/14 15:46
|
||||
**/
|
||||
List<PlayPersonnelGroupInfoEntity> selectAll();
|
||||
|
||||
/**
|
||||
* 分页查询店员分组信息列表
|
||||
*
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.starry.admin.modules.personnel.service.impl;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
@@ -15,6 +16,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 店员分组信息Service业务层处理
|
||||
@@ -38,6 +40,10 @@ public class PlayPersonnelGroupInfoServiceImpl extends ServiceImpl<PlayPersonnel
|
||||
return this.baseMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PlayPersonnelGroupInfoEntity> selectAll() {
|
||||
return this.baseMapper.selectList(new LambdaQueryWrapper<>());
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<PlayPersonnelGroupInfoReturnVo> selectByPage(PlayPersonnelGroupInfoQueryVo vo) {
|
||||
|
||||
Reference in New Issue
Block a user