列表报错修改

This commit is contained in:
赵辉
2026-04-30 10:56:37 +08:00
parent 8f7d44d725
commit b934fe9628
2 changed files with 6 additions and 6 deletions
@@ -66,9 +66,9 @@ public class SysTableConfigApi extends BaseController {
@RequestParam(name="key") String key) { @RequestParam(name="key") String key) {
try { try {
SysTableConfig config = sysTableConfigService.getByOrgIdAndKey(organizationId, key, warehouseId); SysTableConfig config = sysTableConfigService.getByOrgIdAndKey(organizationId, key, warehouseId);
if (config == null) { // if (config == null) {
return Result.ok("未找到对应配置"); // return Result.ok("未找到对应配置");
} // }
return Result.ok(config); return Result.ok(config);
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
@@ -74,9 +74,9 @@ public class SysTableConfigApi extends BaseController {
@RequestParam(name="key") String key) { @RequestParam(name="key") String key) {
try { try {
SysTableConfig config = sysTableConfigService.getByOrgIdAndKey(organizationId, key, warehouseId); SysTableConfig config = sysTableConfigService.getByOrgIdAndKey(organizationId, key, warehouseId);
if (config == null) { // if (config == null) {
return Result.ok("未找到对应配置"); // return Result.ok("未找到对应配置");
} // }
return Result.ok(config); return Result.ok(config);
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);