oilsupplier.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. package supplier
  2. import (
  3. "time"
  4. )
  5. type OilSupplier struct {
  6. Id int `xorm:"not null pk autoincr INT(10)"`
  7. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  8. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  9. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  10. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  11. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  12. Country string `xorm:"comment('国家') VARCHAR(20)"`
  13. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  14. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  15. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  16. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  17. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  18. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  19. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  20. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  21. AllAddress string `xorm:"comment('注册地址') VARCHAR(500)"`
  22. LinkAllAddress string `xorm:"comment('通信地址') VARCHAR(500)"`
  23. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  24. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  25. Street string `xorm:"comment('街道') VARCHAR(20)"`
  26. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  27. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  28. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  29. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  30. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  31. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  32. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  33. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  34. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  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. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  45. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  46. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  47. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  48. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  49. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  50. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  51. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  52. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  53. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  54. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  55. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  56. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  57. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  58. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  59. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  60. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  61. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  62. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  63. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  64. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  65. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  66. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  67. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  68. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  69. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  70. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  71. CreateOn time.Time `xorm:"DATETIME"`
  72. CreateUserId int `xorm:"INT(10)"`
  73. CreateBy string `xorm:"VARCHAR(50)"`
  74. ModifiedOn time.Time `xorm:"DATETIME"`
  75. ModifiedUserId int `xorm:"INT(10)"`
  76. ModifiedBy string `xorm:"VARCHAR(50)"`
  77. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  78. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  79. }
  80. type Del_OilSupplier struct {
  81. Id int `xorm:"not null pk autoincr INT(10)"`
  82. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  83. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  84. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  85. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  86. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  87. Country string `xorm:"comment('国家') VARCHAR(20)"`
  88. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  89. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  90. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  91. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  92. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  93. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  94. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  95. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  96. AllAddress string `xorm:"comment('注册地址') VARCHAR(500)"`
  97. LinkAllAddress string `xorm:"comment('通信地址') VARCHAR(500)"`
  98. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  99. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  100. Street string `xorm:"comment('街道') VARCHAR(20)"`
  101. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  102. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  103. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  104. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  105. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  106. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  107. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  108. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  109. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  110. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  111. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  112. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  113. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  114. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  115. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  116. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  117. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  118. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  119. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  120. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  121. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  122. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  123. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  124. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  125. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  126. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  127. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  128. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  129. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  130. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  131. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  132. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  133. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  134. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  135. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  136. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  137. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  138. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  139. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  140. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  141. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  142. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  143. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  144. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  145. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  146. CreateOn time.Time `xorm:"DATETIME"`
  147. CreateUserId int `xorm:"INT(10)"`
  148. CreateBy string `xorm:"VARCHAR(50)"`
  149. ModifiedOn time.Time `xorm:"DATETIME"`
  150. ModifiedUserId int `xorm:"INT(10)"`
  151. ModifiedBy string `xorm:"VARCHAR(50)"`
  152. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  153. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  154. DeleteDate time.Time `xorm:"DATETIME"`
  155. }
  156. type OilSupplierView struct {
  157. OilSupplier `xorm:"extends"`
  158. CertId string
  159. AccessCardNo string
  160. SupplierTypeCode string
  161. SupplierTypeName string
  162. Step int
  163. WorkerTotal int `xorm:"default 0 comment('企业员工总数') INT(10)"`
  164. ContractNum int `xorm:"default 0 comment('合同化用工数量') INT(10)"`
  165. UniversityNum int `xorm:"default 0 comment('大学及以上学历人员数量') INT(10)"`
  166. TechnicalNum int `xorm:"default 0 comment('技术、管理人员数量') INT(10)"`
  167. AboveProfNum int `xorm:"default 0 comment('高级及以上职称人员数量') INT(10)"`
  168. MiddleProfNum int `xorm:"default 0 comment('中级职称人员数量') INT(10)"`
  169. NationalRegNum int `xorm:"default 0 comment('具有国家注册执业资格人员数量') INT(10)"`
  170. NationalCertTotal int `xorm:"default 0 comment('具有国家注册执业资格证书总数') INT(10)"`
  171. DesignerTotal int `xorm:"default 0 comment('设计人员总数') INT(10)"`
  172. SkillerTotal int `xorm:"default 0 comment('技术工人总数') INT(10)"`
  173. Status string `xorm:"not null default '0' comment('状态标识(0未申请,1办理完毕)') VARCHAR(10)"`
  174. WorkflowId string `xorm:"default '0' comment('工作流的ID') VARCHAR(255)"`
  175. RecUnitReason string `xorm:"comment('推荐单位的推荐意见') VARCHAR(800)"`
  176. RecUnitPerson string `xorm:"comment('推荐单位负责人') VARCHAR(20)"`
  177. RecDate time.Time `xorm:"comment('推荐日期') DATETIME"`
  178. RecUnitId string `xorm:"comment('推荐单位编码') VARCHAR(10)"`
  179. RecUnitName string `xorm:"comment('推荐单位名称') VARCHAR(50)"`
  180. BackReason string `xorm:"comment('退回原因') VARCHAR(50)"`
  181. InFlag string `xorm:"default '0' comment('准入标识') VARCHAR(10)"`
  182. InStyle string `xorm:"default '1' comment('准入方式') VARCHAR(10)"`
  183. EffectStartTime time.Time `xorm:"comment('有效期起') DATETIME"`
  184. EffectEndTime time.Time `xorm:"comment('有效期止') DATETIME"`
  185. AuditProcessNote string `xorm:"comment('办理过程备注') VARCHAR(100)"`
  186. AuditDate time.Time `xorm:"comment('审核日期') DATETIME"`
  187. PayNotice string `xorm:"default '0' comment('交费通知') VARCHAR(2)"`
  188. SupplierStatus string `xorm:"comment('供应商状态(null:正常,1中止,2终止)') VARCHAR(255)"`
  189. MgrType string `xorm:"comment('供应商管理类型') VARCHAR(255)"`
  190. Type string `xorm:"comment('供应商类型') VARCHAR(255)"`
  191. AddinTime string `xorm:"comment('准入日期') VARCHAR(255)"`
  192. EffectTime string `xorm:"comment('生效日期') VARCHAR(255)"`
  193. ApplyTime time.Time `xorm:"comment('年审日期') DATETIME"`
  194. SupplierNo string `xorm:"comment('供应商准入证编号') VARCHAR(255)"`
  195. MdmFlag string `xorm:"default '0' comment('MDM标志') VARCHAR(2)"`
  196. InternalFlag string `xorm:"comment('国内采购') VARCHAR(255)"`
  197. ImportFlag string `xorm:"comment('进口采购') VARCHAR(255)"`
  198. OutsideFlog string `xorm:"comment('境外项目') VARCHAR(255)"`
  199. ThirdAudit string `xorm:"comment('备注') VARCHAR(500)"`
  200. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  201. CommitComId string `xorm:"default '0' comment('提交二级单位Id') VARCHAR(50)"`
  202. BusinessKey string `xorm:"VARCHAR(255)"`
  203. AuditIndex int `xorm:"INT(10)"`
  204. ProcessKey string `xorm:"VARCHAR(255)"`
  205. }
  206. type OilSupplierSelect struct {
  207. Id int //Oilsupplier表id
  208. CertId int
  209. AccessCardNo string //准入证号
  210. SupplierName string //企业名称
  211. OldSupplierName string //企业曾用名
  212. SupplierTypeCode string //准入类别编号
  213. LegalPerson string //法定代表人姓名
  214. RegCapital float64 //注册资本
  215. Mobile string //移动电话
  216. AuditDate time.Time //最后一次年审
  217. ApplyTime time.Time //有效期至
  218. InFlag string //状态
  219. ContactName string //联系人姓名
  220. CommercialNo string //统一社会信用代码
  221. DepositBank string //开户银行
  222. HseTraining string //是否需要进行HSE审查培训
  223. CompanyType string //公司类型
  224. SetupTime time.Time //成立时间
  225. Address string //注册详细地址
  226. Province string //注册省
  227. City string //注册市
  228. Street string //注册区
  229. LinkAddress string //通信详细地址
  230. LinkProvince string //通信地址省
  231. LinkCity string //通信地址市
  232. LinkStreet string //通信地址区
  233. BusinessScope string //营业范围
  234. NeedFileType string //资质
  235. CerSubName string //准入范围
  236. InStyle string //准入方式
  237. FullName string //专业科室审批
  238. CheckUnitName string //推荐单位
  239. }
  240. //type NeedFileTypeStruct struct {
  241. // NeedFileType []string
  242. // CertSubName string
  243. //}
  244. type RegCapitalRange struct {
  245. RegCapital1 string
  246. RegCapital2 string
  247. }
  248. type OilSupplierApply struct {
  249. Id int `xorm:"not null pk autoincr INT(10)"`
  250. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  251. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  252. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  253. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  254. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  255. Country string `xorm:"comment('国家') VARCHAR(20)"`
  256. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  257. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  258. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  259. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  260. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  261. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  262. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  263. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  264. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  265. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  266. Street string `xorm:"comment('街道') VARCHAR(20)"`
  267. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  268. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  269. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  270. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  271. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  272. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  273. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  274. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  275. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  276. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  277. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  278. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  279. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  280. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  281. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  282. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  283. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  284. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  285. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  286. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  287. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  288. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  289. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  290. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  291. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  292. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  293. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  294. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  295. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  296. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  297. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  298. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  299. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  300. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  301. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  302. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  303. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  304. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  305. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  306. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  307. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  308. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  309. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  310. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  311. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  312. CreateOn time.Time `xorm:"DATETIME"`
  313. CreateUserId int `xorm:"INT(10)"`
  314. CreateBy string `xorm:"VARCHAR(50)"`
  315. ModifiedOn time.Time `xorm:"DATETIME"`
  316. ModifiedUserId int `xorm:"INT(10)"`
  317. ModifiedBy string `xorm:"VARCHAR(50)"`
  318. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  319. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  320. InFlag string `xorm:"default '0' comment('准入标识') VARCHAR(10)"`
  321. Status string `xorm:"not null default '0' comment('状态标识(0未申请,1办理完毕)') VARCHAR(10)"`
  322. }
  323. type ExpireFile struct {
  324. Id int
  325. SupplierName string
  326. Mobile string
  327. ExpireAllFile string
  328. CreateBy string
  329. ContactName string
  330. CreateUserId int
  331. }
  332. type InterfaceData struct {
  333. Id int
  334. SupplierName string
  335. RegCapital time.Time
  336. ExpireAllFile string
  337. }
  338. type SupplierInfoInte struct {
  339. Id int `xorm:"not null pk autoincr INT(10)"`
  340. SupplierName string `xorm:"comment('企业名称') VARCHAR(255)"`
  341. OilCertificateNo string `xorm:"comment('中石油供应商证书号') VARCHAR(50)"`
  342. Grade string `xorm:"comment('级别') VARCHAR(2)"`
  343. MgrUnit string `xorm:"comment('管理单位') VARCHAR(50)"`
  344. OperType string `xorm:"comment('经营方式') VARCHAR(50)"`
  345. Country string `xorm:"comment('国家') VARCHAR(20)"`
  346. MaunAgent string `xorm:"comment('所代理制造商名称') VARCHAR(100)"`
  347. ConstructTeam string `xorm:"comment('施工队伍名称') VARCHAR(100)"`
  348. CredentialFlag string `xorm:"default '1' comment('证件合一标志') VARCHAR(5)"`
  349. CommercialNo string `xorm:"comment('工商注册号') VARCHAR(50)"`
  350. OrganCode string `xorm:"comment('组织机构代码') VARCHAR(50)"`
  351. CountryTaxNo string `xorm:"comment('税务登记证国税编号') VARCHAR(50)"`
  352. LocalTaxNo string `xorm:"comment('税务登记证地税编号') VARCHAR(50)"`
  353. Address string `xorm:"comment('单位地址') VARCHAR(500)"`
  354. AllAddress string `xorm:"comment('注册地址') VARCHAR(500)"`
  355. LinkAllAddress string `xorm:"comment('通信地址') VARCHAR(500)"`
  356. Province string `xorm:"comment('省直辖市') VARCHAR(20)"`
  357. City string `xorm:"comment('地市区县') VARCHAR(20)"`
  358. Street string `xorm:"comment('街道') VARCHAR(20)"`
  359. HouseNo string `xorm:"comment('门牌号') VARCHAR(10)"`
  360. ZipCode string `xorm:"comment('邮编') VARCHAR(20)"`
  361. LinkAddress string `xorm:"comment('通信地址-单位地址') VARCHAR(500)"`
  362. LinkProvince string `xorm:"comment('通信地址-省直辖市') VARCHAR(20)"`
  363. LinkCity string `xorm:"comment('通信地址-地市区县') VARCHAR(20)"`
  364. LinkStreet string `xorm:"comment('通信地址-街道') VARCHAR(20)"`
  365. LinkHouseNo string `xorm:"comment('通信地址-门牌号') VARCHAR(10)"`
  366. LinkZipCode string `xorm:"comment('通信地址-邮编') VARCHAR(20)"`
  367. HseTraining string `xorm:"comment('是否需要进行HSE审查培训') VARCHAR(2)"`
  368. QualitySystemCert string `xorm:"comment('质量管理体系认证情况及认证机构') VARCHAR(200)"`
  369. ProductQualityCert string `xorm:"comment('产品质量认证情况及认证机构') VARCHAR(200)"`
  370. MaunLicense string `xorm:"comment('生产制造许可证获证情况及编号') VARCHAR(200)"`
  371. QualifCert string `xorm:"comment('企业资质证书编号') VARCHAR(200)"`
  372. QualifCertLevel string `xorm:"comment('企业资质证书级别') VARCHAR(10)"`
  373. SafetyLicense string `xorm:"comment('安全生产许可证') VARCHAR(200)"`
  374. TechServiceLic string `xorm:"comment('技术服务类准入许可证') VARCHAR(200)"`
  375. TjinNotify string `xorm:"comment('外地企业进津备案通知书') VARCHAR(50)"`
  376. SpecIndustryCert string `xorm:"comment('行业特殊要求的认证证书') VARCHAR(200)"`
  377. BusinessScope string `xorm:"comment('营业范围') TEXT"`
  378. LegalPerson string `xorm:"comment('法定代表人姓名') VARCHAR(20)"`
  379. CategoryCode string `xorm:"comment('行业类别代码') VARCHAR(10)"`
  380. CategoryName string `xorm:"comment('行业类别名称') VARCHAR(20)"`
  381. RegCapital float64 `xorm:"default 0 comment('注册资本') FLOAT"`
  382. Currency string `xorm:"comment('币种') VARCHAR(10)"`
  383. ContactName string `xorm:"comment('联系人姓名') VARCHAR(20)"`
  384. CompanyType string `xorm:"comment('公司类型') VARCHAR(20)"`
  385. SetupTime time.Time `xorm:"comment('成立时间') Date"`
  386. DepositBank string `xorm:"comment('开户银行') VARCHAR(50)"`
  387. BankAccount string `xorm:"comment('银行账号') VARCHAR(50)"`
  388. EMail string `xorm:"comment('电子邮箱') VARCHAR(50)"`
  389. BankCreditRating string `xorm:"comment('银行信用等级') VARCHAR(10)"`
  390. Mobile string `xorm:"comment('移动电话') VARCHAR(20)"`
  391. Telphone string `xorm:"comment('固定电话') VARCHAR(20)"`
  392. Fax string `xorm:"comment('传真') VARCHAR(20)"`
  393. CompanyTel string `xorm:"comment('公司电话') VARCHAR(20)"`
  394. QQ string `xorm:"comment('QQ号码') VARCHAR(20)"`
  395. CompanyUrl string `xorm:"comment('公司网址') VARCHAR(20)"`
  396. SpecSupplier string `xorm:"default '0' comment('是否特殊业务供应商(可不招标)') VARCHAR(2)"`
  397. SpecTypeCode string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(2)"`
  398. SpecTypeName string `xorm:"comment('业务类型(1战略合作,2内部多经,3区域关键,4专业化实施)') VARCHAR(20)"`
  399. WZAccessCardNo string `xorm:"comment('准入证编码--物质') VARCHAR(20)"`
  400. JSAccessCardNo string `xorm:"comment('准入证编码--基建') VARCHAR(20)"`
  401. JFAccessCardNo string `xorm:"comment('准入证编码--技术服务类') VARCHAR(20)"`
  402. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  403. PACNumber string `xorm:"comment('中石油准入证编号') VARCHAR(50)"`
  404. SupplierCertificate string `xorm:"comment('中石油物资供应商证书') VARCHAR(200)"`
  405. }
  406. type OilSupplierCertSubInte struct {
  407. SupplierTypeCode string `xorm:"not null default '' comment('准入类别代码') VARCHAR(5)"`
  408. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  409. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  410. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  411. }
  412. type OilSupplierInte struct {
  413. SupplierInfo SupplierInfoInte
  414. WZsub []OilSupplierCertSubInte // 物资类
  415. JFsub []OilSupplierCertSubInte // 技术服务类
  416. JSsub []OilSupplierCertSubInte // 基建类
  417. }