|
@@ -6,9 +6,11 @@ import java.util.List;
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
|
|
|
import com.ruoyi.app.domain.TbAppUser;
|
|
import com.ruoyi.app.domain.TbAppUser;
|
|
|
|
+import com.ruoyi.app.domain.vo.AppMemberVo;
|
|
import com.ruoyi.app.service.ITbAppUserService;
|
|
import com.ruoyi.app.service.ITbAppUserService;
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -44,21 +46,29 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 查询会员列表
|
|
* 查询会员列表
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation("查询会员+家族成员列表")
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:appUser:list')")
|
|
|
|
+ @GetMapping("/memberList")
|
|
|
|
+ public TableDataInfo memberList(AppMemberVo memberVo) {
|
|
|
|
+
|
|
|
|
+ startPage();
|
|
|
|
+ List<AppMemberVo> list = iTbAppUserService.selectAppMembers();
|
|
|
|
+ return getDataTable(list);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询会员列表
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation("查询会员列表")
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:list')")
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:list')")
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
public TableDataInfo list(TbAppUser tbAppUser)
|
|
public TableDataInfo list(TbAppUser tbAppUser)
|
|
{
|
|
{
|
|
startPage();
|
|
startPage();
|
|
LambdaQueryWrapper<TbAppUser> lqw = new LambdaQueryWrapper<TbAppUser>();
|
|
LambdaQueryWrapper<TbAppUser> lqw = new LambdaQueryWrapper<TbAppUser>();
|
|
- if (tbAppUser.getFamilyId() != null){
|
|
|
|
- lqw.eq(TbAppUser::getFamilyId ,tbAppUser.getFamilyId());
|
|
|
|
- }
|
|
|
|
if (tbAppUser.getTemplateId() != null){
|
|
if (tbAppUser.getTemplateId() != null){
|
|
lqw.eq(TbAppUser::getTemplateId ,tbAppUser.getTemplateId());
|
|
lqw.eq(TbAppUser::getTemplateId ,tbAppUser.getTemplateId());
|
|
}
|
|
}
|
|
- if (StringUtils.isNotBlank(tbAppUser.getRole())){
|
|
|
|
- lqw.eq(TbAppUser::getRole ,tbAppUser.getRole());
|
|
|
|
- }
|
|
|
|
if (StringUtils.isNotBlank(tbAppUser.getNickName())){
|
|
if (StringUtils.isNotBlank(tbAppUser.getNickName())){
|
|
lqw.like(TbAppUser::getNickName ,tbAppUser.getNickName());
|
|
lqw.like(TbAppUser::getNickName ,tbAppUser.getNickName());
|
|
}
|
|
}
|
|
@@ -84,6 +94,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 导出会员列表
|
|
* 导出会员列表
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation("导出会员列表")
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:export')" )
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:export')" )
|
|
@Log(title = "会员" , businessType = BusinessType.EXPORT)
|
|
@Log(title = "会员" , businessType = BusinessType.EXPORT)
|
|
@GetMapping("/export" )
|
|
@GetMapping("/export" )
|
|
@@ -97,6 +108,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 获取会员详细信息
|
|
* 获取会员详细信息
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation("获取会员详细信息")
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:query')" )
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:query')" )
|
|
@GetMapping(value = "/{id}" )
|
|
@GetMapping(value = "/{id}" )
|
|
public AjaxResult getInfo(@PathVariable("id" ) Long id) {
|
|
public AjaxResult getInfo(@PathVariable("id" ) Long id) {
|
|
@@ -106,6 +118,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 新增会员
|
|
* 新增会员
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation("新增会员")
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:add')" )
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:add')" )
|
|
@Log(title = "会员" , businessType = BusinessType.INSERT)
|
|
@Log(title = "会员" , businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
@@ -116,6 +129,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 修改会员
|
|
* 修改会员
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation("修改会员")
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:edit')" )
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:edit')" )
|
|
@Log(title = "会员" , businessType = BusinessType.UPDATE)
|
|
@Log(title = "会员" , businessType = BusinessType.UPDATE)
|
|
@PutMapping
|
|
@PutMapping
|
|
@@ -126,6 +140,7 @@ public class TbAppUserController extends BaseController {
|
|
/**
|
|
/**
|
|
* 删除会员
|
|
* 删除会员
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation("删除会员")
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:remove')" )
|
|
@PreAuthorize("@ss.hasPermi('system:appUser:remove')" )
|
|
@Log(title = "会员" , businessType = BusinessType.DELETE)
|
|
@Log(title = "会员" , businessType = BusinessType.DELETE)
|
|
@DeleteMapping("/{ids}" )
|
|
@DeleteMapping("/{ids}" )
|