From 7c7e3293e25a76280e002e484c0c869b1a45545e Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Thu, 28 Mar 2024 14:12:01 +0800 Subject: [PATCH] z --- .../DataBase/Services/GoodsEnergyConfigService.cs | 4 ++-- BPA.SAAS.Manage.Web.Entry/Properties/launchSettings.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsEnergyConfigService.cs b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsEnergyConfigService.cs index f5abca6..070e758 100644 --- a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsEnergyConfigService.cs +++ b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsEnergyConfigService.cs @@ -61,7 +61,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services try { _db.Ado.BeginTran(); - var resEntity = _db.Queryable().First(it => it.Name == dto.Name && it.GoodsId != dto.GoodsId); + var resEntity = _db.Queryable().First(it => it.Name == dto.Name && it.GoodsId == dto.GoodsId); if (resEntity != null) throw Oops.Oh("配置名称已存在"); var newType = new BPA_GoodsEnergyConfig { @@ -88,7 +88,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services catch (Exception e) { _db.Ado.RollbackTran(); - throw Oops.Oh("系统异常,异常信息:"+ e.Message); + throw Oops.Oh("系统异常:"+ e.Message); } } diff --git a/BPA.SAAS.Manage.Web.Entry/Properties/launchSettings.json b/BPA.SAAS.Manage.Web.Entry/Properties/launchSettings.json index b976d3e..6d9f2f4 100644 --- a/BPA.SAAS.Manage.Web.Entry/Properties/launchSettings.json +++ b/BPA.SAAS.Manage.Web.Entry/Properties/launchSettings.json @@ -14,7 +14,7 @@ "ASPNETCORE_ENVIRONMENT": "Development" }, "dotnetRunMessages": true, - "applicationUrl": "http://localhost:5001" + "applicationUrl": "http://192.168.1.30:5001" }, "Docker": { "commandName": "Docker",