diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/FreezeBalanceInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/FreezeBalanceInfoController.java similarity index 85% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/FreezeBalanceInfoController.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/FreezeBalanceInfoController.java index 789c4a05e..c8816009a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/FreezeBalanceInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/FreezeBalanceInfoController.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.account; +package com.ruoyi.web.controller.trx2Energy; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; @@ -6,6 +6,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.entity.FreezeBalanceInfo; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.DictUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.system.service.IAccountAddressInfoService; import com.ruoyi.system.service.IFreezeBalanceInfoService; @@ -24,10 +25,10 @@ import java.util.List; * @date 2024-04-13 */ @Controller -@RequestMapping("/account/freeze") +@RequestMapping("/trx2Energy/freeze") public class FreezeBalanceInfoController extends BaseController { - private String prefix = "account/freeze"; + private String prefix = "trx2Energy/freeze"; @Autowired private IFreezeBalanceInfoService freezeBalanceInfoService; @@ -35,7 +36,7 @@ public class FreezeBalanceInfoController extends BaseController @Autowired private IAccountAddressInfoService accountAddressInfoService; - @RequiresPermissions("account:freeze:view") + @RequiresPermissions("trx2Energy:freeze:view") @GetMapping() public String freeze() { @@ -45,7 +46,7 @@ public class FreezeBalanceInfoController extends BaseController /** * 查询抵押流水记录列表 */ - @RequiresPermissions("account:freeze:list") + @RequiresPermissions("trx2Energy:freeze:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(FreezeBalanceInfo freezeBalanceInfo) @@ -58,7 +59,7 @@ public class FreezeBalanceInfoController extends BaseController /** * 导出抵押流水记录列表 */ - @RequiresPermissions("account:freeze:export") + @RequiresPermissions("trx2Energy:freeze:export") @Log(title = "抵押流水记录", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody @@ -75,14 +76,15 @@ public class FreezeBalanceInfoController extends BaseController @GetMapping("/add") public String add(ModelMap mmap) { - mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll()); + String busiType = DictUtils.getDictValue("sys_busi_type", "TRX兑能量"); + mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll(busiType)); return prefix + "/add"; } /** * 新增保存抵押流水记录 */ - @RequiresPermissions("account:freeze:add") + @RequiresPermissions("trx2Energy:freeze:add") @Log(title = "抵押流水记录", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody @@ -93,7 +95,7 @@ public class FreezeBalanceInfoController extends BaseController /** * 修改抵押流水记录 */ - @RequiresPermissions("account:freeze:edit") + @RequiresPermissions("trx2Energy:freeze:edit") @GetMapping("/edit/{idFreezeBalanceInfo}") public String edit(@PathVariable("idFreezeBalanceInfo") Long idFreezeBalanceInfo, ModelMap mmap) { @@ -105,7 +107,7 @@ public class FreezeBalanceInfoController extends BaseController /** * 修改保存抵押流水记录 */ - @RequiresPermissions("account:freeze:edit") + @RequiresPermissions("trx2Energy:freeze:edit") @Log(title = "抵押流水记录", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -117,7 +119,7 @@ public class FreezeBalanceInfoController extends BaseController /** * 删除抵押流水记录 */ - @RequiresPermissions("account:freeze:remove") + @RequiresPermissions("trx2Energy:freeze:remove") @Log(title = "抵押流水记录", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/TenantInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/TenantInfoController.java similarity index 88% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/TenantInfoController.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/TenantInfoController.java index 594c7ff0e..91111505f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/TenantInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/TenantInfoController.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.account; +package com.ruoyi.web.controller.trx2Energy; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; @@ -26,17 +26,17 @@ import java.util.List; * @date 2024-04-14 */ @Controller -@RequestMapping("/account/tenant") +@RequestMapping("/trx2Energy/tenant") public class TenantInfoController extends BaseController { - private String prefix = "account/tenant"; + private String prefix = "trx2Energy/tenant"; @Autowired private ITenantInfoService tenantInfoService; @Autowired private IMonitorAddressInfoService monitorAddressInfoService; - @RequiresPermissions("account:tenant:view") + @RequiresPermissions("trx2Energy:tenant:view") @GetMapping() public String tenant() { @@ -46,7 +46,7 @@ public class TenantInfoController extends BaseController /** * 查询租户列表 */ - @RequiresPermissions("account:tenant:list") + @RequiresPermissions("trx2Energy:tenant:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(TenantInfo tenantInfo) @@ -59,7 +59,7 @@ public class TenantInfoController extends BaseController /** * 导出租户列表 */ - @RequiresPermissions("account:tenant:export") + @RequiresPermissions("trx2Energy:tenant:export") @Log(title = "租户", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody @@ -85,7 +85,7 @@ public class TenantInfoController extends BaseController /** * 新增保存租户 */ - @RequiresPermissions("account:tenant:add") + @RequiresPermissions("trx2Energy:tenant:add") @Log(title = "租户", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody @@ -97,7 +97,7 @@ public class TenantInfoController extends BaseController /** * 修改租户 */ - @RequiresPermissions("account:tenant:edit") + @RequiresPermissions("trx2Energy:tenant:edit") @GetMapping("/edit/{idTenantInfo}") public String edit(@PathVariable("idTenantInfo") Long idTenantInfo, ModelMap mmap) { @@ -112,7 +112,7 @@ public class TenantInfoController extends BaseController /** * 修改保存租户 */ - @RequiresPermissions("account:tenant:edit") + @RequiresPermissions("trx2Energy:tenant:edit") @Log(title = "租户", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -124,7 +124,7 @@ public class TenantInfoController extends BaseController /** * 删除租户 */ - @RequiresPermissions("account:tenant:remove") + @RequiresPermissions("trx2Energy:tenant:remove") @Log(title = "租户", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody @@ -133,7 +133,7 @@ public class TenantInfoController extends BaseController return toAjax(tenantInfoService.deleteTenantInfoByIdTenantInfos(ids)); } - @RequiresPermissions("account:tenant:add") + @RequiresPermissions("trx2Energy:tenant:add") @Log(title = "租户", businessType = BusinessType.ACTIVE_DATA) @PostMapping( "/activeData") @ResponseBody diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/Trx2EnergyAccountAddressInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/Trx2EnergyAccountAddressInfoController.java new file mode 100644 index 000000000..e7abacc21 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/Trx2EnergyAccountAddressInfoController.java @@ -0,0 +1,125 @@ +package com.ruoyi.web.controller.trx2Energy; + +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.domain.entity.AccountAddressInfo; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.DictUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.service.IAccountAddressInfoService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * TRX出账账户Controller + * + * @author dorion + * @date 2024-04-13 + */ +@Controller +@RequestMapping("/trx2Energy/account") +public class Trx2EnergyAccountAddressInfoController extends BaseController +{ + private String prefix = "trx2Energy/account"; + + @Autowired + private IAccountAddressInfoService accountAddressInfoService; + + @RequiresPermissions("trx2Energy:account:view") + @GetMapping() + public String transfer() + { + return prefix + "/trx2Energy"; + } + + /** + * 查询TRX出账账户列表 + */ + @RequiresPermissions("trx2Energy:account:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(AccountAddressInfo accountAddressInfo) throws Exception { + startPage(); + accountAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "TRX兑能量")); + List list = accountAddressInfoService.selectAccountAddressInfoListByResouce(accountAddressInfo); + + return getDataTable(list); + } + + /** + * 导出TRX出账账户列表 + */ + @RequiresPermissions("trx2Energy:account:export") + @Log(title = "TRX出账账户", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(AccountAddressInfo accountAddressInfo) throws Exception { + accountAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "TRX兑能量")); + List list = accountAddressInfoService.selectAccountAddressInfoListByResouce(accountAddressInfo); + ExcelUtil util = new ExcelUtil(AccountAddressInfo.class); + return util.exportExcel(list, "TRX出账账户数据"); + } + + /** + * 新增TRX出账账户 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存TRX出账账户 + */ + @RequiresPermissions("trx2Energy:account:add") + @Log(title = "TRX出账账户", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(AccountAddressInfo accountAddressInfo) throws Exception { + accountAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "TRX兑能量")); + return toAjax(accountAddressInfoService.insertAccountAddressInfo(accountAddressInfo)); + } + + /** + * 修改TRX出账账户 + */ + @RequiresPermissions("trx2Energy:account:edit") + @GetMapping("/edit/{idAccoutAddressInfo}") + public String edit(@PathVariable("idAccoutAddressInfo") Long idAccoutAddressInfo, ModelMap mmap) + { + AccountAddressInfo accountAddressInfo = accountAddressInfoService.selectAccountAddressInfoByIdAccoutAddressInfo(idAccoutAddressInfo); + mmap.put("accountAddressInfo", accountAddressInfo); + return prefix + "/edit"; + } + + /** + * 修改保存TRX出账账户 + */ + @RequiresPermissions("trx2Energy:account:edit") + @Log(title = "TRX出账账户", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(AccountAddressInfo accountAddressInfo) throws Exception { + return toAjax(accountAddressInfoService.updateAccountAddressInfo(accountAddressInfo)); + } + + /** + * 删除TRX出账账户 + */ + @RequiresPermissions("trx2Energy:account:remove") + @Log(title = "TRX出账账户", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(accountAddressInfoService.deleteAccountAddressInfoByIdAccoutAddressInfos(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/Trx2EnergyMonitorAddressInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/Trx2EnergyMonitorAddressInfoController.java new file mode 100644 index 000000000..7901b4f9e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/Trx2EnergyMonitorAddressInfoController.java @@ -0,0 +1,135 @@ +package com.ruoyi.web.controller.trx2Energy; + +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.domain.entity.MonitorAddressInfo; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.DictUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.service.IAccountAddressInfoService; +import com.ruoyi.system.service.IMonitorAddressInfoService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 监听账户入账Controller + * + * @author dorion + * @date 2024-04-13 + */ +@Controller +@RequestMapping("/trx2Energy/monitor") +public class Trx2EnergyMonitorAddressInfoController extends BaseController +{ + private String prefix = "trx2Energy/monitor"; + + @Autowired + private IMonitorAddressInfoService monitorAddressInfoService; + @Autowired + private IAccountAddressInfoService accountAddressInfoService; + + @RequiresPermissions("trx2Energy:monitor:view") + @GetMapping() + public String monitor() + { + return prefix + "/monitor"; + } + + /** + * 查询监听账户入账列表 + */ + @RequiresPermissions("trx2Energy:monitor:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(MonitorAddressInfo monitorAddressInfo) + { + startPage(); + monitorAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "TRX兑能量")); + List list = monitorAddressInfoService.selectMonitorAddressInfoList(monitorAddressInfo); + return getDataTable(list); + } + + /** + * 导出监听账户入账列表 + */ + @RequiresPermissions("trx2Energy:monitor:export") + @Log(title = "监听账户入账", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(MonitorAddressInfo monitorAddressInfo) + { + monitorAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "TRX兑能量")); + List list = monitorAddressInfoService.selectMonitorAddressInfoList(monitorAddressInfo); + ExcelUtil util = new ExcelUtil(MonitorAddressInfo.class); + return util.exportExcel(list, "监听账户入账数据"); + } + + /** + * 新增监听账户入账 + */ + @GetMapping("/add") + public String add(ModelMap mmap) + { + String busiType = DictUtils.getDictValue("sys_busi_type", "TRX兑能量"); + mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll(busiType)); + return prefix + "/add"; + } + + /** + * 新增保存监听账户入账 + */ + @RequiresPermissions("trx2Energy:monitor:add") + @Log(title = "监听账户入账", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(MonitorAddressInfo monitorAddressInfo) + { + monitorAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "TRX兑能量")); + return toAjax(monitorAddressInfoService.insertMonitorAddressInfo(monitorAddressInfo)); + } + + /** + * 修改监听账户入账 + */ + @RequiresPermissions("trx2Energy:monitor:edit") + @GetMapping("/edit/{idMonitorAddress}") + public String edit(@PathVariable("idMonitorAddress") Long idMonitorAddress, ModelMap mmap) + { + MonitorAddressInfo monitorAddressInfo = monitorAddressInfoService.selectMonitorAddressInfoByIdMonitorAddress(idMonitorAddress); + mmap.put("monitorAddressInfo", monitorAddressInfo); + String busiType = DictUtils.getDictValue("sys_busi_type", "TRX兑能量"); + mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll(busiType)); + return prefix + "/edit"; + } + + /** + * 修改保存监听账户入账 + */ + @RequiresPermissions("trx2Energy:monitor:edit") + @Log(title = "监听账户入账", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(MonitorAddressInfo monitorAddressInfo) + { + return toAjax(monitorAddressInfoService.updateMonitorAddressInfo(monitorAddressInfo)); + } + + /** + * 删除监听账户入账 + */ + @RequiresPermissions("trx2Energy:monitor:remove") + @Log(title = "监听账户入账", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(monitorAddressInfoService.deleteMonitorAddressInfoByIdMonitorAddresss(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exchange/TrxExchangeInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/TrxExchangeInfoController.java similarity index 82% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/exchange/TrxExchangeInfoController.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/TrxExchangeInfoController.java index f6e463bcc..8766730e8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exchange/TrxExchangeInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/trx2Energy/TrxExchangeInfoController.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.exchange; +package com.ruoyi.web.controller.trx2Energy; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; @@ -6,6 +6,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.entity.TrxExchangeInfo; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.DictUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.system.domain.TrxExchange; import com.ruoyi.system.service.IAccountAddressInfoService; @@ -25,10 +26,10 @@ import java.util.List; * @date 2024-04-13 */ @Controller -@RequestMapping("/exchange/trx") +@RequestMapping("/trx2Energy/exchange") public class TrxExchangeInfoController extends BaseController { - private String prefix = "exchange/trx"; + private String prefix = "trx2Energy/exchange"; @Autowired private ITrxExchangeInfoService trxExchangeInfoService; @@ -36,7 +37,7 @@ public class TrxExchangeInfoController extends BaseController @Autowired private IAccountAddressInfoService accountAddressInfoService; - @RequiresPermissions("exchange:trx:view") + @RequiresPermissions("trx2Energy:exchange:view") @GetMapping() public String trx() { @@ -46,7 +47,7 @@ public class TrxExchangeInfoController extends BaseController /** * 查询trx兑能量记录列表 */ - @RequiresPermissions("exchange:trx:list") + @RequiresPermissions("trx2Energy:exchange:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(TrxExchangeInfo trxExchangeInfo) @@ -59,7 +60,7 @@ public class TrxExchangeInfoController extends BaseController /** * 导出trx兑能量记录列表 */ - @RequiresPermissions("exchange:trx:export") + @RequiresPermissions("trx2Energy:exchange:export") @Log(title = "trx兑能量记录", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody @@ -75,14 +76,16 @@ public class TrxExchangeInfoController extends BaseController */ @GetMapping("/add") public String add(ModelMap mmap) - { mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll()); + { + String busiType = DictUtils.getDictValue("sys_busi_type", "TRX兑能量"); + mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll(busiType)); return prefix + "/add"; } /** * 新增保存trx兑能量记录 */ - @RequiresPermissions("exchange:trx:add") + @RequiresPermissions("trx2Energy:exchange:add") @Log(title = "trx兑能量记录", businessType = BusinessType.INSERT) @PostMapping("/delegate") @ResponseBody @@ -93,7 +96,7 @@ public class TrxExchangeInfoController extends BaseController /** * 修改trx兑能量记录 */ - @RequiresPermissions("exchange:trx:edit") + @RequiresPermissions("trx2Energy:exchange:edit") @GetMapping("/edit/{idTrxExchangeInfo}") public String edit(@PathVariable("idTrxExchangeInfo") Long idTrxExchangeInfo, ModelMap mmap) { @@ -105,7 +108,7 @@ public class TrxExchangeInfoController extends BaseController /** * 修改保存trx兑能量记录 */ - @RequiresPermissions("exchange:trx:edit") + @RequiresPermissions("trx2Energy:exchange:edit") @Log(title = "trx兑能量记录", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -117,7 +120,7 @@ public class TrxExchangeInfoController extends BaseController /** * 删除trx兑能量记录 */ - @RequiresPermissions("exchange:trx:remove") + @RequiresPermissions("trx2Energy:exchange:remove") @Log(title = "trx兑能量记录", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/AccountAddressInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/Usdt2TrxAccountAddressInfoController.java similarity index 65% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/AccountAddressInfoController.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/Usdt2TrxAccountAddressInfoController.java index 773e69418..543989a52 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/AccountAddressInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/Usdt2TrxAccountAddressInfoController.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.account; +package com.ruoyi.web.controller.usdt2Trx; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; @@ -6,7 +6,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.entity.AccountAddressInfo; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; - +import com.ruoyi.common.utils.DictUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.system.service.IAccountAddressInfoService; import org.apache.shiro.authz.annotation.RequiresPermissions; @@ -18,55 +18,57 @@ import org.springframework.web.bind.annotation.*; import java.util.List; /** - * 出账账户Controller + * USDT出账账户Controller * * @author dorion * @date 2024-04-13 */ @Controller -@RequestMapping("/account/transfer") -public class AccountAddressInfoController extends BaseController +@RequestMapping("/usdt2Trx/account") +public class Usdt2TrxAccountAddressInfoController extends BaseController { - private String prefix = "account/transfer"; + private String prefix = "usdt2Trx/account"; @Autowired private IAccountAddressInfoService accountAddressInfoService; - @RequiresPermissions("account:transfer:view") + @RequiresPermissions("usdt2Trx:account:view") @GetMapping() public String transfer() { - return prefix + "/transfer"; + return prefix + "/usdt2Trx"; } /** - * 查询出账账户列表 + * 查询USDT出账账户列表 */ - @RequiresPermissions("account:transfer:list") + @RequiresPermissions("usdt2Trx:account:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(AccountAddressInfo accountAddressInfo) throws Exception { startPage(); + accountAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "USDT兑TRX")); List list = accountAddressInfoService.selectAccountAddressInfoListByResouce(accountAddressInfo); return getDataTable(list); } /** - * 导出出账账户列表 + * 导出USDT出账账户列表 */ - @RequiresPermissions("account:transfer:export") - @Log(title = "出账账户", businessType = BusinessType.EXPORT) + @RequiresPermissions("usdt2Trx:account:export") + @Log(title = "USDT出账账户", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody public AjaxResult export(AccountAddressInfo accountAddressInfo) throws Exception { + accountAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "USDT兑TRX")); List list = accountAddressInfoService.selectAccountAddressInfoListByResouce(accountAddressInfo); ExcelUtil util = new ExcelUtil(AccountAddressInfo.class); - return util.exportExcel(list, "出账账户数据"); + return util.exportExcel(list, "USDT出账账户数据"); } /** - * 新增出账账户 + * 新增USDT出账账户 */ @GetMapping("/add") public String add() @@ -75,20 +77,21 @@ public class AccountAddressInfoController extends BaseController } /** - * 新增保存出账账户 + * 新增保存USDT出账账户 */ - @RequiresPermissions("account:transfer:add") - @Log(title = "出账账户", businessType = BusinessType.INSERT) + @RequiresPermissions("usdt2Trx:account:add") + @Log(title = "USDT出账账户", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody public AjaxResult addSave(AccountAddressInfo accountAddressInfo) throws Exception { + accountAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "USDT兑TRX")); return toAjax(accountAddressInfoService.insertAccountAddressInfo(accountAddressInfo)); } /** - * 修改出账账户 + * 修改USDT出账账户 */ - @RequiresPermissions("account:transfer:edit") + @RequiresPermissions("usdt2Trx:account:edit") @GetMapping("/edit/{idAccoutAddressInfo}") public String edit(@PathVariable("idAccoutAddressInfo") Long idAccoutAddressInfo, ModelMap mmap) { @@ -98,10 +101,10 @@ public class AccountAddressInfoController extends BaseController } /** - * 修改保存出账账户 + * 修改保存USDT出账账户 */ - @RequiresPermissions("account:transfer:edit") - @Log(title = "出账账户", businessType = BusinessType.UPDATE) + @RequiresPermissions("usdt2Trx:account:edit") + @Log(title = "USDT出账账户", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody public AjaxResult editSave(AccountAddressInfo accountAddressInfo) throws Exception { @@ -109,10 +112,10 @@ public class AccountAddressInfoController extends BaseController } /** - * 删除出账账户 + * 删除USDT出账账户 */ - @RequiresPermissions("account:transfer:remove") - @Log(title = "出账账户", businessType = BusinessType.DELETE) + @RequiresPermissions("usdt2Trx:account:remove") + @Log(title = "USDT出账账户", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody public AjaxResult remove(String ids) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/MonitorAddressInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/Usdt2TrxMonitorAddressInfoController.java similarity index 76% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/MonitorAddressInfoController.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/Usdt2TrxMonitorAddressInfoController.java index d75d6f9c6..15f630b00 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/account/MonitorAddressInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/Usdt2TrxMonitorAddressInfoController.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.account; +package com.ruoyi.web.controller.usdt2Trx; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; @@ -6,6 +6,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.entity.MonitorAddressInfo; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.DictUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.system.service.IAccountAddressInfoService; import com.ruoyi.system.service.IMonitorAddressInfoService; @@ -24,17 +25,17 @@ import java.util.List; * @date 2024-04-13 */ @Controller -@RequestMapping("/account/monitor") -public class MonitorAddressInfoController extends BaseController +@RequestMapping("/usdt2Trx/monitor") +public class Usdt2TrxMonitorAddressInfoController extends BaseController { - private String prefix = "account/monitor"; + private String prefix = "usdt2Trx/monitor"; @Autowired private IMonitorAddressInfoService monitorAddressInfoService; @Autowired private IAccountAddressInfoService accountAddressInfoService; - @RequiresPermissions("account:monitor:view") + @RequiresPermissions("usdt2Trx:monitor:view") @GetMapping() public String monitor() { @@ -44,12 +45,13 @@ public class MonitorAddressInfoController extends BaseController /** * 查询监听账户入账列表 */ - @RequiresPermissions("account:monitor:list") + @RequiresPermissions("usdt2Trx:monitor:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(MonitorAddressInfo monitorAddressInfo) { startPage(); + monitorAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "USDT兑TRX")); List list = monitorAddressInfoService.selectMonitorAddressInfoList(monitorAddressInfo); return getDataTable(list); } @@ -57,12 +59,13 @@ public class MonitorAddressInfoController extends BaseController /** * 导出监听账户入账列表 */ - @RequiresPermissions("account:monitor:export") + @RequiresPermissions("usdt2Trx:monitor:export") @Log(title = "监听账户入账", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody public AjaxResult export(MonitorAddressInfo monitorAddressInfo) { + monitorAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "USDT兑TRX")); List list = monitorAddressInfoService.selectMonitorAddressInfoList(monitorAddressInfo); ExcelUtil util = new ExcelUtil(MonitorAddressInfo.class); return util.exportExcel(list, "监听账户入账数据"); @@ -74,39 +77,42 @@ public class MonitorAddressInfoController extends BaseController @GetMapping("/add") public String add(ModelMap mmap) { - mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll()); + String busiType = DictUtils.getDictValue("sys_busi_type", "USDT兑TRX"); + mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll(busiType)); return prefix + "/add"; } /** * 新增保存监听账户入账 */ - @RequiresPermissions("account:monitor:add") + @RequiresPermissions("usdt2Trx:monitor:add") @Log(title = "监听账户入账", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody public AjaxResult addSave(MonitorAddressInfo monitorAddressInfo) { + monitorAddressInfo.setBusiType(DictUtils.getDictValue("sys_busi_type", "USDT兑TRX")); return toAjax(monitorAddressInfoService.insertMonitorAddressInfo(monitorAddressInfo)); } /** * 修改监听账户入账 */ - @RequiresPermissions("account:monitor:edit") + @RequiresPermissions("usdt2Trx:monitor:edit") @GetMapping("/edit/{idMonitorAddress}") public String edit(@PathVariable("idMonitorAddress") Long idMonitorAddress, ModelMap mmap) { MonitorAddressInfo monitorAddressInfo = monitorAddressInfoService.selectMonitorAddressInfoByIdMonitorAddress(idMonitorAddress); mmap.put("monitorAddressInfo", monitorAddressInfo); - mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll()); + String busiType = DictUtils.getDictValue("sys_busi_type", "USDT兑TRX"); + mmap.put("accountAddressList", accountAddressInfoService.selectAccountAddressInfoAll(busiType)); return prefix + "/edit"; } /** * 修改保存监听账户入账 */ - @RequiresPermissions("account:monitor:edit") + @RequiresPermissions("usdt2Trx:monitor:edit") @Log(title = "监听账户入账", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -118,7 +124,7 @@ public class MonitorAddressInfoController extends BaseController /** * 删除监听账户入账 */ - @RequiresPermissions("account:monitor:remove") + @RequiresPermissions("usdt2Trx:monitor:remove") @Log(title = "监听账户入账", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exchange/UsdtExchangeInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/UsdtExchangeInfoController.java similarity index 87% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/exchange/UsdtExchangeInfoController.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/UsdtExchangeInfoController.java index d59f125a6..5eb0986a9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exchange/UsdtExchangeInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/usdt2Trx/UsdtExchangeInfoController.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.exchange; +package com.ruoyi.web.controller.usdt2Trx; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; @@ -23,15 +23,15 @@ import java.util.List; * @date 2024-04-19 */ @Controller -@RequestMapping("/exchange/usdt") +@RequestMapping("/usdt2Trx/exchange") public class UsdtExchangeInfoController extends BaseController { - private String prefix = "exchange/usdt"; + private String prefix = "usdt2Trx/exchange"; @Autowired private IUsdtExchangeInfoService usdtExchangeInfoService; - @RequiresPermissions("exchange:usdt:view") + @RequiresPermissions("usdt2Trx:exchange:view") @GetMapping() public String usdt() { @@ -41,7 +41,7 @@ public class UsdtExchangeInfoController extends BaseController /** * 查询USDT交易明细列表 */ - @RequiresPermissions("exchange:usdt:list") + @RequiresPermissions("usdt2Trx:exchange:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(UsdtExchangeInfo usdtExchangeInfo) @@ -54,7 +54,7 @@ public class UsdtExchangeInfoController extends BaseController /** * 导出USDT交易明细列表 */ - @RequiresPermissions("exchange:usdt:export") + @RequiresPermissions("usdt2Trx:exchange:export") @Log(title = "USDT交易明细", businessType = BusinessType.EXPORT) @PostMapping("/export") @ResponseBody @@ -77,7 +77,7 @@ public class UsdtExchangeInfoController extends BaseController /** * 新增保存USDT交易明细 */ - @RequiresPermissions("exchange:usdt:add") + @RequiresPermissions("usdt2Trx:exchange:add") @Log(title = "USDT交易明细", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody @@ -88,7 +88,7 @@ public class UsdtExchangeInfoController extends BaseController /** * 修改USDT交易明细 */ - @RequiresPermissions("exchange:usdt:edit") + @RequiresPermissions("usdt2Trx:exchange:edit") @GetMapping("/edit/{idUsdtExchangeInfo}") public String edit(@PathVariable("idUsdtExchangeInfo") Long idUsdtExchangeInfo, ModelMap mmap) { @@ -100,7 +100,7 @@ public class UsdtExchangeInfoController extends BaseController /** * 修改保存USDT交易明细 */ - @RequiresPermissions("exchange:usdt:edit") + @RequiresPermissions("usdt2Trx:exchange:edit") @Log(title = "USDT交易明细", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -112,7 +112,7 @@ public class UsdtExchangeInfoController extends BaseController /** * 删除USDT交易明细 */ - @RequiresPermissions("exchange:usdt:remove") + @RequiresPermissions("usdt2Trx:exchange:remove") @Log(title = "USDT交易明细", businessType = BusinessType.DELETE) @PostMapping( "/remove") @ResponseBody diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/account/add.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/add.html new file mode 100644 index 000000000..7af406de4 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/add.html @@ -0,0 +1,47 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/account/edit.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/edit.html new file mode 100644 index 000000000..45061c8f7 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/edit.html @@ -0,0 +1,49 @@ + + + + + + + +
+
+ + +
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html new file mode 100644 index 000000000..8eccd347a --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html @@ -0,0 +1,137 @@ + + + + + + +
+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/exchange/trx/add.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/exchange/add.html similarity index 99% rename from ruoyi-admin/src/main/resources/templates/exchange/trx/add.html rename to ruoyi-admin/src/main/resources/templates/trx2Energy/exchange/add.html index 0eca8729e..49b368c0d 100644 --- a/ruoyi-admin/src/main/resources/templates/exchange/trx/add.html +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/exchange/add.html @@ -112,7 +112,7 @@ + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/monitor/edit.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/monitor/edit.html new file mode 100644 index 000000000..a46735dea --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/monitor/edit.html @@ -0,0 +1,88 @@ + + + + + + + +
+
+ + +
+ +
+ +
+
+
+ +
+ + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/monitor/monitor.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/monitor/monitor.html new file mode 100644 index 000000000..bcdddff84 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/monitor/monitor.html @@ -0,0 +1,172 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • + +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/account/tenant/add.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/tenant/add.html similarity index 98% rename from ruoyi-admin/src/main/resources/templates/account/tenant/add.html rename to ruoyi-admin/src/main/resources/templates/trx2Energy/tenant/add.html index 6db4d80f4..43aac324f 100644 --- a/ruoyi-admin/src/main/resources/templates/account/tenant/add.html +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/tenant/add.html @@ -58,7 +58,7 @@