解决文件本地上传报错问题,速率限制独立配置文件,解决通知公告修改删除报错,nlog增加速率限制日志文件写入,增加业务单号模块,生成业务单号工具类,IIS部署用web.config

This commit is contained in:
2023-10-19 16:28:09 +08:00
parent 5174fc9ec0
commit 99d2ebcbe8
20 changed files with 598 additions and 73 deletions
+89
View File
@@ -0,0 +1,89 @@
namespace ZR.Model.System;
/// <summary>
/// 编码规则表
/// </summary>
[SugarTable("base_coderule")]
[Tenant("0")]
public class BaseCodeRule
{
/// <summary>
/// 代码
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public string Code { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 前缀
/// </summary>
public string Prefix { get; set; }
/// <summary>
/// 宽度
/// </summary>
public int Width { get; set; }
/// <summary>
/// 初始值
/// </summary>
public int IniVal { get; set; }
/// <summary>
/// 增量
/// </summary>
public int Step { get; set; }
/// <summary>
/// 终止值
/// </summary>
public int FinishVal { get; set; }
/// <summary>
/// 循环
/// </summary>
public int Cycle { get; set; }
/// <summary>
/// 后缀
/// </summary>
public string Sufix { get; set; }
/// <summary>
/// 分隔符
/// </summary>
public string JoinChar { get; set; }
/// <summary>
/// 填充符
/// </summary>
public string FillChar { get; set; }
/// <summary>
/// 类型值
/// </summary>
public string TypeVal { get; set; }
/// <summary>
/// 循环号
/// </summary>
public int CycleVal { get; set; }
/// <summary>
/// 当前值
/// </summary>
public int CurrVal { get; set; }
/// <summary>
/// 版本号
/// </summary>
public int Version { get; set; }
}
+1
View File
@@ -15,6 +15,7 @@ namespace ZR.ServiceCore.Model.Dto
public string NoticeContent { get; set; }
public int Status { get; set; }
public string Remark { get; set; }
public string Create_name { get; set; }
public DateTime Create_time { get; set; }
}
+10 -4
View File
@@ -39,9 +39,13 @@
/// </summary>
public string FileExt { get; set; }
/// <summary>
/// 创建人
/// 创建者
/// </summary>
public string Create_by { get; set; }
public long Create_by { get; set; }
/// <summary>
/// 创建者名称
/// </summary>
public string Create_name { get; set; }
/// <summary>
/// 上传时间
/// </summary>
@@ -56,14 +60,16 @@
public string AccessUrl { get; set; }
public SysFile() { }
public SysFile(string originFileName, string fileName, string ext, string fileSize, string storePath, string create_by)
public SysFile(string originFileName, string fileName, string ext, string fileSize, string storePath,
long createBy, string createName)
{
StorePath = storePath;
RealName = originFileName;
FileName = fileName;
FileExt = ext;
FileSize = fileSize;
Create_by = create_by;
Create_by = createBy;
Create_name = createName;
Create_time = DateTime.Now;
}
}