fix
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package com.starry.admin.modules.weichat.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.starry.admin.modules.clerk.module.entity.PlayClerkTypeInfoEntity;
|
||||
import com.starry.admin.modules.clerk.service.IPlayClerkTypeInfoService;
|
||||
import com.starry.common.result.R;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 店员等级
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024/5/29 上午6:24
|
||||
**/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/wx/clerk/type")
|
||||
public class WxClerkTypeController {
|
||||
|
||||
@Resource
|
||||
private IPlayClerkTypeInfoService clerkTypeInfoService;
|
||||
|
||||
|
||||
/**
|
||||
* 顾客查询所有店员所有等级列表
|
||||
*
|
||||
* @return 店员所有等级列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public R clerkTypeList() {
|
||||
List<PlayClerkTypeInfoEntity> list = clerkTypeInfoService.list(Wrappers.lambdaQuery(PlayClerkTypeInfoEntity.class).eq(PlayClerkTypeInfoEntity::getHomeDisplayed,1).orderByDesc(PlayClerkTypeInfoEntity::getSort));
|
||||
return R.ok(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user