From 640ccb9229224642515527daf87f308a7aa9bdf4 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Wed, 10 Jun 2026 11:47:26 +0800
Subject: [PATCH] 1
---
trading-order-admin/src/main/java/com/yami/trading/admin/controller/future/ProfitLossConfigController.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/trading-order-admin/src/main/java/com/yami/trading/admin/controller/future/ProfitLossConfigController.java b/trading-order-admin/src/main/java/com/yami/trading/admin/controller/future/ProfitLossConfigController.java
index c84f863..c371b99 100644
--- a/trading-order-admin/src/main/java/com/yami/trading/admin/controller/future/ProfitLossConfigController.java
+++ b/trading-order-admin/src/main/java/com/yami/trading/admin/controller/future/ProfitLossConfigController.java
@@ -56,7 +56,7 @@
public Result<IPage<ProfitLossConfigDTO>> list(ProfitLossConfigQuery profitLossConfigQuery, Page<ProfitLossConfig> page) throws Exception {
profitLossConfigQuery.setChildren(permissionFacade.getOwnerUserIds());
- IPage<ProfitLossConfigDTO> result = profitAndLossConfigServiceFacade.getProfitLossConfigService().listRecord(page, profitLossConfigQuery);
+ IPage<ProfitLossConfigDTO> result = profitAndLossConfigServiceFacade.listRecord(page, profitLossConfigQuery);
return Result.ok(result);
}
@@ -76,7 +76,7 @@
@ApiOperation(value = "获取交割场控设置详情")
@GetMapping("get.action")
public Result<ProfitLossConfigDTO> findById(@RequestParam String id) {
- ProfitLossConfig profitLossConfig = profitAndLossConfigServiceFacade.getProfitLossConfigService().getById(id);
+ ProfitLossConfig profitLossConfig = profitAndLossConfigServiceFacade.getById(id);
User party = this.userService.getById(profitLossConfig.getPartyId());
ProfitLossConfigDTO profitLossConfigDTO = wrapper.toDTO(profitLossConfig);
profitLossConfigDTO.setUserCode(party.getUserCode());
@@ -98,7 +98,7 @@
try {
User party = userService.findUserByUserCode(usercode);
if (null == party) {
- throw new YamiShopBindException("用户不存在");
+ throw new YamiShopBindException("User does not exist");
}
// todo代理上逻辑
@@ -117,7 +117,7 @@
} catch (Exception e) {
log.error("保存场控失败", e);
- throw new YamiShopBindException("保存场控失败:"+ e.getMessage());
+ throw new YamiShopBindException("Failed to save market control: " + e.getMessage());
}
return Result.ok("操作成功");
}
@@ -128,10 +128,10 @@
@ApiOperation(value = "修改 交割场控设置")
@PostMapping("update.action")
public Result<String> update(@Valid @RequestBody ProfitLossConfigUpdate update) {
- ProfitLossConfig profitAndLossConfig = this.profitAndLossConfigServiceFacade.getProfitLossConfigService().getById(update.getUuid());
+ ProfitLossConfig profitAndLossConfig = this.profitAndLossConfigServiceFacade.getById(update.getUuid());
User party = userService.getById(profitAndLossConfig.getPartyId());
if (null == party) {
- throw new YamiShopBindException("用户不存在");
+ throw new YamiShopBindException("User does not exist");
}
String opName = SecurityUtils.getSysUser().getUsername();
// todo 代理商数据权限验证
@@ -161,10 +161,10 @@
@ApiOperation(value = "删除 交割场控设置")
@GetMapping("toDelete.action")
public Result<String> toDelete(@RequestParam String uuid) {
- ProfitLossConfig profitAndLossConfig = this.profitAndLossConfigServiceFacade.getProfitLossConfigService().getById(uuid);
+ ProfitLossConfig profitAndLossConfig = this.profitAndLossConfigServiceFacade.getById(uuid);
User party = userService.getById(profitAndLossConfig.getPartyId());
if (null == party) {
- throw new YamiShopBindException("用户不存在");
+ throw new YamiShopBindException("User does not exist");
}
String opName = SecurityUtils.getSysUser().getUsername();
// todo 代理商数据权限验证
--
Gitblit v1.9.3