优化框架

master
zhangxiaofeng 2 weeks ago
parent bd48b6dce4
commit b8477b7d96

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InvoicePlat.Common.Helper
{
public static class ExceptionFormatHelper
{
/// <summary>
/// 自定义返回格式
/// </summary>
/// <param name="throwMsg"></param>
/// <param name="ex"></param>
/// <returns></returns>
public static string Format(string throwMsg, Exception ex)
{
return string.Format(@"
{0}
{1}
{2}
{3}", [throwMsg, ex.GetType().Name, ex.Message, ex.StackTrace]);
}
}
}

@ -12,4 +12,6 @@ public interface ITenantEntity
/// </summary>
[SugarColumn(DefaultValue = "0")]
public long TenantId { get; set; }
//[SugarColumn(DefaultValue = "")]
//public string TenantName { get; set; }
}

@ -10,14 +10,9 @@ public class BusinessTable : BaseEntity, ITenantEntity
/// 无需手动赋值
/// </summary>
public long TenantId { get; set; }
///// <summary>
///// 租户名称
///// </summary>
//string TenantName { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 金额
/// </summary>
public decimal Amount { get; set; }
}
Loading…
Cancel
Save