|
|
|
@ -9,6 +9,7 @@ using SqlSugar;
|
|
|
|
|
using DS.Module.Core.Extensions;
|
|
|
|
|
using Mapster;
|
|
|
|
|
using Org.BouncyCastle.Ocsp;
|
|
|
|
|
using DS.WMS.Core.Code.Entity;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Op.Method
|
|
|
|
|
{
|
|
|
|
@ -38,6 +39,10 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
if (req.Id == 0)
|
|
|
|
|
{
|
|
|
|
|
if (tenantDb.Queryable<BookingGoodsStatusConfig>().Where(x => x.SystemCode == req.SystemCode.Trim()).Any())
|
|
|
|
|
{
|
|
|
|
|
return DataResult.Failed("订舱货物状态已存在!", MultiLanguageConst.BookingGoodsStatusConfigExist);
|
|
|
|
|
}
|
|
|
|
|
var data = req.Adapt<BookingGoodsStatusConfig>();
|
|
|
|
|
|
|
|
|
|
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
|
|
|
|
|