基础代码生成

This commit is contained in:
lu7213 committed 2026-10-22 11:09:36 -04:00
1 parent 352d7d023f
commit 1c0544afe0
122 files changed
+21475

No files matched your search

@@ -0,0 +1,170 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentAccount;
import com.ruoyi.system.domain.RentAccountPlus;
import com.ruoyi.system.service.IRentAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 独立租赁资金账户;仅USDT,按用户和网络隔离Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentAccount")
public class RentAccountController extends BaseController
{
@Autowired
private IRentAccountService rentAccountService;
@PreAuthorize("@ss.hasPermi('system:rentAccount:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentAccountPlus> list = rentAccountService.getByIds(ids.getLongIds(),false,RentAccountPlus::getUserId,RentAccountPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentAccount:user-getByIds')")
@PostMapping("/user/getByIds")
public AjaxResult userGetByIds(@RequestBody Ids ids)
{
List<RentAccountPlus> list = rentAccountService.getByIds(ids.getLongIds(),true,RentAccountPlus::getUserId,RentAccountPlus::getUserId,RentAccountPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentAccount:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentAccountService.select(keyword,false);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentAccount:user-select')")
@GetMapping("/user/select")
public AjaxResult userSelect(String keyword)
{
List<SelectItem> list = rentAccountService.select(keyword,true);
return AjaxResult.success(list);
}
/**
* 查询独立租赁资金账户;仅USDT,按用户和网络隔离列表
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:list')")
@GetMapping("/list")
public TableDataInfo list(RentAccount rentAccount)
{
startPage();
List<RentAccount> list = rentAccountService.selectRentAccountList(rentAccount,false);
return getDataTable(list);
}
/**
* 查询独立租赁资金账户;仅USDT,按用户和网络隔离列表
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:user-list')")
@GetMapping("/user/list")
public TableDataInfo userList(RentAccount rentAccount)
{
startPage();
List<RentAccount> list = rentAccountService.selectRentAccountList(rentAccount,true);
return getDataTable(list);
}
/**
* 导出独立租赁资金账户;仅USDT,按用户和网络隔离列表
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:export')")
@Log(title = "独立租赁资金账户;仅USDT,按用户和网络隔离", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentAccount rentAccount)
{
List<RentAccount> list = rentAccountService.selectRentAccountList(rentAccount,false);
ExcelUtil<RentAccount> util = new ExcelUtil<RentAccount>(RentAccount.class);
return util.exportExcel(list, "rentAccount");
}
/**
* 获取独立租赁资金账户;仅USDT,按用户和网络隔离详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentAccountService.selectRentAccountById(id,false));
}
/**
* 获取独立租赁资金账户;仅USDT,按用户和网络隔离详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:user-query')")
@GetMapping(value = "/user/{id}")
public AjaxResult userGetInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentAccountService.selectRentAccountById(id,true));
}
/**
* 新增独立租赁资金账户;仅USDT,按用户和网络隔离
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:add')")
@Log(title = "独立租赁资金账户;仅USDT,按用户和网络隔离", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentAccount rentAccount)
{
return toAjax(rentAccountService.insertRentAccount(rentAccount,false));
}
/**
* 新增独立租赁资金账户;仅USDT,按用户和网络隔离
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:user-add')")
@Log(title = "独立租赁资金账户;仅USDT,按用户和网络隔离", businessType = BusinessType.INSERT)
@PostMapping("/user")
public AjaxResult userAdd(@RequestBody RentAccount rentAccount)
{
return toAjax(rentAccountService.insertRentAccount(rentAccount,true));
}
/**
* 修改独立租赁资金账户;仅USDT,按用户和网络隔离
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:edit')")
@Log(title = "独立租赁资金账户;仅USDT,按用户和网络隔离", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentAccount rentAccount)
{
return toAjax(rentAccountService.updateRentAccount(rentAccount,false));
}
@PreAuthorize("@ss.hasPermi('system:rentAccount:user-edit')")
@Log(title = "独立租赁资金账户;仅USDT,按用户和网络隔离", businessType = BusinessType.UPDATE)
@PutMapping("/user")
public AjaxResult userEdit(@RequestBody RentAccount rentAccount)
{
return toAjax(rentAccountService.updateRentAccount(rentAccount,true));
}
/**
* 删除独立租赁资金账户;仅USDT,按用户和网络隔离
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:remove')")
@Log(title = "独立租赁资金账户;仅USDT,按用户和网络隔离", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentAccountService.deleteRentAccountByIds(ids,false));
}
/**
* 删除独立租赁资金账户;仅USDT,按用户和网络隔离
*/
@PreAuthorize("@ss.hasPermi('system:rentAccount:user-remove')")
@Log(title = "独立租赁资金账户;仅USDT,按用户和网络隔离", businessType = BusinessType.DELETE)
@DeleteMapping("/user/{ids}")
public AjaxResult userRemove(@PathVariable Long[] ids)
{
return toAjax(rentAccountService.deleteRentAccountByIds(ids,true));
}
}
@@ -0,0 +1,170 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentApp;
import com.ruoyi.system.domain.RentAppPlus;
import com.ruoyi.system.service.IRentAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 租赁独立商户应用;登录及权限共用若依Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentApp")
public class RentAppController extends BaseController
{
@Autowired
private IRentAppService rentAppService;
@PreAuthorize("@ss.hasPermi('system:rentApp:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentAppPlus> list = rentAppService.getByIds(ids.getLongIds(),false,RentAppPlus::getName,RentAppPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentApp:user-getByIds')")
@PostMapping("/user/getByIds")
public AjaxResult userGetByIds(@RequestBody Ids ids)
{
List<RentAppPlus> list = rentAppService.getByIds(ids.getLongIds(),true,RentAppPlus::getUserId,RentAppPlus::getName,RentAppPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentApp:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentAppService.select(keyword,false);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentApp:user-select')")
@GetMapping("/user/select")
public AjaxResult userSelect(String keyword)
{
List<SelectItem> list = rentAppService.select(keyword,true);
return AjaxResult.success(list);
}
/**
* 查询租赁独立商户应用;登录及权限共用若依列表
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:list')")
@GetMapping("/list")
public TableDataInfo list(RentApp rentApp)
{
startPage();
List<RentApp> list = rentAppService.selectRentAppList(rentApp,false);
return getDataTable(list);
}
/**
* 查询租赁独立商户应用;登录及权限共用若依列表
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:user-list')")
@GetMapping("/user/list")
public TableDataInfo userList(RentApp rentApp)
{
startPage();
List<RentApp> list = rentAppService.selectRentAppList(rentApp,true);
return getDataTable(list);
}
/**
* 导出租赁独立商户应用;登录及权限共用若依列表
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:export')")
@Log(title = "租赁独立商户应用;登录及权限共用若依", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentApp rentApp)
{
List<RentApp> list = rentAppService.selectRentAppList(rentApp,false);
ExcelUtil<RentApp> util = new ExcelUtil<RentApp>(RentApp.class);
return util.exportExcel(list, "rentApp");
}
/**
* 获取租赁独立商户应用;登录及权限共用若依详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentAppService.selectRentAppById(id,false));
}
/**
* 获取租赁独立商户应用;登录及权限共用若依详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:user-query')")
@GetMapping(value = "/user/{id}")
public AjaxResult userGetInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentAppService.selectRentAppById(id,true));
}
/**
* 新增租赁独立商户应用;登录及权限共用若依
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:add')")
@Log(title = "租赁独立商户应用;登录及权限共用若依", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentApp rentApp)
{
return toAjax(rentAppService.insertRentApp(rentApp,false));
}
/**
* 新增租赁独立商户应用;登录及权限共用若依
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:user-add')")
@Log(title = "租赁独立商户应用;登录及权限共用若依", businessType = BusinessType.INSERT)
@PostMapping("/user")
public AjaxResult userAdd(@RequestBody RentApp rentApp)
{
return toAjax(rentAppService.insertRentApp(rentApp,true));
}
/**
* 修改租赁独立商户应用;登录及权限共用若依
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:edit')")
@Log(title = "租赁独立商户应用;登录及权限共用若依", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentApp rentApp)
{
return toAjax(rentAppService.updateRentApp(rentApp,false));
}
@PreAuthorize("@ss.hasPermi('system:rentApp:user-edit')")
@Log(title = "租赁独立商户应用;登录及权限共用若依", businessType = BusinessType.UPDATE)
@PutMapping("/user")
public AjaxResult userEdit(@RequestBody RentApp rentApp)
{
return toAjax(rentAppService.updateRentApp(rentApp,true));
}
/**
* 删除租赁独立商户应用;登录及权限共用若依
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:remove')")
@Log(title = "租赁独立商户应用;登录及权限共用若依", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentAppService.deleteRentAppByIds(ids,false));
}
/**
* 删除租赁独立商户应用;登录及权限共用若依
*/
@PreAuthorize("@ss.hasPermi('system:rentApp:user-remove')")
@Log(title = "租赁独立商户应用;登录及权限共用若依", businessType = BusinessType.DELETE)
@DeleteMapping("/user/{ids}")
public AjaxResult userRemove(@PathVariable Long[] ids)
{
return toAjax(rentAppService.deleteRentAppByIds(ids,true));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentCredential;
import com.ruoyi.system.domain.RentCredentialPlus;
import com.ruoyi.system.service.IRentCredentialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 商户及节点统一HMAC凭证版本;不含RSAController
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentCredential")
public class RentCredentialController extends BaseController
{
@Autowired
private IRentCredentialService rentCredentialService;
@PreAuthorize("@ss.hasPermi('system:rentCredential:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentCredentialPlus> list = rentCredentialService.getByIds(ids.getLongIds(),RentCredentialPlus::getApiKey,RentCredentialPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentCredential:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentCredentialService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询商户及节点统一HMAC凭证版本;不含RSA列表
*/
@PreAuthorize("@ss.hasPermi('system:rentCredential:list')")
@GetMapping("/list")
public TableDataInfo list(RentCredential rentCredential)
{
startPage();
List<RentCredential> list = rentCredentialService.selectRentCredentialList(rentCredential);
return getDataTable(list);
}
/**
* 导出商户及节点统一HMAC凭证版本;不含RSA列表
*/
@PreAuthorize("@ss.hasPermi('system:rentCredential:export')")
@Log(title = "商户及节点统一HMAC凭证版本;不含RSA", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentCredential rentCredential)
{
List<RentCredential> list = rentCredentialService.selectRentCredentialList(rentCredential);
ExcelUtil<RentCredential> util = new ExcelUtil<RentCredential>(RentCredential.class);
return util.exportExcel(list, "rentCredential");
}
/**
* 获取商户及节点统一HMAC凭证版本;不含RSA详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentCredential:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentCredentialService.selectRentCredentialById(id));
}
/**
* 新增商户及节点统一HMAC凭证版本;不含RSA
*/
@PreAuthorize("@ss.hasPermi('system:rentCredential:add')")
@Log(title = "商户及节点统一HMAC凭证版本;不含RSA", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentCredential rentCredential)
{
return toAjax(rentCredentialService.insertRentCredential(rentCredential));
}
/**
* 修改商户及节点统一HMAC凭证版本;不含RSA
*/
@PreAuthorize("@ss.hasPermi('system:rentCredential:edit')")
@Log(title = "商户及节点统一HMAC凭证版本;不含RSA", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentCredential rentCredential)
{
return toAjax(rentCredentialService.updateRentCredential(rentCredential));
}
/**
* 删除商户及节点统一HMAC凭证版本;不含RSA
*/
@PreAuthorize("@ss.hasPermi('system:rentCredential:remove')")
@Log(title = "商户及节点统一HMAC凭证版本;不含RSA", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentCredentialService.deleteRentCredentialByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentEvent;
import com.ruoyi.system.domain.RentEventPlus;
import com.ruoyi.system.service.IRentEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 业务操作和状态变更追加审计;关键事务同写Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentEvent")
public class RentEventController extends BaseController
{
@Autowired
private IRentEventService rentEventService;
@PreAuthorize("@ss.hasPermi('system:rentEvent:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentEventPlus> list = rentEventService.getByIds(ids.getLongIds(),RentEventPlus::getEventNo,RentEventPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentEvent:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentEventService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询业务操作和状态变更追加审计;关键事务同写列表
*/
@PreAuthorize("@ss.hasPermi('system:rentEvent:list')")
@GetMapping("/list")
public TableDataInfo list(RentEvent rentEvent)
{
startPage();
List<RentEvent> list = rentEventService.selectRentEventList(rentEvent);
return getDataTable(list);
}
/**
* 导出业务操作和状态变更追加审计;关键事务同写列表
*/
@PreAuthorize("@ss.hasPermi('system:rentEvent:export')")
@Log(title = "业务操作和状态变更追加审计;关键事务同写", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentEvent rentEvent)
{
List<RentEvent> list = rentEventService.selectRentEventList(rentEvent);
ExcelUtil<RentEvent> util = new ExcelUtil<RentEvent>(RentEvent.class);
return util.exportExcel(list, "rentEvent");
}
/**
* 获取业务操作和状态变更追加审计;关键事务同写详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentEvent:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentEventService.selectRentEventById(id));
}
/**
* 新增业务操作和状态变更追加审计;关键事务同写
*/
@PreAuthorize("@ss.hasPermi('system:rentEvent:add')")
@Log(title = "业务操作和状态变更追加审计;关键事务同写", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentEvent rentEvent)
{
return toAjax(rentEventService.insertRentEvent(rentEvent));
}
/**
* 修改业务操作和状态变更追加审计;关键事务同写
*/
@PreAuthorize("@ss.hasPermi('system:rentEvent:edit')")
@Log(title = "业务操作和状态变更追加审计;关键事务同写", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentEvent rentEvent)
{
return toAjax(rentEventService.updateRentEvent(rentEvent));
}
/**
* 删除业务操作和状态变更追加审计;关键事务同写
*/
@PreAuthorize("@ss.hasPermi('system:rentEvent:remove')")
@Log(title = "业务操作和状态变更追加审计;关键事务同写", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentEventService.deleteRentEventByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentLedger;
import com.ruoyi.system.domain.RentLedgerPlus;
import com.ruoyi.system.service.IRentLedgerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentLedger")
public class RentLedgerController extends BaseController
{
@Autowired
private IRentLedgerService rentLedgerService;
@PreAuthorize("@ss.hasPermi('system:rentLedger:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentLedgerPlus> list = rentLedgerService.getByIds(ids.getLongIds(),RentLedgerPlus::getBusinessKey,RentLedgerPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentLedger:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentLedgerService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖列表
*/
@PreAuthorize("@ss.hasPermi('system:rentLedger:list')")
@GetMapping("/list")
public TableDataInfo list(RentLedger rentLedger)
{
startPage();
List<RentLedger> list = rentLedgerService.selectRentLedgerList(rentLedger);
return getDataTable(list);
}
/**
* 导出不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖列表
*/
@PreAuthorize("@ss.hasPermi('system:rentLedger:export')")
@Log(title = "不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentLedger rentLedger)
{
List<RentLedger> list = rentLedgerService.selectRentLedgerList(rentLedger);
ExcelUtil<RentLedger> util = new ExcelUtil<RentLedger>(RentLedger.class);
return util.exportExcel(list, "rentLedger");
}
/**
* 获取不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentLedger:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentLedgerService.selectRentLedgerById(id));
}
/**
* 新增不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
*/
@PreAuthorize("@ss.hasPermi('system:rentLedger:add')")
@Log(title = "不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentLedger rentLedger)
{
return toAjax(rentLedgerService.insertRentLedger(rentLedger));
}
/**
* 修改不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
*/
@PreAuthorize("@ss.hasPermi('system:rentLedger:edit')")
@Log(title = "不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentLedger rentLedger)
{
return toAjax(rentLedgerService.updateRentLedger(rentLedger));
}
/**
* 删除不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖
*/
@PreAuthorize("@ss.hasPermi('system:rentLedger:remove')")
@Log(title = "不可变租赁资金流水;余额与流水同事务,冲正追加不覆盖", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentLedgerService.deleteRentLedgerByIds(ids));
}
}
@@ -0,0 +1,170 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentNode;
import com.ruoyi.system.domain.RentNodePlus;
import com.ruoyi.system.service.IRentNodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 供应商本地Agent节点;供应商直接关联共享用户,不另建成员Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentNode")
public class RentNodeController extends BaseController
{
@Autowired
private IRentNodeService rentNodeService;
@PreAuthorize("@ss.hasPermi('system:rentNode:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentNodePlus> list = rentNodeService.getByIds(ids.getLongIds(),false,RentNodePlus::getName,RentNodePlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentNode:user-getByIds')")
@PostMapping("/user/getByIds")
public AjaxResult userGetByIds(@RequestBody Ids ids)
{
List<RentNodePlus> list = rentNodeService.getByIds(ids.getLongIds(),true,RentNodePlus::getUserId,RentNodePlus::getName,RentNodePlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentNode:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentNodeService.select(keyword,false);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentNode:user-select')")
@GetMapping("/user/select")
public AjaxResult userSelect(String keyword)
{
List<SelectItem> list = rentNodeService.select(keyword,true);
return AjaxResult.success(list);
}
/**
* 查询供应商本地Agent节点;供应商直接关联共享用户,不另建成员列表
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:list')")
@GetMapping("/list")
public TableDataInfo list(RentNode rentNode)
{
startPage();
List<RentNode> list = rentNodeService.selectRentNodeList(rentNode,false);
return getDataTable(list);
}
/**
* 查询供应商本地Agent节点;供应商直接关联共享用户,不另建成员列表
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:user-list')")
@GetMapping("/user/list")
public TableDataInfo userList(RentNode rentNode)
{
startPage();
List<RentNode> list = rentNodeService.selectRentNodeList(rentNode,true);
return getDataTable(list);
}
/**
* 导出供应商本地Agent节点;供应商直接关联共享用户,不另建成员列表
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:export')")
@Log(title = "供应商本地Agent节点;供应商直接关联共享用户,不另建成员", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentNode rentNode)
{
List<RentNode> list = rentNodeService.selectRentNodeList(rentNode,false);
ExcelUtil<RentNode> util = new ExcelUtil<RentNode>(RentNode.class);
return util.exportExcel(list, "rentNode");
}
/**
* 获取供应商本地Agent节点;供应商直接关联共享用户,不另建成员详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentNodeService.selectRentNodeById(id,false));
}
/**
* 获取供应商本地Agent节点;供应商直接关联共享用户,不另建成员详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:user-query')")
@GetMapping(value = "/user/{id}")
public AjaxResult userGetInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentNodeService.selectRentNodeById(id,true));
}
/**
* 新增供应商本地Agent节点;供应商直接关联共享用户,不另建成员
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:add')")
@Log(title = "供应商本地Agent节点;供应商直接关联共享用户,不另建成员", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentNode rentNode)
{
return toAjax(rentNodeService.insertRentNode(rentNode,false));
}
/**
* 新增供应商本地Agent节点;供应商直接关联共享用户,不另建成员
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:user-add')")
@Log(title = "供应商本地Agent节点;供应商直接关联共享用户,不另建成员", businessType = BusinessType.INSERT)
@PostMapping("/user")
public AjaxResult userAdd(@RequestBody RentNode rentNode)
{
return toAjax(rentNodeService.insertRentNode(rentNode,true));
}
/**
* 修改供应商本地Agent节点;供应商直接关联共享用户,不另建成员
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:edit')")
@Log(title = "供应商本地Agent节点;供应商直接关联共享用户,不另建成员", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentNode rentNode)
{
return toAjax(rentNodeService.updateRentNode(rentNode,false));
}
@PreAuthorize("@ss.hasPermi('system:rentNode:user-edit')")
@Log(title = "供应商本地Agent节点;供应商直接关联共享用户,不另建成员", businessType = BusinessType.UPDATE)
@PutMapping("/user")
public AjaxResult userEdit(@RequestBody RentNode rentNode)
{
return toAjax(rentNodeService.updateRentNode(rentNode,true));
}
/**
* 删除供应商本地Agent节点;供应商直接关联共享用户,不另建成员
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:remove')")
@Log(title = "供应商本地Agent节点;供应商直接关联共享用户,不另建成员", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentNodeService.deleteRentNodeByIds(ids,false));
}
/**
* 删除供应商本地Agent节点;供应商直接关联共享用户,不另建成员
*/
@PreAuthorize("@ss.hasPermi('system:rentNode:user-remove')")
@Log(title = "供应商本地Agent节点;供应商直接关联共享用户,不另建成员", businessType = BusinessType.DELETE)
@DeleteMapping("/user/{ids}")
public AjaxResult userRemove(@PathVariable Long[] ids)
{
return toAjax(rentNodeService.deleteRentNodeByIds(ids,true));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentNonce;
import com.ruoyi.system.domain.RentNoncePlus;
import com.ruoyi.system.service.IRentNonceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* HMAC请求防重放记录Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentNonce")
public class RentNonceController extends BaseController
{
@Autowired
private IRentNonceService rentNonceService;
@PreAuthorize("@ss.hasPermi('system:rentNonce:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentNoncePlus> list = rentNonceService.getByIds(ids.getLongIds(),RentNoncePlus::getNonce,RentNoncePlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentNonce:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentNonceService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询HMAC请求防重放记录列表
*/
@PreAuthorize("@ss.hasPermi('system:rentNonce:list')")
@GetMapping("/list")
public TableDataInfo list(RentNonce rentNonce)
{
startPage();
List<RentNonce> list = rentNonceService.selectRentNonceList(rentNonce);
return getDataTable(list);
}
/**
* 导出HMAC请求防重放记录列表
*/
@PreAuthorize("@ss.hasPermi('system:rentNonce:export')")
@Log(title = "HMAC请求防重放记录", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentNonce rentNonce)
{
List<RentNonce> list = rentNonceService.selectRentNonceList(rentNonce);
ExcelUtil<RentNonce> util = new ExcelUtil<RentNonce>(RentNonce.class);
return util.exportExcel(list, "rentNonce");
}
/**
* 获取HMAC请求防重放记录详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentNonce:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentNonceService.selectRentNonceById(id));
}
/**
* 新增HMAC请求防重放记录
*/
@PreAuthorize("@ss.hasPermi('system:rentNonce:add')")
@Log(title = "HMAC请求防重放记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentNonce rentNonce)
{
return toAjax(rentNonceService.insertRentNonce(rentNonce));
}
/**
* 修改HMAC请求防重放记录
*/
@PreAuthorize("@ss.hasPermi('system:rentNonce:edit')")
@Log(title = "HMAC请求防重放记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentNonce rentNonce)
{
return toAjax(rentNonceService.updateRentNonce(rentNonce));
}
/**
* 删除HMAC请求防重放记录
*/
@PreAuthorize("@ss.hasPermi('system:rentNonce:remove')")
@Log(title = "HMAC请求防重放记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentNonceService.deleteRentNonceByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentOrder;
import com.ruoyi.system.domain.RentOrderPlus;
import com.ruoyi.system.service.IRentOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentOrder")
public class RentOrderController extends BaseController
{
@Autowired
private IRentOrderService rentOrderService;
@PreAuthorize("@ss.hasPermi('system:rentOrder:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentOrderPlus> list = rentOrderService.getByIds(ids.getLongIds(),RentOrderPlus::getOrderNo,RentOrderPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentOrder:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentOrderService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开列表
*/
@PreAuthorize("@ss.hasPermi('system:rentOrder:list')")
@GetMapping("/list")
public TableDataInfo list(RentOrder rentOrder)
{
startPage();
List<RentOrder> list = rentOrderService.selectRentOrderList(rentOrder);
return getDataTable(list);
}
/**
* 导出能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开列表
*/
@PreAuthorize("@ss.hasPermi('system:rentOrder:export')")
@Log(title = "能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentOrder rentOrder)
{
List<RentOrder> list = rentOrderService.selectRentOrderList(rentOrder);
ExcelUtil<RentOrder> util = new ExcelUtil<RentOrder>(RentOrder.class);
return util.exportExcel(list, "rentOrder");
}
/**
* 获取能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentOrder:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentOrderService.selectRentOrderById(id));
}
/**
* 新增能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开
*/
@PreAuthorize("@ss.hasPermi('system:rentOrder:add')")
@Log(title = "能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentOrder rentOrder)
{
return toAjax(rentOrderService.insertRentOrder(rentOrder));
}
/**
* 修改能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开
*/
@PreAuthorize("@ss.hasPermi('system:rentOrder:edit')")
@Log(title = "能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentOrder rentOrder)
{
return toAjax(rentOrderService.updateRentOrder(rentOrder));
}
/**
* 删除能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开
*/
@PreAuthorize("@ss.hasPermi('system:rentOrder:remove')")
@Log(title = "能量或带宽租赁订单;一单一种资源一个钱包,履约与回收分开", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentOrderService.deleteRentOrderByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentPackage;
import com.ruoyi.system.domain.RentPackagePlus;
import com.ruoyi.system.service.IRentPackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentPackage")
public class RentPackageController extends BaseController
{
@Autowired
private IRentPackageService rentPackageService;
@PreAuthorize("@ss.hasPermi('system:rentPackage:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentPackagePlus> list = rentPackageService.getByIds(ids.getLongIds(),RentPackagePlus::getName,RentPackagePlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentPackage:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentPackageService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变列表
*/
@PreAuthorize("@ss.hasPermi('system:rentPackage:list')")
@GetMapping("/list")
public TableDataInfo list(RentPackage rentPackage)
{
startPage();
List<RentPackage> list = rentPackageService.selectRentPackageList(rentPackage);
return getDataTable(list);
}
/**
* 导出能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变列表
*/
@PreAuthorize("@ss.hasPermi('system:rentPackage:export')")
@Log(title = "能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentPackage rentPackage)
{
List<RentPackage> list = rentPackageService.selectRentPackageList(rentPackage);
ExcelUtil<RentPackage> util = new ExcelUtil<RentPackage>(RentPackage.class);
return util.exportExcel(list, "rentPackage");
}
/**
* 获取能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentPackage:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentPackageService.selectRentPackageById(id));
}
/**
* 新增能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变
*/
@PreAuthorize("@ss.hasPermi('system:rentPackage:add')")
@Log(title = "能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentPackage rentPackage)
{
return toAjax(rentPackageService.insertRentPackage(rentPackage));
}
/**
* 修改能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变
*/
@PreAuthorize("@ss.hasPermi('system:rentPackage:edit')")
@Log(title = "能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentPackage rentPackage)
{
return toAjax(rentPackageService.updateRentPackage(rentPackage));
}
/**
* 删除能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变
*/
@PreAuthorize("@ss.hasPermi('system:rentPackage:remove')")
@Log(title = "能量或带宽固定套餐及价格版本;套餐代码的资源类型不可改变", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentPackageService.deleteRentPackageByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentRefund;
import com.ruoyi.system.domain.RentRefundPlus;
import com.ruoyi.system.service.IRentRefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentRefund")
public class RentRefundController extends BaseController
{
@Autowired
private IRentRefundService rentRefundService;
@PreAuthorize("@ss.hasPermi('system:rentRefund:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentRefundPlus> list = rentRefundService.getByIds(ids.getLongIds(),RentRefundPlus::getRefundNo,RentRefundPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentRefund:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentRefundService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史列表
*/
@PreAuthorize("@ss.hasPermi('system:rentRefund:list')")
@GetMapping("/list")
public TableDataInfo list(RentRefund rentRefund)
{
startPage();
List<RentRefund> list = rentRefundService.selectRentRefundList(rentRefund);
return getDataTable(list);
}
/**
* 导出内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史列表
*/
@PreAuthorize("@ss.hasPermi('system:rentRefund:export')")
@Log(title = "内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentRefund rentRefund)
{
List<RentRefund> list = rentRefundService.selectRentRefundList(rentRefund);
ExcelUtil<RentRefund> util = new ExcelUtil<RentRefund>(RentRefund.class);
return util.exportExcel(list, "rentRefund");
}
/**
* 获取内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentRefund:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentRefundService.selectRentRefundById(id));
}
/**
* 新增内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史
*/
@PreAuthorize("@ss.hasPermi('system:rentRefund:add')")
@Log(title = "内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentRefund rentRefund)
{
return toAjax(rentRefundService.insertRentRefund(rentRefund));
}
/**
* 修改内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史
*/
@PreAuthorize("@ss.hasPermi('system:rentRefund:edit')")
@Log(title = "内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentRefund rentRefund)
{
return toAjax(rentRefundService.updateRentRefund(rentRefund));
}
/**
* 删除内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史
*/
@PreAuthorize("@ss.hasPermi('system:rentRefund:remove')")
@Log(title = "内部余额退款审批与幂等来源;部分退款逐次新增,不覆盖历史", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentRefundService.deleteRentRefundByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentSettlement;
import com.ruoyi.system.domain.RentSettlementPlus;
import com.ruoyi.system.service.IRentSettlementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 供应商人工结算单;不自动链上出金Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentSettlement")
public class RentSettlementController extends BaseController
{
@Autowired
private IRentSettlementService rentSettlementService;
@PreAuthorize("@ss.hasPermi('system:rentSettlement:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentSettlementPlus> list = rentSettlementService.getByIds(ids.getLongIds(),RentSettlementPlus::getSettlementNo,RentSettlementPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentSettlement:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentSettlementService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询供应商人工结算单;不自动链上出金列表
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlement:list')")
@GetMapping("/list")
public TableDataInfo list(RentSettlement rentSettlement)
{
startPage();
List<RentSettlement> list = rentSettlementService.selectRentSettlementList(rentSettlement);
return getDataTable(list);
}
/**
* 导出供应商人工结算单;不自动链上出金列表
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlement:export')")
@Log(title = "供应商人工结算单;不自动链上出金", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentSettlement rentSettlement)
{
List<RentSettlement> list = rentSettlementService.selectRentSettlementList(rentSettlement);
ExcelUtil<RentSettlement> util = new ExcelUtil<RentSettlement>(RentSettlement.class);
return util.exportExcel(list, "rentSettlement");
}
/**
* 获取供应商人工结算单;不自动链上出金详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlement:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentSettlementService.selectRentSettlementById(id));
}
/**
* 新增供应商人工结算单;不自动链上出金
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlement:add')")
@Log(title = "供应商人工结算单;不自动链上出金", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentSettlement rentSettlement)
{
return toAjax(rentSettlementService.insertRentSettlement(rentSettlement));
}
/**
* 修改供应商人工结算单;不自动链上出金
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlement:edit')")
@Log(title = "供应商人工结算单;不自动链上出金", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentSettlement rentSettlement)
{
return toAjax(rentSettlementService.updateRentSettlement(rentSettlement));
}
/**
* 删除供应商人工结算单;不自动链上出金
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlement:remove')")
@Log(title = "供应商人工结算单;不自动链上出金", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentSettlementService.deleteRentSettlementByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentSettlementItem;
import com.ruoyi.system.domain.RentSettlementItemPlus;
import com.ruoyi.system.service.IRentSettlementItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 供应商订单应收与结算关联;首版每单全额结算一次Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentSettlementItem")
public class RentSettlementItemController extends BaseController
{
@Autowired
private IRentSettlementItemService rentSettlementItemService;
@PreAuthorize("@ss.hasPermi('system:rentSettlementItem:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentSettlementItemPlus> list = rentSettlementItemService.getByIds(ids.getLongIds(),RentSettlementItemPlus::getOrderId,RentSettlementItemPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentSettlementItem:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentSettlementItemService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询供应商订单应收与结算关联;首版每单全额结算一次列表
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlementItem:list')")
@GetMapping("/list")
public TableDataInfo list(RentSettlementItem rentSettlementItem)
{
startPage();
List<RentSettlementItem> list = rentSettlementItemService.selectRentSettlementItemList(rentSettlementItem);
return getDataTable(list);
}
/**
* 导出供应商订单应收与结算关联;首版每单全额结算一次列表
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlementItem:export')")
@Log(title = "供应商订单应收与结算关联;首版每单全额结算一次", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentSettlementItem rentSettlementItem)
{
List<RentSettlementItem> list = rentSettlementItemService.selectRentSettlementItemList(rentSettlementItem);
ExcelUtil<RentSettlementItem> util = new ExcelUtil<RentSettlementItem>(RentSettlementItem.class);
return util.exportExcel(list, "rentSettlementItem");
}
/**
* 获取供应商订单应收与结算关联;首版每单全额结算一次详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlementItem:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentSettlementItemService.selectRentSettlementItemById(id));
}
/**
* 新增供应商订单应收与结算关联;首版每单全额结算一次
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlementItem:add')")
@Log(title = "供应商订单应收与结算关联;首版每单全额结算一次", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentSettlementItem rentSettlementItem)
{
return toAjax(rentSettlementItemService.insertRentSettlementItem(rentSettlementItem));
}
/**
* 修改供应商订单应收与结算关联;首版每单全额结算一次
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlementItem:edit')")
@Log(title = "供应商订单应收与结算关联;首版每单全额结算一次", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentSettlementItem rentSettlementItem)
{
return toAjax(rentSettlementItemService.updateRentSettlementItem(rentSettlementItem));
}
/**
* 删除供应商订单应收与结算关联;首版每单全额结算一次
*/
@PreAuthorize("@ss.hasPermi('system:rentSettlementItem:remove')")
@Log(title = "供应商订单应收与结算关联;首版每单全额结算一次", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentSettlementItemService.deleteRentSettlementItemByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentTask;
import com.ruoyi.system.domain.RentTaskPlus;
import com.ruoyi.system.service.IRentTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 委托或回收任务,兼作持久队列与资源预留明细Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentTask")
public class RentTaskController extends BaseController
{
@Autowired
private IRentTaskService rentTaskService;
@PreAuthorize("@ss.hasPermi('system:rentTask:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentTaskPlus> list = rentTaskService.getByIds(ids.getLongIds(),RentTaskPlus::getTaskNo,RentTaskPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentTask:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentTaskService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询委托或回收任务,兼作持久队列与资源预留明细列表
*/
@PreAuthorize("@ss.hasPermi('system:rentTask:list')")
@GetMapping("/list")
public TableDataInfo list(RentTask rentTask)
{
startPage();
List<RentTask> list = rentTaskService.selectRentTaskList(rentTask);
return getDataTable(list);
}
/**
* 导出委托或回收任务,兼作持久队列与资源预留明细列表
*/
@PreAuthorize("@ss.hasPermi('system:rentTask:export')")
@Log(title = "委托或回收任务,兼作持久队列与资源预留明细", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentTask rentTask)
{
List<RentTask> list = rentTaskService.selectRentTaskList(rentTask);
ExcelUtil<RentTask> util = new ExcelUtil<RentTask>(RentTask.class);
return util.exportExcel(list, "rentTask");
}
/**
* 获取委托或回收任务,兼作持久队列与资源预留明细详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentTask:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentTaskService.selectRentTaskById(id));
}
/**
* 新增委托或回收任务,兼作持久队列与资源预留明细
*/
@PreAuthorize("@ss.hasPermi('system:rentTask:add')")
@Log(title = "委托或回收任务,兼作持久队列与资源预留明细", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentTask rentTask)
{
return toAjax(rentTaskService.insertRentTask(rentTask));
}
/**
* 修改委托或回收任务,兼作持久队列与资源预留明细
*/
@PreAuthorize("@ss.hasPermi('system:rentTask:edit')")
@Log(title = "委托或回收任务,兼作持久队列与资源预留明细", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentTask rentTask)
{
return toAjax(rentTaskService.updateRentTask(rentTask));
}
/**
* 删除委托或回收任务,兼作持久队列与资源预留明细
*/
@PreAuthorize("@ss.hasPermi('system:rentTask:remove')")
@Log(title = "委托或回收任务,兼作持久队列与资源预留明细", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentTaskService.deleteRentTaskByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentTransaction;
import com.ruoyi.system.domain.RentTransactionPlus;
import com.ruoyi.system.service.IRentTransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 链上委托或回收证据;一任务只能构建一笔交易Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentTransaction")
public class RentTransactionController extends BaseController
{
@Autowired
private IRentTransactionService rentTransactionService;
@PreAuthorize("@ss.hasPermi('system:rentTransaction:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentTransactionPlus> list = rentTransactionService.getByIds(ids.getLongIds(),RentTransactionPlus::getTxId,RentTransactionPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentTransaction:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentTransactionService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询链上委托或回收证据;一任务只能构建一笔交易列表
*/
@PreAuthorize("@ss.hasPermi('system:rentTransaction:list')")
@GetMapping("/list")
public TableDataInfo list(RentTransaction rentTransaction)
{
startPage();
List<RentTransaction> list = rentTransactionService.selectRentTransactionList(rentTransaction);
return getDataTable(list);
}
/**
* 导出链上委托或回收证据;一任务只能构建一笔交易列表
*/
@PreAuthorize("@ss.hasPermi('system:rentTransaction:export')")
@Log(title = "链上委托或回收证据;一任务只能构建一笔交易", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentTransaction rentTransaction)
{
List<RentTransaction> list = rentTransactionService.selectRentTransactionList(rentTransaction);
ExcelUtil<RentTransaction> util = new ExcelUtil<RentTransaction>(RentTransaction.class);
return util.exportExcel(list, "rentTransaction");
}
/**
* 获取链上委托或回收证据;一任务只能构建一笔交易详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentTransaction:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentTransactionService.selectRentTransactionById(id));
}
/**
* 新增链上委托或回收证据;一任务只能构建一笔交易
*/
@PreAuthorize("@ss.hasPermi('system:rentTransaction:add')")
@Log(title = "链上委托或回收证据;一任务只能构建一笔交易", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentTransaction rentTransaction)
{
return toAjax(rentTransactionService.insertRentTransaction(rentTransaction));
}
/**
* 修改链上委托或回收证据;一任务只能构建一笔交易
*/
@PreAuthorize("@ss.hasPermi('system:rentTransaction:edit')")
@Log(title = "链上委托或回收证据;一任务只能构建一笔交易", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentTransaction rentTransaction)
{
return toAjax(rentTransactionService.updateRentTransaction(rentTransaction));
}
/**
* 删除链上委托或回收证据;一任务只能构建一笔交易
*/
@PreAuthorize("@ss.hasPermi('system:rentTransaction:remove')")
@Log(title = "链上委托或回收证据;一任务只能构建一笔交易", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentTransactionService.deleteRentTransactionByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentWallet;
import com.ruoyi.system.domain.RentWalletPlus;
import com.ruoyi.system.service.IRentWalletService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentWallet")
public class RentWalletController extends BaseController
{
@Autowired
private IRentWalletService rentWalletService;
@PreAuthorize("@ss.hasPermi('system:rentWallet:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentWalletPlus> list = rentWalletService.getByIds(ids.getLongIds(),RentWalletPlus::getAddress,RentWalletPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentWallet:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentWalletService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点列表
*/
@PreAuthorize("@ss.hasPermi('system:rentWallet:list')")
@GetMapping("/list")
public TableDataInfo list(RentWallet rentWallet)
{
startPage();
List<RentWallet> list = rentWalletService.selectRentWalletList(rentWallet);
return getDataTable(list);
}
/**
* 导出供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点列表
*/
@PreAuthorize("@ss.hasPermi('system:rentWallet:export')")
@Log(title = "供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentWallet rentWallet)
{
List<RentWallet> list = rentWalletService.selectRentWalletList(rentWallet);
ExcelUtil<RentWallet> util = new ExcelUtil<RentWallet>(RentWallet.class);
return util.exportExcel(list, "rentWallet");
}
/**
* 获取供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentWallet:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentWalletService.selectRentWalletById(id));
}
/**
* 新增供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点
*/
@PreAuthorize("@ss.hasPermi('system:rentWallet:add')")
@Log(title = "供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentWallet rentWallet)
{
return toAjax(rentWalletService.insertRentWallet(rentWallet));
}
/**
* 修改供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点
*/
@PreAuthorize("@ss.hasPermi('system:rentWallet:edit')")
@Log(title = "供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentWallet rentWallet)
{
return toAjax(rentWalletService.updateRentWallet(rentWallet));
}
/**
* 删除供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点
*/
@PreAuthorize("@ss.hasPermi('system:rentWallet:remove')")
@Log(title = "供应钱包及能量带宽独立资源池投影;一个钱包绑定一个执行节点", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentWalletService.deleteRentWalletByIds(ids));
}
}
@@ -0,0 +1,109 @@
package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.select.Ids;
import com.ruoyi.common.select.SelectItem;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.RentWebhook;
import com.ruoyi.system.domain.RentWebhookPlus;
import com.ruoyi.system.service.IRentWebhookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 订单回调持久队列;业务状态更新时同事务写入Controller
*
* @author luqj
* @date 2026-10-22
*/
@RestController
@RequestMapping("/system/rentWebhook")
public class RentWebhookController extends BaseController
{
@Autowired
private IRentWebhookService rentWebhookService;
@PreAuthorize("@ss.hasPermi('system:rentWebhook:getByIds')")
@PostMapping("/getByIds")
public AjaxResult getByIds(@RequestBody Ids ids)
{
List<RentWebhookPlus> list = rentWebhookService.getByIds(ids.getLongIds(),RentWebhookPlus::getEventNo,RentWebhookPlus::getId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('system:rentWebhook:select')")
@GetMapping("/select")
public AjaxResult select(String keyword)
{
List<SelectItem> list = rentWebhookService.select(keyword);
return AjaxResult.success(list);
}
/**
* 查询订单回调持久队列;业务状态更新时同事务写入列表
*/
@PreAuthorize("@ss.hasPermi('system:rentWebhook:list')")
@GetMapping("/list")
public TableDataInfo list(RentWebhook rentWebhook)
{
startPage();
List<RentWebhook> list = rentWebhookService.selectRentWebhookList(rentWebhook);
return getDataTable(list);
}
/**
* 导出订单回调持久队列;业务状态更新时同事务写入列表
*/
@PreAuthorize("@ss.hasPermi('system:rentWebhook:export')")
@Log(title = "订单回调持久队列;业务状态更新时同事务写入", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(RentWebhook rentWebhook)
{
List<RentWebhook> list = rentWebhookService.selectRentWebhookList(rentWebhook);
ExcelUtil<RentWebhook> util = new ExcelUtil<RentWebhook>(RentWebhook.class);
return util.exportExcel(list, "rentWebhook");
}
/**
* 获取订单回调持久队列;业务状态更新时同事务写入详细信息
*/
@PreAuthorize("@ss.hasPermi('system:rentWebhook:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(rentWebhookService.selectRentWebhookById(id));
}
/**
* 新增订单回调持久队列;业务状态更新时同事务写入
*/
@PreAuthorize("@ss.hasPermi('system:rentWebhook:add')")
@Log(title = "订单回调持久队列;业务状态更新时同事务写入", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RentWebhook rentWebhook)
{
return toAjax(rentWebhookService.insertRentWebhook(rentWebhook));
}
/**
* 修改订单回调持久队列;业务状态更新时同事务写入
*/
@PreAuthorize("@ss.hasPermi('system:rentWebhook:edit')")
@Log(title = "订单回调持久队列;业务状态更新时同事务写入", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RentWebhook rentWebhook)
{
return toAjax(rentWebhookService.updateRentWebhook(rentWebhook));
}
/**
* 删除订单回调持久队列;业务状态更新时同事务写入
*/
@PreAuthorize("@ss.hasPermi('system:rentWebhook:remove')")
@Log(title = "订单回调持久队列;业务状态更新时同事务写入", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rentWebhookService.deleteRentWebhookByIds(ids));
}
}