相关文章推荐
无聊的大熊猫  ·  GovHK ...·  6 月前    · 
冷冷的酱牛肉  ·  Armour Transportation ...·  6 月前    · 
喝醉的米饭  ·  德图testo 270 ...·  2 年前    · 

/// <summary>

///

///</summary>

[SugarTable("ZW_PZML_T")]

[SugarIndex("inx_ZW_PZML_T_1", nameof(GSDM), OrderByType.Asc, nameof(IDPZH), OrderByType.Asc)]

[SugarIndex("inx_ZW_PZML_T_IDPZH", nameof(IDPZH), OrderByType.Asc)]

[SugarIndex("inx_ZW_PZML_T_KJQJ", nameof(KJQJ), OrderByType.Asc)]

public class GlPzmlEntity : IEntity

{

[SugarColumn(ColumnName = "PZLYDATASOURCE", ColumnDataType = "NUMBER", Length = 1, IsNullable = true)]

public PZLYDataSourceEnum PZLYDataSource { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "GSCODE", IsPrimaryKey = true, Length = 20, IsNullable = false)]

public string GSDM { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "SOBNUM", IsPrimaryKey = true, Length = 20, IsNullable = false)]

public string ZTH { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "KJPERIOD", IsPrimaryKey = true, Length = 6, IsNullable = false)]

public string KJQJ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "PZSOURCE", IsPrimaryKey = true, Length = 2, IsNullable = false)]

public string PZLY { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "KJTXCODE", Length = 20, IsNullable = true)]

public string KJTXDM { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "PZLXCODE", IsPrimaryKey = true, Length = 20, IsNullable = false)]

public string PZLXDM { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "PZNUMBER", IsPrimaryKey = true, Length = 10, IsNullable = false)]

public string PZH { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "PZDATE", Length = 10, IsNullable = false)]

public string PZRQ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "FJCOUNT", Length = 22, DecimalDigits = 2, IsNullable = false)]

public decimal FJZS { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "SRRENID", Length = 22, DecimalDigits = 2, IsNullable = false)]

public decimal SRID { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "SRREN", Length = 100, IsNullable = true)]

public string SR { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "SHRENID", Length = 22, DecimalDigits = 2, IsNullable = false)]

public decimal SHID { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "SHREN", Length = 100, IsNullable = true)]

public string SH { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "JSREN", Length = 100, IsNullable = true)]

public string JSR { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "JZRENID", Length = 22, DecimalDigits = 2, IsNullable = false)]

public decimal JZRID { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "JZREN", Length = 100, IsNullable = true)]

public string JZR { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "AUDITING_DATE", Length = 10, IsNullable = true)]

public string SRRQ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "AUDITING_TIME", Length = 10, IsNullable = true)]

public string SHRQ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "TRANSFER_DATE", Length = 10, IsNullable = true)]

public string JZRQ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "PZHZKMCODE", Length = 1, IsNullable = true)]

public string PZHZKMDY { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "PZHZREMARK", Length = 20, IsNullable = true)]

public string PZHZBZ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "STATUS", Length = 22, DecimalDigits = 2, IsNullable = false)]

public decimal ZT { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "PZABSTRACT", Length = 200, IsNullable = true)]

public string PZZY { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "‌PZMONEY", Length = 22, DecimalDigits = 2, IsNullable = true)]

public decimal? PZJE { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "CASHIER", Length = 20, IsNullable = true)]

public string CN { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "REMARK", Length = 200, IsNullable = true)]

public string BZ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "KJZGCODE", Length = 20, IsNullable = true)]

public string KJZG { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "IDPZNUMBER", Length = 100, IsNullable = true)]

public string IDPZH { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "DYSOB", Length = 1, IsNullable = true)]

public string DYZT { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "QZ_DATE", Length = 10, IsNullable = true)]

public string QZRQ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "GDINGID", Length = 22, DecimalDigits = 2, IsNullable = true)]

public decimal? GDID { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "GDINGNAME", Length = 100, IsNullable = true)]

public string GDNAME { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "GDINGRQSJ", Length = 14, IsNullable = true)]

public string GDRQSJ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "GDINGCS", Length = 22, DecimalDigits = 2, IsNullable = true)]

public decimal? GDCS { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "GDINGBZ", Length = 1, IsNullable = true)]

public string GDBZ { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "PZSCODE", Length = 100, IsNullable = true)]

public string PZSBM { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "MARK", Length = 20, DecimalDigits = 2, IsNullable = false)]

public decimal STAMP { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "YSPZZCOUNT", Length = 22, DecimalDigits = 2, IsNullable = true)]

public decimal? YSPZZS { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "YSPZMONEY", Length = 22, DecimalDigits = 2, IsNullable = true)]

public decimal? YSPZJE { get; set; }

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "LXCODE", Length = 10, IsNullable = true)]

public string LXDM { get; set; }

/// <summary>

///  是否草稿

///</summary>

[SugarColumn(ColumnName = "ISDRAFT", Length = 1, IsNullable = false)]

public bool IsDraft { get; set; } = false;

/// <summary>

///  凭证号数字部分

///</summary>

[SugarColumn(ColumnName = "IPACCOUNT", ColumnDataType = "NUMBER", Length = 32, IsNullable = true)]

public int IPZH { get; set; }

///// <summary>

/////

/////</summary>

//[SugarColumn(ColumnName = "IMPVERSION", Length = 32, IsNullable = true)]

//public string IMPORTVERSION { get; set; }

///// <summary>

/////

/////</summary>

//[SugarColumn(ColumnName = "IMPDETVERSION", Length = 32, IsNullable = true)]

//public string IMPORTDETAILVERSION { get; set; }

}


[SugarColumn(ColumnName = "IPACCOUNT", ColumnDataType = "NUMBER", Length = 32, IsNullable = true)]

public int IPZH { get; set; }


int不要设置长度

建议你找出具体有问题的 配置

@fate sta :我觉得应该是这个枚举有问题

[SugarColumn(ColumnName = "PZLYDATASOURCE", ColumnDataType = "NUMBER", Length = 1, IsNullable = true)]

public PZLYDataSourceEnum PZLYDataSource { get; set; }


@fate sta :这个字段没法生成,加上就报ORA-01741: 非法的零长度标识符

/// <summary>

///

///</summary>

[SugarColumn(ColumnName = "‌PZMONEY", Length = 18, DecimalDigits = 2, IsNullable = true)]

public decimal? PZJE { get; set; }