Browse Source

新增 平台资金明细表,订单冻结表,志愿者账户表,志愿者账户明细表

wangwl 1 month ago
parent
commit
d09bf6fee0
26 changed files with 1958 additions and 12 deletions
  1. 115 0
      leromro-core/src/main/java/com/leromro/core/controller/OrderFrozenFundsController.java
  2. 115 0
      leromro-core/src/main/java/com/leromro/core/controller/PlatformFinanceController.java
  3. 115 0
      leromro-core/src/main/java/com/leromro/core/controller/VolunteerAccountChangeController.java
  4. 67 0
      leromro-core/src/main/java/com/leromro/core/controller/VolunteerAccountController.java
  5. 71 0
      leromro-core/src/main/java/com/leromro/core/domain/OrderFrozenFunds.java
  6. 66 0
      leromro-core/src/main/java/com/leromro/core/domain/PlatformFinance.java
  7. 57 0
      leromro-core/src/main/java/com/leromro/core/domain/VolunteerAccount.java
  8. 61 0
      leromro-core/src/main/java/com/leromro/core/domain/VolunteerAccountChange.java
  9. 62 0
      leromro-core/src/main/java/com/leromro/core/mapper/OrderFrozenFundsMapper.java
  10. 62 0
      leromro-core/src/main/java/com/leromro/core/mapper/PlatformFinanceMapper.java
  11. 62 0
      leromro-core/src/main/java/com/leromro/core/mapper/VolunteerAccountChangeMapper.java
  12. 62 0
      leromro-core/src/main/java/com/leromro/core/mapper/VolunteerAccountMapper.java
  13. 62 0
      leromro-core/src/main/java/com/leromro/core/service/IOrderFrozenFundsService.java
  14. 62 0
      leromro-core/src/main/java/com/leromro/core/service/IPlatformFinanceService.java
  15. 62 0
      leromro-core/src/main/java/com/leromro/core/service/IVolunteerAccountChangeService.java
  16. 62 0
      leromro-core/src/main/java/com/leromro/core/service/IVolunteerAccountService.java
  17. 96 0
      leromro-core/src/main/java/com/leromro/core/service/impl/OrderFrozenFundsServiceImpl.java
  18. 96 0
      leromro-core/src/main/java/com/leromro/core/service/impl/PlatformFinanceServiceImpl.java
  19. 96 0
      leromro-core/src/main/java/com/leromro/core/service/impl/VolunteerAccountChangeServiceImpl.java
  20. 96 0
      leromro-core/src/main/java/com/leromro/core/service/impl/VolunteerAccountServiceImpl.java
  21. 106 0
      leromro-core/src/main/resources/mapper/core/OrderFrozenFundsMapper.xml
  22. 101 0
      leromro-core/src/main/resources/mapper/core/PlatformFinanceMapper.xml
  23. 96 0
      leromro-core/src/main/resources/mapper/core/VolunteerAccountChangeMapper.xml
  24. 96 0
      leromro-core/src/main/resources/mapper/core/VolunteerAccountMapper.xml
  25. 2 2
      leromro-generator/src/main/resources/vm/java/controller.java.vm
  26. 10 10
      leromro-generator/src/main/resources/vm/java/domain.java.vm

+ 115 - 0
leromro-core/src/main/java/com/leromro/core/controller/OrderFrozenFundsController.java

@@ -0,0 +1,115 @@
+package com.leromro.core.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.leromro.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.leromro.common.annotation.Log;
+import com.leromro.common.core.controller.BaseController;
+import com.leromro.common.core.domain.AjaxResult;
+import com.leromro.common.enums.BusinessType;
+import com.leromro.core.domain.OrderFrozenFunds;
+import com.leromro.core.service.IOrderFrozenFundsService;
+import com.leromro.common.utils.poi.ExcelUtil;
+import com.leromro.common.core.page.TableDataInfo;
+
+/**
+ * 订单资金冻结Controller
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@RestController
+@Api(tags = "订单资金冻结")
+@RequestMapping("/core/volunteer/order-frozen")
+public class OrderFrozenFundsController extends BaseController
+{
+    @Autowired
+    private IOrderFrozenFundsService orderFrozenFundsService;
+
+    /**
+     * 查询订单资金冻结列表
+     */
+    @ApiOperation("查询订单资金冻结列表")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/order-frozen:list')")
+    @GetMapping("/list")
+    public TableDataInfo<OrderFrozenFunds> list(OrderFrozenFunds orderFrozenFunds)
+    {
+        startPage();
+        List<OrderFrozenFunds> list = orderFrozenFundsService.selectOrderFrozenFundsList(orderFrozenFunds);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出订单资金冻结列表
+     */
+    @ApiOperation("导出订单资金冻结列表")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/order-frozen:export')")
+    @Log(title = "订单资金冻结", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, OrderFrozenFunds orderFrozenFunds)
+    {
+        List<OrderFrozenFunds> list = orderFrozenFundsService.selectOrderFrozenFundsList(orderFrozenFunds);
+        ExcelUtil<OrderFrozenFunds> util = new ExcelUtil<OrderFrozenFunds>(OrderFrozenFunds.class);
+        util.exportExcel(response, list, "订单资金冻结数据");
+    }
+
+    /**
+     * 获取订单资金冻结详细信息
+     */
+    @ApiOperation("获取订单资金冻结详细信息")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/order-frozen:query')")
+    @GetMapping(value = "/{orderFrozenFundsId}")
+    public R<OrderFrozenFunds> getInfo(@PathVariable("orderFrozenFundsId") Long orderFrozenFundsId)
+    {
+        return R.ok(orderFrozenFundsService.selectOrderFrozenFundsByOrderFrozenFundsId(orderFrozenFundsId));
+    }
+
+    /**
+     * 新增订单资金冻结
+     */
+    @ApiOperation("新增订单资金冻结")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/order-frozen:add')")
+    @Log(title = "订单资金冻结", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody OrderFrozenFunds orderFrozenFunds)
+    {
+        return toAjax(orderFrozenFundsService.insertOrderFrozenFunds(orderFrozenFunds));
+    }
+
+    /**
+     * 修改订单资金冻结
+     */
+    @ApiOperation("修改订单资金冻结")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/order-frozen:edit')")
+    @Log(title = "订单资金冻结", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody OrderFrozenFunds orderFrozenFunds)
+    {
+        return toAjax(orderFrozenFundsService.updateOrderFrozenFunds(orderFrozenFunds));
+    }
+
+    /**
+     * 删除订单资金冻结
+     */
+    @ApiOperation("删除订单资金冻结")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/order-frozen:remove')")
+    @Log(title = "订单资金冻结", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{orderFrozenFundsIds}")
+    public R<Integer> remove(@PathVariable Long[] orderFrozenFundsIds)
+    {
+        return R.ok(orderFrozenFundsService.deleteOrderFrozenFundsByOrderFrozenFundsIds(orderFrozenFundsIds));
+    }
+}

+ 115 - 0
leromro-core/src/main/java/com/leromro/core/controller/PlatformFinanceController.java

@@ -0,0 +1,115 @@
+package com.leromro.core.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.leromro.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.leromro.common.annotation.Log;
+import com.leromro.common.core.controller.BaseController;
+import com.leromro.common.core.domain.AjaxResult;
+import com.leromro.common.enums.BusinessType;
+import com.leromro.core.domain.PlatformFinance;
+import com.leromro.core.service.IPlatformFinanceService;
+import com.leromro.common.utils.poi.ExcelUtil;
+import com.leromro.common.core.page.TableDataInfo;
+
+/**
+ * 平台资金流水Controller
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@RestController
+@Api(tags = "平台资金流水")
+@RequestMapping("/core/platform-finance")
+public class PlatformFinanceController extends BaseController
+{
+    @Autowired
+    private IPlatformFinanceService platformFinanceService;
+
+    /**
+     * 查询平台资金流水列表
+     */
+    @ApiOperation("查询平台资金流水列表")
+    @PreAuthorize("@ss.hasPermi('core:platform-finance:list')")
+    @GetMapping("/list")
+    public TableDataInfo<PlatformFinance> list(PlatformFinance platformFinance)
+    {
+        startPage();
+        List<PlatformFinance> list = platformFinanceService.selectPlatformFinanceList(platformFinance);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出平台资金流水列表
+     */
+    @ApiOperation("导出平台资金流水列表")
+    @PreAuthorize("@ss.hasPermi('core:platform-finance:export')")
+    @Log(title = "平台资金流水", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PlatformFinance platformFinance)
+    {
+        List<PlatformFinance> list = platformFinanceService.selectPlatformFinanceList(platformFinance);
+        ExcelUtil<PlatformFinance> util = new ExcelUtil<PlatformFinance>(PlatformFinance.class);
+        util.exportExcel(response, list, "平台资金流水数据");
+    }
+
+    /**
+     * 获取平台资金流水详细信息
+     */
+    @ApiOperation("获取平台资金流水详细信息")
+    @PreAuthorize("@ss.hasPermi('core:platform-finance:query')")
+    @GetMapping(value = "/{platformFinanceId}")
+    public R<PlatformFinance> getInfo(@PathVariable("platformFinanceId") Long platformFinanceId)
+    {
+        return R.ok(platformFinanceService.selectPlatformFinanceByPlatformFinanceId(platformFinanceId));
+    }
+
+    /**
+     * 新增平台资金流水
+     */
+    @ApiOperation("新增平台资金流水")
+    @PreAuthorize("@ss.hasPermi('core:platform-finance:add')")
+    @Log(title = "平台资金流水", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PlatformFinance platformFinance)
+    {
+        return toAjax(platformFinanceService.insertPlatformFinance(platformFinance));
+    }
+
+    /**
+     * 修改平台资金流水
+     */
+    @ApiOperation("修改平台资金流水")
+    @PreAuthorize("@ss.hasPermi('core:platform-finance:edit')")
+    @Log(title = "平台资金流水", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody PlatformFinance platformFinance)
+    {
+        return toAjax(platformFinanceService.updatePlatformFinance(platformFinance));
+    }
+
+    /**
+     * 删除平台资金流水
+     */
+    @ApiOperation("删除平台资金流水")
+    @PreAuthorize("@ss.hasPermi('core:platform-finance:remove')")
+    @Log(title = "平台资金流水", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{platformFinanceIds}")
+    public R<Integer> remove(@PathVariable Long[] platformFinanceIds)
+    {
+        return R.ok(platformFinanceService.deletePlatformFinanceByPlatformFinanceIds(platformFinanceIds));
+    }
+}

+ 115 - 0
leromro-core/src/main/java/com/leromro/core/controller/VolunteerAccountChangeController.java

@@ -0,0 +1,115 @@
+package com.leromro.core.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.leromro.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.leromro.common.annotation.Log;
+import com.leromro.common.core.controller.BaseController;
+import com.leromro.common.core.domain.AjaxResult;
+import com.leromro.common.enums.BusinessType;
+import com.leromro.core.domain.VolunteerAccountChange;
+import com.leromro.core.service.IVolunteerAccountChangeService;
+import com.leromro.common.utils.poi.ExcelUtil;
+import com.leromro.common.core.page.TableDataInfo;
+
+/**
+ * 志愿者账号变动明细Controller
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@RestController
+@Api(tags = "志愿者账号变动明细")
+@RequestMapping("/core/volunteer/account-change")
+public class VolunteerAccountChangeController extends BaseController
+{
+    @Autowired
+    private IVolunteerAccountChangeService volunteerAccountChangeService;
+
+    /**
+     * 查询志愿者账号变动明细列表
+     */
+    @ApiOperation("查询志愿者账号变动明细列表")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/account-change:list')")
+    @GetMapping("/list")
+    public TableDataInfo<VolunteerAccountChange> list(VolunteerAccountChange volunteerAccountChange)
+    {
+        startPage();
+        List<VolunteerAccountChange> list = volunteerAccountChangeService.selectVolunteerAccountChangeList(volunteerAccountChange);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出志愿者账号变动明细列表
+     */
+    @ApiOperation("导出志愿者账号变动明细列表")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/account-change:export')")
+    @Log(title = "志愿者账号变动明细", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, VolunteerAccountChange volunteerAccountChange)
+    {
+        List<VolunteerAccountChange> list = volunteerAccountChangeService.selectVolunteerAccountChangeList(volunteerAccountChange);
+        ExcelUtil<VolunteerAccountChange> util = new ExcelUtil<VolunteerAccountChange>(VolunteerAccountChange.class);
+        util.exportExcel(response, list, "志愿者账号变动明细数据");
+    }
+
+    /**
+     * 获取志愿者账号变动明细详细信息
+     */
+    @ApiOperation("获取志愿者账号变动明细详细信息")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/account-change:query')")
+    @GetMapping(value = "/{volunteerAccountChangeId}")
+    public R<VolunteerAccountChange> getInfo(@PathVariable("volunteerAccountChangeId") Long volunteerAccountChangeId)
+    {
+        return R.ok(volunteerAccountChangeService.selectVolunteerAccountChangeByVolunteerAccountChangeId(volunteerAccountChangeId));
+    }
+
+    /**
+     * 新增志愿者账号变动明细
+     */
+    @ApiOperation("新增志愿者账号变动明细")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/account-change:add')")
+    @Log(title = "志愿者账号变动明细", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody VolunteerAccountChange volunteerAccountChange)
+    {
+        return toAjax(volunteerAccountChangeService.insertVolunteerAccountChange(volunteerAccountChange));
+    }
+
+    /**
+     * 修改志愿者账号变动明细
+     */
+    @ApiOperation("修改志愿者账号变动明细")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/account-change:edit')")
+    @Log(title = "志愿者账号变动明细", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody VolunteerAccountChange volunteerAccountChange)
+    {
+        return toAjax(volunteerAccountChangeService.updateVolunteerAccountChange(volunteerAccountChange));
+    }
+
+    /**
+     * 删除志愿者账号变动明细
+     */
+    @ApiOperation("删除志愿者账号变动明细")
+    @PreAuthorize("@ss.hasPermi('core:volunteer/account-change:remove')")
+    @Log(title = "志愿者账号变动明细", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{volunteerAccountChangeIds}")
+    public R<Integer> remove(@PathVariable Long[] volunteerAccountChangeIds)
+    {
+        return R.ok(volunteerAccountChangeService.deleteVolunteerAccountChangeByVolunteerAccountChangeIds(volunteerAccountChangeIds));
+    }
+}

+ 67 - 0
leromro-core/src/main/java/com/leromro/core/controller/VolunteerAccountController.java

@@ -0,0 +1,67 @@
+package com.leromro.core.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.leromro.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.leromro.common.annotation.Log;
+import com.leromro.common.core.controller.BaseController;
+import com.leromro.common.core.domain.AjaxResult;
+import com.leromro.common.enums.BusinessType;
+import com.leromro.core.domain.VolunteerAccount;
+import com.leromro.core.service.IVolunteerAccountService;
+import com.leromro.common.utils.poi.ExcelUtil;
+import com.leromro.common.core.page.TableDataInfo;
+
+/**
+ * 志愿者账户Controller
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@RestController
+@Api(tags = "志愿者账户")
+@RequestMapping("/core/volunteer/account")
+public class VolunteerAccountController extends BaseController
+{
+    @Autowired
+    private IVolunteerAccountService volunteerAccountService;
+
+    /**
+     * 查询志愿者账户列表
+     */
+    @ApiOperation("查询志愿者账户列表")
+    @GetMapping("/list")
+    public TableDataInfo<VolunteerAccount> list(VolunteerAccount volunteerAccount)
+    {
+        startPage();
+        List<VolunteerAccount> list = volunteerAccountService.selectVolunteerAccountList(volunteerAccount);
+        return getDataTable(list);
+    }
+
+
+    /**
+     * 获取志愿者账户详细信息
+     */
+    @ApiOperation("获取志愿者账户详细信息")
+    @GetMapping(value = "/{volunteerAccountId}")
+    public R<VolunteerAccount> getInfo(@PathVariable("volunteerAccountId") Long volunteerAccountId)
+    {
+        return R.ok(volunteerAccountService.selectVolunteerAccountByVolunteerAccountId(volunteerAccountId));
+    }
+
+
+
+}

+ 71 - 0
leromro-core/src/main/java/com/leromro/core/domain/OrderFrozenFunds.java

@@ -0,0 +1,71 @@
+package com.leromro.core.domain;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.*;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.leromro.common.annotation.Excel;
+import com.leromro.common.core.domain.BaseEntity;
+
+/**
+ * 订单资金冻结对象 l_order_frozen_funds
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@TableName("l_order_frozen_funds")
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "OrderFrozenFunds", description = "订单资金冻结")
+public class OrderFrozenFunds extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    @TableId(type = IdType.AUTO)
+    private Long orderFrozenFundsId;
+
+    /** 志愿者收入 */
+    @TableField("volunteer_money")
+    @ApiModelProperty("志愿者收入")
+    private BigDecimal volunteerMoney;
+
+    /** 平台佣金 */
+    @TableField("platform_brokerage")
+    @ApiModelProperty("平台佣金")
+    private BigDecimal platformBrokerage;
+
+    /** 评分奖励 */
+    @TableField("score_money")
+    @ApiModelProperty("评分奖励")
+    private BigDecimal scoreMoney;
+
+    /** 志愿者订单金额 */
+    @TableField("second_order_money")
+    @ApiModelProperty("志愿者订单金额")
+    private BigDecimal secondOrderMoney;
+
+    /** 冻结状态 0冻结中1已解冻 */
+    @TableField("status")
+    @ApiModelProperty("冻结状态 0冻结中1已解冻")
+    private Long status;
+
+    /** 志愿者订单id */
+    @TableField("second_order_id")
+    @ApiModelProperty("志愿者订单id")
+    private Long secondOrderId;
+
+    /** 志愿者id */
+    @TableField("volunteer_id")
+    @ApiModelProperty("志愿者id")
+    private Long volunteerId;
+
+
+}

+ 66 - 0
leromro-core/src/main/java/com/leromro/core/domain/PlatformFinance.java

@@ -0,0 +1,66 @@
+package com.leromro.core.domain;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.*;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.leromro.common.annotation.Excel;
+import com.leromro.common.core.domain.BaseEntity;
+
+/**
+ * 平台资金流水对象 l_platform_finance
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@TableName("l_platform_finance")
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "PlatformFinance", description = "平台资金流水")
+public class PlatformFinance extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    @TableId(type = IdType.AUTO)
+    private Long platformFinanceId;
+
+    /** 变更金额 */
+    @TableField("change_money")
+    @ApiModelProperty("变更金额")
+    private BigDecimal changeMoney;
+
+    /** 变更类型 1增加0减少 */
+    @TableField("change_type")
+    @ApiModelProperty("变更类型 1增加0减少")
+    private Long changeType;
+
+    /** 金额类型 1营业额2志愿者佣金3平台佣金4志愿者扣款 */
+    @TableField("money_type")
+    @ApiModelProperty("金额类型 1营业额2志愿者佣金3平台佣金4志愿者扣款")
+    private Long moneyType;
+
+    /** 来源类型 1订单支付2订单退款3订单完成 */
+    @TableField("source_type")
+    @ApiModelProperty("来源类型 1订单支付2订单退款3订单完成")
+    private Long sourceType;
+
+    /** 志愿者订单id */
+    @TableField("second_order_id")
+    @ApiModelProperty("志愿者订单id")
+    private Long secondOrderId;
+
+    /** 志愿者id */
+    @TableField("volunteer_id")
+    @ApiModelProperty("志愿者id")
+    private Long volunteerId;
+
+
+}

+ 57 - 0
leromro-core/src/main/java/com/leromro/core/domain/VolunteerAccount.java

@@ -0,0 +1,57 @@
+package com.leromro.core.domain;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.*;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.leromro.common.annotation.Excel;
+import com.leromro.common.core.domain.BaseEntity;
+
+/**
+ * 志愿者账户对象 l_volunteer_account
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@TableName("l_volunteer_account")
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "VolunteerAccount", description = "志愿者账户")
+public class VolunteerAccount extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    @TableId(type = IdType.AUTO)
+    @TableField("volunteer_account_id")
+    @ApiModelProperty("id")
+    private Long volunteerAccountId;
+
+    @TableField("volunteer_id")
+    @ApiModelProperty("志愿者id")
+    private Long volunteerId;
+
+    @TableField("balance")
+    @ApiModelProperty("可提现金额")
+    private BigDecimal balance;
+
+    @TableField("total_balance")
+    @ApiModelProperty("累计可提现金额")
+    private BigDecimal totalBalance;
+
+    @TableField("order_frozen_balance")
+    @ApiModelProperty("订单冻结金额")
+    private BigDecimal orderFrozenBalance;
+
+    @TableField("be_balance")
+    @ApiModelProperty("提现中金额")
+    private BigDecimal beBalance;
+
+
+}

+ 61 - 0
leromro-core/src/main/java/com/leromro/core/domain/VolunteerAccountChange.java

@@ -0,0 +1,61 @@
+package com.leromro.core.domain;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.*;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.leromro.common.annotation.Excel;
+import com.leromro.common.core.domain.BaseEntity;
+
+/**
+ * 志愿者账号变动明细对象 l_volunteer_account_change
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@TableName("l_volunteer_account_change")
+@EqualsAndHashCode(callSuper = true)
+@ApiModel(value = "VolunteerAccountChange", description = "志愿者账号变动明细")
+public class VolunteerAccountChange extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** id */
+    @TableId(type = IdType.AUTO)
+    private Long volunteerAccountChangeId;
+
+    /** 变更类型 1增加0减少 */
+    @TableField("change_type")
+    @ApiModelProperty("变更类型 1增加0减少")
+    private Long changeType;
+
+    /** 来源类型 1订单收入2评分奖励 10提现支出 */
+    @TableField("source_type")
+    @ApiModelProperty("来源类型 1订单收入2评分奖励 10提现支出")
+    private Long sourceType;
+
+    /** 变更金额 */
+    @TableField("change_money")
+    @ApiModelProperty("变更金额")
+    private BigDecimal changeMoney;
+
+    /** 变更前可提现金额 */
+    @TableField("before_balance")
+    @ApiModelProperty("变更前可提现金额")
+    private BigDecimal beforeBalance;
+
+    /** 变更后可提现金额 */
+    @TableField("after_balance")
+    @ApiModelProperty("变更后可提现金额")
+    private BigDecimal afterBalance;
+
+
+}

+ 62 - 0
leromro-core/src/main/java/com/leromro/core/mapper/OrderFrozenFundsMapper.java

@@ -0,0 +1,62 @@
+package com.leromro.core.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.leromro.core.domain.OrderFrozenFunds;
+
+/**
+ * 订单资金冻结Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+public interface OrderFrozenFundsMapper extends BaseMapper<OrderFrozenFunds>
+{
+    /**
+     * 查询订单资金冻结
+     * 
+     * @param orderFrozenFundsId 订单资金冻结主键
+     * @return 订单资金冻结
+     */
+    public OrderFrozenFunds selectOrderFrozenFundsByOrderFrozenFundsId(Long orderFrozenFundsId);
+
+    /**
+     * 查询订单资金冻结列表
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 订单资金冻结集合
+     */
+    public List<OrderFrozenFunds> selectOrderFrozenFundsList(OrderFrozenFunds orderFrozenFunds);
+
+    /**
+     * 新增订单资金冻结
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 结果
+     */
+    public int insertOrderFrozenFunds(OrderFrozenFunds orderFrozenFunds);
+
+    /**
+     * 修改订单资金冻结
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 结果
+     */
+    public int updateOrderFrozenFunds(OrderFrozenFunds orderFrozenFunds);
+
+    /**
+     * 删除订单资金冻结
+     * 
+     * @param orderFrozenFundsId 订单资金冻结主键
+     * @return 结果
+     */
+    public int deleteOrderFrozenFundsByOrderFrozenFundsId(Long orderFrozenFundsId);
+
+    /**
+     * 批量删除订单资金冻结
+     * 
+     * @param orderFrozenFundsIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteOrderFrozenFundsByOrderFrozenFundsIds(Long[] orderFrozenFundsIds);
+}

+ 62 - 0
leromro-core/src/main/java/com/leromro/core/mapper/PlatformFinanceMapper.java

@@ -0,0 +1,62 @@
+package com.leromro.core.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.leromro.core.domain.PlatformFinance;
+
+/**
+ * 平台资金流水Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+public interface PlatformFinanceMapper extends BaseMapper<PlatformFinance>
+{
+    /**
+     * 查询平台资金流水
+     * 
+     * @param platformFinanceId 平台资金流水主键
+     * @return 平台资金流水
+     */
+    public PlatformFinance selectPlatformFinanceByPlatformFinanceId(Long platformFinanceId);
+
+    /**
+     * 查询平台资金流水列表
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 平台资金流水集合
+     */
+    public List<PlatformFinance> selectPlatformFinanceList(PlatformFinance platformFinance);
+
+    /**
+     * 新增平台资金流水
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 结果
+     */
+    public int insertPlatformFinance(PlatformFinance platformFinance);
+
+    /**
+     * 修改平台资金流水
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 结果
+     */
+    public int updatePlatformFinance(PlatformFinance platformFinance);
+
+    /**
+     * 删除平台资金流水
+     * 
+     * @param platformFinanceId 平台资金流水主键
+     * @return 结果
+     */
+    public int deletePlatformFinanceByPlatformFinanceId(Long platformFinanceId);
+
+    /**
+     * 批量删除平台资金流水
+     * 
+     * @param platformFinanceIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePlatformFinanceByPlatformFinanceIds(Long[] platformFinanceIds);
+}

+ 62 - 0
leromro-core/src/main/java/com/leromro/core/mapper/VolunteerAccountChangeMapper.java

@@ -0,0 +1,62 @@
+package com.leromro.core.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.leromro.core.domain.VolunteerAccountChange;
+
+/**
+ * 志愿者账号变动明细Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+public interface VolunteerAccountChangeMapper extends BaseMapper<VolunteerAccountChange>
+{
+    /**
+     * 查询志愿者账号变动明细
+     * 
+     * @param volunteerAccountChangeId 志愿者账号变动明细主键
+     * @return 志愿者账号变动明细
+     */
+    public VolunteerAccountChange selectVolunteerAccountChangeByVolunteerAccountChangeId(Long volunteerAccountChangeId);
+
+    /**
+     * 查询志愿者账号变动明细列表
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 志愿者账号变动明细集合
+     */
+    public List<VolunteerAccountChange> selectVolunteerAccountChangeList(VolunteerAccountChange volunteerAccountChange);
+
+    /**
+     * 新增志愿者账号变动明细
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 结果
+     */
+    public int insertVolunteerAccountChange(VolunteerAccountChange volunteerAccountChange);
+
+    /**
+     * 修改志愿者账号变动明细
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 结果
+     */
+    public int updateVolunteerAccountChange(VolunteerAccountChange volunteerAccountChange);
+
+    /**
+     * 删除志愿者账号变动明细
+     * 
+     * @param volunteerAccountChangeId 志愿者账号变动明细主键
+     * @return 结果
+     */
+    public int deleteVolunteerAccountChangeByVolunteerAccountChangeId(Long volunteerAccountChangeId);
+
+    /**
+     * 批量删除志愿者账号变动明细
+     * 
+     * @param volunteerAccountChangeIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteVolunteerAccountChangeByVolunteerAccountChangeIds(Long[] volunteerAccountChangeIds);
+}

+ 62 - 0
leromro-core/src/main/java/com/leromro/core/mapper/VolunteerAccountMapper.java

@@ -0,0 +1,62 @@
+package com.leromro.core.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.leromro.core.domain.VolunteerAccount;
+
+/**
+ * 志愿者账户Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+public interface VolunteerAccountMapper extends BaseMapper<VolunteerAccount>
+{
+    /**
+     * 查询志愿者账户
+     * 
+     * @param volunteerAccountId 志愿者账户主键
+     * @return 志愿者账户
+     */
+    public VolunteerAccount selectVolunteerAccountByVolunteerAccountId(Long volunteerAccountId);
+
+    /**
+     * 查询志愿者账户列表
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 志愿者账户集合
+     */
+    public List<VolunteerAccount> selectVolunteerAccountList(VolunteerAccount volunteerAccount);
+
+    /**
+     * 新增志愿者账户
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 结果
+     */
+    public int insertVolunteerAccount(VolunteerAccount volunteerAccount);
+
+    /**
+     * 修改志愿者账户
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 结果
+     */
+    public int updateVolunteerAccount(VolunteerAccount volunteerAccount);
+
+    /**
+     * 删除志愿者账户
+     * 
+     * @param volunteerAccountId 志愿者账户主键
+     * @return 结果
+     */
+    public int deleteVolunteerAccountByVolunteerAccountId(Long volunteerAccountId);
+
+    /**
+     * 批量删除志愿者账户
+     * 
+     * @param volunteerAccountIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteVolunteerAccountByVolunteerAccountIds(Long[] volunteerAccountIds);
+}

+ 62 - 0
leromro-core/src/main/java/com/leromro/core/service/IOrderFrozenFundsService.java

@@ -0,0 +1,62 @@
+package com.leromro.core.service;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.leromro.core.domain.OrderFrozenFunds;
+
+/**
+ * 订单资金冻结Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+public interface IOrderFrozenFundsService extends IService<OrderFrozenFunds>
+{
+    /**
+     * 查询订单资金冻结
+     * 
+     * @param orderFrozenFundsId 订单资金冻结主键
+     * @return 订单资金冻结
+     */
+    public OrderFrozenFunds selectOrderFrozenFundsByOrderFrozenFundsId(Long orderFrozenFundsId);
+
+    /**
+     * 查询订单资金冻结列表
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 订单资金冻结集合
+     */
+    public List<OrderFrozenFunds> selectOrderFrozenFundsList(OrderFrozenFunds orderFrozenFunds);
+
+    /**
+     * 新增订单资金冻结
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 结果
+     */
+    public Boolean insertOrderFrozenFunds(OrderFrozenFunds orderFrozenFunds);
+
+    /**
+     * 修改订单资金冻结
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 结果
+     */
+    public Boolean updateOrderFrozenFunds(OrderFrozenFunds orderFrozenFunds);
+
+    /**
+     * 批量删除订单资金冻结
+     * 
+     * @param orderFrozenFundsIds 需要删除的订单资金冻结主键集合
+     * @return 结果
+     */
+    public int deleteOrderFrozenFundsByOrderFrozenFundsIds(Long[] orderFrozenFundsIds);
+
+    /**
+     * 删除订单资金冻结信息
+     * 
+     * @param orderFrozenFundsId 订单资金冻结主键
+     * @return 结果
+     */
+    public int deleteOrderFrozenFundsByOrderFrozenFundsId(Long orderFrozenFundsId);
+}

+ 62 - 0
leromro-core/src/main/java/com/leromro/core/service/IPlatformFinanceService.java

@@ -0,0 +1,62 @@
+package com.leromro.core.service;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.leromro.core.domain.PlatformFinance;
+
+/**
+ * 平台资金流水Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+public interface IPlatformFinanceService extends IService<PlatformFinance>
+{
+    /**
+     * 查询平台资金流水
+     * 
+     * @param platformFinanceId 平台资金流水主键
+     * @return 平台资金流水
+     */
+    public PlatformFinance selectPlatformFinanceByPlatformFinanceId(Long platformFinanceId);
+
+    /**
+     * 查询平台资金流水列表
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 平台资金流水集合
+     */
+    public List<PlatformFinance> selectPlatformFinanceList(PlatformFinance platformFinance);
+
+    /**
+     * 新增平台资金流水
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 结果
+     */
+    public Boolean insertPlatformFinance(PlatformFinance platformFinance);
+
+    /**
+     * 修改平台资金流水
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 结果
+     */
+    public Boolean updatePlatformFinance(PlatformFinance platformFinance);
+
+    /**
+     * 批量删除平台资金流水
+     * 
+     * @param platformFinanceIds 需要删除的平台资金流水主键集合
+     * @return 结果
+     */
+    public int deletePlatformFinanceByPlatformFinanceIds(Long[] platformFinanceIds);
+
+    /**
+     * 删除平台资金流水信息
+     * 
+     * @param platformFinanceId 平台资金流水主键
+     * @return 结果
+     */
+    public int deletePlatformFinanceByPlatformFinanceId(Long platformFinanceId);
+}

+ 62 - 0
leromro-core/src/main/java/com/leromro/core/service/IVolunteerAccountChangeService.java

@@ -0,0 +1,62 @@
+package com.leromro.core.service;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.leromro.core.domain.VolunteerAccountChange;
+
+/**
+ * 志愿者账号变动明细Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+public interface IVolunteerAccountChangeService extends IService<VolunteerAccountChange>
+{
+    /**
+     * 查询志愿者账号变动明细
+     * 
+     * @param volunteerAccountChangeId 志愿者账号变动明细主键
+     * @return 志愿者账号变动明细
+     */
+    public VolunteerAccountChange selectVolunteerAccountChangeByVolunteerAccountChangeId(Long volunteerAccountChangeId);
+
+    /**
+     * 查询志愿者账号变动明细列表
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 志愿者账号变动明细集合
+     */
+    public List<VolunteerAccountChange> selectVolunteerAccountChangeList(VolunteerAccountChange volunteerAccountChange);
+
+    /**
+     * 新增志愿者账号变动明细
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 结果
+     */
+    public Boolean insertVolunteerAccountChange(VolunteerAccountChange volunteerAccountChange);
+
+    /**
+     * 修改志愿者账号变动明细
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 结果
+     */
+    public Boolean updateVolunteerAccountChange(VolunteerAccountChange volunteerAccountChange);
+
+    /**
+     * 批量删除志愿者账号变动明细
+     * 
+     * @param volunteerAccountChangeIds 需要删除的志愿者账号变动明细主键集合
+     * @return 结果
+     */
+    public int deleteVolunteerAccountChangeByVolunteerAccountChangeIds(Long[] volunteerAccountChangeIds);
+
+    /**
+     * 删除志愿者账号变动明细信息
+     * 
+     * @param volunteerAccountChangeId 志愿者账号变动明细主键
+     * @return 结果
+     */
+    public int deleteVolunteerAccountChangeByVolunteerAccountChangeId(Long volunteerAccountChangeId);
+}

+ 62 - 0
leromro-core/src/main/java/com/leromro/core/service/IVolunteerAccountService.java

@@ -0,0 +1,62 @@
+package com.leromro.core.service;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.leromro.core.domain.VolunteerAccount;
+
+/**
+ * 志愿者账户Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+public interface IVolunteerAccountService extends IService<VolunteerAccount>
+{
+    /**
+     * 查询志愿者账户
+     * 
+     * @param volunteerAccountId 志愿者账户主键
+     * @return 志愿者账户
+     */
+    public VolunteerAccount selectVolunteerAccountByVolunteerAccountId(Long volunteerAccountId);
+
+    /**
+     * 查询志愿者账户列表
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 志愿者账户集合
+     */
+    public List<VolunteerAccount> selectVolunteerAccountList(VolunteerAccount volunteerAccount);
+
+    /**
+     * 新增志愿者账户
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 结果
+     */
+    public Boolean insertVolunteerAccount(VolunteerAccount volunteerAccount);
+
+    /**
+     * 修改志愿者账户
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 结果
+     */
+    public Boolean updateVolunteerAccount(VolunteerAccount volunteerAccount);
+
+    /**
+     * 批量删除志愿者账户
+     * 
+     * @param volunteerAccountIds 需要删除的志愿者账户主键集合
+     * @return 结果
+     */
+    public int deleteVolunteerAccountByVolunteerAccountIds(Long[] volunteerAccountIds);
+
+    /**
+     * 删除志愿者账户信息
+     * 
+     * @param volunteerAccountId 志愿者账户主键
+     * @return 结果
+     */
+    public int deleteVolunteerAccountByVolunteerAccountId(Long volunteerAccountId);
+}

+ 96 - 0
leromro-core/src/main/java/com/leromro/core/service/impl/OrderFrozenFundsServiceImpl.java

@@ -0,0 +1,96 @@
+package com.leromro.core.service.impl;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.leromro.core.mapper.OrderFrozenFundsMapper;
+import com.leromro.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.leromro.core.mapper.OrderFrozenFundsMapper;
+import com.leromro.core.domain.OrderFrozenFunds;
+import com.leromro.core.service.IOrderFrozenFundsService;
+
+/**
+ * 订单资金冻结Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@Service
+public class OrderFrozenFundsServiceImpl extends ServiceImpl<OrderFrozenFundsMapper, OrderFrozenFunds> implements IOrderFrozenFundsService
+{
+    @Autowired
+    private OrderFrozenFundsMapper orderFrozenFundsMapper;
+
+    /**
+     * 查询订单资金冻结
+     * 
+     * @param orderFrozenFundsId 订单资金冻结主键
+     * @return 订单资金冻结
+     */
+    @Override
+    public OrderFrozenFunds selectOrderFrozenFundsByOrderFrozenFundsId(Long orderFrozenFundsId)
+    {
+        return orderFrozenFundsMapper.selectOrderFrozenFundsByOrderFrozenFundsId(orderFrozenFundsId);
+    }
+
+    /**
+     * 查询订单资金冻结列表
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 订单资金冻结
+     */
+    @Override
+    public List<OrderFrozenFunds> selectOrderFrozenFundsList(OrderFrozenFunds orderFrozenFunds)
+    {
+        return orderFrozenFundsMapper.selectOrderFrozenFundsList(orderFrozenFunds);
+    }
+
+    /**
+     * 新增订单资金冻结
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 结果
+     */
+    @Override
+    public Boolean insertOrderFrozenFunds(OrderFrozenFunds orderFrozenFunds)
+    {
+        return this.save(orderFrozenFunds);
+    }
+
+    /**
+     * 修改订单资金冻结
+     * 
+     * @param orderFrozenFunds 订单资金冻结
+     * @return 结果
+     */
+    @Override
+    public Boolean updateOrderFrozenFunds(OrderFrozenFunds orderFrozenFunds)
+    {
+        return this.updateById(orderFrozenFunds);
+    }
+
+    /**
+     * 批量删除订单资金冻结
+     * 
+     * @param orderFrozenFundsIds 需要删除的订单资金冻结主键
+     * @return 结果
+     */
+    @Override
+    public int deleteOrderFrozenFundsByOrderFrozenFundsIds(Long[] orderFrozenFundsIds)
+    {
+        return orderFrozenFundsMapper.deleteOrderFrozenFundsByOrderFrozenFundsIds(orderFrozenFundsIds);
+    }
+
+    /**
+     * 删除订单资金冻结信息
+     * 
+     * @param orderFrozenFundsId 订单资金冻结主键
+     * @return 结果
+     */
+    @Override
+    public int deleteOrderFrozenFundsByOrderFrozenFundsId(Long orderFrozenFundsId)
+    {
+        return orderFrozenFundsMapper.deleteOrderFrozenFundsByOrderFrozenFundsId(orderFrozenFundsId);
+    }
+}

+ 96 - 0
leromro-core/src/main/java/com/leromro/core/service/impl/PlatformFinanceServiceImpl.java

@@ -0,0 +1,96 @@
+package com.leromro.core.service.impl;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.leromro.core.mapper.PlatformFinanceMapper;
+import com.leromro.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.leromro.core.mapper.PlatformFinanceMapper;
+import com.leromro.core.domain.PlatformFinance;
+import com.leromro.core.service.IPlatformFinanceService;
+
+/**
+ * 平台资金流水Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@Service
+public class PlatformFinanceServiceImpl extends ServiceImpl<PlatformFinanceMapper, PlatformFinance> implements IPlatformFinanceService
+{
+    @Autowired
+    private PlatformFinanceMapper platformFinanceMapper;
+
+    /**
+     * 查询平台资金流水
+     * 
+     * @param platformFinanceId 平台资金流水主键
+     * @return 平台资金流水
+     */
+    @Override
+    public PlatformFinance selectPlatformFinanceByPlatformFinanceId(Long platformFinanceId)
+    {
+        return platformFinanceMapper.selectPlatformFinanceByPlatformFinanceId(platformFinanceId);
+    }
+
+    /**
+     * 查询平台资金流水列表
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 平台资金流水
+     */
+    @Override
+    public List<PlatformFinance> selectPlatformFinanceList(PlatformFinance platformFinance)
+    {
+        return platformFinanceMapper.selectPlatformFinanceList(platformFinance);
+    }
+
+    /**
+     * 新增平台资金流水
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 结果
+     */
+    @Override
+    public Boolean insertPlatformFinance(PlatformFinance platformFinance)
+    {
+        return this.save(platformFinance);
+    }
+
+    /**
+     * 修改平台资金流水
+     * 
+     * @param platformFinance 平台资金流水
+     * @return 结果
+     */
+    @Override
+    public Boolean updatePlatformFinance(PlatformFinance platformFinance)
+    {
+        return this.updateById(platformFinance);
+    }
+
+    /**
+     * 批量删除平台资金流水
+     * 
+     * @param platformFinanceIds 需要删除的平台资金流水主键
+     * @return 结果
+     */
+    @Override
+    public int deletePlatformFinanceByPlatformFinanceIds(Long[] platformFinanceIds)
+    {
+        return platformFinanceMapper.deletePlatformFinanceByPlatformFinanceIds(platformFinanceIds);
+    }
+
+    /**
+     * 删除平台资金流水信息
+     * 
+     * @param platformFinanceId 平台资金流水主键
+     * @return 结果
+     */
+    @Override
+    public int deletePlatformFinanceByPlatformFinanceId(Long platformFinanceId)
+    {
+        return platformFinanceMapper.deletePlatformFinanceByPlatformFinanceId(platformFinanceId);
+    }
+}

+ 96 - 0
leromro-core/src/main/java/com/leromro/core/service/impl/VolunteerAccountChangeServiceImpl.java

@@ -0,0 +1,96 @@
+package com.leromro.core.service.impl;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.leromro.core.mapper.VolunteerAccountChangeMapper;
+import com.leromro.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.leromro.core.mapper.VolunteerAccountChangeMapper;
+import com.leromro.core.domain.VolunteerAccountChange;
+import com.leromro.core.service.IVolunteerAccountChangeService;
+
+/**
+ * 志愿者账号变动明细Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@Service
+public class VolunteerAccountChangeServiceImpl extends ServiceImpl<VolunteerAccountChangeMapper, VolunteerAccountChange> implements IVolunteerAccountChangeService
+{
+    @Autowired
+    private VolunteerAccountChangeMapper volunteerAccountChangeMapper;
+
+    /**
+     * 查询志愿者账号变动明细
+     * 
+     * @param volunteerAccountChangeId 志愿者账号变动明细主键
+     * @return 志愿者账号变动明细
+     */
+    @Override
+    public VolunteerAccountChange selectVolunteerAccountChangeByVolunteerAccountChangeId(Long volunteerAccountChangeId)
+    {
+        return volunteerAccountChangeMapper.selectVolunteerAccountChangeByVolunteerAccountChangeId(volunteerAccountChangeId);
+    }
+
+    /**
+     * 查询志愿者账号变动明细列表
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 志愿者账号变动明细
+     */
+    @Override
+    public List<VolunteerAccountChange> selectVolunteerAccountChangeList(VolunteerAccountChange volunteerAccountChange)
+    {
+        return volunteerAccountChangeMapper.selectVolunteerAccountChangeList(volunteerAccountChange);
+    }
+
+    /**
+     * 新增志愿者账号变动明细
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 结果
+     */
+    @Override
+    public Boolean insertVolunteerAccountChange(VolunteerAccountChange volunteerAccountChange)
+    {
+        return this.save(volunteerAccountChange);
+    }
+
+    /**
+     * 修改志愿者账号变动明细
+     * 
+     * @param volunteerAccountChange 志愿者账号变动明细
+     * @return 结果
+     */
+    @Override
+    public Boolean updateVolunteerAccountChange(VolunteerAccountChange volunteerAccountChange)
+    {
+        return this.updateById(volunteerAccountChange);
+    }
+
+    /**
+     * 批量删除志愿者账号变动明细
+     * 
+     * @param volunteerAccountChangeIds 需要删除的志愿者账号变动明细主键
+     * @return 结果
+     */
+    @Override
+    public int deleteVolunteerAccountChangeByVolunteerAccountChangeIds(Long[] volunteerAccountChangeIds)
+    {
+        return volunteerAccountChangeMapper.deleteVolunteerAccountChangeByVolunteerAccountChangeIds(volunteerAccountChangeIds);
+    }
+
+    /**
+     * 删除志愿者账号变动明细信息
+     * 
+     * @param volunteerAccountChangeId 志愿者账号变动明细主键
+     * @return 结果
+     */
+    @Override
+    public int deleteVolunteerAccountChangeByVolunteerAccountChangeId(Long volunteerAccountChangeId)
+    {
+        return volunteerAccountChangeMapper.deleteVolunteerAccountChangeByVolunteerAccountChangeId(volunteerAccountChangeId);
+    }
+}

+ 96 - 0
leromro-core/src/main/java/com/leromro/core/service/impl/VolunteerAccountServiceImpl.java

@@ -0,0 +1,96 @@
+package com.leromro.core.service.impl;
+
+import java.util.List;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.leromro.core.mapper.VolunteerAccountMapper;
+import com.leromro.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.leromro.core.mapper.VolunteerAccountMapper;
+import com.leromro.core.domain.VolunteerAccount;
+import com.leromro.core.service.IVolunteerAccountService;
+
+/**
+ * 志愿者账户Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2025-04-11
+ */
+@Service
+public class VolunteerAccountServiceImpl extends ServiceImpl<VolunteerAccountMapper, VolunteerAccount> implements IVolunteerAccountService
+{
+    @Autowired
+    private VolunteerAccountMapper volunteerAccountMapper;
+
+    /**
+     * 查询志愿者账户
+     * 
+     * @param volunteerAccountId 志愿者账户主键
+     * @return 志愿者账户
+     */
+    @Override
+    public VolunteerAccount selectVolunteerAccountByVolunteerAccountId(Long volunteerAccountId)
+    {
+        return volunteerAccountMapper.selectVolunteerAccountByVolunteerAccountId(volunteerAccountId);
+    }
+
+    /**
+     * 查询志愿者账户列表
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 志愿者账户
+     */
+    @Override
+    public List<VolunteerAccount> selectVolunteerAccountList(VolunteerAccount volunteerAccount)
+    {
+        return volunteerAccountMapper.selectVolunteerAccountList(volunteerAccount);
+    }
+
+    /**
+     * 新增志愿者账户
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 结果
+     */
+    @Override
+    public Boolean insertVolunteerAccount(VolunteerAccount volunteerAccount)
+    {
+        return this.save(volunteerAccount);
+    }
+
+    /**
+     * 修改志愿者账户
+     * 
+     * @param volunteerAccount 志愿者账户
+     * @return 结果
+     */
+    @Override
+    public Boolean updateVolunteerAccount(VolunteerAccount volunteerAccount)
+    {
+        return this.updateById(volunteerAccount);
+    }
+
+    /**
+     * 批量删除志愿者账户
+     * 
+     * @param volunteerAccountIds 需要删除的志愿者账户主键
+     * @return 结果
+     */
+    @Override
+    public int deleteVolunteerAccountByVolunteerAccountIds(Long[] volunteerAccountIds)
+    {
+        return volunteerAccountMapper.deleteVolunteerAccountByVolunteerAccountIds(volunteerAccountIds);
+    }
+
+    /**
+     * 删除志愿者账户信息
+     * 
+     * @param volunteerAccountId 志愿者账户主键
+     * @return 结果
+     */
+    @Override
+    public int deleteVolunteerAccountByVolunteerAccountId(Long volunteerAccountId)
+    {
+        return volunteerAccountMapper.deleteVolunteerAccountByVolunteerAccountId(volunteerAccountId);
+    }
+}

+ 106 - 0
leromro-core/src/main/resources/mapper/core/OrderFrozenFundsMapper.xml

@@ -0,0 +1,106 @@
+<?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.leromro.core.mapper.OrderFrozenFundsMapper">
+    
+    <resultMap type="OrderFrozenFunds" id="OrderFrozenFundsResult">
+        <result property="orderFrozenFundsId"    column="order_frozen_funds_id"    />
+        <result property="volunteerMoney"    column="volunteer_money"    />
+        <result property="platformBrokerage"    column="platform_brokerage"    />
+        <result property="scoreMoney"    column="score_money"    />
+        <result property="secondOrderMoney"    column="second_order_money"    />
+        <result property="status"    column="status"    />
+        <result property="secondOrderId"    column="second_order_id"    />
+        <result property="volunteerId"    column="volunteer_id"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectOrderFrozenFundsVo">
+        select order_frozen_funds_id, volunteer_money, platform_brokerage, score_money, second_order_money, status, second_order_id, volunteer_id, create_by, create_time, update_by, update_time, remark from l_order_frozen_funds
+    </sql>
+
+    <select id="selectOrderFrozenFundsList" parameterType="OrderFrozenFunds" resultMap="OrderFrozenFundsResult">
+        <include refid="selectOrderFrozenFundsVo"/>
+        <where>  
+            <if test="volunteerMoney != null "> and volunteer_money = #{volunteerMoney}</if>
+            <if test="platformBrokerage != null "> and platform_brokerage = #{platformBrokerage}</if>
+            <if test="scoreMoney != null "> and score_money = #{scoreMoney}</if>
+            <if test="secondOrderMoney != null "> and second_order_money = #{secondOrderMoney}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="secondOrderId != null "> and second_order_id = #{secondOrderId}</if>
+            <if test="volunteerId != null "> and volunteer_id = #{volunteerId}</if>
+        </where>
+    </select>
+    
+    <select id="selectOrderFrozenFundsByOrderFrozenFundsId" parameterType="Long" resultMap="OrderFrozenFundsResult">
+        <include refid="selectOrderFrozenFundsVo"/>
+        where order_frozen_funds_id = #{orderFrozenFundsId}
+    </select>
+
+    <insert id="insertOrderFrozenFunds" parameterType="OrderFrozenFunds" useGeneratedKeys="true" keyProperty="orderFrozenFundsId">
+        insert into l_order_frozen_funds
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="volunteerMoney != null">volunteer_money,</if>
+            <if test="platformBrokerage != null">platform_brokerage,</if>
+            <if test="scoreMoney != null">score_money,</if>
+            <if test="secondOrderMoney != null">second_order_money,</if>
+            <if test="status != null">status,</if>
+            <if test="secondOrderId != null">second_order_id,</if>
+            <if test="volunteerId != null">volunteer_id,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="volunteerMoney != null">#{volunteerMoney},</if>
+            <if test="platformBrokerage != null">#{platformBrokerage},</if>
+            <if test="scoreMoney != null">#{scoreMoney},</if>
+            <if test="secondOrderMoney != null">#{secondOrderMoney},</if>
+            <if test="status != null">#{status},</if>
+            <if test="secondOrderId != null">#{secondOrderId},</if>
+            <if test="volunteerId != null">#{volunteerId},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateOrderFrozenFunds" parameterType="OrderFrozenFunds">
+        update l_order_frozen_funds
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="volunteerMoney != null">volunteer_money = #{volunteerMoney},</if>
+            <if test="platformBrokerage != null">platform_brokerage = #{platformBrokerage},</if>
+            <if test="scoreMoney != null">score_money = #{scoreMoney},</if>
+            <if test="secondOrderMoney != null">second_order_money = #{secondOrderMoney},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="secondOrderId != null">second_order_id = #{secondOrderId},</if>
+            <if test="volunteerId != null">volunteer_id = #{volunteerId},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where order_frozen_funds_id = #{orderFrozenFundsId}
+    </update>
+
+    <delete id="deleteOrderFrozenFundsByOrderFrozenFundsId" parameterType="Long">
+        delete from l_order_frozen_funds where order_frozen_funds_id = #{orderFrozenFundsId}
+    </delete>
+
+    <delete id="deleteOrderFrozenFundsByOrderFrozenFundsIds" parameterType="String">
+        delete from l_order_frozen_funds where order_frozen_funds_id in 
+        <foreach item="orderFrozenFundsId" collection="array" open="(" separator="," close=")">
+            #{orderFrozenFundsId}
+        </foreach>
+    </delete>
+</mapper>

+ 101 - 0
leromro-core/src/main/resources/mapper/core/PlatformFinanceMapper.xml

@@ -0,0 +1,101 @@
+<?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.leromro.core.mapper.PlatformFinanceMapper">
+    
+    <resultMap type="PlatformFinance" id="PlatformFinanceResult">
+        <result property="platformFinanceId"    column="platform_finance_id"    />
+        <result property="changeMoney"    column="change_money"    />
+        <result property="changeType"    column="change_type"    />
+        <result property="moneyType"    column="money_type"    />
+        <result property="sourceType"    column="source_type"    />
+        <result property="secondOrderId"    column="second_order_id"    />
+        <result property="volunteerId"    column="volunteer_id"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectPlatformFinanceVo">
+        select platform_finance_id, change_money, change_type, money_type, source_type, second_order_id, volunteer_id, create_by, create_time, update_by, update_time, remark from l_platform_finance
+    </sql>
+
+    <select id="selectPlatformFinanceList" parameterType="PlatformFinance" resultMap="PlatformFinanceResult">
+        <include refid="selectPlatformFinanceVo"/>
+        <where>  
+            <if test="changeMoney != null "> and change_money = #{changeMoney}</if>
+            <if test="changeType != null "> and change_type = #{changeType}</if>
+            <if test="moneyType != null "> and money_type = #{moneyType}</if>
+            <if test="sourceType != null "> and source_type = #{sourceType}</if>
+            <if test="secondOrderId != null "> and second_order_id = #{secondOrderId}</if>
+            <if test="volunteerId != null "> and volunteer_id = #{volunteerId}</if>
+        </where>
+    </select>
+    
+    <select id="selectPlatformFinanceByPlatformFinanceId" parameterType="Long" resultMap="PlatformFinanceResult">
+        <include refid="selectPlatformFinanceVo"/>
+        where platform_finance_id = #{platformFinanceId}
+    </select>
+
+    <insert id="insertPlatformFinance" parameterType="PlatformFinance" useGeneratedKeys="true" keyProperty="platformFinanceId">
+        insert into l_platform_finance
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="changeMoney != null">change_money,</if>
+            <if test="changeType != null">change_type,</if>
+            <if test="moneyType != null">money_type,</if>
+            <if test="sourceType != null">source_type,</if>
+            <if test="secondOrderId != null">second_order_id,</if>
+            <if test="volunteerId != null">volunteer_id,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="changeMoney != null">#{changeMoney},</if>
+            <if test="changeType != null">#{changeType},</if>
+            <if test="moneyType != null">#{moneyType},</if>
+            <if test="sourceType != null">#{sourceType},</if>
+            <if test="secondOrderId != null">#{secondOrderId},</if>
+            <if test="volunteerId != null">#{volunteerId},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updatePlatformFinance" parameterType="PlatformFinance">
+        update l_platform_finance
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="changeMoney != null">change_money = #{changeMoney},</if>
+            <if test="changeType != null">change_type = #{changeType},</if>
+            <if test="moneyType != null">money_type = #{moneyType},</if>
+            <if test="sourceType != null">source_type = #{sourceType},</if>
+            <if test="secondOrderId != null">second_order_id = #{secondOrderId},</if>
+            <if test="volunteerId != null">volunteer_id = #{volunteerId},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where platform_finance_id = #{platformFinanceId}
+    </update>
+
+    <delete id="deletePlatformFinanceByPlatformFinanceId" parameterType="Long">
+        delete from l_platform_finance where platform_finance_id = #{platformFinanceId}
+    </delete>
+
+    <delete id="deletePlatformFinanceByPlatformFinanceIds" parameterType="String">
+        delete from l_platform_finance where platform_finance_id in 
+        <foreach item="platformFinanceId" collection="array" open="(" separator="," close=")">
+            #{platformFinanceId}
+        </foreach>
+    </delete>
+</mapper>

+ 96 - 0
leromro-core/src/main/resources/mapper/core/VolunteerAccountChangeMapper.xml

@@ -0,0 +1,96 @@
+<?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.leromro.core.mapper.VolunteerAccountChangeMapper">
+    
+    <resultMap type="VolunteerAccountChange" id="VolunteerAccountChangeResult">
+        <result property="volunteerAccountChangeId"    column="volunteer_account_change_id"    />
+        <result property="changeType"    column="change_type"    />
+        <result property="sourceType"    column="source_type"    />
+        <result property="changeMoney"    column="change_money"    />
+        <result property="beforeBalance"    column="before_balance"    />
+        <result property="afterBalance"    column="after_balance"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectVolunteerAccountChangeVo">
+        select volunteer_account_change_id, change_type, source_type, change_money, before_balance, after_balance, create_by, create_time, update_by, update_time, remark from l_volunteer_account_change
+    </sql>
+
+    <select id="selectVolunteerAccountChangeList" parameterType="VolunteerAccountChange" resultMap="VolunteerAccountChangeResult">
+        <include refid="selectVolunteerAccountChangeVo"/>
+        <where>  
+            <if test="changeType != null "> and change_type = #{changeType}</if>
+            <if test="sourceType != null "> and source_type = #{sourceType}</if>
+            <if test="changeMoney != null "> and change_money = #{changeMoney}</if>
+            <if test="beforeBalance != null "> and before_balance = #{beforeBalance}</if>
+            <if test="afterBalance != null "> and after_balance = #{afterBalance}</if>
+        </where>
+    </select>
+    
+    <select id="selectVolunteerAccountChangeByVolunteerAccountChangeId" parameterType="Long" resultMap="VolunteerAccountChangeResult">
+        <include refid="selectVolunteerAccountChangeVo"/>
+        where volunteer_account_change_id = #{volunteerAccountChangeId}
+    </select>
+
+    <insert id="insertVolunteerAccountChange" parameterType="VolunteerAccountChange" useGeneratedKeys="true" keyProperty="volunteerAccountChangeId">
+        insert into l_volunteer_account_change
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="changeType != null">change_type,</if>
+            <if test="sourceType != null">source_type,</if>
+            <if test="changeMoney != null">change_money,</if>
+            <if test="beforeBalance != null">before_balance,</if>
+            <if test="afterBalance != null">after_balance,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="changeType != null">#{changeType},</if>
+            <if test="sourceType != null">#{sourceType},</if>
+            <if test="changeMoney != null">#{changeMoney},</if>
+            <if test="beforeBalance != null">#{beforeBalance},</if>
+            <if test="afterBalance != null">#{afterBalance},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateVolunteerAccountChange" parameterType="VolunteerAccountChange">
+        update l_volunteer_account_change
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="changeType != null">change_type = #{changeType},</if>
+            <if test="sourceType != null">source_type = #{sourceType},</if>
+            <if test="changeMoney != null">change_money = #{changeMoney},</if>
+            <if test="beforeBalance != null">before_balance = #{beforeBalance},</if>
+            <if test="afterBalance != null">after_balance = #{afterBalance},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where volunteer_account_change_id = #{volunteerAccountChangeId}
+    </update>
+
+    <delete id="deleteVolunteerAccountChangeByVolunteerAccountChangeId" parameterType="Long">
+        delete from l_volunteer_account_change where volunteer_account_change_id = #{volunteerAccountChangeId}
+    </delete>
+
+    <delete id="deleteVolunteerAccountChangeByVolunteerAccountChangeIds" parameterType="String">
+        delete from l_volunteer_account_change where volunteer_account_change_id in 
+        <foreach item="volunteerAccountChangeId" collection="array" open="(" separator="," close=")">
+            #{volunteerAccountChangeId}
+        </foreach>
+    </delete>
+</mapper>

+ 96 - 0
leromro-core/src/main/resources/mapper/core/VolunteerAccountMapper.xml

@@ -0,0 +1,96 @@
+<?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.leromro.core.mapper.VolunteerAccountMapper">
+    
+    <resultMap type="VolunteerAccount" id="VolunteerAccountResult">
+        <result property="volunteerAccountId"    column="volunteer_account_id"    />
+        <result property="volunteerId"    column="volunteer_id"    />
+        <result property="balance"    column="balance"    />
+        <result property="totalBalance"    column="total_balance"    />
+        <result property="orderFrozenBalance"    column="order_frozen_balance"    />
+        <result property="beBalance"    column="be_balance"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectVolunteerAccountVo">
+        select volunteer_account_id, volunteer_id, balance, total_balance, order_frozen_balance, be_balance, create_by, create_time, update_by, update_time, remark from l_volunteer_account
+    </sql>
+
+    <select id="selectVolunteerAccountList" parameterType="VolunteerAccount" resultMap="VolunteerAccountResult">
+        <include refid="selectVolunteerAccountVo"/>
+        <where>  
+            <if test="volunteerId != null "> and volunteer_id = #{volunteerId}</if>
+            <if test="balance != null "> and balance = #{balance}</if>
+            <if test="totalBalance != null "> and total_balance = #{totalBalance}</if>
+            <if test="orderFrozenBalance != null "> and order_frozen_balance = #{orderFrozenBalance}</if>
+            <if test="beBalance != null "> and be_balance = #{beBalance}</if>
+        </where>
+    </select>
+    
+    <select id="selectVolunteerAccountByVolunteerAccountId" parameterType="Long" resultMap="VolunteerAccountResult">
+        <include refid="selectVolunteerAccountVo"/>
+        where volunteer_account_id = #{volunteerAccountId}
+    </select>
+
+    <insert id="insertVolunteerAccount" parameterType="VolunteerAccount" useGeneratedKeys="true" keyProperty="volunteerAccountId">
+        insert into l_volunteer_account
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="volunteerId != null">volunteer_id,</if>
+            <if test="balance != null">balance,</if>
+            <if test="totalBalance != null">total_balance,</if>
+            <if test="orderFrozenBalance != null">order_frozen_balance,</if>
+            <if test="beBalance != null">be_balance,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="volunteerId != null">#{volunteerId},</if>
+            <if test="balance != null">#{balance},</if>
+            <if test="totalBalance != null">#{totalBalance},</if>
+            <if test="orderFrozenBalance != null">#{orderFrozenBalance},</if>
+            <if test="beBalance != null">#{beBalance},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateVolunteerAccount" parameterType="VolunteerAccount">
+        update l_volunteer_account
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="volunteerId != null">volunteer_id = #{volunteerId},</if>
+            <if test="balance != null">balance = #{balance},</if>
+            <if test="totalBalance != null">total_balance = #{totalBalance},</if>
+            <if test="orderFrozenBalance != null">order_frozen_balance = #{orderFrozenBalance},</if>
+            <if test="beBalance != null">be_balance = #{beBalance},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where volunteer_account_id = #{volunteerAccountId}
+    </update>
+
+    <delete id="deleteVolunteerAccountByVolunteerAccountId" parameterType="Long">
+        delete from l_volunteer_account where volunteer_account_id = #{volunteerAccountId}
+    </delete>
+
+    <delete id="deleteVolunteerAccountByVolunteerAccountIds" parameterType="String">
+        delete from l_volunteer_account where volunteer_account_id in 
+        <foreach item="volunteerAccountId" collection="array" open="(" separator="," close=")">
+            #{volunteerAccountId}
+        </foreach>
+    </delete>
+</mapper>

+ 2 - 2
leromro-generator/src/main/resources/vm/java/controller.java.vm

@@ -3,8 +3,8 @@ package ${packageName}.controller;
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
 
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import com.leromro.common.core.domain.R;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.beans.factory.annotation.Autowired;

+ 10 - 10
leromro-generator/src/main/resources/vm/java/domain.java.vm

@@ -6,10 +6,8 @@ import ${import};
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.AllArgsConstructor;
-import lombok.Builder;
-import lombok.Data;
-import lombok.NoArgsConstructor;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.*;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 ##import org.apache.commons.lang3.builder.ToStringBuilder;
@@ -57,19 +55,21 @@ public class ${ClassName} extends ${Entity}
 #else
 #set($comment=$column.columnComment)
 #end
-#if($parentheseIndex != -1)
-    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
-#elseif($column.javaType == 'Date')
+###if($parentheseIndex != -1)
+##    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+#if($column.javaType == 'Date')
     @JsonFormat(pattern = "yyyy-MM-dd")
-    @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
+##    @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
 #else
-    @Excel(name = "${comment}")
-#end
+##    @Excel(name = "${comment}")
+###end
 #end
+    @TableField("${column.columnName}")
     @ApiModelProperty("${column.columnComment}")
 #end
     private $column.javaType $column.javaField;
 
+#end
 #end
 #end
 #if($table.sub)