Files
kunshan-bzfm-mes-backend/DOAN.Admin.WebApi/appsettings.Development.json
git_rabbit 2b66f83893 移除BarTender依赖并更新数据库配置
移除了对BarTender的COM引用及相关代码逻辑,更新了
`appsettings.Development.json`中的数据库连接配置,替换为
新的远程服务器信息。新增`global.json`文件以指定.NET SDK
版本为8.0.416,确保项目运行环境一致性。保留了对NPOI和
QuestPDF的依赖支持。

切换数据库连接并移除BarTender依赖,锁定SDK版本

本次提交主要内容:
- 数据库连接切换至 115.190.214.62,并同步更新代码生成连接字符串。
- 移除 BarTender 相关 COM 组件依赖及打印实现,PrintTicketsByTemplate 方法暂时返回 null。
- 新增 global.json,锁定 .NET SDK 版本为 8.0.416,确保开发环境一致性。
2025-12-20 10:26:54 +08:00

34 lines
1.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"dbConfigs": [
{
// 远程测试服务器
// "Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog=bzfm_mes;Port=3306",
"Conn": "Data Source=115.190.214.62;User ID=bzfm_mes;Password=rSRGTzccN2ZQtnas;Initial Catalog=bzfm_mes;Port=3308",
// "Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog=bzfm_mes;Port=3306",
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", //多租户唯一标识
"IsAutoCloseConnection": true
}
//...下面添加更多的数据库源
],
//代码生成数据库配置
"CodeGenDbConfig": {
//代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名
"Conn": "Data Source=115.190.214.62;User ID=root;Password=rSRGTzccN2ZQtnas;Initial Catalog={dbName};Port=3308",
"DbType": 0,
"IsAutoCloseConnection": true,
"DbName": "bzfm_mes" //代码生成默认连接数据库,Oracle库是实例的名称
},
"ShowDbLog": true, //是否打印db日志
"urls": "http://0.0.0.0:7000", //项目启动url如果改动端口前端对应devServer也需要进行修改
"corsUrls": [ "http://localhost:8887", "http://localhost:8886", "http://localhost:9090", "http://localhost:8080" ], //跨域地址(前端启动项目,前后端分离单独部署需要设置),多个用","隔开
"Upload": {
"rootDirectory": "D:/MES_Test/file",
"uploadUrl": "http://192.168.0.58:7000", //本地存储资源访问路径
"localSavePath": "", //本地上传默认文件存储目录 wwwroot
"maxSize": 30, //上传文件大小限制 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ],
"requestLimitSize": 100 //请求body大小限制
}
}