usertest
cjy 5 months ago
parent 23a32cbfe5
commit 1319909520

@ -47,6 +47,10 @@ namespace DS.WMS.Core.Op.Dtos
/// </summary> /// </summary>
public string Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>
/// 模板内容
/// </summary>
public string Content { get; set; }
/// <summary>
/// 备注 /// 备注
/// </summary> /// </summary>
public string Note { get; set; } = ""; public string Note { get; set; } = "";

@ -47,6 +47,10 @@ namespace DS.WMS.Core.Op.Dtos
/// </summary> /// </summary>
public string Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>
/// 模板内容
/// </summary>
public string Content { get; set; }
/// <summary>
/// 备注 /// 备注
/// </summary> /// </summary>
public string Note { get; set; } = ""; public string Note { get; set; } = "";

@ -45,6 +45,12 @@ namespace DS.WMS.Core.Op.Entity
/// </summary> /// </summary>
[SugarColumn(ColumnDescription = "电话", IsNullable = true, Length = 50)] [SugarColumn(ColumnDescription = "电话", IsNullable = true, Length = 50)]
public string Tel { get; set; } public string Tel { get; set; }
/// <summary>
/// 模板内容
/// </summary>
[SugarColumn(ColumnDescription = "模板内容", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
public string Content { get; set; }
/// <summary> /// <summary>
/// 类型 1 收 2 发 3 通 /// 类型 1 收 2 发 3 通
/// </summary> /// </summary>

@ -7,6 +7,7 @@ using DS.WMS.Core.Fee.Entity;
using DS.WMS.Core.Op.Dtos; using DS.WMS.Core.Op.Dtos;
using DS.WMS.Core.Op.Entity; using DS.WMS.Core.Op.Entity;
using DS.WMS.Core.Op.Interface; using DS.WMS.Core.Op.Interface;
using DS.WMS.Core.Sys.Interface;
using Mapster; using Mapster;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using SqlSugar; using SqlSugar;
@ -20,6 +21,7 @@ namespace DS.WMS.Core.Op.Method
private readonly ISqlSugarClient db; private readonly ISqlSugarClient db;
private readonly IUser user; private readonly IUser user;
private readonly ISaasDbService saasService; private readonly ISaasDbService saasService;
private readonly ICommonService commonService;
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -30,6 +32,7 @@ namespace DS.WMS.Core.Op.Method
db = _serviceProvider.GetRequiredService<ISqlSugarClient>(); db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>(); user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>(); saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
commonService = _serviceProvider.GetRequiredService<ICommonService>();
} }
/// <summary> /// <summary>
@ -75,7 +78,9 @@ namespace DS.WMS.Core.Op.Method
} }
else else
{ {
var info = tenantDb.Queryable<SeaExportShippingBillTemplate>().Where(x => x.Id == req.Id).First(); //var info = tenantDb.Queryable<SeaExportShippingBillTemplate>().Where(x => x.Id == req.Id).First();
var operationRule = commonService.GetOperationRuleConditional<SeaExportShippingBillTemplate>();
var info = tenantDb.Queryable<SeaExportShippingBillTemplate>().Where(x => x.Id == req.Id).Where(operationRule).First();
info = req.Adapt(info); info = req.Adapt(info);

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NameOfLastUsedPublishProfile>D:\Code\DS\ds8-solution-pro\ds-wms-service\DS.WMS.OpApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
</PropertyGroup>
</Project>

@ -278,3 +278,31 @@
2024-06-03 15:14:43.2026 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config 2024-06-03 15:14:43.2026 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-06-03 15:14:43.2191 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile 2024-06-03 15:14:43.2191 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-06-03 15:14:43.2480 Info Configuration initialized. 2024-06-03 15:14:43.2480 Info Configuration initialized.
2024-07-08 14:41:44.8708 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-08 14:41:44.8901 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-08 14:41:44.8901 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-08 14:41:44.9314 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-08 14:41:44.9314 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution-pro\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-08 14:41:44.9483 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-08 14:41:44.9483 Info Configuration initialized.
2024-07-08 14:42:17.8391 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-08 14:42:17.8633 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-08 14:42:17.8633 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-08 14:42:17.8826 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-08 14:42:17.8887 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution-pro\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-08 14:42:17.8887 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-08 14:42:17.9003 Info Configuration initialized.
2024-07-08 14:47:13.5787 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-08 14:47:13.6040 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-08 14:47:13.6040 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-08 14:47:13.6294 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-08 14:47:13.6405 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution-pro\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-08 14:47:13.6405 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-08 14:47:13.6566 Info Configuration initialized.
2024-07-08 15:05:25.7779 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-07-08 15:05:25.8097 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-07-08 15:05:25.8097 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-07-08 15:05:25.8498 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-07-08 15:05:25.8638 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution-pro\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config
2024-07-08 15:05:25.8734 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-07-08 15:05:25.8856 Info Configuration initialized.

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
此文件由 Web 项目的发布/打包过程使用。可以通过编辑此 MSBuild 文件
自定义此过程的行为。为了解与此相关的更多内容,请访问 https://go.microsoft.com/fwlink/?LinkID=208121。
-->
<Project>
<PropertyGroup>
<_PublishTargetUrl>D:\Code\PublishCopy\ds8-opapi</_PublishTargetUrl>
<History>True|2024-07-08T06:33:12.6884426Z||;True|2024-07-08T09:56:58.4995696+08:00||;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

@ -10,6 +10,7 @@ using DS.WMS.Core.Sys.Entity;
using DS.WMS.Core.Sys.Interface; using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using NPOI.HPSF; using NPOI.HPSF;
using SharpCompress.Common; using SharpCompress.Common;
using SqlSugar; using SqlSugar;
@ -25,6 +26,7 @@ public class OpTest
private readonly ISaasDbService saasService; private readonly ISaasDbService saasService;
private readonly IClientCommonService _formSetService; private readonly IClientCommonService _formSetService;
private readonly IOpCommonService _commonSetService; private readonly IOpCommonService _commonSetService;
//private readonly ICommonService _commonService;
public OpTest(IServiceProvider serviceProvider) public OpTest(IServiceProvider serviceProvider)
{ {
_serviceProvider = serviceProvider; _serviceProvider = serviceProvider;
@ -32,6 +34,7 @@ public class OpTest
saasService = _serviceProvider.GetRequiredService<ISaasDbService>(); saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
_formSetService = _serviceProvider.GetRequiredService<IClientCommonService>(); _formSetService = _serviceProvider.GetRequiredService<IClientCommonService>();
_commonSetService = _serviceProvider.GetRequiredService<IOpCommonService>(); _commonSetService = _serviceProvider.GetRequiredService<IOpCommonService>();
//_commonService = _serviceProvider.GetRequiredService<ICommonService>();
} }
[Fact] [Fact]
@ -93,4 +96,5 @@ public class OpTest
Assert.True(true); Assert.True(true);
} }
} }

@ -65,7 +65,7 @@ public class SaasTest
{ {
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448"); var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持 StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
tenantDb.CodeFirst.InitTables(typeof(SeaExportBillManage)); tenantDb.CodeFirst.InitTables(typeof(SeaExportShippingBillTemplate));
//tenantDb.CodeFirst.InitTables(typeof(CheckBillAutoDetail)); //tenantDb.CodeFirst.InitTables(typeof(CheckBillAutoDetail));
//db.CodeFirst.InitTables(typeof(OpBusinessTruckCtn)); //db.CodeFirst.InitTables(typeof(OpBusinessTruckCtn));
Assert.True(true); Assert.True(true);

@ -1,51 +1,69 @@
{ {
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Information",
"Microsoft.AspNetCore": "Warning" "Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"JwtSettings": {
"Issuer": "vol.core.owner",
"Audience": "vol.core",
"User": "C5ABA9E202D94C43A3CA66002BF77FAF",
"SecretKey": "sdfsdfsrty45634kkhllghtdgdfss345t678fs"
},
"Cors": {
"PolicyName": "WMSCore.API",
"Url": "http://localhost:8000,http://localhost:5999,http://localhost:8088,http://localhost:5173,http://0.0.0.0:5999,http://0.0.0.0:9995,http://localhost:9995,http://60.209.125.238:9995,http://localhost:3000,https://localhost:3100,http://47.104.255.182:3100,http://47.104.255.182:3110,https://localhost:3110,http://localhost:8080,http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084"
},
"DBInfo": {
"DefaultDbConnId": "1288018625843826688",
"DefaultDbType": 0,
"DefaultDbString": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_dev",
"DBS": [
{
"ConnId": "1595354960864874496",
"DBType": 1,
"Enabled": false,
"HitRate": 40,
"Connection": "Data Source=47.105.193.36,11435;Initial Catalog=SHIPPINGWEB_JNHJ;Integrated Security=False;Connect Timeout=500;User ID=sa;Password=Ds20040201",
"ProviderName": "System.Data.SqlClient"
}
]
},
"SwaggerDoc": {
"ContactName": "WmsAdminAPI",
"ContactEmail": "Wms API.Core@xxx.com",
"ContactUrl": "https://www.xxx.com",
"Version": "1.0",
"Title": "Wms Admin API",
"Description": "Wms Admin API"
},
"PrintService": {
"IP": "60.209.125.238",
"Port": "3009",
"AccessKey": "1777229107311022080",
"AccessSecret": "d816e6fe938f24e2f205db129d31286a",
"GetModuleListUrl": "/printApi/OpenPrint/GetPrintModuleList",
"GetTemplateListUrl": "/printApi/OpenPrint/GetPrintTemplateList",
"GetJsonPrintInfoUrl": "/printApi/OpenPrint/GetOpenJsonPrintInfo"
} }
},
"AllowedHosts": "*",
"JwtSettings": {
"Issuer": "vol.core.owner",
"Audience": "vol.core",
"User": "C5ABA9E202D94C43A3CA66002BF77FAF",
"SecretKey": "sdfsdfsrty45634kkhllghtdgdfss345t678fs"
},
"Cors": {
"PolicyName": "WMSCore.API",
"Url": "http://localhost:8000,http://localhost:5999,http://localhost:8088,http://localhost:5173,http://0.0.0.0:5999,http://0.0.0.0:9995,http://localhost:9995,http://60.209.125.238:9995,http://localhost:3000,https://localhost:3100,http://47.104.255.182:3100,http://47.104.255.182:3110,https://localhost:3110,http://localhost:8080,http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084"
},
"DBInfo": {
"DefaultDbConnId": "1288018625843826688",
"DefaultDbType": 0,
"DefaultDbString": "server=60.209.125.238;port=32006;uid=root;pwd=Djy@Mysql.test;database=shippingweb8_dev",
"DBS": [
{
"ConnId": "1595354960864874496",
"DBType": 1,
"Enabled": false,
"HitRate": 40,
"Connection": "Data Source=47.105.193.36,11435;Initial Catalog=SHIPPINGWEB_JNHJ;Integrated Security=False;Connect Timeout=500;User ID=sa;Password=Ds20040201",
"ProviderName": "System.Data.SqlClient"
}
]
},
"SwaggerDoc": {
"ContactName": "WmsAdminAPI",
"ContactEmail": "Wms API.Core@xxx.com",
"ContactUrl": "https://www.xxx.com",
"Version": "1.0",
"Title": "Wms Admin API",
"Description": "Wms Admin API"
},
"PrintService": {
"IP": "60.209.125.238",
"Port": "3009",
"AccessKey": "1777229107311022080",
"AccessSecret": "d816e6fe938f24e2f205db129d31286a",
"GetModuleListUrl": "/printApi/OpenPrint/GetPrintModuleList",
"GetTemplateListUrl": "/printApi/OpenPrint/GetPrintTemplateList",
"GetJsonPrintInfoUrl": "/printApi/OpenPrint/GetOpenJsonPrintInfo"
},
"DjyService": {
"IP": "60.209.125.238",
"Port": "35100",
"AccessKey": "6b050e757c1e405489e19602dd81ebbe",
"AccessSecret": "51d564741c761e0760f62d904f13c193009e74d0af9f72e2dc67f9320b8ae42580e2339745aee1bf",
"SaveServiceProjectUrl": "/EmbedProjectGoodsStatus/SaveServiceProject",
"CancelServiceProjectUrl": "/EmbedProjectGoodsStatus/CancelServiceProject",
"GetServiceProjectListUrl": "/EmbedProjectGoodsStatus/GetServiceProjectList",
"GetServiceStatusListUrl": "/EmbedProjectGoodsStatus/GetServiceStatusList",
"SaveServiceStatusUrl": "/EmbedProjectGoodsStatus/SaveServiceStatus",
"CancelServiceStatusUrl": "/EmbedProjectGoodsStatus/CancelServiceStatus"
},
"ExcuteRuleService": {
"IP": "47.104.73.97",
"Port": "7115",
"SenderKey": "SEFBZkh5V3R1TGxtdlBIcTF4QmNMWURCS08vb2EvTzVxS0F0eDFKdlgyS3lKVUx6K3JRRE94Q2kvcWZMRytZeWxyVkhLdk9hRGpzVStPamhIUXd5NU9FMjhFTktwUlZ2eThJZGlQd3p5dUk9",
"SendUrl": "/api/RulesEngineManage/ExcuteWorkFlow"
}
} }
Loading…
Cancel
Save