初始化
This commit is contained in:
parent
5e3fd2dfb8
commit
d226c79d76
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberAddress;
|
||||
import com.ruoyi.member.service.IMemberAddressService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 博主收货地址Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/address")
|
||||
public class MemberAddressController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberAddressService memberAddressService;
|
||||
|
||||
/**
|
||||
* 查询博主收货地址列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:address:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberAddress memberAddress)
|
||||
{
|
||||
|
||||
List<MemberAddress> list = memberAddressService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出博主收货地址列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:address:export')")
|
||||
@Log(title = "博主收货地址", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberAddress memberAddress)
|
||||
{
|
||||
List<MemberAddress> list = memberAddressService.list();
|
||||
ExcelUtil<MemberAddress> util = new ExcelUtil<MemberAddress>(MemberAddress.class);
|
||||
util.exportExcel(response, list, "博主收货地址数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取博主收货地址详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:address:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberAddressService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增博主收货地址
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:address:add')")
|
||||
@Log(title = "博主收货地址", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberAddress memberAddress)
|
||||
{
|
||||
return toAjax(memberAddressService.save(memberAddress));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改博主收货地址
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:address:edit')")
|
||||
@Log(title = "博主收货地址", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberAddress memberAddress)
|
||||
{
|
||||
return toAjax(memberAddressService.updateById(memberAddress));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除博主收货地址
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:address:remove')")
|
||||
@Log(title = "博主收货地址", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberAddressService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberApply;
|
||||
import com.ruoyi.member.service.IMemberApplyService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 通告主认证申请Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/apply")
|
||||
public class MemberApplyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberApplyService memberApplyService;
|
||||
|
||||
/**
|
||||
* 查询通告主认证申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:apply:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberApply memberApply)
|
||||
{
|
||||
|
||||
List<MemberApply> list = memberApplyService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出通告主认证申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:apply:export')")
|
||||
@Log(title = "通告主认证申请", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberApply memberApply)
|
||||
{
|
||||
List<MemberApply> list = memberApplyService.list();
|
||||
ExcelUtil<MemberApply> util = new ExcelUtil<MemberApply>(MemberApply.class);
|
||||
util.exportExcel(response, list, "通告主认证申请数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取通告主认证申请详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:apply:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberApplyService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增通告主认证申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:apply:add')")
|
||||
@Log(title = "通告主认证申请", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberApply memberApply)
|
||||
{
|
||||
return toAjax(memberApplyService.save(memberApply));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改通告主认证申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:apply:edit')")
|
||||
@Log(title = "通告主认证申请", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberApply memberApply)
|
||||
{
|
||||
return toAjax(memberApplyService.updateById(memberApply));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除通告主认证申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:apply:remove')")
|
||||
@Log(title = "通告主认证申请", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberApplyService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberBlacklist;
|
||||
import com.ruoyi.member.service.IMemberBlacklistService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 黑名单Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/blacklist")
|
||||
public class MemberBlacklistController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberBlacklistService memberBlacklistService;
|
||||
|
||||
/**
|
||||
* 查询黑名单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:blacklist:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberBlacklist memberBlacklist)
|
||||
{
|
||||
|
||||
List<MemberBlacklist> list = memberBlacklistService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出黑名单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:blacklist:export')")
|
||||
@Log(title = "黑名单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberBlacklist memberBlacklist)
|
||||
{
|
||||
List<MemberBlacklist> list = memberBlacklistService.list();
|
||||
ExcelUtil<MemberBlacklist> util = new ExcelUtil<MemberBlacklist>(MemberBlacklist.class);
|
||||
util.exportExcel(response, list, "黑名单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取黑名单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:blacklist:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberBlacklistService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增黑名单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:blacklist:add')")
|
||||
@Log(title = "黑名单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberBlacklist memberBlacklist)
|
||||
{
|
||||
return toAjax(memberBlacklistService.save(memberBlacklist));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改黑名单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:blacklist:edit')")
|
||||
@Log(title = "黑名单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberBlacklist memberBlacklist)
|
||||
{
|
||||
return toAjax(memberBlacklistService.updateById(memberBlacklist));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除黑名单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:blacklist:remove')")
|
||||
@Log(title = "黑名单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberBlacklistService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberBusiCard;
|
||||
import com.ruoyi.member.service.IMemberBusiCardService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 博主名片Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/busiCard")
|
||||
public class MemberBusiCardController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberBusiCardService memberBusiCardService;
|
||||
|
||||
/**
|
||||
* 查询博主名片列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberBusiCard memberBusiCard)
|
||||
{
|
||||
|
||||
List<MemberBusiCard> list = memberBusiCardService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出博主名片列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:export')")
|
||||
@Log(title = "博主名片", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberBusiCard memberBusiCard)
|
||||
{
|
||||
List<MemberBusiCard> list = memberBusiCardService.list();
|
||||
ExcelUtil<MemberBusiCard> util = new ExcelUtil<MemberBusiCard>(MemberBusiCard.class);
|
||||
util.exportExcel(response, list, "博主名片数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取博主名片详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberBusiCardService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增博主名片
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:add')")
|
||||
@Log(title = "博主名片", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberBusiCard memberBusiCard)
|
||||
{
|
||||
return toAjax(memberBusiCardService.save(memberBusiCard));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改博主名片
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:edit')")
|
||||
@Log(title = "博主名片", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberBusiCard memberBusiCard)
|
||||
{
|
||||
return toAjax(memberBusiCardService.updateById(memberBusiCard));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除博主名片
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:remove')")
|
||||
@Log(title = "博主名片", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberBusiCardService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberCard;
|
||||
import com.ruoyi.member.service.IMemberCardService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 会员开卡记录Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/card")
|
||||
public class MemberCardController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberCardService memberCardService;
|
||||
|
||||
/**
|
||||
* 查询会员开卡记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberCard memberCard)
|
||||
{
|
||||
|
||||
List<MemberCard> list = memberCardService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出会员开卡记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:export')")
|
||||
@Log(title = "会员开卡记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberCard memberCard)
|
||||
{
|
||||
List<MemberCard> list = memberCardService.list();
|
||||
ExcelUtil<MemberCard> util = new ExcelUtil<MemberCard>(MemberCard.class);
|
||||
util.exportExcel(response, list, "会员开卡记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员开卡记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberCardService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会员开卡记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:add')")
|
||||
@Log(title = "会员开卡记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberCard memberCard)
|
||||
{
|
||||
return toAjax(memberCardService.save(memberCard));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会员开卡记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:edit')")
|
||||
@Log(title = "会员开卡记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberCard memberCard)
|
||||
{
|
||||
return toAjax(memberCardService.updateById(memberCard));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员开卡记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:card:remove')")
|
||||
@Log(title = "会员开卡记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberCardService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberCoupon;
|
||||
import com.ruoyi.member.service.IMemberCouponService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 用户通告券变动记录Controller
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/coupon")
|
||||
public class MemberCouponController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberCouponService memberCouponService;
|
||||
|
||||
/**
|
||||
* 查询用户通告券变动记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:coupon:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberCoupon memberCoupon)
|
||||
{
|
||||
|
||||
List<MemberCoupon> list = memberCouponService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出用户通告券变动记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:coupon:export')")
|
||||
@Log(title = "用户通告券变动记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberCoupon memberCoupon)
|
||||
{
|
||||
List<MemberCoupon> list = memberCouponService.list();
|
||||
ExcelUtil<MemberCoupon> util = new ExcelUtil<MemberCoupon>(MemberCoupon.class);
|
||||
util.exportExcel(response, list, "用户通告券变动记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户通告券变动记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:coupon:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberCouponService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户通告券变动记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:coupon:add')")
|
||||
@Log(title = "用户通告券变动记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberCoupon memberCoupon)
|
||||
{
|
||||
return toAjax(memberCouponService.save(memberCoupon));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户通告券变动记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:coupon:edit')")
|
||||
@Log(title = "用户通告券变动记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberCoupon memberCoupon)
|
||||
{
|
||||
return toAjax(memberCouponService.updateById(memberCoupon));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户通告券变动记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:coupon:remove')")
|
||||
@Log(title = "用户通告券变动记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberCouponService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberFootprint;
|
||||
import com.ruoyi.member.service.IMemberFootprintService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 浏览足迹Controller
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/footprint")
|
||||
public class MemberFootprintController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberFootprintService memberFootprintService;
|
||||
|
||||
/**
|
||||
* 查询浏览足迹列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:footprint:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberFootprint memberFootprint)
|
||||
{
|
||||
|
||||
List<MemberFootprint> list = memberFootprintService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出浏览足迹列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:footprint:export')")
|
||||
@Log(title = "浏览足迹", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberFootprint memberFootprint)
|
||||
{
|
||||
List<MemberFootprint> list = memberFootprintService.list();
|
||||
ExcelUtil<MemberFootprint> util = new ExcelUtil<MemberFootprint>(MemberFootprint.class);
|
||||
util.exportExcel(response, list, "浏览足迹数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取浏览足迹详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:footprint:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberFootprintService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增浏览足迹
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:footprint:add')")
|
||||
@Log(title = "浏览足迹", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberFootprint memberFootprint)
|
||||
{
|
||||
return toAjax(memberFootprintService.save(memberFootprint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改浏览足迹
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:footprint:edit')")
|
||||
@Log(title = "浏览足迹", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberFootprint memberFootprint)
|
||||
{
|
||||
return toAjax(memberFootprintService.updateById(memberFootprint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除浏览足迹
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:footprint:remove')")
|
||||
@Log(title = "浏览足迹", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberFootprintService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberOrder;
|
||||
import com.ruoyi.member.service.IMemberOrderService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 订单Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/order")
|
||||
public class MemberOrderController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberOrderService memberOrderService;
|
||||
|
||||
/**
|
||||
* 查询订单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:order:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberOrder memberOrder)
|
||||
{
|
||||
|
||||
List<MemberOrder> list = memberOrderService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出订单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:order:export')")
|
||||
@Log(title = "订单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberOrder memberOrder)
|
||||
{
|
||||
List<MemberOrder> list = memberOrderService.list();
|
||||
ExcelUtil<MemberOrder> util = new ExcelUtil<MemberOrder>(MemberOrder.class);
|
||||
util.exportExcel(response, list, "订单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:order:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberOrderService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:order:add')")
|
||||
@Log(title = "订单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberOrder memberOrder)
|
||||
{
|
||||
return toAjax(memberOrderService.save(memberOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:order:edit')")
|
||||
@Log(title = "订单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberOrder memberOrder)
|
||||
{
|
||||
return toAjax(memberOrderService.updateById(memberOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:order:remove')")
|
||||
@Log(title = "订单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberOrderService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberPoints;
|
||||
import com.ruoyi.member.service.IMemberPointsService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 博主积分变动明细Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/points")
|
||||
public class MemberPointsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberPointsService memberPointsService;
|
||||
|
||||
/**
|
||||
* 查询博主积分变动明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:points:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberPoints memberPoints)
|
||||
{
|
||||
|
||||
List<MemberPoints> list = memberPointsService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出博主积分变动明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:points:export')")
|
||||
@Log(title = "博主积分变动明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberPoints memberPoints)
|
||||
{
|
||||
List<MemberPoints> list = memberPointsService.list();
|
||||
ExcelUtil<MemberPoints> util = new ExcelUtil<MemberPoints>(MemberPoints.class);
|
||||
util.exportExcel(response, list, "博主积分变动明细数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取博主积分变动明细详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:points:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberPointsService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增博主积分变动明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:points:add')")
|
||||
@Log(title = "博主积分变动明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberPoints memberPoints)
|
||||
{
|
||||
return toAjax(memberPointsService.save(memberPoints));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改博主积分变动明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:points:edit')")
|
||||
@Log(title = "博主积分变动明细", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberPoints memberPoints)
|
||||
{
|
||||
return toAjax(memberPointsService.updateById(memberPoints));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除博主积分变动明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:points:remove')")
|
||||
@Log(title = "博主积分变动明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberPointsService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberRights;
|
||||
import com.ruoyi.member.service.IMemberRightsService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rights/rights")
|
||||
public class MemberRightsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberRightsService memberRightsService;
|
||||
|
||||
/**
|
||||
* 查询会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('rights:rights:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberRights memberRights)
|
||||
{
|
||||
|
||||
List<MemberRights> list = memberRightsService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('rights:rights:export')")
|
||||
@Log(title = "会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberRights memberRights)
|
||||
{
|
||||
List<MemberRights> list = memberRightsService.list();
|
||||
ExcelUtil<MemberRights> util = new ExcelUtil<MemberRights>(MemberRights.class);
|
||||
util.exportExcel(response, list, "会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('rights:rights:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberRightsService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('rights:rights:add')")
|
||||
@Log(title = "会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberRights memberRights)
|
||||
{
|
||||
return toAjax(memberRightsService.save(memberRights));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('rights:rights:edit')")
|
||||
@Log(title = "会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberRights memberRights)
|
||||
{
|
||||
return toAjax(memberRightsService.updateById(memberRights));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('rights:rights:remove')")
|
||||
@Log(title = "会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberRightsService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.member.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.member.domain.MemberUser;
|
||||
import com.ruoyi.member.service.IMemberUserService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 会员Controller
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/member")
|
||||
public class MemberUserController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMemberUserService memberUserService;
|
||||
|
||||
/**
|
||||
* 查询会员列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:member:list')")
|
||||
@GetMapping("/list")
|
||||
public AjaxResult list(MemberUser memberUser)
|
||||
{
|
||||
|
||||
List<MemberUser> list = memberUserService.list();
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出会员列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:member:export')")
|
||||
@Log(title = "会员", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MemberUser memberUser)
|
||||
{
|
||||
List<MemberUser> list = memberUserService.list();
|
||||
ExcelUtil<MemberUser> util = new ExcelUtil<MemberUser>(MemberUser.class);
|
||||
util.exportExcel(response, list, "会员数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:member:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||
{
|
||||
return success(memberUserService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会员
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:member:add')")
|
||||
@Log(title = "会员", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MemberUser memberUser)
|
||||
{
|
||||
return toAjax(memberUserService.save(memberUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会员
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:member:edit')")
|
||||
@Log(title = "会员", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MemberUser memberUser)
|
||||
{
|
||||
return toAjax(memberUserService.updateById(memberUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:member:remove')")
|
||||
@Log(title = "会员", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids)
|
||||
{
|
||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||
return toAjax(memberUserService.removeBatchByIds(list));
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 博主收货地址对象 dl_member_address
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_address")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberAddress extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 博主用户id */
|
||||
@Excel(name = "博主用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 联系方式 */
|
||||
@Excel(name = "联系方式")
|
||||
private String tel;
|
||||
|
||||
/** 收件人名称 */
|
||||
@Excel(name = "收件人名称")
|
||||
private String name;
|
||||
|
||||
/** 省 市 区 */
|
||||
@Excel(name = "省 市 区")
|
||||
private String city;
|
||||
|
||||
/** 详细地址 */
|
||||
@Excel(name = "详细地址")
|
||||
private String detail;
|
||||
|
||||
/** 是否默认 */
|
||||
@Excel(name = "是否默认")
|
||||
private String isDefault;
|
||||
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 通告主认证申请对象 dl_member_apply
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_apply")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberApply extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 申请者用户id */
|
||||
@Excel(name = "申请者用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 申请者昵称 */
|
||||
@Excel(name = "申请者昵称")
|
||||
private String nickname;
|
||||
|
||||
/** 申请认证的通告主身份类型(数据字典:dl_identity_type) */
|
||||
@Excel(name = "申请认证的通告主身份类型", readConverterExp = "数=据字典:dl_identity_type")
|
||||
private String identityType;
|
||||
|
||||
/** 申请描述 */
|
||||
@Excel(name = "申请描述")
|
||||
private String content;
|
||||
|
||||
/** 备注(保留字段) */
|
||||
@Excel(name = "备注", readConverterExp = "保=留字段")
|
||||
private String remark;
|
||||
|
||||
/** 图片附件地址,可多个 */
|
||||
@Excel(name = "图片附件地址,可多个")
|
||||
private String images;
|
||||
|
||||
/** 审核状态(数据字典:dl_approval_status) */
|
||||
@Excel(name = "审核状态(数据字典:dl_approval_status)")
|
||||
private String approvalStatus;
|
||||
|
||||
/** 审核人id */
|
||||
@Excel(name = "审核人id")
|
||||
private Long approvalUserId;
|
||||
|
||||
/** 审核时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date approvalTime;
|
||||
|
||||
/** 审核备注 */
|
||||
@Excel(name = "审核备注")
|
||||
private String approvalRemark;
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 黑名单对象 dl_member_blacklist
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_blacklist")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberBlacklist extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 所有者用户id */
|
||||
@Excel(name = "所有者用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 拉黑的用户id */
|
||||
@Excel(name = "拉黑的用户id")
|
||||
private Long blackUserId;
|
||||
|
||||
/** 拉黑的用户身份(数据字典:dl_user_type) */
|
||||
@Excel(name = "拉黑的用户身份", readConverterExp = "数=据字典:dl_user_type")
|
||||
private String blackUserType;
|
||||
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 博主名片对象 dl_member_busi_card
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_busi_card")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberBusiCard extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 博主用户id */
|
||||
@Excel(name = "博主用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 博主本平台昵称 */
|
||||
@Excel(name = "博主本平台昵称")
|
||||
private String nickname;
|
||||
|
||||
/** 平台code(树形字典:dl_platform) */
|
||||
@Excel(name = "平台code", readConverterExp = "树=形字典:dl_platform")
|
||||
private String platformCode;
|
||||
|
||||
/** 平台名称 */
|
||||
@Excel(name = "平台名称")
|
||||
private String platformName;
|
||||
|
||||
/** 账号id */
|
||||
@Excel(name = "账号id")
|
||||
private String accountNumber;
|
||||
|
||||
/** 账号昵称 */
|
||||
@Excel(name = "账号昵称")
|
||||
private String accountName;
|
||||
|
||||
/** 粉丝数量 */
|
||||
@Excel(name = "粉丝数量")
|
||||
private Long fansNum;
|
||||
|
||||
/** 图片附件地址 */
|
||||
@Excel(name = "图片附件地址")
|
||||
private String image;
|
||||
|
||||
/** 联系方式 */
|
||||
@Excel(name = "联系方式")
|
||||
private String tel;
|
||||
|
||||
/** 商单自报价 */
|
||||
@Excel(name = "商单自报价")
|
||||
private BigDecimal price;
|
||||
|
||||
/** 所在领域/合作方式/是否为平台品牌合作人等 */
|
||||
@Excel(name = "所在领域/合作方式/是否为平台品牌合作人等")
|
||||
private String content;
|
||||
|
||||
/** 关联收货地址id */
|
||||
@Excel(name = "关联收货地址id")
|
||||
private String addrId;
|
||||
|
||||
/** 审核状态(数据字典:dl_approval_status) */
|
||||
@Excel(name = "审核状态(数据字典:dl_approval_status)")
|
||||
private String approvalStatus;
|
||||
|
||||
/** 审核人id */
|
||||
@Excel(name = "审核人id")
|
||||
private Long approvalUserId;
|
||||
|
||||
/** 审核时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date approvalTime;
|
||||
|
||||
/** 审核备注 */
|
||||
@Excel(name = "审核备注")
|
||||
private String approvalRemark;
|
||||
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 会员开卡记录对象 dl_member_card
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_card")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberCard extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 用户类型(数据字典:dl_user_type) */
|
||||
@Excel(name = "用户类型", readConverterExp = "数=据字典:dl_user_type")
|
||||
private String userType;
|
||||
|
||||
/** 会员卡id */
|
||||
@Excel(name = "会员卡id")
|
||||
private String cardId;
|
||||
|
||||
/** 生效日期(含) */
|
||||
@Excel(name = "生效日期", readConverterExp = "含=")
|
||||
private Date startDate;
|
||||
|
||||
/** 失效日期(含) */
|
||||
@Excel(name = "失效日期", readConverterExp = "含=")
|
||||
private Date endDate;
|
||||
|
||||
/** 关联订单id */
|
||||
@Excel(name = "关联订单id")
|
||||
private String orderId;
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 用户通告券变动记录对象 dl_member_coupon
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_coupon")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberCoupon extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 用户id */
|
||||
private String userId;
|
||||
|
||||
/** 类型(1-增加|2-扣减) */
|
||||
@Excel(name = "类型", readConverterExp = "1=-增加|2-扣减")
|
||||
private String type;
|
||||
|
||||
/** 通告id */
|
||||
private String noticeId;
|
||||
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private Integer couponNum;
|
||||
|
||||
/** 剩余 */
|
||||
@Excel(name = "剩余")
|
||||
private Long balance;
|
||||
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 浏览足迹对象 dl_member_footprint
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_footprint")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberFootprint extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 通告id */
|
||||
@Excel(name = "通告id")
|
||||
private String noticeId;
|
||||
|
||||
}
|
@ -0,0 +1,116 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 订单对象 dl_member_order
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_order")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberOrder extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 用户类型(数据字典:dl_user_type) */
|
||||
@Excel(name = "用户类型", readConverterExp = "数=据字典:dl_user_type")
|
||||
private String userType;
|
||||
|
||||
/** 用户昵称 */
|
||||
@Excel(name = "用户昵称")
|
||||
private String nickname;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
private String orderNo;
|
||||
|
||||
/** 订单类型(数据字典:dl_order_type) */
|
||||
@Excel(name = "订单类型", readConverterExp = "数=据字典:dl_order_type")
|
||||
private String orderType;
|
||||
|
||||
/** 商品id(前期就是会员卡id、通告券id) */
|
||||
@Excel(name = "商品id(前期就是会员卡id、通告券id)")
|
||||
private String goodsId;
|
||||
|
||||
/** 商品数量 */
|
||||
@Excel(name = "商品数量")
|
||||
private Integer goodsNum;
|
||||
|
||||
/** 订单总价 */
|
||||
@Excel(name = "订单总价")
|
||||
private BigDecimal goodsPrice;
|
||||
|
||||
/** 支付时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date payTime;
|
||||
|
||||
/** 下单描述 */
|
||||
@Excel(name = "下单描述")
|
||||
private String content;
|
||||
|
||||
/** 支付方式(数据字典:dl_pay_way) */
|
||||
@Excel(name = "支付方式(数据字典:dl_pay_way)")
|
||||
private String payWay;
|
||||
|
||||
/** 是否已支付(0待支付|1已支付) */
|
||||
@Excel(name = "是否已支付", readConverterExp = "0=待支付|1已支付")
|
||||
private Integer isPay;
|
||||
|
||||
/** 是否退款(0未退款|1已退款) */
|
||||
@Excel(name = "是否退款(0未退款|1已退款)")
|
||||
private Integer isRefund;
|
||||
|
||||
/** 退款人id */
|
||||
@Excel(name = "退款人id")
|
||||
private Long refundUserId;
|
||||
|
||||
/** 退款方式(数据字典:dl_pay_way) */
|
||||
@Excel(name = "退款方式(数据字典:dl_pay_way)")
|
||||
private String refundWay;
|
||||
|
||||
/** 退款单号 */
|
||||
@Excel(name = "退款单号")
|
||||
private String refundNo;
|
||||
|
||||
/** 退款发起时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "退款发起时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date refundApplyTime;
|
||||
|
||||
/** 退款到账时间 */
|
||||
@Excel(name = "退款到账时间")
|
||||
private String refundReceiveTime;
|
||||
|
||||
/** 退款理由 */
|
||||
@Excel(name = "退款理由")
|
||||
private String refundReason;
|
||||
|
||||
/** 备注(保留字段) */
|
||||
@Excel(name = "备注", readConverterExp = "保=留字段")
|
||||
private String remark;
|
||||
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 博主积分变动明细对象 dl_member_points
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_points")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberPoints extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 博主用户id */
|
||||
@Excel(name = "博主用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 积分来源类型(树形字典code:points_from) */
|
||||
@Excel(name = "积分来源类型", readConverterExp = "树=形字典code:points_from")
|
||||
private String fromCode;
|
||||
|
||||
/** 类型(1-增加|2-扣减) */
|
||||
@Excel(name = "类型", readConverterExp = "1=-增加|2-扣减")
|
||||
private String type;
|
||||
|
||||
/** 标题(如:用户签到,增加10积分) */
|
||||
@Excel(name = "标题", readConverterExp = "如=:用户签到,增加10积分")
|
||||
private String title;
|
||||
|
||||
/** 积分 */
|
||||
@Excel(name = "积分")
|
||||
private Integer points;
|
||||
|
||||
/** 剩余 */
|
||||
@Excel(name = "剩余")
|
||||
private Long balance;
|
||||
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1对象 dl_member_rights
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_rights")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberRights extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private String userId;
|
||||
|
||||
/** 用户类型(数据字典:dl_user_type) */
|
||||
@Excel(name = "用户类型", readConverterExp = "数=据字典:dl_user_type")
|
||||
private String userType;
|
||||
|
||||
/** 会员卡id */
|
||||
@Excel(name = "会员卡id")
|
||||
private String cardId;
|
||||
|
||||
/** 权益编码 */
|
||||
@Excel(name = "权益编码")
|
||||
private String rightsCode;
|
||||
|
||||
/** 权益类型(数据字典:dl_rights_type) */
|
||||
@Excel(name = "权益类型", readConverterExp = "数=据字典:dl_rights_type")
|
||||
private String rightsType;
|
||||
|
||||
/** 权益限制周期(数据字典:dl_rights_cycle) */
|
||||
@Excel(name = "权益限制周期(数据字典:dl_rights_cycle)")
|
||||
private String rightsCycle;
|
||||
|
||||
/** 权益值(权益类型为是否时:0代表不支持,1代表支持;权益类型为数量限制时:0代表不限制,其他数字代表具体限制数量) */
|
||||
@Excel(name = "权益值(权益类型为是否时:0代表不支持,1代表支持;权益类型为数量限制时:0代表不限制,其他数字代表具体限制数量)")
|
||||
private Long rightsValue;
|
||||
|
||||
/** 剩余值 */
|
||||
@Excel(name = "剩余值")
|
||||
private Long remaining;
|
||||
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package com.ruoyi.member.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import com.ruoyi.common.core.domain.DlBaseEntity;
|
||||
|
||||
/**
|
||||
* 会员对象 dl_member_user
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@TableName("dl_member_user")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MemberUser extends DlBaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一主键 */
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/** 用户类型(数据字典:dl_user_type) */
|
||||
@Excel(name = "用户类型", readConverterExp = "数=据字典:dl_user_type")
|
||||
private String userType;
|
||||
|
||||
/** 通告主身份类型,为null时就是未认证(数据字典:dl_identity_type) */
|
||||
@Excel(name = "通告主身份类型,为null时就是未认证", readConverterExp = "数=据字典:dl_identity_type")
|
||||
private String identityType;
|
||||
|
||||
/** 用户表id */
|
||||
private Long userId;
|
||||
|
||||
/** 联系方式 */
|
||||
@Excel(name = "联系方式")
|
||||
private String tel;
|
||||
|
||||
/** 通告主-本月通告发布剩余额度 */
|
||||
@Excel(name = "通告主-本月通告发布剩余额度")
|
||||
private Integer tRemaining;
|
||||
|
||||
/** 通告主-个人累计已发布通告数量 */
|
||||
@Excel(name = "通告主-个人累计已发布通告数量")
|
||||
private Long tTotalNum;
|
||||
|
||||
/** 通告主-个人粉丝数量 */
|
||||
@Excel(name = "通告主-个人粉丝数量")
|
||||
private Integer tFansNum;
|
||||
|
||||
/** 通告主-是否开启报名免打扰(0否|1开启) */
|
||||
@Excel(name = "通告主-是否开启报名免打扰(0否|1开启)")
|
||||
private String tOpenDisturb;
|
||||
|
||||
/** 通告主-收款码姓名 */
|
||||
@Excel(name = "通告主-收款码姓名")
|
||||
private String tRecipientName;
|
||||
|
||||
/** 通告主-收款码图片地址 */
|
||||
@Excel(name = "通告主-收款码图片地址")
|
||||
private String tRecipientImage;
|
||||
|
||||
/** 博主-剩余积分 */
|
||||
@Excel(name = "博主-剩余积分")
|
||||
private Long bPoints;
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberAddress;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 博主收货地址Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberAddressMapper extends BaseMapper<MemberAddress>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberApply;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 通告主认证申请Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberApplyMapper extends BaseMapper<MemberApply>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberBlacklist;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 黑名单Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberBlacklistMapper extends BaseMapper<MemberBlacklist>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberBusiCard;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 博主名片Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberBusiCardMapper extends BaseMapper<MemberBusiCard>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberCard;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 会员开卡记录Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberCardMapper extends BaseMapper<MemberCard>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberCoupon;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 用户通告券变动记录Mapper接口
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberCouponMapper extends BaseMapper<MemberCoupon>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberFootprint;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 浏览足迹Mapper接口
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberFootprintMapper extends BaseMapper<MemberFootprint>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberOrder;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 订单Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberOrderMapper extends BaseMapper<MemberOrder>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberPoints;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 博主积分变动明细Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberPointsMapper extends BaseMapper<MemberPoints>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberRights;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberRightsMapper extends BaseMapper<MemberRights>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ruoyi.member.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.member.domain.MemberUser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 会员Mapper接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface MemberUserMapper extends BaseMapper<MemberUser>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberAddress;
|
||||
|
||||
/**
|
||||
* 博主收货地址Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberAddressService extends IService<MemberAddress>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberApply;
|
||||
|
||||
/**
|
||||
* 通告主认证申请Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberApplyService extends IService<MemberApply>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberBlacklist;
|
||||
|
||||
/**
|
||||
* 黑名单Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberBlacklistService extends IService<MemberBlacklist>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberBusiCard;
|
||||
|
||||
/**
|
||||
* 博主名片Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberBusiCardService extends IService<MemberBusiCard>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberCard;
|
||||
|
||||
/**
|
||||
* 会员开卡记录Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberCardService extends IService<MemberCard>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberCoupon;
|
||||
|
||||
/**
|
||||
* 用户通告券变动记录Service接口
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberCouponService extends IService<MemberCoupon>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberFootprint;
|
||||
|
||||
/**
|
||||
* 浏览足迹Service接口
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberFootprintService extends IService<MemberFootprint>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberOrder;
|
||||
|
||||
/**
|
||||
* 订单Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberOrderService extends IService<MemberOrder>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberPoints;
|
||||
|
||||
/**
|
||||
* 博主积分变动明细Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberPointsService extends IService<MemberPoints>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberRights;
|
||||
|
||||
/**
|
||||
* 会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberRightsService extends IService<MemberRights>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.ruoyi.member.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.ruoyi.member.domain.MemberUser;
|
||||
|
||||
/**
|
||||
* 会员Service接口
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
public interface IMemberUserService extends IService<MemberUser>
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberAddressMapper;
|
||||
import com.ruoyi.member.domain.MemberAddress;
|
||||
import com.ruoyi.member.service.IMemberAddressService;
|
||||
|
||||
/**
|
||||
* 博主收货地址Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberAddressServiceImpl extends ServiceImpl<MemberAddressMapper,MemberAddress> implements IMemberAddressService
|
||||
{
|
||||
@Autowired
|
||||
private MemberAddressMapper memberAddressMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberApplyMapper;
|
||||
import com.ruoyi.member.domain.MemberApply;
|
||||
import com.ruoyi.member.service.IMemberApplyService;
|
||||
|
||||
/**
|
||||
* 通告主认证申请Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberApplyServiceImpl extends ServiceImpl<MemberApplyMapper,MemberApply> implements IMemberApplyService
|
||||
{
|
||||
@Autowired
|
||||
private MemberApplyMapper memberApplyMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberBlacklistMapper;
|
||||
import com.ruoyi.member.domain.MemberBlacklist;
|
||||
import com.ruoyi.member.service.IMemberBlacklistService;
|
||||
|
||||
/**
|
||||
* 黑名单Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberBlacklistServiceImpl extends ServiceImpl<MemberBlacklistMapper,MemberBlacklist> implements IMemberBlacklistService
|
||||
{
|
||||
@Autowired
|
||||
private MemberBlacklistMapper memberBlacklistMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberBusiCardMapper;
|
||||
import com.ruoyi.member.domain.MemberBusiCard;
|
||||
import com.ruoyi.member.service.IMemberBusiCardService;
|
||||
|
||||
/**
|
||||
* 博主名片Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberBusiCardServiceImpl extends ServiceImpl<MemberBusiCardMapper,MemberBusiCard> implements IMemberBusiCardService
|
||||
{
|
||||
@Autowired
|
||||
private MemberBusiCardMapper memberBusiCardMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberCardMapper;
|
||||
import com.ruoyi.member.domain.MemberCard;
|
||||
import com.ruoyi.member.service.IMemberCardService;
|
||||
|
||||
/**
|
||||
* 会员开卡记录Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberCardServiceImpl extends ServiceImpl<MemberCardMapper,MemberCard> implements IMemberCardService
|
||||
{
|
||||
@Autowired
|
||||
private MemberCardMapper memberCardMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberCouponMapper;
|
||||
import com.ruoyi.member.domain.MemberCoupon;
|
||||
import com.ruoyi.member.service.IMemberCouponService;
|
||||
|
||||
/**
|
||||
* 用户通告券变动记录Service业务层处理
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberCouponServiceImpl extends ServiceImpl<MemberCouponMapper,MemberCoupon> implements IMemberCouponService
|
||||
{
|
||||
@Autowired
|
||||
private MemberCouponMapper memberCouponMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberFootprintMapper;
|
||||
import com.ruoyi.member.domain.MemberFootprint;
|
||||
import com.ruoyi.member.service.IMemberFootprintService;
|
||||
|
||||
/**
|
||||
* 浏览足迹Service业务层处理
|
||||
*
|
||||
* @author vinjor-m
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberFootprintServiceImpl extends ServiceImpl<MemberFootprintMapper,MemberFootprint> implements IMemberFootprintService
|
||||
{
|
||||
@Autowired
|
||||
private MemberFootprintMapper memberFootprintMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberOrderMapper;
|
||||
import com.ruoyi.member.domain.MemberOrder;
|
||||
import com.ruoyi.member.service.IMemberOrderService;
|
||||
|
||||
/**
|
||||
* 订单Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberOrderServiceImpl extends ServiceImpl<MemberOrderMapper,MemberOrder> implements IMemberOrderService
|
||||
{
|
||||
@Autowired
|
||||
private MemberOrderMapper memberOrderMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberPointsMapper;
|
||||
import com.ruoyi.member.domain.MemberPoints;
|
||||
import com.ruoyi.member.service.IMemberPointsService;
|
||||
|
||||
/**
|
||||
* 博主积分变动明细Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberPointsServiceImpl extends ServiceImpl<MemberPointsMapper,MemberPoints> implements IMemberPointsService
|
||||
{
|
||||
@Autowired
|
||||
private MemberPointsMapper memberPointsMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberRightsMapper;
|
||||
import com.ruoyi.member.domain.MemberRights;
|
||||
import com.ruoyi.member.service.IMemberRightsService;
|
||||
|
||||
/**
|
||||
* 会员权益(定时任务重置剩余值),用户id、会员卡id、权益对应1Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberRightsServiceImpl extends ServiceImpl<MemberRightsMapper,MemberRights> implements IMemberRightsService
|
||||
{
|
||||
@Autowired
|
||||
private MemberRightsMapper memberRightsMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ruoyi.member.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.member.mapper.MemberUserMapper;
|
||||
import com.ruoyi.member.domain.MemberUser;
|
||||
import com.ruoyi.member.service.IMemberUserService;
|
||||
|
||||
/**
|
||||
* 会员Service业务层处理
|
||||
*
|
||||
* @author pqz
|
||||
* @date 2025-03-17
|
||||
*/
|
||||
@Service
|
||||
public class MemberUserServiceImpl extends ServiceImpl<MemberUserMapper,MemberUser> implements IMemberUserService
|
||||
{
|
||||
@Autowired
|
||||
private MemberUserMapper memberUserMapper;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberAddressMapper">
|
||||
|
||||
<resultMap type="MemberAddress" id="MemberAddressResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="tel" column="tel" />
|
||||
<result property="name" column="name" />
|
||||
<result property="city" column="city" />
|
||||
<result property="detail" column="detail" />
|
||||
<result property="isDefault" column="is_default" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberAddressVo">
|
||||
select id, user_id, tel, name, city, detail, is_default, creator, create_time, updater, update_time, del_flag from dl_member_address
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberApplyMapper">
|
||||
|
||||
<resultMap type="MemberApply" id="MemberApplyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="nickname" column="nickname" />
|
||||
<result property="identityType" column="identity_type" />
|
||||
<result property="content" column="content" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="images" column="images" />
|
||||
<result property="approvalStatus" column="approval_status" />
|
||||
<result property="approvalUserId" column="approval_user_id" />
|
||||
<result property="approvalTime" column="approval_time" />
|
||||
<result property="approvalRemark" column="approval_remark" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberApplyVo">
|
||||
select id, user_id, nickname, identity_type, content, remark, images, approval_status, approval_user_id, approval_time, approval_remark, creator, create_time, updater, update_time, del_flag from dl_member_apply
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberBlacklistMapper">
|
||||
|
||||
<resultMap type="MemberBlacklist" id="MemberBlacklistResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="blackUserId" column="black_user_id" />
|
||||
<result property="blackUserType" column="black_user_type" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberBlacklistVo">
|
||||
select id, user_id, black_user_id, black_user_type, creator, create_time, updater, update_time, del_flag from dl_member_blacklist
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberBusiCardMapper">
|
||||
|
||||
<resultMap type="MemberBusiCard" id="MemberBusiCardResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="nickname" column="nickname" />
|
||||
<result property="platformCode" column="platform_code" />
|
||||
<result property="platformName" column="platform_name" />
|
||||
<result property="accountNumber" column="account_number" />
|
||||
<result property="accountName" column="account_name" />
|
||||
<result property="fansNum" column="fans_num" />
|
||||
<result property="image" column="image" />
|
||||
<result property="tel" column="tel" />
|
||||
<result property="price" column="price" />
|
||||
<result property="content" column="content" />
|
||||
<result property="addrId" column="addr_id" />
|
||||
<result property="approvalStatus" column="approval_status" />
|
||||
<result property="approvalUserId" column="approval_user_id" />
|
||||
<result property="approvalTime" column="approval_time" />
|
||||
<result property="approvalRemark" column="approval_remark" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberBusiCardVo">
|
||||
select id, user_id, nickname, platform_code, platform_name, account_number, account_name, fans_num, image, tel, price, content, addr_id, approval_status, approval_user_id, approval_time, approval_remark, creator, create_time, updater, update_time, del_flag from dl_member_busi_card
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberCardMapper">
|
||||
|
||||
<resultMap type="MemberCard" id="MemberCardResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userType" column="user_type" />
|
||||
<result property="cardId" column="card_id" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberCardVo">
|
||||
select id, user_id, user_type, card_id, start_date, end_date, order_id, creator, create_time, updater, update_time, del_flag from dl_member_card
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberCouponMapper">
|
||||
|
||||
<resultMap type="MemberCoupon" id="MemberCouponResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="type" column="type" />
|
||||
<result property="noticeId" column="notice_id" />
|
||||
<result property="couponNum" column="coupon_num" />
|
||||
<result property="balance" column="balance" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberCouponVo">
|
||||
select id, user_id, type, notice_id, coupon_num, balance, remark, creator, create_time, updater, update_time, del_flag from dl_member_coupon
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberFootprintMapper">
|
||||
|
||||
<resultMap type="MemberFootprint" id="MemberFootprintResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="noticeId" column="notice_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberFootprintVo">
|
||||
select id, user_id, notice_id, create_time from dl_member_footprint
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberOrderMapper">
|
||||
|
||||
<resultMap type="MemberOrder" id="MemberOrderResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userType" column="user_type" />
|
||||
<result property="nickname" column="nickname" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="orderType" column="order_type" />
|
||||
<result property="goodsId" column="goods_id" />
|
||||
<result property="goodsNum" column="goods_num" />
|
||||
<result property="goodsPrice" column="goods_price" />
|
||||
<result property="payTime" column="pay_time" />
|
||||
<result property="content" column="content" />
|
||||
<result property="payWay" column="pay_way" />
|
||||
<result property="isPay" column="is_pay" />
|
||||
<result property="isRefund" column="is_refund" />
|
||||
<result property="refundUserId" column="refund_user_id" />
|
||||
<result property="refundWay" column="refund_way" />
|
||||
<result property="refundNo" column="refund_no" />
|
||||
<result property="refundApplyTime" column="refund_apply_time" />
|
||||
<result property="refundReceiveTime" column="refund_receive_time" />
|
||||
<result property="refundReason" column="refund_reason" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberOrderVo">
|
||||
select id, user_id, user_type, nickname, order_no, order_type, goods_id, goods_num, goods_price, pay_time, content, pay_way, is_pay, is_refund, refund_user_id, refund_way, refund_no, refund_apply_time, refund_receive_time, refund_reason, remark, creator, create_time, updater, update_time, del_flag from dl_member_order
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberPointsMapper">
|
||||
|
||||
<resultMap type="MemberPoints" id="MemberPointsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="fromCode" column="from_code" />
|
||||
<result property="type" column="type" />
|
||||
<result property="title" column="title" />
|
||||
<result property="points" column="points" />
|
||||
<result property="balance" column="balance" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberPointsVo">
|
||||
select id, user_id, from_code, type, title, points, balance, remark, creator, create_time, updater, update_time, del_flag from dl_member_points
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberRightsMapper">
|
||||
|
||||
<resultMap type="MemberRights" id="MemberRightsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userType" column="user_type" />
|
||||
<result property="cardId" column="card_id" />
|
||||
<result property="rightsCode" column="rights_code" />
|
||||
<result property="rightsType" column="rights_type" />
|
||||
<result property="rightsCycle" column="rights_cycle" />
|
||||
<result property="rightsValue" column="rights_value" />
|
||||
<result property="remaining" column="remaining" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberRightsVo">
|
||||
select id, user_id, user_type, card_id, rights_code, rights_type, rights_cycle, rights_value, remaining, create_time, update_time from dl_member_rights
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.member.mapper.MemberUserMapper">
|
||||
|
||||
<resultMap type="MemberUser" id="MemberUserResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userType" column="user_type" />
|
||||
<result property="identityType" column="identity_type" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="tel" column="tel" />
|
||||
<result property="tRemaining" column="t_remaining" />
|
||||
<result property="tTotalNum" column="t_total_num" />
|
||||
<result property="tFansNum" column="t_fans_num" />
|
||||
<result property="tOpenDisturb" column="t_open_disturb" />
|
||||
<result property="tRecipientName" column="t_recipient_name" />
|
||||
<result property="tRecipientImage" column="t_recipient_image" />
|
||||
<result property="bPoints" column="b_points" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updater" column="updater" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMemberUserVo">
|
||||
select id, user_type, identity_type, user_id, tel, t_remaining, t_total_num, t_fans_num, t_open_disturb, t_recipient_name, t_recipient_image, b_points, creator, create_time, updater, update_time, del_flag from dl_member_user
|
||||
</sql>
|
||||
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user