2
3

infochange.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. package infochange
  2. import (
  3. "time"
  4. )
  5. type OilInfoChange struct {
  6. Id int `xorm:"<- not null pk autoincr INT(10)"`
  7. SupplierId int `xorm:"not null comment('供方基本信息表主键') INT(10)"`
  8. AccessCardNo int `xorm:"not null default 0 comment('准入证号') INT(10)"`
  9. OldAccessCardNo int `xorm:"not null default 0 comment('曾用准入证号') INT(10)"`
  10. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  11. Status string `xorm:"comment('状态标识') VARCHAR(10)"`
  12. Step int `xorm:"comment('页面上第几步') INT(10)"`
  13. WorkFlowId string `xorm:"comment('工作流的ID') VARCHAR(50)"`
  14. OldSupplierName string `xorm:"comment('曾用名') VARCHAR(255)"`
  15. SupplierTypeCode string `xorm:"comment('准入类别代码(1 物资类,2 基建类,3 技术服务类)') VARCHAR(5)"`
  16. SupplierTypeName string `xorm:"comment('准入类别名称(1 物资类,2 基建类,3 技术服务类)') VARCHAR(50)"`
  17. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  18. OldOilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  19. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  20. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  21. OperType string `xorm:"comment('经营方式') CHAR(1)"`
  22. Country string `xorm:"comment('国家') VARCHAR(20)"`
  23. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  24. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  25. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  26. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  27. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  28. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  29. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  30. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  31. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  32. Street string `xorm:"comment('街道') VARCHAR(20)"`
  33. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  34. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  35. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  36. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  37. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  38. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  39. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  40. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  41. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  42. TJInNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  43. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  44. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  45. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  46. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  47. RegCapital float32 `xorm:"default 0 comment('注册资本') FLOAT"`
  48. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  49. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  50. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  51. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  52. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  53. SetupTime time.Time `xorm:"comment(' 成立时间') DATE"`
  54. Email string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  55. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  56. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  57. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  58. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  59. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  60. Qq string `xorm:"comment('QQ号码') VARCHAR(20)"`
  61. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  62. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  63. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(200)"`
  64. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(500)"`
  65. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  66. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  67. CreateOn time.Time `xorm:"DATETIME"`
  68. CreateUserId int `xorm:"INT(10)"`
  69. CreateBy string `xorm:"VARCHAR(50)"`
  70. ModifiedOn time.Time `xorm:"DATETIME"`
  71. ModifiedUserId int `xorm:"INT(10)"`
  72. ModifiedBy string `xorm:"VARCHAR(50)"`
  73. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  74. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  75. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  76. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  77. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  78. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  79. HseTraining string `xorm:"default '0' comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  80. }
  81. type OilInfoChangeItem struct {
  82. Id int `xorm:"not null pk autoincr INT(10)"`
  83. InfoId int `xorm:"comment('信息变更主表Id') INT(10)"`
  84. SupplierId int `xorm:"comment('供方Id') INT(10)"`
  85. SelectItem string `xorm:"comment('变更字段名') VARCHAR(50)"`
  86. SelectItemName string `xorm:"comment('变更字段名') VARCHAR(255)"`
  87. BeChangeInfo string `xorm:"comment('变更前内容') VARCHAR(255)"`
  88. ChangeInfo string `xorm:"comment('变更后内容') VARCHAR(255)"`
  89. ChangeStatus int `xorm:"comment('变更状态') INT(10)"`
  90. CreateOn time.Time `xorm:"DATETIME"`
  91. CreateUserId int `xorm:"INT(10)"`
  92. CreateBy string `xorm:"VARCHAR(50)"`
  93. ModifiedOn time.Time `xorm:"DATETIME"`
  94. ModifiedUserId int `xorm:"INT(10)"`
  95. ModifiedBy string `xorm:"VARCHAR(50)"`
  96. }
  97. type SuppModelInfo struct {
  98. Id int `xorm:"<- not null pk autoincr INT(10)"`
  99. AccessCardNo int `xorm:"not null default 0 comment('准入证号') INT(10)"`
  100. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  101. Status string `xorm:"comment('状态标识') VARCHAR(10)"`
  102. Step int `xorm:"comment('页面上第几步') INT(10)"`
  103. WorkFlowId string `xorm:"comment('工作流的ID') VARCHAR(50)"`
  104. SupplierTypeCode string `xorm:"comment('准入类别代码(1 物资类,2 基建类,3 技术服务类)') VARCHAR(5)"`
  105. SupplierTypeName string `xorm:"comment('准入类别名称(1 物资类,2 基建类,3 技术服务类)') VARCHAR(50)"`
  106. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  107. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  108. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  109. OperType string `xorm:"comment('经营方式') CHAR(1)"`
  110. Country string `xorm:"comment('国家') VARCHAR(20)"`
  111. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  112. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  113. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  114. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  115. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  116. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  117. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  118. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  119. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  120. Street string `xorm:"comment('街道') VARCHAR(20)"`
  121. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  122. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  123. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  124. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  125. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  126. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  127. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  128. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  129. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  130. TJInNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  131. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  132. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  133. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  134. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  135. RegCapital float32 `xorm:"default 0 comment('注册资本') FLOAT"`
  136. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  137. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  138. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  139. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  140. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  141. SetupTime time.Time `xorm:"comment(' 成立时间') DATE"`
  142. Email string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  143. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  144. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  145. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  146. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  147. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  148. Qq string `xorm:"comment('QQ号码') VARCHAR(20)"`
  149. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  150. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  151. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(200)"`
  152. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(500)"`
  153. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  154. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  155. CreateOn time.Time `xorm:"DATETIME"`
  156. CreateUserId int `xorm:"INT(10)"`
  157. CreateBy string `xorm:"VARCHAR(50)"`
  158. ModifiedOn time.Time `xorm:"DATETIME"`
  159. ModifiedUserId int `xorm:"INT(10)"`
  160. ModifiedBy string `xorm:"VARCHAR(50)"`
  161. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  162. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  163. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  164. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  165. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  166. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  167. HseTraining string `xorm:"default '0' comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  168. }