用户提现记录与用户提现密码用户提现审核代码更新,之前部分代码优化
This commit is contained in:
parent
37fb3d69a9
commit
be5b3d0e60
|
|
@ -0,0 +1,118 @@
|
|||
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.PlayletUserWithdrawDepositRecord;
|
||||
import com.playlet.system.service.IPlayletUserWithdrawDepositRecordService;
|
||||
import com.playlet.web.service.app.IPlayletUserWithdrawDepositRecordAppService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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-29 23:59
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户交易记录appController
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/app/userWithdrawRecord")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserWithdrawDepositRecordAppController extends BaseController {
|
||||
private String prefix = "system/record";
|
||||
|
||||
private final IPlayletUserWithdrawDepositRecordAppService service;
|
||||
|
||||
@RequiresPermissions("system:record:view")
|
||||
@GetMapping()
|
||||
public String record() {
|
||||
return prefix + "/record";
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@PostMapping("/getWithdrawDepositList")
|
||||
@ApiOperation(value = "分页查询用户提现记录列表")
|
||||
public Result<PageInfo<PlayletItem>> getWithdrawDepositList(@RequestBody PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord,
|
||||
@RequestParam(value = "pageNum") Integer pageNum,
|
||||
@RequestParam(value = "pageSize") Integer pageSize) {
|
||||
return Result.success(service.getWithdrawDepositList(playletUserWithdrawDepositRecord, pageNum, pageSize));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户交易记录列表
|
||||
*/
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询用户交易记录列表")
|
||||
public TableDataInfo list(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
startPage();
|
||||
List<PlayletUserWithdrawDepositRecord> list = service.selectPlayletUserWithdrawDepositRecordList(playletUserWithdrawDepositRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增用户交易记录
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存用户交易记录
|
||||
*/
|
||||
@Log(title = "用户交易记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存用户交易记录")
|
||||
public AjaxResult addSave(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
return toAjax(service.insertPlayletUserWithdrawDepositRecord(playletUserWithdrawDepositRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户交易记录
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改用户交易记录")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord = service.selectPlayletUserWithdrawDepositRecordById(id);
|
||||
mmap.put("playletUserWithdrawDepositRecord", playletUserWithdrawDepositRecord);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存用户交易记录
|
||||
*/
|
||||
@Log(title = "用户交易记录", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存用户交易记录")
|
||||
public AjaxResult editSave(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
return toAjax(service.updatePlayletUserWithdrawDepositRecord(playletUserWithdrawDepositRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户交易记录
|
||||
*/
|
||||
@Log(title = "用户交易记录", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除用户交易记录")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(service.deletePlayletUserWithdrawDepositRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
package com.playlet.web.controller.app;
|
||||
|
||||
|
||||
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.PlayletUserWithdrawalPassword;
|
||||
import com.playlet.system.service.IPlayletUserWithdrawalPasswordService;
|
||||
import com.playlet.web.service.app.IPlayletUserWithdrawalPasswordAppService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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-30 12:27
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户提现密码app Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/app/userWithdrawalPassword")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserWithdrawalPasswordAppController extends BaseController {
|
||||
private String prefix = "system/password";
|
||||
private final IPlayletUserWithdrawalPasswordAppService appService;
|
||||
|
||||
@GetMapping()
|
||||
public String password() {
|
||||
return prefix + "/password";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户提现密码
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存用户提现密码
|
||||
*/
|
||||
@Log(title = "用户提现密码", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存用户提现密码")
|
||||
public AjaxResult addSave(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return toAjax(appService.insertData(playletUserWithdrawalPassword));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户提现密码
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改用户提现密码")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserWithdrawalPassword playletUserWithdrawalPassword = appService.selectPlayletUserWithdrawalPasswordById(id);
|
||||
mmap.put("playletUserWithdrawalPassword", playletUserWithdrawalPassword);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存用户提现密码
|
||||
*/
|
||||
@Log(title = "用户提现密码", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存用户提现密码")
|
||||
public AjaxResult editSave(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return toAjax(appService.updateData(playletUserWithdrawalPassword));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "用户确认密码")
|
||||
@ResponseBody
|
||||
@PostMapping("/validatePassword")
|
||||
public Result<Boolean> statisticsTime(@RequestBody PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return Result.success(appService.validatePassword(playletUserWithdrawalPassword));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
package com.playlet.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
|
@ -28,11 +31,12 @@ import com.playlet.common.core.page.TableDataInfo;
|
|||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/playlet/item")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletItemController extends BaseController {
|
||||
private String prefix = "system/playlet/item";
|
||||
|
||||
@Autowired
|
||||
private IPlayletItemService playletItemService;
|
||||
|
||||
private final IPlayletItemService playletItemService;
|
||||
|
||||
@RequiresPermissions("system:playlet:item:view")
|
||||
@GetMapping()
|
||||
|
|
@ -47,6 +51,7 @@ public class PlayletItemController extends BaseController {
|
|||
@RequiresPermissions("system:item:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询短剧基础列表")
|
||||
public TableDataInfo list(PlayletItem playletItem)
|
||||
{
|
||||
startPage();
|
||||
|
|
@ -61,6 +66,7 @@ public class PlayletItemController extends BaseController {
|
|||
@Log(title = "短剧基础", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "导出短剧基础列表")
|
||||
public AjaxResult export(PlayletItem playletItem)
|
||||
{
|
||||
List<PlayletItem> list = playletItemService.selectPlayletItemList(playletItem);
|
||||
|
|
@ -84,6 +90,7 @@ public class PlayletItemController extends BaseController {
|
|||
@Log(title = "短剧基础", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存短剧基础")
|
||||
public AjaxResult addSave(PlayletItem playletItem)
|
||||
{
|
||||
return toAjax(playletItemService.insertPlayletItem(playletItem));
|
||||
|
|
@ -94,6 +101,7 @@ public class PlayletItemController extends BaseController {
|
|||
*/
|
||||
@RequiresPermissions("system:item:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改短剧基础")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
PlayletItem playletItem = playletItemService.selectPlayletItemById(id);
|
||||
|
|
@ -108,6 +116,7 @@ public class PlayletItemController extends BaseController {
|
|||
@Log(title = "短剧基础", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存短剧基础")
|
||||
public AjaxResult editSave(PlayletItem playletItem)
|
||||
{
|
||||
return toAjax(playletItemService.updatePlayletItem(playletItem));
|
||||
|
|
@ -120,6 +129,7 @@ public class PlayletItemController extends BaseController {
|
|||
@Log(title = "短剧基础", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除短剧基础")
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(playletItemService.deletePlayletItemByIds(ids));
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
|||
import com.playlet.common.core.domain.Result;
|
||||
import com.playlet.system.pojo.vo.RevenueRecordStatisticsVO;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
|
@ -27,12 +28,12 @@ import com.playlet.common.core.page.TableDataInfo;
|
|||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/record")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletRevenueRecordController extends BaseController {
|
||||
|
||||
private String prefix = "system/record";
|
||||
|
||||
@Autowired
|
||||
private IPlayletRevenueRecordService playletRevenueRecordService;
|
||||
private final IPlayletRevenueRecordService playletRevenueRecordService;
|
||||
|
||||
@RequiresPermissions("system:record:view")
|
||||
@GetMapping()
|
||||
|
|
@ -46,6 +47,7 @@ public class PlayletRevenueRecordController extends BaseController {
|
|||
@RequiresPermissions("system:record:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询短剧任务收益列表")
|
||||
public TableDataInfo list(PlayletRevenueRecord playletRevenueRecord) {
|
||||
startPage();
|
||||
List<PlayletRevenueRecord> list = playletRevenueRecordService.selectPlayletRevenueRecordList(playletRevenueRecord);
|
||||
|
|
@ -59,6 +61,7 @@ public class PlayletRevenueRecordController extends BaseController {
|
|||
@Log(title = "短剧任务收益", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "导出短剧任务收益列表")
|
||||
public AjaxResult export(PlayletRevenueRecord playletRevenueRecord) {
|
||||
List<PlayletRevenueRecord> list = playletRevenueRecordService.selectPlayletRevenueRecordList(playletRevenueRecord);
|
||||
ExcelUtil<PlayletRevenueRecord> util = new ExcelUtil<PlayletRevenueRecord>(PlayletRevenueRecord.class);
|
||||
|
|
@ -80,6 +83,7 @@ public class PlayletRevenueRecordController extends BaseController {
|
|||
@Log(title = "短剧任务收益", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存短剧任务收益")
|
||||
public AjaxResult addSave(PlayletRevenueRecord playletRevenueRecord) {
|
||||
return toAjax(playletRevenueRecordService.insertPlayletRevenueRecord(playletRevenueRecord));
|
||||
}
|
||||
|
|
@ -89,6 +93,7 @@ public class PlayletRevenueRecordController extends BaseController {
|
|||
*/
|
||||
@RequiresPermissions("system:record:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改短剧任务收益")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletRevenueRecord playletRevenueRecord = playletRevenueRecordService.selectPlayletRevenueRecordById(id);
|
||||
mmap.put("playletRevenueRecord", playletRevenueRecord);
|
||||
|
|
@ -102,6 +107,7 @@ public class PlayletRevenueRecordController extends BaseController {
|
|||
@Log(title = "短剧任务收益", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存短剧任务收益")
|
||||
public AjaxResult editSave(PlayletRevenueRecord playletRevenueRecord) {
|
||||
return toAjax(playletRevenueRecordService.updatePlayletRevenueRecord(playletRevenueRecord));
|
||||
}
|
||||
|
|
@ -113,24 +119,28 @@ public class PlayletRevenueRecordController extends BaseController {
|
|||
@Log(title = "短剧任务收益", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除短剧任务收益")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletRevenueRecordService.deletePlayletRevenueRecordByIds(ids));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "根据时间统计任务收益")
|
||||
@ResponseBody
|
||||
@PostMapping("/statistics/time")
|
||||
@PostMapping("/statisticsTime")
|
||||
public Result<PlayletRevenueRecord> statisticsTime(@RequestBody PlayletRevenueRecord playletRevenueRecord) {
|
||||
return Result.success(playletRevenueRecordService.statisticsTime(playletRevenueRecord));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "统计任务总收益")
|
||||
@ResponseBody
|
||||
@PostMapping("/statistics")
|
||||
public Result<RevenueRecordStatisticsVO> statistics(@RequestBody PlayletRevenueRecord playletRevenueRecord) {
|
||||
return Result.success(playletRevenueRecordService.statistics(playletRevenueRecord));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "根据时间/类型统计任务收益")
|
||||
@ResponseBody
|
||||
@PostMapping("/statistics/time/type")
|
||||
@PostMapping("/statisticsTimeType")
|
||||
public Result<List<PlayletRevenueRecord>> statisticsTimeType(@RequestBody PlayletRevenueRecord playletRevenueRecord) {
|
||||
return Result.success(playletRevenueRecordService.statisticsTimeType(playletRevenueRecord));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
|||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.common.core.domain.Result;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
|
@ -27,11 +28,11 @@ import com.playlet.common.core.page.TableDataInfo;
|
|||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/task")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletTaskController extends BaseController {
|
||||
private String prefix = "system/task";
|
||||
|
||||
@Autowired
|
||||
private IPlayletTaskService playletTaskService;
|
||||
private final IPlayletTaskService playletTaskService;
|
||||
|
||||
@RequiresPermissions("system:task:view")
|
||||
@GetMapping()
|
||||
|
|
@ -45,6 +46,7 @@ public class PlayletTaskController extends BaseController {
|
|||
@RequiresPermissions("system:task:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询任务列表")
|
||||
public TableDataInfo list(PlayletTask playletTask) {
|
||||
startPage();
|
||||
List<PlayletTask> list = playletTaskService.selectPlayletTaskList(playletTask);
|
||||
|
|
@ -58,6 +60,7 @@ public class PlayletTaskController extends BaseController {
|
|||
@Log(title = "任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "导出任务列表")
|
||||
public AjaxResult export(PlayletTask playletTask) {
|
||||
List<PlayletTask> list = playletTaskService.selectPlayletTaskList(playletTask);
|
||||
ExcelUtil<PlayletTask> util = new ExcelUtil<PlayletTask>(PlayletTask.class);
|
||||
|
|
@ -79,6 +82,7 @@ public class PlayletTaskController extends BaseController {
|
|||
@Log(title = "任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存任务")
|
||||
public AjaxResult addSave(PlayletTask playletTask) {
|
||||
return toAjax(playletTaskService.insertPlayletTask(playletTask));
|
||||
}
|
||||
|
|
@ -88,6 +92,7 @@ public class PlayletTaskController extends BaseController {
|
|||
*/
|
||||
@RequiresPermissions("system:task:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改任务")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletTask playletTask = playletTaskService.selectPlayletTaskById(id);
|
||||
mmap.put("playletTask", playletTask);
|
||||
|
|
@ -101,6 +106,7 @@ public class PlayletTaskController extends BaseController {
|
|||
@Log(title = "任务", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存任务")
|
||||
public AjaxResult editSave(PlayletTask playletTask) {
|
||||
return toAjax(playletTaskService.updatePlayletTask(playletTask));
|
||||
}
|
||||
|
|
@ -112,6 +118,7 @@ public class PlayletTaskController extends BaseController {
|
|||
@Log(title = "任务", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除任务")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletTaskService.deletePlayletTaskByIds(ids));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ package com.playlet.web.controller.system;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
|
@ -28,11 +30,11 @@ import com.playlet.common.core.page.TableDataInfo;
|
|||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/account")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserAccountController extends BaseController {
|
||||
private String prefix = "system/account";
|
||||
|
||||
@Autowired
|
||||
private IPlayletUserAccountService playletUserAccountService;
|
||||
private final IPlayletUserAccountService playletUserAccountService;
|
||||
|
||||
@RequiresPermissions("system:account:view")
|
||||
@GetMapping()
|
||||
|
|
@ -46,6 +48,7 @@ public class PlayletUserAccountController extends BaseController {
|
|||
@RequiresPermissions("system:account:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询短剧用户提现账户列表")
|
||||
public TableDataInfo list(PlayletUserAccount playletUserAccount) {
|
||||
startPage();
|
||||
List<PlayletUserAccount> list = playletUserAccountService.selectPlayletUserAccountList(playletUserAccount);
|
||||
|
|
@ -59,6 +62,7 @@ public class PlayletUserAccountController extends BaseController {
|
|||
@Log(title = "短剧用户提现账户", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "导出短剧用户提现账户列表")
|
||||
public AjaxResult export(PlayletUserAccount playletUserAccount) {
|
||||
List<PlayletUserAccount> list = playletUserAccountService.selectPlayletUserAccountList(playletUserAccount);
|
||||
ExcelUtil<PlayletUserAccount> util = new ExcelUtil<PlayletUserAccount>(PlayletUserAccount.class);
|
||||
|
|
@ -80,6 +84,7 @@ public class PlayletUserAccountController extends BaseController {
|
|||
@Log(title = "短剧用户提现账户", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存短剧用户提现账户")
|
||||
public AjaxResult addSave(PlayletUserAccount playletUserAccount) {
|
||||
return toAjax(playletUserAccountService.insertPlayletUserAccount(playletUserAccount));
|
||||
}
|
||||
|
|
@ -89,6 +94,7 @@ public class PlayletUserAccountController extends BaseController {
|
|||
*/
|
||||
@RequiresPermissions("system:account:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改短剧用户提现账户")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserAccount playletUserAccount = playletUserAccountService.selectPlayletUserAccountById(id);
|
||||
mmap.put("playletUserAccount", playletUserAccount);
|
||||
|
|
@ -102,6 +108,7 @@ public class PlayletUserAccountController extends BaseController {
|
|||
@Log(title = "短剧用户提现账户", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存短剧用户提现账户")
|
||||
public AjaxResult editSave(PlayletUserAccount playletUserAccount) {
|
||||
return toAjax(playletUserAccountService.updatePlayletUserAccount(playletUserAccount));
|
||||
}
|
||||
|
|
@ -113,6 +120,7 @@ public class PlayletUserAccountController extends BaseController {
|
|||
@Log(title = "短剧用户提现账户", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除短剧用户提现账户")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletUserAccountService.deletePlayletUserAccountByIds(ids));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ package com.playlet.web.controller.system;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
|
@ -28,11 +30,11 @@ import com.playlet.common.core.page.TableDataInfo;
|
|||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/user/task")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserTaskController extends BaseController {
|
||||
private String prefix = "system/task";
|
||||
|
||||
@Autowired
|
||||
private IPlayletUserTaskService playletUserTaskService;
|
||||
private final IPlayletUserTaskService playletUserTaskService;
|
||||
|
||||
@RequiresPermissions("system:task:view")
|
||||
@GetMapping()
|
||||
|
|
@ -46,6 +48,7 @@ public class PlayletUserTaskController extends BaseController {
|
|||
@RequiresPermissions("system:task:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询短剧用户任务列表")
|
||||
public TableDataInfo list(PlayletUserTask playletUserTask) {
|
||||
startPage();
|
||||
List<PlayletUserTask> list = playletUserTaskService.selectPlayletUserTaskList(playletUserTask);
|
||||
|
|
@ -59,6 +62,7 @@ public class PlayletUserTaskController extends BaseController {
|
|||
@Log(title = "短剧用户任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "导出短剧用户任务列表")
|
||||
public AjaxResult export(PlayletUserTask playletUserTask) {
|
||||
List<PlayletUserTask> list = playletUserTaskService.selectPlayletUserTaskList(playletUserTask);
|
||||
ExcelUtil<PlayletUserTask> util = new ExcelUtil<PlayletUserTask>(PlayletUserTask.class);
|
||||
|
|
@ -80,6 +84,7 @@ public class PlayletUserTaskController extends BaseController {
|
|||
@Log(title = "短剧用户任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存短剧用户任务")
|
||||
public AjaxResult addSave(PlayletUserTask playletUserTask) {
|
||||
return toAjax(playletUserTaskService.insertPlayletUserTask(playletUserTask));
|
||||
}
|
||||
|
|
@ -89,6 +94,7 @@ public class PlayletUserTaskController extends BaseController {
|
|||
*/
|
||||
@RequiresPermissions("system:task:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改短剧用户任务")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserTask playletUserTask = playletUserTaskService.selectPlayletUserTaskById(id);
|
||||
mmap.put("playletUserTask", playletUserTask);
|
||||
|
|
@ -102,6 +108,7 @@ public class PlayletUserTaskController extends BaseController {
|
|||
@Log(title = "短剧用户任务", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存短剧用户任务")
|
||||
public AjaxResult editSave(PlayletUserTask playletUserTask) {
|
||||
return toAjax(playletUserTaskService.updatePlayletUserTask(playletUserTask));
|
||||
}
|
||||
|
|
@ -113,6 +120,7 @@ public class PlayletUserTaskController extends BaseController {
|
|||
@Log(title = "短剧用户任务", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除短剧用户任务")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletUserTaskService.deletePlayletUserTaskByIds(ids));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,127 @@
|
|||
package com.playlet.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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.PlayletUserWithdrawDepositRecord;
|
||||
import com.playlet.system.service.IPlayletUserWithdrawDepositRecordService;
|
||||
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-29 23:59
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户交易记录Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/userWithdrawRecord")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserWithdrawDepositRecordController extends BaseController {
|
||||
private String prefix = "system/record";
|
||||
|
||||
private final IPlayletUserWithdrawDepositRecordService playletUserWithdrawDepositRecordService;
|
||||
|
||||
@RequiresPermissions("system:record:view")
|
||||
@GetMapping()
|
||||
public String record() {
|
||||
return prefix + "/record";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户交易记录列表
|
||||
*/
|
||||
@RequiresPermissions("system:record:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询用户交易记录列表")
|
||||
public TableDataInfo list(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
startPage();
|
||||
List<PlayletUserWithdrawDepositRecord> list = playletUserWithdrawDepositRecordService.selectPlayletUserWithdrawDepositRecordList(playletUserWithdrawDepositRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出用户交易记录列表
|
||||
*/
|
||||
@RequiresPermissions("system:record:export")
|
||||
@Log(title = "用户交易记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "导出用户交易记录列表")
|
||||
public AjaxResult export(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
List<PlayletUserWithdrawDepositRecord> list = playletUserWithdrawDepositRecordService.selectPlayletUserWithdrawDepositRecordList(playletUserWithdrawDepositRecord);
|
||||
ExcelUtil<PlayletUserWithdrawDepositRecord> util = new ExcelUtil<PlayletUserWithdrawDepositRecord>(PlayletUserWithdrawDepositRecord.class);
|
||||
return util.exportExcel(list, "用户交易记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户交易记录
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存用户交易记录
|
||||
*/
|
||||
@RequiresPermissions("system:record:add")
|
||||
@Log(title = "用户交易记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存用户交易记录")
|
||||
public AjaxResult addSave(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
return toAjax(playletUserWithdrawDepositRecordService.insertPlayletUserWithdrawDepositRecord(playletUserWithdrawDepositRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户交易记录
|
||||
*/
|
||||
@RequiresPermissions("system:record:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改用户交易记录")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord = playletUserWithdrawDepositRecordService.selectPlayletUserWithdrawDepositRecordById(id);
|
||||
mmap.put("playletUserWithdrawDepositRecord", playletUserWithdrawDepositRecord);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存用户交易记录
|
||||
*/
|
||||
@RequiresPermissions("system:record:edit")
|
||||
@Log(title = "用户交易记录", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存用户交易记录")
|
||||
public AjaxResult editSave(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
return toAjax(playletUserWithdrawDepositRecordService.updatePlayletUserWithdrawDepositRecord(playletUserWithdrawDepositRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户交易记录
|
||||
*/
|
||||
@RequiresPermissions("system:record:remove")
|
||||
@Log(title = "用户交易记录", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除用户交易记录")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletUserWithdrawDepositRecordService.deletePlayletUserWithdrawDepositRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
package com.playlet.web.controller.system;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.common.core.domain.Result;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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 com.playlet.common.annotation.Log;
|
||||
import com.playlet.common.enums.BusinessType;
|
||||
import com.playlet.system.domain.PlayletUserWithdrawalPassword;
|
||||
import com.playlet.system.service.IPlayletUserWithdrawalPasswordService;
|
||||
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-30 12:27
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户提现密码Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/userWithdrawalPassword")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserWithdrawalPasswordController extends BaseController {
|
||||
private String prefix = "system/password";
|
||||
|
||||
private IPlayletUserWithdrawalPasswordService playletUserWithdrawalPasswordService;
|
||||
|
||||
@RequiresPermissions("system:password:view")
|
||||
@GetMapping()
|
||||
public String password() {
|
||||
return prefix + "/password";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户提现密码列表
|
||||
*/
|
||||
@RequiresPermissions("system:password:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询用户提现密码列表")
|
||||
public TableDataInfo list(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
startPage();
|
||||
List<PlayletUserWithdrawalPassword> list = playletUserWithdrawalPasswordService.selectPlayletUserWithdrawalPasswordList(playletUserWithdrawalPassword);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出用户提现密码列表
|
||||
*/
|
||||
@RequiresPermissions("system:password:export")
|
||||
@Log(title = "用户提现密码", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "导出用户提现密码列表")
|
||||
public AjaxResult export(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
List<PlayletUserWithdrawalPassword> list = playletUserWithdrawalPasswordService.selectPlayletUserWithdrawalPasswordList(playletUserWithdrawalPassword);
|
||||
ExcelUtil<PlayletUserWithdrawalPassword> util = new ExcelUtil<PlayletUserWithdrawalPassword>(PlayletUserWithdrawalPassword.class);
|
||||
return util.exportExcel(list, "用户提现密码数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户提现密码
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存用户提现密码
|
||||
*/
|
||||
@RequiresPermissions("system:password:add")
|
||||
@Log(title = "用户提现密码", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存用户提现密码")
|
||||
public AjaxResult addSave(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return toAjax(playletUserWithdrawalPasswordService.insertPlayletUserWithdrawalPassword(playletUserWithdrawalPassword));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "用户确认密码")
|
||||
@ResponseBody
|
||||
@PostMapping("/validatePassword")
|
||||
public Result<Boolean> statisticsTime(@RequestBody PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return Result.success(playletUserWithdrawalPasswordService.validatePassword(playletUserWithdrawalPassword));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户提现密码
|
||||
*/
|
||||
@RequiresPermissions("system:password:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改用户提现密码")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserWithdrawalPassword playletUserWithdrawalPassword = playletUserWithdrawalPasswordService.selectPlayletUserWithdrawalPasswordById(id);
|
||||
mmap.put("playletUserWithdrawalPassword", playletUserWithdrawalPassword);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存用户提现密码
|
||||
*/
|
||||
@RequiresPermissions("system:password:edit")
|
||||
@Log(title = "用户提现密码", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存用户提现密码")
|
||||
public AjaxResult editSave(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return toAjax(playletUserWithdrawalPasswordService.updatePlayletUserWithdrawalPassword(playletUserWithdrawalPassword));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户提现密码
|
||||
*/
|
||||
@RequiresPermissions("system:password:remove")
|
||||
@Log(title = "用户提现密码", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除用户提现密码")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletUserWithdrawalPasswordService.deletePlayletUserWithdrawalPasswordByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.playlet.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
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.PlayletWithdrawApproval;
|
||||
import com.playlet.system.service.IPlayletWithdrawApprovalService;
|
||||
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-30 10:21
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 提现审批Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/withdrawApproval")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletWithdrawApprovalController extends BaseController {
|
||||
private String prefix = "system/approval";
|
||||
private final IPlayletWithdrawApprovalService playletWithdrawApprovalService;
|
||||
|
||||
@RequiresPermissions("system:approval:view")
|
||||
@GetMapping()
|
||||
public String approval() {
|
||||
return prefix + "/approval";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询提现审批列表
|
||||
*/
|
||||
@RequiresPermissions("system:approval:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查询提现审批列表")
|
||||
public TableDataInfo list(PlayletWithdrawApproval playletWithdrawApproval) {
|
||||
startPage();
|
||||
List<PlayletWithdrawApproval> list = playletWithdrawApprovalService.selectPlayletWithdrawApprovalList(playletWithdrawApproval);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出提现审批列表
|
||||
*/
|
||||
@RequiresPermissions("system:approval:export")
|
||||
@Log(title = "提现审批", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "导出提现审批列表")
|
||||
public AjaxResult export(PlayletWithdrawApproval playletWithdrawApproval) {
|
||||
List<PlayletWithdrawApproval> list = playletWithdrawApprovalService.selectPlayletWithdrawApprovalList(playletWithdrawApproval);
|
||||
ExcelUtil<PlayletWithdrawApproval> util = new ExcelUtil<PlayletWithdrawApproval>(PlayletWithdrawApproval.class);
|
||||
return util.exportExcel(list, "提现审批数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增提现审批
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存提现审批
|
||||
*/
|
||||
@RequiresPermissions("system:approval:add")
|
||||
@Log(title = "提现审批", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增保存提现审批")
|
||||
public AjaxResult addSave(PlayletWithdrawApproval playletWithdrawApproval) {
|
||||
return toAjax(playletWithdrawApprovalService.insertPlayletWithdrawApproval(playletWithdrawApproval));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改提现审批
|
||||
*/
|
||||
@RequiresPermissions("system:approval:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
@ApiOperation(value = "修改提现审批")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletWithdrawApproval playletWithdrawApproval = playletWithdrawApprovalService.selectPlayletWithdrawApprovalById(id);
|
||||
mmap.put("playletWithdrawApproval", playletWithdrawApproval);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存提现审批
|
||||
*/
|
||||
@RequiresPermissions("system:approval:edit")
|
||||
@Log(title = "提现审批", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改保存提现审批")
|
||||
public AjaxResult editSave(PlayletWithdrawApproval playletWithdrawApproval) {
|
||||
return toAjax(playletWithdrawApprovalService.updatePlayletWithdrawApproval(playletWithdrawApproval));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除提现审批
|
||||
*/
|
||||
@RequiresPermissions("system:approval:remove")
|
||||
@Log(title = "提现审批", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "删除提现审批")
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletWithdrawApprovalService.deletePlayletWithdrawApprovalByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.playlet.web.service.app;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.system.domain.PlayletUserWithdrawDepositRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 00:10
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户交易记录App Service接口
|
||||
*/
|
||||
public interface IPlayletUserWithdrawDepositRecordAppService {
|
||||
|
||||
/**
|
||||
* 查询用户交易记录
|
||||
*
|
||||
* @param id 用户交易记录主键
|
||||
* @return 用户交易记录
|
||||
*/
|
||||
public PlayletUserWithdrawDepositRecord selectPlayletUserWithdrawDepositRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户交易记录列表
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 用户交易记录集合
|
||||
*/
|
||||
public List<PlayletUserWithdrawDepositRecord> selectPlayletUserWithdrawDepositRecordList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 新增用户交易记录
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 修改用户交易记录
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 批量删除用户交易记录
|
||||
*
|
||||
* @param ids 需要删除的用户交易记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletUserWithdrawDepositRecordByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除用户交易记录信息
|
||||
*
|
||||
* @param id 用户交易记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletUserWithdrawDepositRecordById(Long id);
|
||||
|
||||
PageInfo<PlayletUserWithdrawDepositRecord> getWithdrawDepositList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord, Integer pageSize, Integer pageNum);
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.playlet.web.service.app;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserWithdrawalPassword;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 13:29
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户提现密码Service App接口
|
||||
*/
|
||||
public interface IPlayletUserWithdrawalPasswordAppService {
|
||||
|
||||
int insertData(PlayletUserWithdrawalPassword playletUserWithdrawalPassword);
|
||||
|
||||
int updateData(PlayletUserWithdrawalPassword playletUserWithdrawalPassword);
|
||||
|
||||
Boolean validatePassword(PlayletUserWithdrawalPassword password);
|
||||
|
||||
PlayletUserWithdrawalPassword selectPlayletUserWithdrawalPasswordById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.playlet.web.service.app.impl;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.system.domain.PlayletUserWithdrawDepositRecord;
|
||||
import com.playlet.system.service.IPlayletUserWithdrawDepositRecordService;
|
||||
import com.playlet.web.service.app.IPlayletUserWithdrawDepositRecordAppService;
|
||||
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-30 00:12
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户交易记录App Service接口实现
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserWithdrawDepositRecordAppServiceImpl implements IPlayletUserWithdrawDepositRecordAppService {
|
||||
|
||||
private final IPlayletUserWithdrawDepositRecordService service;
|
||||
|
||||
@Override
|
||||
public PlayletUserWithdrawDepositRecord selectPlayletUserWithdrawDepositRecordById(Long id) {
|
||||
return service.selectPlayletUserWithdrawDepositRecordById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PlayletUserWithdrawDepositRecord> selectPlayletUserWithdrawDepositRecordList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
return service.selectPlayletUserWithdrawDepositRecordList(playletUserWithdrawDepositRecord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertPlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
return service.insertPlayletUserWithdrawDepositRecord(playletUserWithdrawDepositRecord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updatePlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
return service.updatePlayletUserWithdrawDepositRecord(playletUserWithdrawDepositRecord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deletePlayletUserWithdrawDepositRecordByIds(String ids) {
|
||||
return service.deletePlayletUserWithdrawDepositRecordByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deletePlayletUserWithdrawDepositRecordById(Long id) {
|
||||
return service.deletePlayletUserWithdrawDepositRecordById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageInfo<PlayletUserWithdrawDepositRecord> getWithdrawDepositList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord, Integer pageSize, Integer pageNum) {
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
return PageInfo.of(service.selectPlayletUserWithdrawDepositRecordList(playletUserWithdrawDepositRecord));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.playlet.web.service.app.impl;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserWithdrawalPassword;
|
||||
import com.playlet.system.service.IPlayletUserWithdrawalPasswordService;
|
||||
import com.playlet.web.service.app.IPlayletUserWithdrawalPasswordAppService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 13:31
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户提现密码Service App接口实现
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserWithdrawalPasswordAppServiceImpl implements IPlayletUserWithdrawalPasswordAppService {
|
||||
|
||||
private final IPlayletUserWithdrawalPasswordService service;
|
||||
@Override
|
||||
public int insertData(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return service.insertPlayletUserWithdrawalPassword(playletUserWithdrawalPassword);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateData(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return service.updatePlayletUserWithdrawalPassword(playletUserWithdrawalPassword);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean validatePassword(PlayletUserWithdrawalPassword password) {
|
||||
return service.validatePassword(password);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayletUserWithdrawalPassword selectPlayletUserWithdrawalPasswordById(Long id) {
|
||||
return service.selectPlayletUserWithdrawalPasswordById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.playlet.common.utils;
|
||||
|
||||
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.KeyGenerator;
|
||||
import javax.crypto.SecretKey;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.security.SecureRandom;
|
||||
import java.util.Base64;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 13:15
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description:
|
||||
*/
|
||||
public class AesUtils {
|
||||
|
||||
private static final Base64.Encoder encoder = Base64.getEncoder();
|
||||
private static final Base64.Decoder decoder = Base64.getDecoder();
|
||||
|
||||
/**
|
||||
* ase 加密key
|
||||
*/
|
||||
private static String aesKey = "ba826c895b099012133b2a889992f219";
|
||||
|
||||
public static String aesEncrypt(String text) {
|
||||
try {
|
||||
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
|
||||
byte[] byteContent = text.getBytes(StandardCharsets.UTF_8);
|
||||
cipher.init(1, getSecretKey(aesKey));
|
||||
byte[] result = cipher.doFinal(byteContent);
|
||||
return encoder.encodeToString(result);
|
||||
} catch (Exception var5) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static String aesDecrypt( String text) {
|
||||
try {
|
||||
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
|
||||
cipher.init(2, getSecretKey(aesKey));
|
||||
byte[] result = cipher.doFinal(decoder.decode(text));
|
||||
return new String(result, StandardCharsets.UTF_8);
|
||||
} catch (Exception var4) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static SecretKeySpec getSecretKey(String password) throws NoSuchAlgorithmException {
|
||||
KeyGenerator kg = KeyGenerator.getInstance("AES");
|
||||
SecureRandom random = SecureRandom.getInstance("SHA1PRNG");
|
||||
random.setSeed(password.getBytes());
|
||||
kg.init(128, random);
|
||||
SecretKey secretKey = kg.generateKey();
|
||||
return new SecretKeySpec(secretKey.getEncoded(), "AES");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
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-29 23:56
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户交易记录对象 playlet_user_withdraw_deposit_record
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "playlet_user_withdraw_deposit_record")
|
||||
public class PlayletUserWithdrawDepositRecord extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 用户提现记录表主键id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户提现记录表主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id")
|
||||
@Excel(name = "用户id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 提现订单号,系统自动生成,uuid
|
||||
*/
|
||||
@ApiModelProperty(value = "提现订单号,系统自动生成,uuid")
|
||||
@Excel(name = "提现订单号,系统自动生成,uuid")
|
||||
private String withdrawOrder;
|
||||
|
||||
/**
|
||||
* 到账时间
|
||||
*/
|
||||
@ApiModelProperty(value = "到账时间")
|
||||
@Excel(name = "到账时间")
|
||||
private Long accountingTime;
|
||||
|
||||
/**
|
||||
* 用户提现卡号
|
||||
*/
|
||||
@ApiModelProperty(value = "用户提现卡号")
|
||||
@Excel(name = "用户提现卡号")
|
||||
private String withdrawBankId;
|
||||
|
||||
/**
|
||||
* 提现银行
|
||||
*/
|
||||
@ApiModelProperty(value = "提现银行")
|
||||
@Excel(name = "提现银行")
|
||||
private String withdrawBank;
|
||||
|
||||
/**
|
||||
* 提现银行开户行地址
|
||||
*/
|
||||
@ApiModelProperty(value = "提现银行开户行地址")
|
||||
@Excel(name = "提现银行开户行地址")
|
||||
private String withdrawOpeningBank;
|
||||
|
||||
/**
|
||||
* 提现状态 1 申请提现 2 审批通过 3 交易完成 4 审批不通过
|
||||
*/
|
||||
@ApiModelProperty(value = "提现状态 1 申请提现 2 审批通过 3 交易完成 4 审批不通过")
|
||||
@Excel(name = "提现状态 1 申请提现 2 审批通过 3 交易完成 4 审批不通过")
|
||||
private Long status;
|
||||
|
||||
/**
|
||||
* 申请提现时间
|
||||
*/
|
||||
@ApiModelProperty(value = "申请提现时间")
|
||||
@Excel(name = "申请提现时间")
|
||||
private Long withdrawApplyTime;
|
||||
|
||||
/**
|
||||
* 提现申请总金额,单位分
|
||||
*/
|
||||
@ApiModelProperty(value = "提现申请总金额,单位分")
|
||||
@Excel(name = "提现申请总金额,单位分")
|
||||
private Long withdrawApplyTotal;
|
||||
|
||||
/**
|
||||
* 实际提现金额,单位分
|
||||
*/
|
||||
@ApiModelProperty(value = "实际提现金额,单位分")
|
||||
@Excel(name = "实际提现金额,单位分")
|
||||
private Long withdrawRealityTotal;
|
||||
|
||||
/**
|
||||
* 提现手续费,单位分
|
||||
*/
|
||||
@ApiModelProperty(value = "短剧用户任务主键id")
|
||||
@Excel(name = "提现手续费,单位分")
|
||||
private Long withdrawCharge;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.playlet.system.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
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-30 12:22
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户提现密码对象 playlet_user_withdrawal_password
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "playlet_user_withdrawal_password")
|
||||
public class PlayletUserWithdrawalPassword extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 用户提现密码主键自增id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户提现密码主键自增id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@ApiModelProperty(value = "用户id")
|
||||
@Excel(name = "用户id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 提现密码,页面传入md5 后台存储加aes加密
|
||||
*/
|
||||
@ApiModelProperty(value = "提现密码,页面传入md5 后台存储加aes加密")
|
||||
@Excel(name = "提现密码,页面传入md5 后台存储加aes加密")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 确认密码
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "确认密码")
|
||||
private String confirmPassword;
|
||||
|
||||
/**
|
||||
* 原始密码
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "原始密码")
|
||||
private String originalPassword;
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
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-30 08:33
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 提现审批对象 playlet_withdraw_approval
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "playlet_withdraw_approval")
|
||||
public class PlayletWithdrawApproval extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 提现审批记录主键自增id
|
||||
*/
|
||||
@ApiModelProperty(value = "提现审批记录主键自增id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 提现订单号
|
||||
*/
|
||||
@ApiModelProperty(value = "提现订单号")
|
||||
@Excel(name = "提现订单号")
|
||||
private String withdrawOrder;
|
||||
|
||||
/**
|
||||
* 审批人
|
||||
*/
|
||||
@ApiModelProperty(value = "审批人")
|
||||
@Excel(name = "审批人")
|
||||
private String approvalUserId;
|
||||
|
||||
/**
|
||||
* 审批状态 1未审核 2 不通过 3 通过
|
||||
*/
|
||||
@ApiModelProperty(value = " 审批状态 1未审核 2 不通过 3 通过")
|
||||
@Excel(name = "审批状态 1未审核 2 不通过 3 通过")
|
||||
private Long approvalStatus;
|
||||
|
||||
/**
|
||||
* 审批意见
|
||||
*/
|
||||
@ApiModelProperty(value = "审批意见")
|
||||
@Excel(name = "审批意见")
|
||||
private String approvalOpinion;
|
||||
|
||||
/**
|
||||
* 审批金额,单位分
|
||||
*/
|
||||
@ApiModelProperty(value = "审批金额,单位分")
|
||||
@Excel(name = "审批金额,单位分")
|
||||
private Long approvalMoney;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.playlet.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserWithdrawDepositRecord;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-29 23:57
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户交易记录Mapper接口
|
||||
*/
|
||||
public interface PlayletUserWithdrawDepositRecordMapper extends BaseMapper<PlayletUserWithdrawDepositRecord> {
|
||||
/**
|
||||
* 查询用户交易记录
|
||||
*
|
||||
* @param id 用户交易记录主键
|
||||
* @return 用户交易记录
|
||||
*/
|
||||
PlayletUserWithdrawDepositRecord selectPlayletUserWithdrawDepositRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户交易记录列表
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 用户交易记录集合
|
||||
*/
|
||||
List<PlayletUserWithdrawDepositRecord> selectPlayletUserWithdrawDepositRecordList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 新增用户交易记录
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 修改用户交易记录
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 删除用户交易记录
|
||||
*
|
||||
* @param id 用户交易记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserWithdrawDepositRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除用户交易记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserWithdrawDepositRecordByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.playlet.system.mapper;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserWithdrawalPassword;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 12:23
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户提现密码Mapper接口
|
||||
*/
|
||||
public interface PlayletUserWithdrawalPasswordMapper extends BaseMapper<PlayletUserWithdrawalPassword> {
|
||||
/**
|
||||
* 查询用户提现密码
|
||||
*
|
||||
* @param id 用户提现密码主键
|
||||
* @return 用户提现密码
|
||||
*/
|
||||
PlayletUserWithdrawalPassword selectPlayletUserWithdrawalPasswordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户提现密码列表
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 用户提现密码集合
|
||||
*/
|
||||
List<PlayletUserWithdrawalPassword> selectPlayletUserWithdrawalPasswordList(PlayletUserWithdrawalPassword playletUserWithdrawalPassword);
|
||||
|
||||
/**
|
||||
* 新增用户提现密码
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletUserWithdrawalPassword(PlayletUserWithdrawalPassword playletUserWithdrawalPassword);
|
||||
|
||||
/**
|
||||
* 修改用户提现密码
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletUserWithdrawalPassword(PlayletUserWithdrawalPassword playletUserWithdrawalPassword);
|
||||
|
||||
/**
|
||||
* 删除用户提现密码
|
||||
*
|
||||
* @param id 用户提现密码主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserWithdrawalPasswordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除用户提现密码
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserWithdrawalPasswordByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.playlet.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletWithdrawApproval;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 08:34
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 提现审批Mapper接口
|
||||
*/
|
||||
public interface PlayletWithdrawApprovalMapper extends BaseMapper<PlayletWithdrawApproval> {
|
||||
/**
|
||||
* 查询提现审批
|
||||
*
|
||||
* @param id 提现审批主键
|
||||
* @return 提现审批
|
||||
*/
|
||||
PlayletWithdrawApproval selectPlayletWithdrawApprovalById(Long id);
|
||||
|
||||
/**
|
||||
* 查询提现审批列表
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 提现审批集合
|
||||
*/
|
||||
List<PlayletWithdrawApproval> selectPlayletWithdrawApprovalList(PlayletWithdrawApproval playletWithdrawApproval);
|
||||
|
||||
/**
|
||||
* 新增提现审批
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletWithdrawApproval(PlayletWithdrawApproval playletWithdrawApproval);
|
||||
|
||||
/**
|
||||
* 修改提现审批
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletWithdrawApproval(PlayletWithdrawApproval playletWithdrawApproval);
|
||||
|
||||
/**
|
||||
* 删除提现审批
|
||||
*
|
||||
* @param id 提现审批主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletWithdrawApprovalById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除提现审批
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletWithdrawApprovalByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.playlet.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserWithdrawDepositRecord;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-29 23:57
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户交易记录Service接口
|
||||
*/
|
||||
public interface IPlayletUserWithdrawDepositRecordService extends IService<PlayletUserWithdrawDepositRecord> {
|
||||
/**
|
||||
* 查询用户交易记录
|
||||
*
|
||||
* @param id 用户交易记录主键
|
||||
* @return 用户交易记录
|
||||
*/
|
||||
PlayletUserWithdrawDepositRecord selectPlayletUserWithdrawDepositRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户交易记录列表
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 用户交易记录集合
|
||||
*/
|
||||
List<PlayletUserWithdrawDepositRecord> selectPlayletUserWithdrawDepositRecordList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 新增用户交易记录
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 修改用户交易记录
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord);
|
||||
|
||||
/**
|
||||
* 批量删除用户交易记录
|
||||
*
|
||||
* @param ids 需要删除的用户交易记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserWithdrawDepositRecordByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除用户交易记录信息
|
||||
*
|
||||
* @param id 用户交易记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserWithdrawDepositRecordById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.playlet.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserWithdrawalPassword;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 12:25
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户提现密码Service接口
|
||||
*/
|
||||
public interface IPlayletUserWithdrawalPasswordService extends IService<PlayletUserWithdrawalPassword> {
|
||||
/**
|
||||
* 查询用户提现密码
|
||||
*
|
||||
* @param id 用户提现密码主键
|
||||
* @return 用户提现密码
|
||||
*/
|
||||
PlayletUserWithdrawalPassword selectPlayletUserWithdrawalPasswordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户提现密码列表
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 用户提现密码集合
|
||||
*/
|
||||
List<PlayletUserWithdrawalPassword> selectPlayletUserWithdrawalPasswordList(PlayletUserWithdrawalPassword playletUserWithdrawalPassword);
|
||||
|
||||
/**
|
||||
* 新增用户提现密码
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletUserWithdrawalPassword(PlayletUserWithdrawalPassword playletUserWithdrawalPassword);
|
||||
|
||||
/**
|
||||
* 修改用户提现密码
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletUserWithdrawalPassword(PlayletUserWithdrawalPassword playletUserWithdrawalPassword);
|
||||
|
||||
/**
|
||||
* 批量删除用户提现密码
|
||||
*
|
||||
* @param ids 需要删除的用户提现密码主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserWithdrawalPasswordByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除用户提现密码信息
|
||||
*
|
||||
* @param id 用户提现密码主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserWithdrawalPasswordById(Long id);
|
||||
|
||||
Boolean validatePassword(PlayletUserWithdrawalPassword password);
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.playlet.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletWithdrawApproval;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 08:35
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 提现审批Service接口
|
||||
*/
|
||||
public interface IPlayletWithdrawApprovalService extends IService<PlayletWithdrawApproval> {
|
||||
/**
|
||||
* 查询提现审批
|
||||
*
|
||||
* @param id 提现审批主键
|
||||
* @return 提现审批
|
||||
*/
|
||||
PlayletWithdrawApproval selectPlayletWithdrawApprovalById(Long id);
|
||||
|
||||
/**
|
||||
* 查询提现审批列表
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 提现审批集合
|
||||
*/
|
||||
List<PlayletWithdrawApproval> selectPlayletWithdrawApprovalList(PlayletWithdrawApproval playletWithdrawApproval);
|
||||
|
||||
/**
|
||||
* 新增提现审批
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletWithdrawApproval(PlayletWithdrawApproval playletWithdrawApproval);
|
||||
|
||||
/**
|
||||
* 修改提现审批
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletWithdrawApproval(PlayletWithdrawApproval playletWithdrawApproval);
|
||||
|
||||
/**
|
||||
* 批量删除提现审批
|
||||
*
|
||||
* @param ids 需要删除的提现审批主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletWithdrawApprovalByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除提现审批信息
|
||||
*
|
||||
* @param id 提现审批主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletWithdrawApprovalById(Long id);
|
||||
}
|
||||
|
|
@ -1,15 +1,13 @@
|
|||
package com.playlet.system.service.impl;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.playlet.common.utils.DateUtils;
|
||||
import com.playlet.system.pojo.dto.PlayletItemSearchRequestDTO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.playlet.system.mapper.PlayletItemMapper;
|
||||
|
|
@ -25,9 +23,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||
* @Description: 短剧基础Service业务层处理
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletItemServiceImpl extends ServiceImpl<PlayletItemMapper, PlayletItem> implements IPlayletItemService {
|
||||
@Autowired
|
||||
private PlayletItemMapper playletItemMapper;
|
||||
private final PlayletItemMapper playletItemMapper;
|
||||
|
||||
/**
|
||||
* 查询短剧基础
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import com.github.pagehelper.PageHelper;
|
|||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.common.utils.DateUtils;
|
||||
import com.playlet.system.pojo.vo.RevenueRecordStatisticsVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.playlet.system.mapper.PlayletRevenueRecordMapper;
|
||||
|
|
@ -25,10 +26,10 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||
* @Description: 短剧任务收益Service业务层处理
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletRevenueRecordServiceImpl extends ServiceImpl<PlayletRevenueRecordMapper, PlayletRevenueRecord> implements IPlayletRevenueRecordService {
|
||||
|
||||
@Autowired
|
||||
private PlayletRevenueRecordMapper playletRevenueRecordMapper;
|
||||
private final PlayletRevenueRecordMapper playletRevenueRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询短剧任务收益
|
||||
|
|
|
|||
|
|
@ -0,0 +1,121 @@
|
|||
package com.playlet.system.service.impl;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||
import com.playlet.common.exception.ServiceException;
|
||||
import com.playlet.common.utils.DateUtils;
|
||||
import com.playlet.common.utils.uuid.UUID;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.playlet.system.mapper.PlayletUserWithdrawDepositRecordMapper;
|
||||
import com.playlet.system.domain.PlayletUserWithdrawDepositRecord;
|
||||
import com.playlet.system.service.IPlayletUserWithdrawDepositRecordService;
|
||||
import com.playlet.common.core.text.Convert;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-29 23:58
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户交易记录Service业务层处理
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserWithdrawDepositRecordServiceImpl extends ServiceImpl<PlayletUserWithdrawDepositRecordMapper, PlayletUserWithdrawDepositRecord> implements IPlayletUserWithdrawDepositRecordService {
|
||||
|
||||
private final PlayletUserWithdrawDepositRecordMapper playletUserWithdrawDepositRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询用户交易记录
|
||||
*
|
||||
* @param id 用户交易记录主键
|
||||
* @return 用户交易记录
|
||||
*/
|
||||
@Override
|
||||
public PlayletUserWithdrawDepositRecord selectPlayletUserWithdrawDepositRecordById(Long id) {
|
||||
return playletUserWithdrawDepositRecordMapper.selectPlayletUserWithdrawDepositRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户交易记录列表
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 用户交易记录
|
||||
*/
|
||||
@Override
|
||||
public List<PlayletUserWithdrawDepositRecord> selectPlayletUserWithdrawDepositRecordList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
return playletUserWithdrawDepositRecordMapper.selectPlayletUserWithdrawDepositRecordList(playletUserWithdrawDepositRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户交易记录
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
playletUserWithdrawDepositRecord.setCreateTime(DateUtils.getNowDate());
|
||||
playletUserWithdrawDepositRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
// 订单号生成
|
||||
String uuIdMsg = null;
|
||||
for(;;){
|
||||
uuIdMsg = UUID.randomUUID().toString();
|
||||
QueryWrapper<PlayletUserWithdrawDepositRecord> wrapper = new QueryWrapper<>();
|
||||
wrapper.lambda().select().eq(PlayletUserWithdrawDepositRecord::getWithdrawOrder, uuIdMsg);
|
||||
PlayletUserWithdrawDepositRecord recordByDb = playletUserWithdrawDepositRecordMapper.selectOne(wrapper);
|
||||
if(ObjectUtils.isNull(recordByDb)){
|
||||
break;
|
||||
}
|
||||
}
|
||||
playletUserWithdrawDepositRecord.setWithdrawOrder(UUID.randomUUID().toString());
|
||||
return playletUserWithdrawDepositRecordMapper.insertPlayletUserWithdrawDepositRecord(playletUserWithdrawDepositRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户交易记录
|
||||
*
|
||||
* @param playletUserWithdrawDepositRecord 用户交易记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlayletUserWithdrawDepositRecord(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord) {
|
||||
// 通过订单号去查询 如果没有当前订单号禁止修改。
|
||||
QueryWrapper<PlayletUserWithdrawDepositRecord> wrapper = new QueryWrapper<>();
|
||||
wrapper.lambda().select().eq(PlayletUserWithdrawDepositRecord::getWithdrawOrder, playletUserWithdrawDepositRecord.getWithdrawOrder());
|
||||
PlayletUserWithdrawDepositRecord recordByDb = playletUserWithdrawDepositRecordMapper.selectOne(wrapper);
|
||||
if(ObjectUtils.isNull(recordByDb)){
|
||||
throw new ServiceException("当前订单号不存在,禁止修改");
|
||||
}
|
||||
playletUserWithdrawDepositRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return playletUserWithdrawDepositRecordMapper.updatePlayletUserWithdrawDepositRecord(playletUserWithdrawDepositRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户交易记录
|
||||
*
|
||||
* @param ids 需要删除的用户交易记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletUserWithdrawDepositRecordByIds(String ids) {
|
||||
return playletUserWithdrawDepositRecordMapper.deletePlayletUserWithdrawDepositRecordByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户交易记录信息
|
||||
*
|
||||
* @param id 用户交易记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletUserWithdrawDepositRecordById(Long id) {
|
||||
return playletUserWithdrawDepositRecordMapper.deletePlayletUserWithdrawDepositRecordById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,145 @@
|
|||
package com.playlet.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||
import com.playlet.common.exception.ServiceException;
|
||||
import com.playlet.common.utils.AesUtils;
|
||||
import com.playlet.common.utils.DateUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.playlet.system.mapper.PlayletUserWithdrawalPasswordMapper;
|
||||
import com.playlet.system.domain.PlayletUserWithdrawalPassword;
|
||||
import com.playlet.system.service.IPlayletUserWithdrawalPasswordService;
|
||||
import com.playlet.common.core.text.Convert;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 12:26
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户提现密码Service业务层处理
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserWithdrawalPasswordServiceImpl extends ServiceImpl<PlayletUserWithdrawalPasswordMapper, PlayletUserWithdrawalPassword> implements IPlayletUserWithdrawalPasswordService {
|
||||
|
||||
|
||||
private final PlayletUserWithdrawalPasswordMapper playletUserWithdrawalPasswordMapper;
|
||||
|
||||
/**
|
||||
* 查询用户提现密码
|
||||
*
|
||||
* @param id 用户提现密码主键
|
||||
* @return 用户提现密码
|
||||
*/
|
||||
@Override
|
||||
public PlayletUserWithdrawalPassword selectPlayletUserWithdrawalPasswordById(Long id) {
|
||||
return playletUserWithdrawalPasswordMapper.selectPlayletUserWithdrawalPasswordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户提现密码列表
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 用户提现密码
|
||||
*/
|
||||
@Override
|
||||
public List<PlayletUserWithdrawalPassword> selectPlayletUserWithdrawalPasswordList(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
return playletUserWithdrawalPasswordMapper.selectPlayletUserWithdrawalPasswordList(playletUserWithdrawalPassword);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户提现密码
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlayletUserWithdrawalPassword(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
// 根据userId进行查询 一个用户只能存在一个密码
|
||||
QueryWrapper<PlayletUserWithdrawalPassword> wrapper = new QueryWrapper<>();
|
||||
wrapper.lambda().select().eq(PlayletUserWithdrawalPassword::getUserId, playletUserWithdrawalPassword.getUserId());
|
||||
PlayletUserWithdrawalPassword withdrawalPasswordByUserCrw = playletUserWithdrawalPasswordMapper.selectOne(wrapper);
|
||||
if (ObjectUtils.isNotNull(withdrawalPasswordByUserCrw)) {
|
||||
throw new ServiceException("当前已存在提现密码数据。请勿重复添加。");
|
||||
}
|
||||
// 密码加密比对。
|
||||
if (!Objects.equals(AesUtils.aesEncrypt(playletUserWithdrawalPassword.getConfirmPassword()), AesUtils.aesEncrypt(playletUserWithdrawalPassword.getPassword()))) {
|
||||
throw new ServiceException("密码新增失败,两次密码不同。");
|
||||
}
|
||||
playletUserWithdrawalPassword.setPassword(AesUtils.aesEncrypt(playletUserWithdrawalPassword.getConfirmPassword()));
|
||||
playletUserWithdrawalPassword.setCreateTime(DateUtils.getNowDate());
|
||||
playletUserWithdrawalPassword.setUpdateTime(DateUtils.getNowDate());
|
||||
return playletUserWithdrawalPasswordMapper.insertPlayletUserWithdrawalPassword(playletUserWithdrawalPassword);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户提现密码
|
||||
*
|
||||
* @param playletUserWithdrawalPassword 用户提现密码
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlayletUserWithdrawalPassword(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) {
|
||||
QueryWrapper<PlayletUserWithdrawalPassword> wrapper = new QueryWrapper<>();
|
||||
wrapper.lambda().select().eq(PlayletUserWithdrawalPassword::getUserId, playletUserWithdrawalPassword.getUserId());
|
||||
PlayletUserWithdrawalPassword withdrawalPasswordByUserCrw = playletUserWithdrawalPasswordMapper.selectOne(wrapper);
|
||||
if (ObjectUtils.isNotNull(withdrawalPasswordByUserCrw)) {
|
||||
throw new ServiceException("当前用户未设置提现密码。请先新建密码。");
|
||||
}
|
||||
// 密码加密比对。
|
||||
if (!Objects.equals(withdrawalPasswordByUserCrw.getPassword(), AesUtils.aesEncrypt(playletUserWithdrawalPassword.getOriginalPassword()))) {
|
||||
throw new ServiceException("密码修改失败,原始密码错误。");
|
||||
}
|
||||
// 密码加密比对。
|
||||
if (!Objects.equals(AesUtils.aesEncrypt(playletUserWithdrawalPassword.getConfirmPassword()), AesUtils.aesEncrypt(playletUserWithdrawalPassword.getPassword()))) {
|
||||
throw new ServiceException("密码修改失败,两次密码不同。");
|
||||
}
|
||||
playletUserWithdrawalPassword.setPassword(AesUtils.aesEncrypt(playletUserWithdrawalPassword.getConfirmPassword()));
|
||||
playletUserWithdrawalPassword.setUpdateTime(DateUtils.getNowDate());
|
||||
return playletUserWithdrawalPasswordMapper.updatePlayletUserWithdrawalPassword(playletUserWithdrawalPassword);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户提现密码
|
||||
*
|
||||
* @param ids 需要删除的用户提现密码主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletUserWithdrawalPasswordByIds(String ids) {
|
||||
return playletUserWithdrawalPasswordMapper.deletePlayletUserWithdrawalPasswordByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户提现密码信息
|
||||
*
|
||||
* @param id 用户提现密码主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletUserWithdrawalPasswordById(Long id) {
|
||||
return playletUserWithdrawalPasswordMapper.deletePlayletUserWithdrawalPasswordById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean validatePassword(PlayletUserWithdrawalPassword password) {
|
||||
QueryWrapper<PlayletUserWithdrawalPassword> wrapper = new QueryWrapper<>();
|
||||
wrapper.lambda().select().eq(PlayletUserWithdrawalPassword::getUserId, password.getUserId());
|
||||
PlayletUserWithdrawalPassword withdrawalPasswordByUserCrw = playletUserWithdrawalPasswordMapper.selectOne(wrapper);
|
||||
if (ObjectUtils.isNotNull(withdrawalPasswordByUserCrw)) {
|
||||
throw new ServiceException("验证提现密码失败,用户未设置提现密码。");
|
||||
}
|
||||
// 密码加密比对。
|
||||
if (!Objects.equals(withdrawalPasswordByUserCrw.getPassword(), AesUtils.aesEncrypt(password.getPassword()))) {
|
||||
return Boolean.FALSE;
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package com.playlet.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.common.utils.DateUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.playlet.system.mapper.PlayletWithdrawApprovalMapper;
|
||||
import com.playlet.system.domain.PlayletWithdrawApproval;
|
||||
import com.playlet.system.service.IPlayletWithdrawApprovalService;
|
||||
import com.playlet.common.core.text.Convert;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-30 08:35
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 提现审批Service业务层处理
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletWithdrawApprovalServiceImpl extends ServiceImpl<PlayletWithdrawApprovalMapper, PlayletWithdrawApproval> implements IPlayletWithdrawApprovalService {
|
||||
|
||||
private final PlayletWithdrawApprovalMapper playletWithdrawApprovalMapper;
|
||||
|
||||
/**
|
||||
* 查询提现审批
|
||||
*
|
||||
* @param id 提现审批主键
|
||||
* @return 提现审批
|
||||
*/
|
||||
@Override
|
||||
public PlayletWithdrawApproval selectPlayletWithdrawApprovalById(Long id) {
|
||||
return playletWithdrawApprovalMapper.selectPlayletWithdrawApprovalById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询提现审批列表
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 提现审批
|
||||
*/
|
||||
@Override
|
||||
public List<PlayletWithdrawApproval> selectPlayletWithdrawApprovalList(PlayletWithdrawApproval playletWithdrawApproval) {
|
||||
return playletWithdrawApprovalMapper.selectPlayletWithdrawApprovalList(playletWithdrawApproval);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增提现审批
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlayletWithdrawApproval(PlayletWithdrawApproval playletWithdrawApproval) {
|
||||
playletWithdrawApproval.setCreateTime(DateUtils.getNowDate());
|
||||
return playletWithdrawApprovalMapper.insertPlayletWithdrawApproval(playletWithdrawApproval);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改提现审批
|
||||
*
|
||||
* @param playletWithdrawApproval 提现审批
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlayletWithdrawApproval(PlayletWithdrawApproval playletWithdrawApproval) {
|
||||
playletWithdrawApproval.setUpdateTime(DateUtils.getNowDate());
|
||||
return playletWithdrawApprovalMapper.updatePlayletWithdrawApproval(playletWithdrawApproval);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除提现审批
|
||||
*
|
||||
* @param ids 需要删除的提现审批主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletWithdrawApprovalByIds(String ids) {
|
||||
return playletWithdrawApprovalMapper.deletePlayletWithdrawApprovalByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除提现审批信息
|
||||
*
|
||||
* @param id 提现审批主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletWithdrawApprovalById(Long id) {
|
||||
return playletWithdrawApprovalMapper.deletePlayletWithdrawApprovalById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
<?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.PlayletUserWithdrawDepositRecordMapper">
|
||||
|
||||
<resultMap type="PlayletUserWithdrawDepositRecord" id="PlayletUserWithdrawDepositRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="withdrawOrder" column="withdraw_order" />
|
||||
<result property="accountingTime" column="accounting_time" />
|
||||
<result property="withdrawBankId" column="withdraw_bank_id" />
|
||||
<result property="withdrawBank" column="withdraw_bank" />
|
||||
<result property="withdrawOpeningBank" column="withdraw_opening_bank" />
|
||||
<result property="status" column="status" />
|
||||
<result property="withdrawApplyTime" column="withdraw_apply_time" />
|
||||
<result property="withdrawApplyTotal" column="withdraw_apply_total" />
|
||||
<result property="withdrawRealityTotal" column="withdraw_reality_total" />
|
||||
<result property="withdrawCharge" column="withdraw_charge" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPlayletUserWithdrawDepositRecordVo">
|
||||
select id, user_id, withdraw_order, accounting_time, withdraw_bank_id, withdraw_bank, withdraw_opening_bank, status, withdraw_apply_time, withdraw_apply_total, withdraw_reality_total, withdraw_charge, create_by, update_by, create_time, update_time, remark from playlet_user_withdraw_deposit_record
|
||||
</sql>
|
||||
|
||||
<select id="selectPlayletUserWithdrawDepositRecordList" parameterType="PlayletUserWithdrawDepositRecord" resultMap="PlayletUserWithdrawDepositRecordResult">
|
||||
<include refid="selectPlayletUserWithdrawDepositRecordVo"/>
|
||||
<where>
|
||||
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
||||
<if test="withdrawOrder != null and withdrawOrder != ''"> and withdraw_order = #{withdrawOrder}</if>
|
||||
<if test="accountingTime != null "> and accounting_time = #{accountingTime}</if>
|
||||
<if test="withdrawBankId != null and withdrawBankId != ''"> and withdraw_bank_id = #{withdrawBankId}</if>
|
||||
<if test="withdrawBank != null and withdrawBank != ''"> and withdraw_bank = #{withdrawBank}</if>
|
||||
<if test="withdrawOpeningBank != null and withdrawOpeningBank != ''"> and withdraw_opening_bank = #{withdrawOpeningBank}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="withdrawApplyTime != null "> and withdraw_apply_time = #{withdrawApplyTime}</if>
|
||||
<if test="withdrawApplyTotal != null "> and withdraw_apply_total = #{withdrawApplyTotal}</if>
|
||||
<if test="withdrawRealityTotal != null "> and withdraw_reality_total = #{withdrawRealityTotal}</if>
|
||||
<if test="withdrawCharge != null "> and withdraw_charge = #{withdrawCharge}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPlayletUserWithdrawDepositRecordById" parameterType="Long" resultMap="PlayletUserWithdrawDepositRecordResult">
|
||||
<include refid="selectPlayletUserWithdrawDepositRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPlayletUserWithdrawDepositRecord" parameterType="PlayletUserWithdrawDepositRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into playlet_user_withdraw_deposit_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null and userId != ''">user_id,</if>
|
||||
<if test="withdrawOrder != null and withdrawOrder != ''">withdraw_order,</if>
|
||||
<if test="accountingTime != null">accounting_time,</if>
|
||||
<if test="withdrawBankId != null and withdrawBankId != ''">withdraw_bank_id,</if>
|
||||
<if test="withdrawBank != null and withdrawBank != ''">withdraw_bank,</if>
|
||||
<if test="withdrawOpeningBank != null and withdrawOpeningBank != ''">withdraw_opening_bank,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="withdrawApplyTime != null">withdraw_apply_time,</if>
|
||||
<if test="withdrawApplyTotal != null">withdraw_apply_total,</if>
|
||||
<if test="withdrawRealityTotal != null">withdraw_reality_total,</if>
|
||||
<if test="withdrawCharge != null">withdraw_charge,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null and userId != ''">#{userId},</if>
|
||||
<if test="withdrawOrder != null and withdrawOrder != ''">#{withdrawOrder},</if>
|
||||
<if test="accountingTime != null">#{accountingTime},</if>
|
||||
<if test="withdrawBankId != null and withdrawBankId != ''">#{withdrawBankId},</if>
|
||||
<if test="withdrawBank != null and withdrawBank != ''">#{withdrawBank},</if>
|
||||
<if test="withdrawOpeningBank != null and withdrawOpeningBank != ''">#{withdrawOpeningBank},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="withdrawApplyTime != null">#{withdrawApplyTime},</if>
|
||||
<if test="withdrawApplyTotal != null">#{withdrawApplyTotal},</if>
|
||||
<if test="withdrawRealityTotal != null">#{withdrawRealityTotal},</if>
|
||||
<if test="withdrawCharge != null">#{withdrawCharge},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePlayletUserWithdrawDepositRecord" parameterType="PlayletUserWithdrawDepositRecord">
|
||||
update playlet_user_withdraw_deposit_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null and userId != ''">user_id = #{userId},</if>
|
||||
<if test="withdrawOrder != null and withdrawOrder != ''">withdraw_order = #{withdrawOrder},</if>
|
||||
<if test="accountingTime != null">accounting_time = #{accountingTime},</if>
|
||||
<if test="withdrawBankId != null and withdrawBankId != ''">withdraw_bank_id = #{withdrawBankId},</if>
|
||||
<if test="withdrawBank != null and withdrawBank != ''">withdraw_bank = #{withdrawBank},</if>
|
||||
<if test="withdrawOpeningBank != null and withdrawOpeningBank != ''">withdraw_opening_bank = #{withdrawOpeningBank},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="withdrawApplyTime != null">withdraw_apply_time = #{withdrawApplyTime},</if>
|
||||
<if test="withdrawApplyTotal != null">withdraw_apply_total = #{withdrawApplyTotal},</if>
|
||||
<if test="withdrawRealityTotal != null">withdraw_reality_total = #{withdrawRealityTotal},</if>
|
||||
<if test="withdrawCharge != null">withdraw_charge = #{withdrawCharge},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePlayletUserWithdrawDepositRecordById" parameterType="Long">
|
||||
delete from playlet_user_withdraw_deposit_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePlayletUserWithdrawDepositRecordByIds" parameterType="String">
|
||||
delete from playlet_user_withdraw_deposit_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
<?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.PlayletUserWithdrawalPasswordMapper">
|
||||
|
||||
<resultMap type="PlayletUserWithdrawalPassword" id="PlayletUserWithdrawalPasswordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="password" column="password" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPlayletUserWithdrawalPasswordVo">
|
||||
select id, user_id, password, create_by, update_by, create_time, update_time, remark from playlet_user_withdrawal_password
|
||||
</sql>
|
||||
|
||||
<select id="selectPlayletUserWithdrawalPasswordList" parameterType="PlayletUserWithdrawalPassword" resultMap="PlayletUserWithdrawalPasswordResult">
|
||||
<include refid="selectPlayletUserWithdrawalPasswordVo"/>
|
||||
<where>
|
||||
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
||||
<if test="password != null and password != ''"> and password = #{password}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPlayletUserWithdrawalPasswordById" parameterType="Long" resultMap="PlayletUserWithdrawalPasswordResult">
|
||||
<include refid="selectPlayletUserWithdrawalPasswordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPlayletUserWithdrawalPassword" parameterType="PlayletUserWithdrawalPassword" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into playlet_user_withdrawal_password
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null and userId != ''">user_id,</if>
|
||||
<if test="password != null and password != ''">password,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null and userId != ''">#{userId},</if>
|
||||
<if test="password != null and password != ''">#{password},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePlayletUserWithdrawalPassword" parameterType="PlayletUserWithdrawalPassword">
|
||||
update playlet_user_withdrawal_password
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null and userId != ''">user_id = #{userId},</if>
|
||||
<if test="password != null and password != ''">password = #{password},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePlayletUserWithdrawalPasswordById" parameterType="Long">
|
||||
delete from playlet_user_withdrawal_password where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePlayletUserWithdrawalPasswordByIds" parameterType="String">
|
||||
delete from playlet_user_withdrawal_password where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
<?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.PlayletWithdrawApprovalMapper">
|
||||
|
||||
<resultMap type="PlayletWithdrawApproval" id="PlayletWithdrawApprovalResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="withdrawOrder" column="withdraw_order" />
|
||||
<result property="approvalUserId" column="approval_user_id" />
|
||||
<result property="approvalStatus" column="approval_status" />
|
||||
<result property="approvalOpinion" column="approval_opinion" />
|
||||
<result property="approvalMoney" column="approval_money" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPlayletWithdrawApprovalVo">
|
||||
select id, withdraw_order, approval_user_id, approval_status, approval_opinion, approval_money, create_by, update_by, create_time, update_time, remark from playlet_withdraw_approval
|
||||
</sql>
|
||||
|
||||
<select id="selectPlayletWithdrawApprovalList" parameterType="PlayletWithdrawApproval" resultMap="PlayletWithdrawApprovalResult">
|
||||
<include refid="selectPlayletWithdrawApprovalVo"/>
|
||||
<where>
|
||||
<if test="withdrawOrder != null and withdrawOrder != ''"> and withdraw_order = #{withdrawOrder}</if>
|
||||
<if test="approvalUserId != null and approvalUserId != ''"> and approval_user_id = #{approvalUserId}</if>
|
||||
<if test="approvalStatus != null "> and approval_status = #{approvalStatus}</if>
|
||||
<if test="approvalOpinion != null and approvalOpinion != ''"> and approval_opinion = #{approvalOpinion}</if>
|
||||
<if test="approvalMoney != null "> and approval_money = #{approvalMoney}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPlayletWithdrawApprovalById" parameterType="Long" resultMap="PlayletWithdrawApprovalResult">
|
||||
<include refid="selectPlayletWithdrawApprovalVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPlayletWithdrawApproval" parameterType="PlayletWithdrawApproval" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into playlet_withdraw_approval
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="withdrawOrder != null and withdrawOrder != ''">withdraw_order,</if>
|
||||
<if test="approvalUserId != null and approvalUserId != ''">approval_user_id,</if>
|
||||
<if test="approvalStatus != null">approval_status,</if>
|
||||
<if test="approvalOpinion != null and approvalOpinion != ''">approval_opinion,</if>
|
||||
<if test="approvalMoney != null">approval_money,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="withdrawOrder != null and withdrawOrder != ''">#{withdrawOrder},</if>
|
||||
<if test="approvalUserId != null and approvalUserId != ''">#{approvalUserId},</if>
|
||||
<if test="approvalStatus != null">#{approvalStatus},</if>
|
||||
<if test="approvalOpinion != null and approvalOpinion != ''">#{approvalOpinion},</if>
|
||||
<if test="approvalMoney != null">#{approvalMoney},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePlayletWithdrawApproval" parameterType="PlayletWithdrawApproval">
|
||||
update playlet_withdraw_approval
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="withdrawOrder != null and withdrawOrder != ''">withdraw_order = #{withdrawOrder},</if>
|
||||
<if test="approvalUserId != null and approvalUserId != ''">approval_user_id = #{approvalUserId},</if>
|
||||
<if test="approvalStatus != null">approval_status = #{approvalStatus},</if>
|
||||
<if test="approvalOpinion != null and approvalOpinion != ''">approval_opinion = #{approvalOpinion},</if>
|
||||
<if test="approvalMoney != null">approval_money = #{approvalMoney},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePlayletWithdrawApprovalById" parameterType="Long">
|
||||
delete from playlet_withdraw_approval where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePlayletWithdrawApprovalByIds" parameterType="String">
|
||||
delete from playlet_withdraw_approval where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue