Explorar o código

直播分成相关表

dos hai 3 meses
pai
achega
e868a0960d

+ 115 - 0
game-business/src/main/java/com/game/business/controller/AppUserLiveDividedController.java

@@ -0,0 +1,115 @@
+package com.game.business.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.game.common.core.domain.R;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.game.common.annotation.Log;
+import com.game.common.core.controller.BaseController;
+import com.game.common.core.domain.AjaxResult;
+import com.game.common.enums.BusinessType;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.game.business.domain.AppUserLiveDivided;
+import com.game.business.service.IAppUserLiveDividedService;
+import com.game.common.utils.poi.ExcelUtil;
+import com.game.common.core.page.TableDataInfo;
+
+/**
+ * 直播待分成表Controller
+ * 
+ * @author game
+ * @date 2024-06-30
+ */
+@RestController
+@RequestMapping("/business/divided")
+@Api(value = "AppUserLiveDividedController", description = "直播待分成表接口", tags = {"直播待分成表"})
+public class AppUserLiveDividedController extends BaseController
+{
+    @Autowired
+    private IAppUserLiveDividedService appUserLiveDividedService;
+
+    /**
+     * 查询直播待分成表列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:divided:list')")
+    @GetMapping("/list")
+    @ApiOperation(value = "查询直播待分成表列表", notes = "获取直播待分成表列表")
+    public TableDataInfo<AppUserLiveDivided> list(AppUserLiveDivided appUserLiveDivided)
+    {
+        startPage();
+        List<AppUserLiveDivided> list = appUserLiveDividedService.selectAppUserLiveDividedList(appUserLiveDivided);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出直播待分成表列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:divided:export')")
+    @Log(title = "直播待分成表", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    @ApiOperation(value = "导出直播待分成表列表", notes = "导出直播待分成表列表")
+    public void export(HttpServletResponse response, AppUserLiveDivided appUserLiveDivided)
+    {
+        List<AppUserLiveDivided> list = appUserLiveDividedService.selectAppUserLiveDividedList(appUserLiveDivided);
+        ExcelUtil<AppUserLiveDivided> util = new ExcelUtil<AppUserLiveDivided>(AppUserLiveDivided.class);
+        util.exportExcel(response, list, "直播待分成表数据");
+    }
+
+    /**
+     * 获取直播待分成表详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:divided:query')")
+    @GetMapping(value = "/{id}")
+    @ApiOperation(value = "获取直播待分成表详细信息", notes = "获取直播待分成表详细信息")
+    public R<AppUserLiveDivided> getInfo(@PathVariable("id") Long id)
+    {
+        return R.ok(appUserLiveDividedService.selectAppUserLiveDividedById(id));
+    }
+
+    /**
+     * 新增直播待分成表
+     */
+    @PreAuthorize("@ss.hasPermi('business:divided:add')")
+    @Log(title = "直播待分成表", businessType = BusinessType.INSERT)
+    @ApiOperation(value = "新增直播待分成表", notes = "新增直播待分成表")
+    @PostMapping
+    public R add(@RequestBody AppUserLiveDivided appUserLiveDivided)
+    {
+        return R.ok(appUserLiveDividedService.insertAppUserLiveDivided(appUserLiveDivided));
+    }
+
+    /**
+     * 修改直播待分成表
+     */
+    @PreAuthorize("@ss.hasPermi('business:divided:edit')")
+    @Log(title = "直播待分成表", businessType = BusinessType.UPDATE)
+    @ApiOperation(value = "修改直播待分成表", notes = "修改直播待分成表")
+    @PutMapping
+    public R edit(@RequestBody AppUserLiveDivided appUserLiveDivided)
+    {
+        return R.ok(appUserLiveDividedService.updateAppUserLiveDivided(appUserLiveDivided));
+    }
+
+    /**
+     * 删除直播待分成表
+     */
+    @PreAuthorize("@ss.hasPermi('business:divided:remove')")
+    @Log(title = "直播待分成表", businessType = BusinessType.DELETE)
+    @ApiOperation(value = "删除直播待分成表", notes = "删除直播待分成表")
+	@DeleteMapping("/{ids}")
+    public R remove(@PathVariable Long[] ids)
+    {
+        return R.ok(appUserLiveDividedService.deleteAppUserLiveDividedByIds(ids));
+    }
+}

+ 115 - 0
game-business/src/main/java/com/game/business/controller/AppUserLiveDividedRecordController.java

@@ -0,0 +1,115 @@
+package com.game.business.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.game.common.core.domain.R;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.game.common.annotation.Log;
+import com.game.common.core.controller.BaseController;
+import com.game.common.core.domain.AjaxResult;
+import com.game.common.enums.BusinessType;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.game.business.domain.AppUserLiveDividedRecord;
+import com.game.business.service.IAppUserLiveDividedRecordService;
+import com.game.common.utils.poi.ExcelUtil;
+import com.game.common.core.page.TableDataInfo;
+
+/**
+ * 直播分成记录表Controller
+ * 
+ * @author game
+ * @date 2024-06-30
+ */
+@RestController
+@RequestMapping("/business/record")
+@Api(value = "AppUserLiveDividedRecordController", description = "直播分成记录表接口", tags = {"直播分成记录表"})
+public class AppUserLiveDividedRecordController extends BaseController
+{
+    @Autowired
+    private IAppUserLiveDividedRecordService appUserLiveDividedRecordService;
+
+    /**
+     * 查询直播分成记录表列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:list')")
+    @GetMapping("/list")
+    @ApiOperation(value = "查询直播分成记录表列表", notes = "获取直播分成记录表列表")
+    public TableDataInfo<AppUserLiveDividedRecord> list(AppUserLiveDividedRecord appUserLiveDividedRecord)
+    {
+        startPage();
+        List<AppUserLiveDividedRecord> list = appUserLiveDividedRecordService.selectAppUserLiveDividedRecordList(appUserLiveDividedRecord);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出直播分成记录表列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:export')")
+    @Log(title = "直播分成记录表", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    @ApiOperation(value = "导出直播分成记录表列表", notes = "导出直播分成记录表列表")
+    public void export(HttpServletResponse response, AppUserLiveDividedRecord appUserLiveDividedRecord)
+    {
+        List<AppUserLiveDividedRecord> list = appUserLiveDividedRecordService.selectAppUserLiveDividedRecordList(appUserLiveDividedRecord);
+        ExcelUtil<AppUserLiveDividedRecord> util = new ExcelUtil<AppUserLiveDividedRecord>(AppUserLiveDividedRecord.class);
+        util.exportExcel(response, list, "直播分成记录表数据");
+    }
+
+    /**
+     * 获取直播分成记录表详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:query')")
+    @GetMapping(value = "/{id}")
+    @ApiOperation(value = "获取直播分成记录表详细信息", notes = "获取直播分成记录表详细信息")
+    public R<AppUserLiveDividedRecord> getInfo(@PathVariable("id") Long id)
+    {
+        return R.ok(appUserLiveDividedRecordService.selectAppUserLiveDividedRecordById(id));
+    }
+
+    /**
+     * 新增直播分成记录表
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:add')")
+    @Log(title = "直播分成记录表", businessType = BusinessType.INSERT)
+    @ApiOperation(value = "新增直播分成记录表", notes = "新增直播分成记录表")
+    @PostMapping
+    public R add(@RequestBody AppUserLiveDividedRecord appUserLiveDividedRecord)
+    {
+        return R.ok(appUserLiveDividedRecordService.insertAppUserLiveDividedRecord(appUserLiveDividedRecord));
+    }
+
+    /**
+     * 修改直播分成记录表
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:edit')")
+    @Log(title = "直播分成记录表", businessType = BusinessType.UPDATE)
+    @ApiOperation(value = "修改直播分成记录表", notes = "修改直播分成记录表")
+    @PutMapping
+    public R edit(@RequestBody AppUserLiveDividedRecord appUserLiveDividedRecord)
+    {
+        return R.ok(appUserLiveDividedRecordService.updateAppUserLiveDividedRecord(appUserLiveDividedRecord));
+    }
+
+    /**
+     * 删除直播分成记录表
+     */
+    @PreAuthorize("@ss.hasPermi('business:record:remove')")
+    @Log(title = "直播分成记录表", businessType = BusinessType.DELETE)
+    @ApiOperation(value = "删除直播分成记录表", notes = "删除直播分成记录表")
+	@DeleteMapping("/{ids}")
+    public R remove(@PathVariable Long[] ids)
+    {
+        return R.ok(appUserLiveDividedRecordService.deleteAppUserLiveDividedRecordByIds(ids));
+    }
+}

+ 76 - 0
game-business/src/main/java/com/game/business/domain/AppUserLiveDivided.java

@@ -0,0 +1,76 @@
+package com.game.business.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.game.common.annotation.Excel;
+import com.game.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModelProperty;
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+/**
+ * 直播待分成表对象 app_user_live_divided
+ *
+ * @author game
+ * @date 2024-06-30
+ */
+@ApiModel(value = "app_user_live_divided", description = "直播待分成表")
+@TableName(value= "app_user_live_divided")
+@Data
+public class AppUserLiveDivided
+        {
+private static final long serialVersionUID=1L;
+
+    /**  */
+    @ApiModelProperty(value = "")
+    @TableId(value = "id" , type = IdType.AUTO)
+    private Long id;
+
+    /** 用户id */
+    @ApiModelProperty(value = "用户id")
+    @Excel(name = "用户id")
+    @TableField(value = "user_id")
+    private Long userId;
+
+    /** 金额 */
+    @ApiModelProperty(value = "金额")
+    @Excel(name = "金额")
+    @TableField(value = "money")
+    private BigDecimal money;
+
+    /** 货币类型 1:人民币 2:金币 3:映票 4:余额 */
+    @ApiModelProperty(value = "货币类型 1:人民币 2:金币 3:映票 4:余额")
+    @Excel(name = "货币类型 1:人民币 2:金币 3:映票 4:余额")
+    @TableField(value = "currency_type")
+    private Long currencyType;
+
+    /** 交易关联id  */
+    @ApiModelProperty(value = "交易关联id ")
+    @Excel(name = "交易关联id ")
+    @TableField(value = "other_id")
+    private Long otherId;
+
+    /** 状态 0:未发  1:已发  */
+    @ApiModelProperty(value = "状态 0:未发  1:已发 ")
+    @Excel(name = "状态 0:未发  1:已发 ")
+    @TableField(value = "status")
+    private Long status;
+
+    /** 创建时间 */
+    @ApiModelProperty(value = "创建时间")
+    @TableField(value = "create_time")
+    private Date createTime;
+
+    /** 更新时间 */
+    @ApiModelProperty(value = "更新时间")
+    @TableField(value = "update_time")
+    private Date updateTime;
+
+}

+ 69 - 0
game-business/src/main/java/com/game/business/domain/AppUserLiveDividedRecord.java

@@ -0,0 +1,69 @@
+package com.game.business.domain;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.game.common.annotation.Excel;
+import com.game.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModelProperty;
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+/**
+ * 直播分成记录表对象 app_user_live_divided_record
+ *
+ * @author game
+ * @date 2024-06-30
+ */
+@ApiModel(value = "app_user_live_divided_record", description = "直播分成记录表")
+@TableName(value= "app_user_live_divided_record")
+@Data
+public class AppUserLiveDividedRecord
+        {
+private static final long serialVersionUID=1L;
+
+    /** $column.columnComment */
+    @ApiModelProperty(value = "$column.columnComment")
+    @TableId(value = "id" , type = IdType.AUTO)
+    private Long id;
+
+    /** 用户id */
+    @ApiModelProperty(value = "用户id")
+    @Excel(name = "用户id")
+    @TableField(value = "user_id")
+    private Long userId;
+
+    /** 发放比例 */
+    @ApiModelProperty(value = "发放比例")
+    @Excel(name = "发放比例")
+    @TableField(value = "rate")
+    private BigDecimal rate;
+
+    /** 直播待分成id */
+    @ApiModelProperty(value = "直播待分成id")
+    @Excel(name = "直播待分成id")
+    @TableField(value = "user_live_divided_id")
+    private Long userLiveDividedId;
+
+    /** 金额 */
+    @ApiModelProperty(value = "金额")
+    @Excel(name = "金额")
+    @TableField(value = "money")
+    private BigDecimal money;
+
+    /** 货币类型 1:人民币 2:金币 3:映票 4:余额 */
+    @ApiModelProperty(value = "货币类型 1:人民币 2:金币 3:映票 4:余额")
+    @Excel(name = "货币类型 1:人民币 2:金币 3:映票 4:余额")
+    @TableField(value = "currency_type")
+    private Long currencyType;
+
+    /** 创建时间 */
+    @ApiModelProperty(value = "创建时间")
+    @TableField(value = "create_time")
+    private Date createTime;
+
+}

+ 61 - 0
game-business/src/main/java/com/game/business/mapper/AppUserLiveDividedMapper.java

@@ -0,0 +1,61 @@
+package com.game.business.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.game.business.domain.AppUserLiveDivided;
+
+/**
+ * 直播待分成表Mapper接口
+ *
+ * @author game
+ * @date 2024-06-30
+ */
+public interface AppUserLiveDividedMapper extends BaseMapper<AppUserLiveDivided> {
+    /**
+     * 查询直播待分成表
+     *
+     * @param id 直播待分成表主键
+     * @return 直播待分成表
+     */
+    public AppUserLiveDivided selectAppUserLiveDividedById(Long id);
+
+    /**
+     * 查询直播待分成表列表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 直播待分成表集合
+     */
+    public List<AppUserLiveDivided> selectAppUserLiveDividedList(AppUserLiveDivided appUserLiveDivided);
+
+    /**
+     * 新增直播待分成表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 结果
+     */
+    public int insertAppUserLiveDivided(AppUserLiveDivided appUserLiveDivided);
+
+    /**
+     * 修改直播待分成表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 结果
+     */
+    public int updateAppUserLiveDivided(AppUserLiveDivided appUserLiveDivided);
+
+    /**
+     * 删除直播待分成表
+     *
+     * @param id 直播待分成表主键
+     * @return 结果
+     */
+    public int deleteAppUserLiveDividedById(Long id);
+
+    /**
+     * 批量删除直播待分成表
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteAppUserLiveDividedByIds(Long[] ids);
+}

+ 61 - 0
game-business/src/main/java/com/game/business/mapper/AppUserLiveDividedRecordMapper.java

@@ -0,0 +1,61 @@
+package com.game.business.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.game.business.domain.AppUserLiveDividedRecord;
+
+/**
+ * 直播分成记录表Mapper接口
+ *
+ * @author game
+ * @date 2024-06-30
+ */
+public interface AppUserLiveDividedRecordMapper extends BaseMapper<AppUserLiveDividedRecord> {
+    /**
+     * 查询直播分成记录表
+     *
+     * @param id 直播分成记录表主键
+     * @return 直播分成记录表
+     */
+    public AppUserLiveDividedRecord selectAppUserLiveDividedRecordById(Long id);
+
+    /**
+     * 查询直播分成记录表列表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 直播分成记录表集合
+     */
+    public List<AppUserLiveDividedRecord> selectAppUserLiveDividedRecordList(AppUserLiveDividedRecord appUserLiveDividedRecord);
+
+    /**
+     * 新增直播分成记录表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 结果
+     */
+    public int insertAppUserLiveDividedRecord(AppUserLiveDividedRecord appUserLiveDividedRecord);
+
+    /**
+     * 修改直播分成记录表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 结果
+     */
+    public int updateAppUserLiveDividedRecord(AppUserLiveDividedRecord appUserLiveDividedRecord);
+
+    /**
+     * 删除直播分成记录表
+     *
+     * @param id 直播分成记录表主键
+     * @return 结果
+     */
+    public int deleteAppUserLiveDividedRecordById(Long id);
+
+    /**
+     * 批量删除直播分成记录表
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteAppUserLiveDividedRecordByIds(Long[] ids);
+}

+ 61 - 0
game-business/src/main/java/com/game/business/service/IAppUserLiveDividedRecordService.java

@@ -0,0 +1,61 @@
+package com.game.business.service;
+
+import java.util.List;
+import com.game.business.domain.AppUserLiveDividedRecord;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 直播分成记录表Service接口
+ *
+ * @author game
+ * @date 2024-06-30
+ */
+public interface IAppUserLiveDividedRecordService extends IService<AppUserLiveDividedRecord> {
+    /**
+     * 查询直播分成记录表
+     *
+     * @param id 直播分成记录表主键
+     * @return 直播分成记录表
+     */
+    public AppUserLiveDividedRecord selectAppUserLiveDividedRecordById(Long id);
+
+    /**
+     * 查询直播分成记录表列表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 直播分成记录表集合
+     */
+    public List<AppUserLiveDividedRecord> selectAppUserLiveDividedRecordList(AppUserLiveDividedRecord appUserLiveDividedRecord);
+
+    /**
+     * 新增直播分成记录表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 结果
+     */
+    public int insertAppUserLiveDividedRecord(AppUserLiveDividedRecord appUserLiveDividedRecord);
+
+    /**
+     * 修改直播分成记录表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 结果
+     */
+    public int updateAppUserLiveDividedRecord(AppUserLiveDividedRecord appUserLiveDividedRecord);
+
+    /**
+     * 批量删除直播分成记录表
+     *
+     * @param ids 需要删除的直播分成记录表主键集合
+     * @return 结果
+     */
+    public int deleteAppUserLiveDividedRecordByIds(Long[] ids);
+
+    /**
+     * 删除直播分成记录表信息
+     *
+     * @param id 直播分成记录表主键
+     * @return 结果
+     */
+    public int deleteAppUserLiveDividedRecordById(Long id);
+}

+ 61 - 0
game-business/src/main/java/com/game/business/service/IAppUserLiveDividedService.java

@@ -0,0 +1,61 @@
+package com.game.business.service;
+
+import java.util.List;
+import com.game.business.domain.AppUserLiveDivided;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 直播待分成表Service接口
+ *
+ * @author game
+ * @date 2024-06-30
+ */
+public interface IAppUserLiveDividedService extends IService<AppUserLiveDivided> {
+    /**
+     * 查询直播待分成表
+     *
+     * @param id 直播待分成表主键
+     * @return 直播待分成表
+     */
+    public AppUserLiveDivided selectAppUserLiveDividedById(Long id);
+
+    /**
+     * 查询直播待分成表列表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 直播待分成表集合
+     */
+    public List<AppUserLiveDivided> selectAppUserLiveDividedList(AppUserLiveDivided appUserLiveDivided);
+
+    /**
+     * 新增直播待分成表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 结果
+     */
+    public int insertAppUserLiveDivided(AppUserLiveDivided appUserLiveDivided);
+
+    /**
+     * 修改直播待分成表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 结果
+     */
+    public int updateAppUserLiveDivided(AppUserLiveDivided appUserLiveDivided);
+
+    /**
+     * 批量删除直播待分成表
+     *
+     * @param ids 需要删除的直播待分成表主键集合
+     * @return 结果
+     */
+    public int deleteAppUserLiveDividedByIds(Long[] ids);
+
+    /**
+     * 删除直播待分成表信息
+     *
+     * @param id 直播待分成表主键
+     * @return 结果
+     */
+    public int deleteAppUserLiveDividedById(Long id);
+}

+ 97 - 0
game-business/src/main/java/com/game/business/service/impl/AppUserLiveDividedRecordServiceImpl.java

@@ -0,0 +1,97 @@
+package com.game.business.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import java.util.List;
+        import com.game.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.game.business.mapper.AppUserLiveDividedRecordMapper;
+import com.game.business.domain.AppUserLiveDividedRecord;
+import com.game.business.service.IAppUserLiveDividedRecordService;
+import com.game.common.annotation.DataSource;
+import com.game.common.enums.DataSourceType;
+
+/**
+ * 直播分成记录表Service业务层处理
+ *
+ * @author game
+ * @date 2024-06-30
+ */
+@Service
+public class AppUserLiveDividedRecordServiceImpl extends ServiceImpl<AppUserLiveDividedRecordMapper, AppUserLiveDividedRecord> implements IAppUserLiveDividedRecordService {
+    @Autowired
+    private AppUserLiveDividedRecordMapper appUserLiveDividedRecordMapper;
+
+    /**
+     * 查询直播分成记录表
+     *
+     * @param id 直播分成记录表主键
+     * @return 直播分成记录表
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public AppUserLiveDividedRecord selectAppUserLiveDividedRecordById(Long id) {
+        return appUserLiveDividedRecordMapper.selectAppUserLiveDividedRecordById(id);
+    }
+
+    /**
+     * 查询直播分成记录表列表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 直播分成记录表
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public List<AppUserLiveDividedRecord> selectAppUserLiveDividedRecordList(AppUserLiveDividedRecord appUserLiveDividedRecord) {
+        return appUserLiveDividedRecordMapper.selectAppUserLiveDividedRecordList(appUserLiveDividedRecord);
+    }
+
+    /**
+     * 新增直播分成记录表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 结果
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public int insertAppUserLiveDividedRecord(AppUserLiveDividedRecord appUserLiveDividedRecord) {
+                appUserLiveDividedRecord.setCreateTime(DateUtils.getNowDate());
+            return appUserLiveDividedRecordMapper.insertAppUserLiveDividedRecord(appUserLiveDividedRecord);
+    }
+
+    /**
+     * 修改直播分成记录表
+     *
+     * @param appUserLiveDividedRecord 直播分成记录表
+     * @return 结果
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public int updateAppUserLiveDividedRecord(AppUserLiveDividedRecord appUserLiveDividedRecord) {
+        return appUserLiveDividedRecordMapper.updateAppUserLiveDividedRecord(appUserLiveDividedRecord);
+    }
+
+    /**
+     * 批量删除直播分成记录表
+     *
+     * @param ids 需要删除的直播分成记录表主键
+     * @return 结果
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public int deleteAppUserLiveDividedRecordByIds(Long[] ids) {
+        return appUserLiveDividedRecordMapper.deleteAppUserLiveDividedRecordByIds(ids);
+    }
+
+    /**
+     * 删除直播分成记录表信息
+     *
+     * @param id 直播分成记录表主键
+     * @return 结果
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public int deleteAppUserLiveDividedRecordById(Long id) {
+        return appUserLiveDividedRecordMapper.deleteAppUserLiveDividedRecordById(id);
+    }
+}

+ 98 - 0
game-business/src/main/java/com/game/business/service/impl/AppUserLiveDividedServiceImpl.java

@@ -0,0 +1,98 @@
+package com.game.business.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import java.util.List;
+        import com.game.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.game.business.mapper.AppUserLiveDividedMapper;
+import com.game.business.domain.AppUserLiveDivided;
+import com.game.business.service.IAppUserLiveDividedService;
+import com.game.common.annotation.DataSource;
+import com.game.common.enums.DataSourceType;
+
+/**
+ * 直播待分成表Service业务层处理
+ *
+ * @author game
+ * @date 2024-06-30
+ */
+@Service
+public class AppUserLiveDividedServiceImpl extends ServiceImpl<AppUserLiveDividedMapper, AppUserLiveDivided> implements IAppUserLiveDividedService {
+    @Autowired
+    private AppUserLiveDividedMapper appUserLiveDividedMapper;
+
+    /**
+     * 查询直播待分成表
+     *
+     * @param id 直播待分成表主键
+     * @return 直播待分成表
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public AppUserLiveDivided selectAppUserLiveDividedById(Long id) {
+        return appUserLiveDividedMapper.selectAppUserLiveDividedById(id);
+    }
+
+    /**
+     * 查询直播待分成表列表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 直播待分成表
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public List<AppUserLiveDivided> selectAppUserLiveDividedList(AppUserLiveDivided appUserLiveDivided) {
+        return appUserLiveDividedMapper.selectAppUserLiveDividedList(appUserLiveDivided);
+    }
+
+    /**
+     * 新增直播待分成表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 结果
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public int insertAppUserLiveDivided(AppUserLiveDivided appUserLiveDivided) {
+                appUserLiveDivided.setCreateTime(DateUtils.getNowDate());
+            return appUserLiveDividedMapper.insertAppUserLiveDivided(appUserLiveDivided);
+    }
+
+    /**
+     * 修改直播待分成表
+     *
+     * @param appUserLiveDivided 直播待分成表
+     * @return 结果
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public int updateAppUserLiveDivided(AppUserLiveDivided appUserLiveDivided) {
+                appUserLiveDivided.setUpdateTime(DateUtils.getNowDate());
+        return appUserLiveDividedMapper.updateAppUserLiveDivided(appUserLiveDivided);
+    }
+
+    /**
+     * 批量删除直播待分成表
+     *
+     * @param ids 需要删除的直播待分成表主键
+     * @return 结果
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public int deleteAppUserLiveDividedByIds(Long[] ids) {
+        return appUserLiveDividedMapper.deleteAppUserLiveDividedByIds(ids);
+    }
+
+    /**
+     * 删除直播待分成表信息
+     *
+     * @param id 直播待分成表主键
+     * @return 结果
+     */
+    @Override
+    @DataSource(DataSourceType.SLAVE)
+    public int deleteAppUserLiveDividedById(Long id) {
+        return appUserLiveDividedMapper.deleteAppUserLiveDividedById(id);
+    }
+}

+ 86 - 0
game-business/src/main/resources/mapper/business/AppUserLiveDividedMapper.xml

@@ -0,0 +1,86 @@
+<?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.game.business.mapper.AppUserLiveDividedMapper">
+    
+    <resultMap type="com.game.business.domain.AppUserLiveDivided" id="AppUserLiveDividedResult">
+        <result property="id"    column="id"    />
+        <result property="userId"    column="user_id"    />
+        <result property="money"    column="money"    />
+        <result property="currencyType"    column="currency_type"    />
+        <result property="otherId"    column="other_id"    />
+        <result property="status"    column="status"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+    </resultMap>
+
+    <sql id="selectAppUserLiveDividedVo">
+        select id, user_id, money, currency_type, other_id, status, create_time, update_time from app_user_live_divided
+    </sql>
+
+    <select id="selectAppUserLiveDividedList" parameterType="com.game.business.domain.AppUserLiveDivided" resultMap="AppUserLiveDividedResult">
+        <include refid="selectAppUserLiveDividedVo"/>
+        <where>  
+            <if test="userId != null "> and user_id = #{userId}</if>
+            <if test="money != null "> and money = #{money}</if>
+            <if test="currencyType != null "> and currency_type = #{currencyType}</if>
+            <if test="otherId != null "> and other_id = #{otherId}</if>
+            <if test="status != null "> and status = #{status}</if>
+        </where>
+    </select>
+    
+    <select id="selectAppUserLiveDividedById" parameterType="Long" resultMap="AppUserLiveDividedResult">
+        <include refid="selectAppUserLiveDividedVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertAppUserLiveDivided" parameterType="com.game.business.domain.AppUserLiveDivided">
+        insert into app_user_live_divided
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="userId != null">user_id,</if>
+            <if test="money != null">money,</if>
+            <if test="currencyType != null">currency_type,</if>
+            <if test="otherId != null">other_id,</if>
+            <if test="status != null">status,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="userId != null">#{userId},</if>
+            <if test="money != null">#{money},</if>
+            <if test="currencyType != null">#{currencyType},</if>
+            <if test="otherId != null">#{otherId},</if>
+            <if test="status != null">#{status},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateAppUserLiveDivided" parameterType="com.game.business.domain.AppUserLiveDivided">
+        update app_user_live_divided
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="userId != null">user_id = #{userId},</if>
+            <if test="money != null">money = #{money},</if>
+            <if test="currencyType != null">currency_type = #{currencyType},</if>
+            <if test="otherId != null">other_id = #{otherId},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteAppUserLiveDividedById" parameterType="Long">
+        delete from app_user_live_divided where id = #{id}
+    </delete>
+
+    <delete id="deleteAppUserLiveDividedByIds" parameterType="String">
+        delete from app_user_live_divided where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 80 - 0
game-business/src/main/resources/mapper/business/AppUserLiveDividedRecordMapper.xml

@@ -0,0 +1,80 @@
+<?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.game.business.mapper.AppUserLiveDividedRecordMapper">
+    
+    <resultMap type="com.game.business.domain.AppUserLiveDividedRecord" id="AppUserLiveDividedRecordResult">
+        <result property="id"    column="id"    />
+        <result property="userId"    column="user_id"    />
+        <result property="rate"    column="rate"    />
+        <result property="userLiveDividedId"    column="user_live_divided_id"    />
+        <result property="money"    column="money"    />
+        <result property="currencyType"    column="currency_type"    />
+        <result property="createTime"    column="create_time"    />
+    </resultMap>
+
+    <sql id="selectAppUserLiveDividedRecordVo">
+        select id, user_id, rate, user_live_divided_id, money, currency_type, create_time from app_user_live_divided_record
+    </sql>
+
+    <select id="selectAppUserLiveDividedRecordList" parameterType="com.game.business.domain.AppUserLiveDividedRecord" resultMap="AppUserLiveDividedRecordResult">
+        <include refid="selectAppUserLiveDividedRecordVo"/>
+        <where>  
+            <if test="userId != null "> and user_id = #{userId}</if>
+            <if test="rate != null "> and rate = #{rate}</if>
+            <if test="userLiveDividedId != null "> and user_live_divided_id = #{userLiveDividedId}</if>
+            <if test="money != null "> and money = #{money}</if>
+            <if test="currencyType != null "> and currency_type = #{currencyType}</if>
+        </where>
+    </select>
+    
+    <select id="selectAppUserLiveDividedRecordById" parameterType="Long" resultMap="AppUserLiveDividedRecordResult">
+        <include refid="selectAppUserLiveDividedRecordVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertAppUserLiveDividedRecord" parameterType="com.game.business.domain.AppUserLiveDividedRecord" useGeneratedKeys="true" keyProperty="id">
+        insert into app_user_live_divided_record
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="userId != null">user_id,</if>
+            <if test="rate != null">rate,</if>
+            <if test="userLiveDividedId != null">user_live_divided_id,</if>
+            <if test="money != null">money,</if>
+            <if test="currencyType != null">currency_type,</if>
+            <if test="createTime != null">create_time,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="userId != null">#{userId},</if>
+            <if test="rate != null">#{rate},</if>
+            <if test="userLiveDividedId != null">#{userLiveDividedId},</if>
+            <if test="money != null">#{money},</if>
+            <if test="currencyType != null">#{currencyType},</if>
+            <if test="createTime != null">#{createTime},</if>
+         </trim>
+    </insert>
+
+    <update id="updateAppUserLiveDividedRecord" parameterType="com.game.business.domain.AppUserLiveDividedRecord">
+        update app_user_live_divided_record
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="userId != null">user_id = #{userId},</if>
+            <if test="rate != null">rate = #{rate},</if>
+            <if test="userLiveDividedId != null">user_live_divided_id = #{userLiveDividedId},</if>
+            <if test="money != null">money = #{money},</if>
+            <if test="currencyType != null">currency_type = #{currencyType},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteAppUserLiveDividedRecordById" parameterType="Long">
+        delete from app_user_live_divided_record where id = #{id}
+    </delete>
+
+    <delete id="deleteAppUserLiveDividedRecordByIds" parameterType="String">
+        delete from app_user_live_divided_record where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>