Bläddra i källkod

z

groupmealmanage
zhaoy 7 månader sedan
förälder
incheckning
7c7e3293e2
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. +2
    -2
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsEnergyConfigService.cs
  2. +1
    -1
      BPA.SAAS.Manage.Web.Entry/Properties/launchSettings.json

+ 2
- 2
BPA.SAAS.Manage.Application/DataBase/Services/GoodsEnergyConfigService.cs Visa fil

@@ -61,7 +61,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
try try
{ {
_db.Ado.BeginTran(); _db.Ado.BeginTran();
var resEntity = _db.Queryable<BPA_GoodsEnergyConfig>().First(it => it.Name == dto.Name && it.GoodsId != dto.GoodsId);
var resEntity = _db.Queryable<BPA_GoodsEnergyConfig>().First(it => it.Name == dto.Name && it.GoodsId == dto.GoodsId);
if (resEntity != null) throw Oops.Oh("配置名称已存在"); if (resEntity != null) throw Oops.Oh("配置名称已存在");
var newType = new BPA_GoodsEnergyConfig var newType = new BPA_GoodsEnergyConfig
{ {
@@ -88,7 +88,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
catch (Exception e) catch (Exception e)
{ {
_db.Ado.RollbackTran(); _db.Ado.RollbackTran();
throw Oops.Oh("系统异常,异常信息:"+ e.Message);
throw Oops.Oh("系统异常:"+ e.Message);
} }
} }


+ 1
- 1
BPA.SAAS.Manage.Web.Entry/Properties/launchSettings.json Visa fil

@@ -14,7 +14,7 @@
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },
"dotnetRunMessages": true, "dotnetRunMessages": true,
"applicationUrl": "http://localhost:5001"
"applicationUrl": "http://192.168.1.30:5001"
}, },
"Docker": { "Docker": {
"commandName": "Docker", "commandName": "Docker",


Laddar…
Avbryt
Spara