基础服务api
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

52 lines
1.5 KiB

  1. using BPA.SAAS.Manage.Comm.Enum;
  2. using BPA.SAAS.Manage.Core.Base;
  3. using SqlSugar;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPA.SAAS.Manage.Core.DataBase
  10. {
  11. [SugarTable("bpa_bom")]
  12. public class BPA_Bom : IBaseEntity, IGroupId
  13. {
  14. /// <summary>
  15. /// 配方名称
  16. /// </summary>
  17. [SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)]
  18. public string Name { get; set; }
  19. /// <summary>
  20. /// 配方编码
  21. /// </summary>
  22. [SugarColumn(ColumnDataType = "Nvarchar(50)", IsNullable = false)]
  23. public string Code { get; set; }
  24. /// <summary>
  25. /// 1主料配方0 辅料配方
  26. /// </summary>
  27. public bool IsMain { get; set; }
  28. [SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
  29. public int AutoKey { get; set; }
  30. /// <summary>
  31. /// 配方数据
  32. /// </summary>
  33. public string BOMInfo { get; set; }
  34. /// <summary>
  35. /// 排序
  36. /// </summary>
  37. public int Sort { get; set; } = 1;
  38. /// <summary>
  39. /// 状态 【正常 停用】默认 正常
  40. /// </summary>
  41. [SugarColumn(ColumnDataType = "int", ColumnDescription = "状态", IsNullable = false)]
  42. public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
  43. public string GroupId { get; set; }
  44. }
  45. }