diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletUserWithdrawDepositRecordAppController.java b/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletUserWithdrawDepositRecordAppController.java new file mode 100644 index 0000000..71a4ca0 --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletUserWithdrawDepositRecordAppController.java @@ -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> 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 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)); + } +} diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletUserWithdrawalPasswordAppController.java b/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletUserWithdrawalPasswordAppController.java new file mode 100644 index 0000000..07fb1bd --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletUserWithdrawalPasswordAppController.java @@ -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 statisticsTime(@RequestBody PlayletUserWithdrawalPassword playletUserWithdrawalPassword) { + return Result.success(appService.validatePassword(playletUserWithdrawalPassword)); + } +} diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletItemController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletItemController.java index 2674a14..a045663 100644 --- a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletItemController.java +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletItemController.java @@ -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 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)); diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletRevenueRecordController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletRevenueRecordController.java index 40ebb5d..e0e1cdb 100644 --- a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletRevenueRecordController.java +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletRevenueRecordController.java @@ -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 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 list = playletRevenueRecordService.selectPlayletRevenueRecordList(playletRevenueRecord); ExcelUtil util = new ExcelUtil(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 statisticsTime(@RequestBody PlayletRevenueRecord playletRevenueRecord) { return Result.success(playletRevenueRecordService.statisticsTime(playletRevenueRecord)); } + @ApiOperation(value = "统计任务总收益") @ResponseBody @PostMapping("/statistics") public Result statistics(@RequestBody PlayletRevenueRecord playletRevenueRecord) { return Result.success(playletRevenueRecordService.statistics(playletRevenueRecord)); } + @ApiOperation(value = "根据时间/类型统计任务收益") @ResponseBody - @PostMapping("/statistics/time/type") + @PostMapping("/statisticsTimeType") public Result> statisticsTimeType(@RequestBody PlayletRevenueRecord playletRevenueRecord) { return Result.success(playletRevenueRecordService.statisticsTimeType(playletRevenueRecord)); } diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletTaskController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletTaskController.java index 304fdc8..1e1c41d 100644 --- a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletTaskController.java +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletTaskController.java @@ -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 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 list = playletTaskService.selectPlayletTaskList(playletTask); ExcelUtil util = new ExcelUtil(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)); } diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserAccountController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserAccountController.java index 8e08bc7..8051acd 100644 --- a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserAccountController.java +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserAccountController.java @@ -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 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 list = playletUserAccountService.selectPlayletUserAccountList(playletUserAccount); ExcelUtil util = new ExcelUtil(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)); } diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserTaskController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserTaskController.java index 791715c..b03efd0 100644 --- a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserTaskController.java +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserTaskController.java @@ -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 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 list = playletUserTaskService.selectPlayletUserTaskList(playletUserTask); ExcelUtil util = new ExcelUtil(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)); } diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserWithdrawDepositRecordController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserWithdrawDepositRecordController.java new file mode 100644 index 0000000..7719c28 --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserWithdrawDepositRecordController.java @@ -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 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 list = playletUserWithdrawDepositRecordService.selectPlayletUserWithdrawDepositRecordList(playletUserWithdrawDepositRecord); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserWithdrawalPasswordController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserWithdrawalPasswordController.java new file mode 100644 index 0000000..efab505 --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletUserWithdrawalPasswordController.java @@ -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 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 list = playletUserWithdrawalPasswordService.selectPlayletUserWithdrawalPasswordList(playletUserWithdrawalPassword); + ExcelUtil util = new ExcelUtil(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 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)); + } +} diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletWithdrawApprovalController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletWithdrawApprovalController.java new file mode 100644 index 0000000..e7b8f76 --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletWithdrawApprovalController.java @@ -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 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 list = playletWithdrawApprovalService.selectPlayletWithdrawApprovalList(playletWithdrawApproval); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/playlet-admin/src/main/java/com/playlet/web/service/app/IPlayletUserWithdrawDepositRecordAppService.java b/playlet-admin/src/main/java/com/playlet/web/service/app/IPlayletUserWithdrawDepositRecordAppService.java new file mode 100644 index 0000000..f484f4c --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/service/app/IPlayletUserWithdrawDepositRecordAppService.java @@ -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 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 getWithdrawDepositList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord, Integer pageSize, Integer pageNum); +} diff --git a/playlet-admin/src/main/java/com/playlet/web/service/app/IPlayletUserWithdrawalPasswordAppService.java b/playlet-admin/src/main/java/com/playlet/web/service/app/IPlayletUserWithdrawalPasswordAppService.java new file mode 100644 index 0000000..3abf9dc --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/service/app/IPlayletUserWithdrawalPasswordAppService.java @@ -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); +} diff --git a/playlet-admin/src/main/java/com/playlet/web/service/app/impl/PlayletUserWithdrawDepositRecordAppServiceImpl.java b/playlet-admin/src/main/java/com/playlet/web/service/app/impl/PlayletUserWithdrawDepositRecordAppServiceImpl.java new file mode 100644 index 0000000..d0f5990 --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/service/app/impl/PlayletUserWithdrawDepositRecordAppServiceImpl.java @@ -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 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 getWithdrawDepositList(PlayletUserWithdrawDepositRecord playletUserWithdrawDepositRecord, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum, pageSize); + return PageInfo.of(service.selectPlayletUserWithdrawDepositRecordList(playletUserWithdrawDepositRecord)); + } +} diff --git a/playlet-admin/src/main/java/com/playlet/web/service/app/impl/PlayletUserWithdrawalPasswordAppServiceImpl.java b/playlet-admin/src/main/java/com/playlet/web/service/app/impl/PlayletUserWithdrawalPasswordAppServiceImpl.java new file mode 100644 index 0000000..9a085dd --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/service/app/impl/PlayletUserWithdrawalPasswordAppServiceImpl.java @@ -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); + } +} diff --git a/playlet-common/src/main/java/com/playlet/common/utils/AesUtils.java b/playlet-common/src/main/java/com/playlet/common/utils/AesUtils.java new file mode 100644 index 0000000..7eb0797 --- /dev/null +++ b/playlet-common/src/main/java/com/playlet/common/utils/AesUtils.java @@ -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"); + } + +} diff --git a/playlet-system/src/main/java/com/playlet/system/domain/PlayletUserWithdrawDepositRecord.java b/playlet-system/src/main/java/com/playlet/system/domain/PlayletUserWithdrawDepositRecord.java new file mode 100644 index 0000000..bdcd063 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/domain/PlayletUserWithdrawDepositRecord.java @@ -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; + +} diff --git a/playlet-system/src/main/java/com/playlet/system/domain/PlayletUserWithdrawalPassword.java b/playlet-system/src/main/java/com/playlet/system/domain/PlayletUserWithdrawalPassword.java new file mode 100644 index 0000000..ca7522a --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/domain/PlayletUserWithdrawalPassword.java @@ -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; +} diff --git a/playlet-system/src/main/java/com/playlet/system/domain/PlayletWithdrawApproval.java b/playlet-system/src/main/java/com/playlet/system/domain/PlayletWithdrawApproval.java new file mode 100644 index 0000000..fa49712 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/domain/PlayletWithdrawApproval.java @@ -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; + +} diff --git a/playlet-system/src/main/java/com/playlet/system/mapper/PlayletUserWithdrawDepositRecordMapper.java b/playlet-system/src/main/java/com/playlet/system/mapper/PlayletUserWithdrawDepositRecordMapper.java new file mode 100644 index 0000000..edad97e --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/mapper/PlayletUserWithdrawDepositRecordMapper.java @@ -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 { + /** + * 查询用户交易记录 + * + * @param id 用户交易记录主键 + * @return 用户交易记录 + */ + PlayletUserWithdrawDepositRecord selectPlayletUserWithdrawDepositRecordById(Long id); + + /** + * 查询用户交易记录列表 + * + * @param playletUserWithdrawDepositRecord 用户交易记录 + * @return 用户交易记录集合 + */ + List 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); +} diff --git a/playlet-system/src/main/java/com/playlet/system/mapper/PlayletUserWithdrawalPasswordMapper.java b/playlet-system/src/main/java/com/playlet/system/mapper/PlayletUserWithdrawalPasswordMapper.java new file mode 100644 index 0000000..d888146 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/mapper/PlayletUserWithdrawalPasswordMapper.java @@ -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 { + /** + * 查询用户提现密码 + * + * @param id 用户提现密码主键 + * @return 用户提现密码 + */ + PlayletUserWithdrawalPassword selectPlayletUserWithdrawalPasswordById(Long id); + + /** + * 查询用户提现密码列表 + * + * @param playletUserWithdrawalPassword 用户提现密码 + * @return 用户提现密码集合 + */ + List 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); +} diff --git a/playlet-system/src/main/java/com/playlet/system/mapper/PlayletWithdrawApprovalMapper.java b/playlet-system/src/main/java/com/playlet/system/mapper/PlayletWithdrawApprovalMapper.java new file mode 100644 index 0000000..42f405a --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/mapper/PlayletWithdrawApprovalMapper.java @@ -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 { + /** + * 查询提现审批 + * + * @param id 提现审批主键 + * @return 提现审批 + */ + PlayletWithdrawApproval selectPlayletWithdrawApprovalById(Long id); + + /** + * 查询提现审批列表 + * + * @param playletWithdrawApproval 提现审批 + * @return 提现审批集合 + */ + List 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); +} \ No newline at end of file diff --git a/playlet-system/src/main/java/com/playlet/system/service/IPlayletUserWithdrawDepositRecordService.java b/playlet-system/src/main/java/com/playlet/system/service/IPlayletUserWithdrawDepositRecordService.java new file mode 100644 index 0000000..1dfc6d8 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/service/IPlayletUserWithdrawDepositRecordService.java @@ -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 { + /** + * 查询用户交易记录 + * + * @param id 用户交易记录主键 + * @return 用户交易记录 + */ + PlayletUserWithdrawDepositRecord selectPlayletUserWithdrawDepositRecordById(Long id); + + /** + * 查询用户交易记录列表 + * + * @param playletUserWithdrawDepositRecord 用户交易记录 + * @return 用户交易记录集合 + */ + List 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); +} diff --git a/playlet-system/src/main/java/com/playlet/system/service/IPlayletUserWithdrawalPasswordService.java b/playlet-system/src/main/java/com/playlet/system/service/IPlayletUserWithdrawalPasswordService.java new file mode 100644 index 0000000..b856dd8 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/service/IPlayletUserWithdrawalPasswordService.java @@ -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 { + /** + * 查询用户提现密码 + * + * @param id 用户提现密码主键 + * @return 用户提现密码 + */ + PlayletUserWithdrawalPassword selectPlayletUserWithdrawalPasswordById(Long id); + + /** + * 查询用户提现密码列表 + * + * @param playletUserWithdrawalPassword 用户提现密码 + * @return 用户提现密码集合 + */ + List 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); +} \ No newline at end of file diff --git a/playlet-system/src/main/java/com/playlet/system/service/IPlayletWithdrawApprovalService.java b/playlet-system/src/main/java/com/playlet/system/service/IPlayletWithdrawApprovalService.java new file mode 100644 index 0000000..79ee029 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/service/IPlayletWithdrawApprovalService.java @@ -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 { + /** + * 查询提现审批 + * + * @param id 提现审批主键 + * @return 提现审批 + */ + PlayletWithdrawApproval selectPlayletWithdrawApprovalById(Long id); + + /** + * 查询提现审批列表 + * + * @param playletWithdrawApproval 提现审批 + * @return 提现审批集合 + */ + List 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); +} diff --git a/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletItemServiceImpl.java b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletItemServiceImpl.java index 90580fe..9a3f3a1 100644 --- a/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletItemServiceImpl.java +++ b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletItemServiceImpl.java @@ -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 implements IPlayletItemService { - @Autowired - private PlayletItemMapper playletItemMapper; + private final PlayletItemMapper playletItemMapper; /** * 查询短剧基础 diff --git a/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletRevenueRecordServiceImpl.java b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletRevenueRecordServiceImpl.java index 7379b26..87632aa 100644 --- a/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletRevenueRecordServiceImpl.java +++ b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletRevenueRecordServiceImpl.java @@ -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 implements IPlayletRevenueRecordService { - @Autowired - private PlayletRevenueRecordMapper playletRevenueRecordMapper; + private final PlayletRevenueRecordMapper playletRevenueRecordMapper; /** * 查询短剧任务收益 diff --git a/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletUserWithdrawDepositRecordServiceImpl.java b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletUserWithdrawDepositRecordServiceImpl.java new file mode 100644 index 0000000..f067c4a --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletUserWithdrawDepositRecordServiceImpl.java @@ -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 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 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 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 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); + } +} diff --git a/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletUserWithdrawalPasswordServiceImpl.java b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletUserWithdrawalPasswordServiceImpl.java new file mode 100644 index 0000000..0ecb1c8 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletUserWithdrawalPasswordServiceImpl.java @@ -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 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 selectPlayletUserWithdrawalPasswordList(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) { + return playletUserWithdrawalPasswordMapper.selectPlayletUserWithdrawalPasswordList(playletUserWithdrawalPassword); + } + + /** + * 新增用户提现密码 + * + * @param playletUserWithdrawalPassword 用户提现密码 + * @return 结果 + */ + @Override + public int insertPlayletUserWithdrawalPassword(PlayletUserWithdrawalPassword playletUserWithdrawalPassword) { + // 根据userId进行查询 一个用户只能存在一个密码 + QueryWrapper 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 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 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; + } +} diff --git a/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletWithdrawApprovalServiceImpl.java b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletWithdrawApprovalServiceImpl.java new file mode 100644 index 0000000..b5d5b9f --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletWithdrawApprovalServiceImpl.java @@ -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 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 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); + } +} diff --git a/playlet-system/src/main/resources/mapper/system/PlayletUserWithdrawDepositRecordMapper.xml b/playlet-system/src/main/resources/mapper/system/PlayletUserWithdrawDepositRecordMapper.xml new file mode 100644 index 0000000..4ae6871 --- /dev/null +++ b/playlet-system/src/main/resources/mapper/system/PlayletUserWithdrawDepositRecordMapper.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + insert into playlet_user_withdraw_deposit_record + + 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, + + + #{userId}, + #{withdrawOrder}, + #{accountingTime}, + #{withdrawBankId}, + #{withdrawBank}, + #{withdrawOpeningBank}, + #{status}, + #{withdrawApplyTime}, + #{withdrawApplyTotal}, + #{withdrawRealityTotal}, + #{withdrawCharge}, + #{createBy}, + #{updateBy}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update playlet_user_withdraw_deposit_record + + user_id = #{userId}, + withdraw_order = #{withdrawOrder}, + accounting_time = #{accountingTime}, + withdraw_bank_id = #{withdrawBankId}, + withdraw_bank = #{withdrawBank}, + withdraw_opening_bank = #{withdrawOpeningBank}, + status = #{status}, + withdraw_apply_time = #{withdrawApplyTime}, + withdraw_apply_total = #{withdrawApplyTotal}, + withdraw_reality_total = #{withdrawRealityTotal}, + withdraw_charge = #{withdrawCharge}, + create_by = #{createBy}, + update_by = #{updateBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from playlet_user_withdraw_deposit_record where id = #{id} + + + + delete from playlet_user_withdraw_deposit_record where id in + + #{id} + + + + \ No newline at end of file diff --git a/playlet-system/src/main/resources/mapper/system/PlayletUserWithdrawalPasswordMapper.xml b/playlet-system/src/main/resources/mapper/system/PlayletUserWithdrawalPasswordMapper.xml new file mode 100644 index 0000000..2e102a8 --- /dev/null +++ b/playlet-system/src/main/resources/mapper/system/PlayletUserWithdrawalPasswordMapper.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + select id, user_id, password, create_by, update_by, create_time, update_time, remark from playlet_user_withdrawal_password + + + + + + + + insert into playlet_user_withdrawal_password + + user_id, + password, + create_by, + update_by, + create_time, + update_time, + remark, + + + #{userId}, + #{password}, + #{createBy}, + #{updateBy}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update playlet_user_withdrawal_password + + user_id = #{userId}, + password = #{password}, + create_by = #{createBy}, + update_by = #{updateBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from playlet_user_withdrawal_password where id = #{id} + + + + delete from playlet_user_withdrawal_password where id in + + #{id} + + + + \ No newline at end of file diff --git a/playlet-system/src/main/resources/mapper/system/PlayletWithdrawApprovalMapper.xml b/playlet-system/src/main/resources/mapper/system/PlayletWithdrawApprovalMapper.xml new file mode 100644 index 0000000..b7af412 --- /dev/null +++ b/playlet-system/src/main/resources/mapper/system/PlayletWithdrawApprovalMapper.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + insert into playlet_withdraw_approval + + withdraw_order, + approval_user_id, + approval_status, + approval_opinion, + approval_money, + create_by, + update_by, + create_time, + update_time, + remark, + + + #{withdrawOrder}, + #{approvalUserId}, + #{approvalStatus}, + #{approvalOpinion}, + #{approvalMoney}, + #{createBy}, + #{updateBy}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update playlet_withdraw_approval + + withdraw_order = #{withdrawOrder}, + approval_user_id = #{approvalUserId}, + approval_status = #{approvalStatus}, + approval_opinion = #{approvalOpinion}, + approval_money = #{approvalMoney}, + create_by = #{createBy}, + update_by = #{updateBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from playlet_withdraw_approval where id = #{id} + + + + delete from playlet_withdraw_approval where id in + + #{id} + + + + \ No newline at end of file