短剧用户提现接口更新
This commit is contained in:
parent
00f4e17324
commit
22703b0f17
|
|
@ -0,0 +1,124 @@
|
|||
package com.playlet.web.controller.app;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.common.annotation.Log;
|
||||
import com.playlet.common.core.controller.BaseController;
|
||||
import com.playlet.common.core.domain.AjaxResult;
|
||||
import com.playlet.common.core.domain.Result;
|
||||
import com.playlet.common.core.page.TableDataInfo;
|
||||
import com.playlet.common.enums.BusinessType;
|
||||
import com.playlet.common.utils.poi.ExcelUtil;
|
||||
import com.playlet.system.domain.PlayletItem;
|
||||
import com.playlet.system.domain.PlayletUserAccount;
|
||||
import com.playlet.system.service.IPlayletUserAccountService;
|
||||
import com.playlet.web.service.app.PlayletUserAccountAppService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:30
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 短剧用户提现账户Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/app/account")
|
||||
public class PlayletUserAccountAppController extends BaseController {
|
||||
private String prefix = "system/account";
|
||||
|
||||
@Autowired
|
||||
private PlayletUserAccountAppService playletUserAccountAppService;
|
||||
|
||||
@RequiresPermissions("system:account:view")
|
||||
@GetMapping()
|
||||
public String account() {
|
||||
return prefix + "/account";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询短剧基础列表
|
||||
*/
|
||||
@ResponseBody
|
||||
@PostMapping("/getItemList")
|
||||
@ApiOperation(value = "分页查询短剧基础列表")
|
||||
public Result<PageInfo<PlayletUserAccount>> getItemList(@RequestBody PlayletUserAccount playletUserAccount,
|
||||
@RequestParam(value = "pageNum") Integer pageNum,
|
||||
@RequestParam(value = "pageSize") Integer pageSize) {
|
||||
return Result.success(playletUserAccountAppService.getListPage(playletUserAccount, pageNum, pageSize));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户列表
|
||||
*/
|
||||
@RequiresPermissions("system:account:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询短剧用户提现账户列表")
|
||||
public TableDataInfo list(PlayletUserAccount playletUserAccount) {
|
||||
startPage();
|
||||
List<PlayletUserAccount> list = playletUserAccountAppService.selectPlayletUserAccountList(playletUserAccount);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增短剧用户提现账户
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存短剧用户提现账户
|
||||
*/
|
||||
@RequiresPermissions("system:account:add")
|
||||
@Log(title = "短剧用户提现账户", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存短剧用户提现账户")
|
||||
public AjaxResult addSave(PlayletUserAccount playletUserAccount) {
|
||||
return toAjax(playletUserAccountAppService.insertPlayletUserAccount(playletUserAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改短剧用户提现账户
|
||||
*/
|
||||
@RequiresPermissions("system:account:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改短剧用户提现账户")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserAccount playletUserAccount = playletUserAccountAppService.selectPlayletUserAccountById(id);
|
||||
mmap.put("playletUserAccount", playletUserAccount);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存短剧用户提现账户
|
||||
*/
|
||||
@RequiresPermissions("system:account:edit")
|
||||
@Log(title = "短剧用户提现账户", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存短剧用户提现账户")
|
||||
public AjaxResult editSave(PlayletUserAccount playletUserAccount) {
|
||||
return toAjax(playletUserAccountAppService.updatePlayletUserAccount(playletUserAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除短剧用户提现账户
|
||||
*/
|
||||
@RequiresPermissions("system:account:remove")
|
||||
@Log(title = "短剧用户提现账户", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除短剧用户提现账户")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletUserAccountAppService.deletePlayletUserAccountByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
package com.playlet.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.playlet.common.annotation.Log;
|
||||
import com.playlet.common.enums.BusinessType;
|
||||
import com.playlet.system.domain.PlayletUserAccount;
|
||||
import com.playlet.system.service.IPlayletUserAccountService;
|
||||
import com.playlet.common.core.controller.BaseController;
|
||||
import com.playlet.common.core.domain.AjaxResult;
|
||||
import com.playlet.common.utils.poi.ExcelUtil;
|
||||
import com.playlet.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:30
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 短剧用户提现账户Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/account")
|
||||
public class PlayletUserAccountController extends BaseController {
|
||||
private String prefix = "system/account";
|
||||
|
||||
@Autowired
|
||||
private IPlayletUserAccountService playletUserAccountService;
|
||||
|
||||
@RequiresPermissions("system:account:view")
|
||||
@GetMapping()
|
||||
public String account() {
|
||||
return prefix + "/account";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户列表
|
||||
*/
|
||||
@RequiresPermissions("system:account:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(PlayletUserAccount playletUserAccount) {
|
||||
startPage();
|
||||
List<PlayletUserAccount> list = playletUserAccountService.selectPlayletUserAccountList(playletUserAccount);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出短剧用户提现账户列表
|
||||
*/
|
||||
@RequiresPermissions("system:account:export")
|
||||
@Log(title = "短剧用户提现账户", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(PlayletUserAccount playletUserAccount) {
|
||||
List<PlayletUserAccount> list = playletUserAccountService.selectPlayletUserAccountList(playletUserAccount);
|
||||
ExcelUtil<PlayletUserAccount> util = new ExcelUtil<PlayletUserAccount>(PlayletUserAccount.class);
|
||||
return util.exportExcel(list, "短剧用户提现账户数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增短剧用户提现账户
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存短剧用户提现账户
|
||||
*/
|
||||
@RequiresPermissions("system:account:add")
|
||||
@Log(title = "短剧用户提现账户", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(PlayletUserAccount playletUserAccount) {
|
||||
return toAjax(playletUserAccountService.insertPlayletUserAccount(playletUserAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改短剧用户提现账户
|
||||
*/
|
||||
@RequiresPermissions("system:account:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserAccount playletUserAccount = playletUserAccountService.selectPlayletUserAccountById(id);
|
||||
mmap.put("playletUserAccount", playletUserAccount);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存短剧用户提现账户
|
||||
*/
|
||||
@RequiresPermissions("system:account:edit")
|
||||
@Log(title = "短剧用户提现账户", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(PlayletUserAccount playletUserAccount) {
|
||||
return toAjax(playletUserAccountService.updatePlayletUserAccount(playletUserAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除短剧用户提现账户
|
||||
*/
|
||||
@RequiresPermissions("system:account:remove")
|
||||
@Log(title = "短剧用户提现账户", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletUserAccountService.deletePlayletUserAccountByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.playlet.web.service.app;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.system.domain.PlayletUserAccount;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:33
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 短剧用户提现账户app接口层
|
||||
*/
|
||||
public interface PlayletUserAccountAppService {
|
||||
|
||||
PageInfo<PlayletUserAccount> getListPage(PlayletUserAccount playletUserAccount, Integer pageNum, Integer pageSize);
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户
|
||||
*
|
||||
* @param id 短剧用户提现账户主键
|
||||
* @return 短剧用户提现账户
|
||||
*/
|
||||
PlayletUserAccount selectPlayletUserAccountById(Long id);
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户列表
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 短剧用户提现账户集合
|
||||
*/
|
||||
List<PlayletUserAccount> selectPlayletUserAccountList(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 新增短剧用户提现账户
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletUserAccount(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 修改短剧用户提现账户
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletUserAccount(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 删除短剧用户提现账户信息
|
||||
*
|
||||
* @param id 短剧用户提现账户主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserAccountById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除短剧用户提现账户
|
||||
*
|
||||
* @param ids 需要删除的短剧用户提现账户主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserAccountByIds(String ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.playlet.web.service.app.impl;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.common.core.text.Convert;
|
||||
import com.playlet.system.domain.PlayletItemType;
|
||||
import com.playlet.system.domain.PlayletUserAccount;
|
||||
import com.playlet.system.service.IPlayletItemTypeService;
|
||||
import com.playlet.system.service.IPlayletUserAccountService;
|
||||
import com.playlet.web.service.app.PlayletUserAccountAppService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:33
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 短剧用户提现账户app接口实现层
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserAccountAppServiceImpl implements PlayletUserAccountAppService {
|
||||
|
||||
private final IPlayletUserAccountService playletUserAccountService;
|
||||
|
||||
@Override
|
||||
public PageInfo<PlayletUserAccount> getListPage(PlayletUserAccount playletUserAccount, Integer pageNum, Integer pageSize) {
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
List<PlayletUserAccount> list = playletUserAccountService.selectPlayletUserAccountList(playletUserAccount);
|
||||
return PageInfo.of(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayletUserAccount selectPlayletUserAccountById(Long id) {
|
||||
return playletUserAccountService.selectPlayletUserAccountById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PlayletUserAccount> selectPlayletUserAccountList(PlayletUserAccount playletUserAccount) {
|
||||
return playletUserAccountService.selectPlayletUserAccountList(playletUserAccount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertPlayletUserAccount(PlayletUserAccount playletUserAccount) {
|
||||
// todo: 此处等待补充逻辑 看看一共有多少条数据。
|
||||
// todo:添加银行卡类型枚举进行判断。
|
||||
return playletUserAccountService.insertPlayletUserAccount(playletUserAccount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updatePlayletUserAccount(PlayletUserAccount playletUserAccount) {
|
||||
return playletUserAccountService.updatePlayletUserAccount(playletUserAccount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deletePlayletUserAccountByIds(String ids) {
|
||||
return playletUserAccountService.deletePlayletUserAccountByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deletePlayletUserAccountById(Long id) {
|
||||
return playletUserAccountService.deletePlayletUserAccountById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.playlet.system.domain;
|
||||
|
||||
import com.playlet.common.core.domain.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import com.playlet.common.annotation.Excel;
|
||||
/**
|
||||
* @Date: 2024-03-24 15:26
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 短剧用户提现账户对象 playlet_user_account
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "playlet_user_account")
|
||||
public class PlayletUserAccount extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id")
|
||||
@Excel(name = "用户id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 用户真实姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "用户真实姓名")
|
||||
@Excel(name = "用户真实姓名")
|
||||
private String realName;
|
||||
|
||||
/**
|
||||
* 支付宝账号
|
||||
*/
|
||||
@ApiModelProperty(value = "支付宝账号")
|
||||
@Excel(name = "支付宝账号")
|
||||
private String zfbAccount;
|
||||
|
||||
/**
|
||||
* 银行卡名称 1 农业银行 2建设银行 3工商银行 4交通银行 5中国银行
|
||||
*/
|
||||
@ApiModelProperty(value = "银行卡名称 1 农业银行 2建设银行 3工商银行 4交通银行 5中国银行")
|
||||
@Excel(name = "银行卡名称 1 农业银行 2建设银行 3工商银行 4交通银行 5中国银行")
|
||||
private Long bankCardType;
|
||||
|
||||
/**
|
||||
* 银行卡收款户名
|
||||
*/
|
||||
@ApiModelProperty(value = "银行卡收款户名")
|
||||
@Excel(name = "银行卡收款户名")
|
||||
private String bankCardAccountName;
|
||||
|
||||
/**
|
||||
* 银行卡支行所在地区
|
||||
*/
|
||||
@ApiModelProperty(value = "银行卡支行所在地区")
|
||||
@Excel(name = "银行卡支行所在地区")
|
||||
private String bankCardArea;
|
||||
|
||||
/**
|
||||
* 银行卡支行名称
|
||||
*/
|
||||
@ApiModelProperty(value = "银行卡支行名称")
|
||||
@Excel(name = "银行卡支行名称")
|
||||
private String bankCardSubBranchName;
|
||||
|
||||
/**
|
||||
* 银行卡卡号
|
||||
*/
|
||||
@ApiModelProperty(value = "银行卡卡号")
|
||||
@Excel(name = "银行卡卡号")
|
||||
private String bankCardNumber;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.playlet.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.playlet.system.domain.PlayletUserAccount;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-24 15:28
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 短剧用户提现账户Mapper接口
|
||||
*/
|
||||
public interface PlayletUserAccountMapper extends BaseMapper<PlayletUserAccount> {
|
||||
/**
|
||||
* 查询短剧用户提现账户
|
||||
*
|
||||
* @param id 短剧用户提现账户主键
|
||||
* @return 短剧用户提现账户
|
||||
*/
|
||||
public PlayletUserAccount selectPlayletUserAccountById(Long id);
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户列表
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 短剧用户提现账户集合
|
||||
*/
|
||||
public List<PlayletUserAccount> selectPlayletUserAccountList(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 新增短剧用户提现账户
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPlayletUserAccount(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 修改短剧用户提现账户
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePlayletUserAccount(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 删除短剧用户提现账户
|
||||
*
|
||||
* @param id 短剧用户提现账户主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletUserAccountById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除短剧用户提现账户
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletUserAccountByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.playlet.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserAccount;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-24 15:28
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 短剧用户提现账户Service接口
|
||||
*/
|
||||
public interface IPlayletUserAccountService extends IService<PlayletUserAccount> {
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户
|
||||
*
|
||||
* @param id 短剧用户提现账户主键
|
||||
* @return 短剧用户提现账户
|
||||
*/
|
||||
PlayletUserAccount selectPlayletUserAccountById(Long id);
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户列表
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 短剧用户提现账户集合
|
||||
*/
|
||||
List<PlayletUserAccount> selectPlayletUserAccountList(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 新增短剧用户提现账户
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletUserAccount(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 修改短剧用户提现账户
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletUserAccount(PlayletUserAccount playletUserAccount);
|
||||
|
||||
/**
|
||||
* 批量删除短剧用户提现账户
|
||||
*
|
||||
* @param ids 需要删除的短剧用户提现账户主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserAccountByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除短剧用户提现账户信息
|
||||
*
|
||||
* @param id 短剧用户提现账户主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserAccountById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
package com.playlet.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.playlet.system.mapper.PlayletUserAccountMapper;
|
||||
import com.playlet.system.domain.PlayletUserAccount;
|
||||
import com.playlet.system.service.IPlayletUserAccountService;
|
||||
import com.playlet.common.core.text.Convert;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-24 15:29
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 短剧用户提现账户Service业务层处理
|
||||
*/
|
||||
@Service
|
||||
public class PlayletUserAccountServiceImpl extends ServiceImpl<PlayletUserAccountMapper, PlayletUserAccount> implements IPlayletUserAccountService {
|
||||
@Autowired
|
||||
private PlayletUserAccountMapper playletUserAccountMapper;
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户
|
||||
*
|
||||
* @param id 短剧用户提现账户主键
|
||||
* @return 短剧用户提现账户
|
||||
*/
|
||||
@Override
|
||||
public PlayletUserAccount selectPlayletUserAccountById(Long id) {
|
||||
return playletUserAccountMapper.selectPlayletUserAccountById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户列表
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 短剧用户提现账户
|
||||
*/
|
||||
@Override
|
||||
public List<PlayletUserAccount> selectPlayletUserAccountList(PlayletUserAccount playletUserAccount) {
|
||||
return playletUserAccountMapper.selectPlayletUserAccountList(playletUserAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增短剧用户提现账户
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlayletUserAccount(PlayletUserAccount playletUserAccount) {
|
||||
playletUserAccount.setCreateTime(DateUtils.getNowDate());
|
||||
return playletUserAccountMapper.insertPlayletUserAccount(playletUserAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改短剧用户提现账户
|
||||
*
|
||||
* @param playletUserAccount 短剧用户提现账户
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlayletUserAccount(PlayletUserAccount playletUserAccount) {
|
||||
playletUserAccount.setUpdateTime(DateUtils.getNowDate());
|
||||
return playletUserAccountMapper.updatePlayletUserAccount(playletUserAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除短剧用户提现账户
|
||||
*
|
||||
* @param ids 需要删除的短剧用户提现账户主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletUserAccountByIds(String ids) {
|
||||
return playletUserAccountMapper.deletePlayletUserAccountByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除短剧用户提现账户信息
|
||||
*
|
||||
* @param id 短剧用户提现账户主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletUserAccountById(Long id) {
|
||||
return playletUserAccountMapper.deletePlayletUserAccountById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,112 @@
|
|||
<?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.playlet.system.mapper.PlayletUserAccountMapper">
|
||||
|
||||
<resultMap type="PlayletUserAccount" id="PlayletUserAccountResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="realName" column="real_name" />
|
||||
<result property="zfbAccount" column="zfb_account" />
|
||||
<result property="bankCardType" column="bank_card_type" />
|
||||
<result property="bankCardAccountName" column="bank_card_account_name" />
|
||||
<result property="bankCardArea" column="bank_card_area" />
|
||||
<result property="bankCardSubBranchName" column="bank_card_sub_branch_name" />
|
||||
<result property="bankCardNumber" column="bank_card_number" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPlayletUserAccountVo">
|
||||
select id, create_time, update_time, create_by, update_by, user_id, real_name, zfb_account, bank_card_type, bank_card_account_name, bank_card_area, bank_card_sub_branch_name, bank_card_number, remark from playlet_user_account
|
||||
</sql>
|
||||
|
||||
<select id="selectPlayletUserAccountList" parameterType="PlayletUserAccount" resultMap="PlayletUserAccountResult">
|
||||
<include refid="selectPlayletUserAccountVo"/>
|
||||
<where>
|
||||
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
||||
<if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
|
||||
<if test="zfbAccount != null and zfbAccount != ''"> and zfb_account = #{zfbAccount}</if>
|
||||
<if test="bankCardType != null "> and bank_card_type = #{bankCardType}</if>
|
||||
<if test="bankCardAccountName != null and bankCardAccountName != ''"> and bank_card_account_name like concat('%', #{bankCardAccountName}, '%')</if>
|
||||
<if test="bankCardArea != null and bankCardArea != ''"> and bank_card_area = #{bankCardArea}</if>
|
||||
<if test="bankCardSubBranchName != null and bankCardSubBranchName != ''"> and bank_card_sub_branch_name like concat('%', #{bankCardSubBranchName}, '%')</if>
|
||||
<if test="bankCardNumber != null and bankCardNumber != ''"> and bank_card_number = #{bankCardNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPlayletUserAccountById" parameterType="Long" resultMap="PlayletUserAccountResult">
|
||||
<include refid="selectPlayletUserAccountVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPlayletUserAccount" parameterType="PlayletUserAccount" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into playlet_user_account
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="userId != null and userId != ''">user_id,</if>
|
||||
<if test="realName != null and realName != ''">real_name,</if>
|
||||
<if test="zfbAccount != null and zfbAccount != ''">zfb_account,</if>
|
||||
<if test="bankCardType != null">bank_card_type,</if>
|
||||
<if test="bankCardAccountName != null and bankCardAccountName != ''">bank_card_account_name,</if>
|
||||
<if test="bankCardArea != null and bankCardArea != ''">bank_card_area,</if>
|
||||
<if test="bankCardSubBranchName != null and bankCardSubBranchName != ''">bank_card_sub_branch_name,</if>
|
||||
<if test="bankCardNumber != null and bankCardNumber != ''">bank_card_number,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="userId != null and userId != ''">#{userId},</if>
|
||||
<if test="realName != null and realName != ''">#{realName},</if>
|
||||
<if test="zfbAccount != null and zfbAccount != ''">#{zfbAccount},</if>
|
||||
<if test="bankCardType != null">#{bankCardType},</if>
|
||||
<if test="bankCardAccountName != null and bankCardAccountName != ''">#{bankCardAccountName},</if>
|
||||
<if test="bankCardArea != null and bankCardArea != ''">#{bankCardArea},</if>
|
||||
<if test="bankCardSubBranchName != null and bankCardSubBranchName != ''">#{bankCardSubBranchName},</if>
|
||||
<if test="bankCardNumber != null and bankCardNumber != ''">#{bankCardNumber},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePlayletUserAccount" parameterType="PlayletUserAccount">
|
||||
update playlet_user_account
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="userId != null and userId != ''">user_id = #{userId},</if>
|
||||
<if test="realName != null and realName != ''">real_name = #{realName},</if>
|
||||
<if test="zfbAccount != null and zfbAccount != ''">zfb_account = #{zfbAccount},</if>
|
||||
<if test="bankCardType != null">bank_card_type = #{bankCardType},</if>
|
||||
<if test="bankCardAccountName != null and bankCardAccountName != ''">bank_card_account_name = #{bankCardAccountName},</if>
|
||||
<if test="bankCardArea != null and bankCardArea != ''">bank_card_area = #{bankCardArea},</if>
|
||||
<if test="bankCardSubBranchName != null and bankCardSubBranchName != ''">bank_card_sub_branch_name = #{bankCardSubBranchName},</if>
|
||||
<if test="bankCardNumber != null and bankCardNumber != ''">bank_card_number = #{bankCardNumber},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePlayletUserAccountById" parameterType="Long">
|
||||
delete from playlet_user_account where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePlayletUserAccountByIds" parameterType="String">
|
||||
delete from playlet_user_account where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue