qualchange.go 8.8 KB

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