qualchange.go 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package qualchange
  2. import (
  3. "dashoo.cn/backend/api/business/oilsupplier/supplier"
  4. "time"
  5. )
  6. type OilQualChangeDetail struct {
  7. Id int `xorm:"not null default 0 INT(10)"`
  8. ParentId int `xorm:"not null default 0 comment('主表Id') INT(10)"`
  9. SupplierTypeCode string `xorm:"not null default '0' comment('准入类别代码(01 物资类,02 基建类,03 技术服务类)') VARCHAR(5)"`
  10. SupplierCertSubId int `xorm:"not null default 0 comment('供方对应准入子分类表') INT(10)"`
  11. CertSubName string `xorm:"default '' comment('分类名称') VARCHAR(50)"`
  12. NeedFileType string `xorm:"not null default '' comment('文件分类') VARCHAR(50)"`
  13. NeedFileCode string `xorm:"not null default '' comment('文件分类编码') VARCHAR(20)"`
  14. OldFileName string `xorm:"not null default '' comment('原文件名称') VARCHAR(50)"`
  15. FileName string `xorm:"not null default '' comment('文件名称') VARCHAR(50)"`
  16. FileExt string `xorm:"VARCHAR(10)"`
  17. FileType int `xorm:"default 0 comment('0:不必要文件;1:必上传文件;') INT(10)"`
  18. OldEffectDate time.Time `xorm:"comment('原有效期') DATETIME"`
  19. EffectDate time.Time `xorm:"comment('有效期') DATETIME"`
  20. OldFileUrl string `xorm:"VARCHAR(100)"`
  21. FileUrl string `xorm:"VARCHAR(100)"`
  22. OtherRemark string `xorm:"VARCHAR(500)"`
  23. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  24. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  25. CreateOn time.Time `xorm:"DATETIME"`
  26. CreateUserId int `xorm:"INT(10)"`
  27. CreateBy string `xorm:"VARCHAR(50)"`
  28. ModifiedOn time.Time `xorm:"DATETIME"`
  29. ModifiedUserId int `xorm:"INT(10)"`
  30. ModifiedBy string `xorm:"VARCHAR(50)"`
  31. }
  32. type OilQualChangeMain struct {
  33. Id int `xorm:"not null pk autoincr INT(10)"`
  34. SupplierId int `xorm:"not null comment('供方基本信息表主键') INT(10)"`
  35. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  36. AccesscardNo string `xorm:"comment('准入证号') VARCHAR(20)"`
  37. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(20)"`
  38. Step int `xorm:"comment('页面上第几步') INT(10)"`
  39. Status string `xorm:"comment('状态标识') VARCHAR(10)"`
  40. WorkFlowId string `xorm:"comment('工作流的ID') VARCHAR(50)"`
  41. CreateOn time.Time `xorm:"DATETIME"`
  42. CreateUserId int `xorm:"INT(10)"`
  43. CreateBy string `xorm:"VARCHAR(50)"`
  44. ModifiedOn time.Time `xorm:"DATETIME"`
  45. ModifiedUserId int `xorm:"INT(10)"`
  46. ModifiedBy string `xorm:"VARCHAR(50)"`
  47. }
  48. type OilSupplierQual struct {
  49. supplier.OilSupplier `xorm:"extends"`
  50. CertId string
  51. AccessCardNo string
  52. SupplierTypeCode string
  53. SupplierTypeName string
  54. QualId int
  55. ConmmitTime time.Time
  56. Step int `xorm:"comment('页面上第几步') INT(10)"`
  57. WorkFlowId string `xorm:"comment('工作流的ID') VARCHAR(50)"`
  58. WorkerTotal int `xorm:"default 0 comment('企业员工总数') INT(10)"`
  59. ContractNum int `xorm:"default 0 comment('合同化用工数量') INT(10)"`
  60. UniversityNum int `xorm:"default 0 comment('大学及以上学历人员数量') INT(10)"`
  61. TechnicalNum int `xorm:"default 0 comment('技术、管理人员数量') INT(10)"`
  62. AboveProfNum int `xorm:"default 0 comment('高级及以上职称人员数量') INT(10)"`
  63. MiddleProfNum int `xorm:"default 0 comment('中级职称人员数量') INT(10)"`
  64. NationalRegNum int `xorm:"default 0 comment('具有国家注册执业资格人员数量') INT(10)"`
  65. NationalCertTotal int `xorm:"default 0 comment('具有国家注册执业资格证书总数') INT(10)"`
  66. DesignerTotal int `xorm:"default 0 comment('设计人员总数') INT(10)"`
  67. SkillerTotal int `xorm:"default 0 comment('技术工人总数') INT(10)"`
  68. Status string `xorm:"not null default '0' comment('状态标识(0未申请,1办理完毕)') VARCHAR(10)"`
  69. RecUnitReason string `xorm:"comment('推荐单位的推荐意见') VARCHAR(800)"`
  70. RecUnitPerson string `xorm:"comment('推荐单位负责人') VARCHAR(20)"`
  71. RecDate time.Time `xorm:"comment('推荐日期') DATETIME"`
  72. RecUnitId string `xorm:"comment('推荐单位编码') VARCHAR(10)"`
  73. RecUnitName string `xorm:"comment('推荐单位名称') VARCHAR(50)"`
  74. BackReason string `xorm:"comment('退回原因') VARCHAR(50)"`
  75. InFlag string `xorm:"default '0' comment('准入标识') VARCHAR(10)"`
  76. EffectStartTime time.Time `xorm:"comment('有效期起') DATETIME"`
  77. EffectEndTime time.Time `xorm:"comment('有效期止') DATETIME"`
  78. AuditProcessNote string `xorm:"comment('办理过程备注') VARCHAR(100)"`
  79. AuditDate time.Time `xorm:"comment('审核日期') DATETIME"`
  80. PayNotice string `xorm:"default '0' comment('交费通知') VARCHAR(2)"`
  81. SupplierStatus string `xorm:"comment('供应商状态(null:正常,1中止,2终止)') VARCHAR(255)"`
  82. MgrType string `xorm:"comment('供应商管理类型') VARCHAR(255)"`
  83. Type string `xorm:"comment('供应商类型') VARCHAR(255)"`
  84. MgrUnit string `xorm:"comment('管理单位') VARCHAR(255)"`
  85. AddinTime string `xorm:"comment('准入日期') VARCHAR(255)"`
  86. EffectTime string `xorm:"comment('生效日期') VARCHAR(255)"`
  87. ApplyTime time.Time `xorm:"comment('年审日期') DATETIME"`
  88. SupplierNo string `xorm:"comment('供应商准入证编号') VARCHAR(255)"`
  89. MdmFlag string `xorm:"default '0' comment('MDM标志') VARCHAR(2)"`
  90. InternalFlag string `xorm:"comment('国内采购') VARCHAR(255)"`
  91. ImportFlag string `xorm:"comment('进口采购') VARCHAR(255)"`
  92. OutsideFlog string `xorm:"comment('境外项目') VARCHAR(255)"`
  93. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  94. ThirdAudit string `xorm:"comment('备注') VARCHAR(500)"`
  95. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  96. }