oilsuppliercertsub.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. package suppliercertsub
  2. import (
  3. "time"
  4. )
  5. type OilSupplierCertSub struct {
  6. Id int `xorm:"not null pk autoincr INT(10)"`
  7. SupplierId int `xorm:"not null comment('供方基本信息表主键') INT(10)"`
  8. SupplierCertId int `xorm:"not null comment('供方准入证书信息表主键') INT(10)"`
  9. SupplierCertAppendId int `xorm:"not null comment('增项信息表ID') INT(10)"`
  10. GoodsLevel string `xorm:"not null default '' comment('级别')"`
  11. IsManufacturer int `xorm:"not null comment('是否为供应商') INT(11)"`
  12. SupplierTypeCode string `xorm:"not null default '' comment('准入类别代码') VARCHAR(5)"`
  13. SubClassId int `xorm:"not null comment('分类表主键(物资类或基建类或技术服务类)') INT(10)"`
  14. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  15. AppendStatus string `xorm:"not null default '' comment('增项审核状态') VARCHAR(10)"`
  16. Type string `xorm:"not null default '' comment('类型') VARCHAR(10)"`
  17. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  18. CertSubStatus string `xorm:"null default '1' comment('1:正常2:不良记录暂停') VARCHAR(10)"`
  19. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  20. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  21. CreateOn time.Time `xorm:"DATETIME created"`
  22. CreateUserId int `xorm:"INT(10)"`
  23. CreateBy string `xorm:"VARCHAR(50)"`
  24. ModifiedOn time.Time `xorm:"DATETIME"`
  25. ModifiedUserId int `xorm:"INT(10)"`
  26. ModifiedBy string `xorm:"VARCHAR(50)"`
  27. DueTime string `xorm:"VARCHAR(50)"`
  28. IsQuestion int `xorm:"default 0 comment('问题状态,0正常,1有问题') INT(10)"`
  29. }
  30. type OilSupplierCertSub1 struct {
  31. Id int `xorm:"not null pk autoincr INT(10)"`
  32. SupplierId int `xorm:"not null comment('供方基本信息表主键') INT(10)"`
  33. SupplierCertId int `xorm:"not null comment('供方准入证书信息表主键') INT(10)"`
  34. SupplierCertAppendId int `xorm:"not null comment('增项信息表ID') INT(10)"`
  35. GoodsLevel string `xorm:"not null default '' comment('级别')"`
  36. IsManufacturer int `xorm:"not null comment('是否为供应商') INT(11)"`
  37. SupplierTypeCode string `xorm:"not null default '' comment('准入类别代码') VARCHAR(5)"`
  38. SubClassId int `xorm:"not null comment('分类表主键(物资类或基建类或技术服务类)') INT(10)"`
  39. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  40. AppendStatus string `xorm:"not null default '' comment('增项审核状态') VARCHAR(10)"`
  41. Type string `xorm:"not null default '' comment('类型') VARCHAR(10)"`
  42. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  43. CertSubStatus string `xorm:"null default '1' comment('1:正常2:不良记录暂停') VARCHAR(10)"`
  44. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  45. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  46. CreateOn time.Time `xorm:"DATETIME created"`
  47. CreateUserId int `xorm:"INT(10)"`
  48. CreateBy string `xorm:"VARCHAR(50)"`
  49. ModifiedOn time.Time `xorm:"DATETIME"`
  50. ModifiedUserId int `xorm:"INT(10)"`
  51. ModifiedBy string `xorm:"VARCHAR(50)"`
  52. DueTime string `xorm:"VARCHAR(50)"`
  53. HeaderCodes string
  54. Checked int
  55. HeaderName string
  56. MinClassId string
  57. IsQuestion string
  58. }
  59. type Del_OilSupplierCertSub struct {
  60. Id int `xorm:<- not null pk autoincr INT(10)"`
  61. SupplierId int `xorm:"not null comment('供方基本信息表主键') INT(10)"`
  62. SupplierCertId int `xorm:"not null comment('供方准入证书信息表主键') INT(10)"`
  63. SupplierCertAppendId int `xorm:"not null comment('增项信息表ID') INT(10)"`
  64. SupplierTypeCode string `xorm:"not null default '' comment('准入类别代码') VARCHAR(5)"`
  65. SubClassId int `xorm:"not null comment('分类表主键(物资类或基建类或技术服务类)') INT(10)"`
  66. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  67. AppendStatus string `xorm:"not null default '' comment('增项审核状态') VARCHAR(10)"`
  68. Type string `xorm:"not null default '' comment('类型') VARCHAR(10)"`
  69. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  70. CertSubStatus string `xorm:"null default '1' comment('1:正常2:不良记录暂停') VARCHAR(10)"`
  71. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  72. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  73. CreateOn time.Time `xorm:"DATETIME created"`
  74. CreateUserId int `xorm:"INT(10)"`
  75. CreateBy string `xorm:"VARCHAR(50)"`
  76. ModifiedOn time.Time `xorm:"DATETIME"`
  77. ModifiedUserId int `xorm:"INT(10)"`
  78. ModifiedBy string `xorm:"VARCHAR(50)"`
  79. DeleteDate time.Time `xorm:"DATETIME"`
  80. }
  81. type Tmp_OilSupplierCertSub struct {
  82. Id int `xorm:<- not null pk autoincr INT(10)"`
  83. SupplierId int `xorm:"not null comment('供方基本信息表主键') INT(10)"`
  84. SupplierCertId int `xorm:"not null comment('供方准入证书信息表主键') INT(10)"`
  85. SupplierCertAppendId int `xorm:"not null comment('增项信息表ID') INT(10)"`
  86. GoodsLevel string `xorm:"not null default '' comment('级别')"`
  87. IsManufacturer int `xorm:"not null comment('是否为供应商') INT(11)"`
  88. SupplierTypeCode string `xorm:"not null default '' comment('准入类别代码') VARCHAR(5)"`
  89. SubClassId int `xorm:"not null comment('分类表主键(物资类或基建类或技术服务类)') INT(10)"`
  90. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  91. AppendStatus string `xorm:"not null default '' comment('增项审核状态') VARCHAR(10)"`
  92. Type string `xorm:"not null default '' comment('类型') VARCHAR(10)"`
  93. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  94. CertSubStatus string `xorm:"null default '1' comment('1:正常2:不良记录暂停') VARCHAR(10)"`
  95. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  96. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  97. CreateOn time.Time `xorm:"DATETIME created"`
  98. CreateUserId int `xorm:"INT(10)"`
  99. CreateBy string `xorm:"VARCHAR(50)"`
  100. ModifiedOn time.Time `xorm:"DATETIME"`
  101. ModifiedUserId int `xorm:"INT(10)"`
  102. ModifiedBy string `xorm:"VARCHAR(50)"`
  103. }
  104. type goodsChecked struct {
  105. Id string `json:"id"`
  106. Code string
  107. Name string
  108. CodeName string
  109. GoodsLevel string
  110. }
  111. type SupplierCertSubModel struct {
  112. CheckList []goodsChecked //批量添加准入范围
  113. Id int `xorm:"<- not null pk autoincr INT(10)"`
  114. SupplierId int
  115. SupplierCertId int
  116. SupplierTypeCode string
  117. SubClassId int
  118. Code string
  119. Name string
  120. Remark string
  121. IsDelete int
  122. }
  123. type SupplierCertSubLostModel struct {
  124. CheckGoods goodsChecked
  125. Id int `xorm:"<- not null pk autoincr INT(10)"`
  126. SupplierId int
  127. SupplierCertId int
  128. SupplierTypeCode string
  129. SubClassId int
  130. Code string
  131. Name string
  132. Remark string
  133. IsDelete int
  134. }
  135. type techChecked struct {
  136. Id int `json:"id"`
  137. Code string
  138. Name string
  139. CodeName string
  140. }
  141. type TechnologySubModel struct {
  142. CheckList []techChecked //批量添加准入范围
  143. Id int `xorm:"<- not null pk autoincr INT(10)"`
  144. SupplierId int
  145. SupplierCertId int
  146. SupplierTypeCode string
  147. SubClassId int
  148. Code string
  149. Name string
  150. Remark string
  151. IsDelete int
  152. }
  153. type OilSupplierCertAppendSub struct {
  154. Id int `xorm:"not null pk autoincr INT(10)"`
  155. SupplierId int `xorm:"not null comment('供方基本信息表主键') INT(10)"`
  156. SupplierCertId int `xorm:"not null comment('供方准入证书信息表主键') INT(10)"`
  157. SubClassId int `xorm:"not null comment('分类表主键(物资类或基建类或技术服务类)') INT(10)"`
  158. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  159. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  160. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  161. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  162. CreateOn time.Time `xorm:"DATETIME created"`
  163. CreateUserId int `xorm:"INT(10)"`
  164. CreateBy string `xorm:"VARCHAR(50)"`
  165. ModifiedOn time.Time `xorm:"DATETIME"`
  166. ModifiedUserId int `xorm:"INT(10)"`
  167. ModifiedBy string `xorm:"VARCHAR(50)"`
  168. }
  169. type OilSupplierOpinion struct {
  170. Id int `xorm:"not null pk autoincr INT(10)"`
  171. SupplierId int `xorm:"not null comment('供方基本信息表主键') INT(10)"`
  172. SupplierTypeCode string `xorm:"not null default '' comment('准入类别代码') VARCHAR(5)"`
  173. SupplierCertSubId int `xorm:"not null comment('供方对应准入子分类表') INT(10)"`
  174. CertSubName string `xorm:"VARCHAR(50)"`
  175. Opinion string `xorm:"not null default '' comment('分类编码') VARCHAR(500)"`
  176. Status string `xorm:"comment('状态标识( 0 初始 - 1待二级初审 - 2待二级复审 - 3-专业科室接收 4 待专业科室审核 - 5 待集中评审 - 6 待交费 - 7 待入库 - 8 完成)') VARCHAR(5)"`
  177. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  178. AuditStatus int `xorm:"TINYINT(4)"`
  179. AuditorId int `xorm:"INT(10)"`
  180. AuditorName string `xorm:"VARCHAR(50)"`
  181. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  182. CreateOn time.Time `xorm:"DATETIME created"`
  183. CreateUserId int `xorm:"INT(10)"`
  184. CreateBy string `xorm:"VARCHAR(50)"`
  185. ModifiedOn time.Time `xorm:"DATETIME"`
  186. ModifiedUserId int `xorm:"INT(10)"`
  187. ModifiedBy string `xorm:"VARCHAR(50)"`
  188. }
  189. // TODO: 删除准入范围和资质对应关系表
  190. /* type OilSupplierCert2File struct {
  191. Id int `xorm:"not null pk autoincr INT(10)"`
  192. SupplierId int `xorm:"not null default 0 comment('供方基本信息表主键') INT(10)"`
  193. SupplierCertId int `xorm:"not null default 0 comment('供方准入证书信息表主键') INT(10)"`
  194. SupplierCertSubId int `xorm:"not null default 0 comment('供方准入范围表ID') INT(10)"`
  195. SupplierTypeCode string `xorm:"not null default '0' comment('准入类别代码(1 物资类,2 基建类,3 技术服务类)') VARCHAR(5)"`
  196. IsManuf string `xorm:"VARCHAR(5)"`
  197. SubClassId int `xorm:"not null default 0 comment('分类表ID') INT(10)"`
  198. Code string `xorm:"not null default '' comment('分类编码') VARCHAR(8)"`
  199. Name string `xorm:"not null default '' comment('分类名称') VARCHAR(50)"`
  200. NeedFileType string `xorm:"not null default '' comment('文件分类(资质名称)') VARCHAR(50)"`
  201. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  202. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  203. CreateOn time.Time `xorm:"DATETIME"`
  204. CreateUserId int `xorm:"INT(10)"`
  205. CreateBy string `xorm:"VARCHAR(50)"`
  206. ModifiedOn time.Time `xorm:"DATETIME"`
  207. ModifiedUserId int `xorm:"INT(10)"`
  208. ModifiedBy string `xorm:"VARCHAR(50)"`
  209. }*/
  210. //对比分析差异表
  211. type OilCompare struct {
  212. SortCoding string //分类编码
  213. SortName string //分类名称
  214. Level string //级别
  215. SupplierCode string //供应商编码
  216. SupplierName string //供应商名称
  217. SurplusCount string //管理单位类型
  218. ManagementUnitType string //产品变更类型
  219. EliminationCause string //剔除原因
  220. AccessList string //准入单位
  221. SupplierSubTime string //供应商提交时间
  222. ProductType string //产品类型
  223. Editor string //编辑人
  224. EditingTime string //编辑时间
  225. FlowState string //流程状态
  226. ProcessNotes string //流程备注
  227. Reviewime string //复核时间
  228. Brand string //品牌
  229. WorkCode string //工作单编码
  230. WorkType string //工作单类型
  231. ProductScope string //产品服务范围
  232. IsBid string //是否公开中标
  233. MoreInfo string //备注
  234. ManufacturerCode string //代理的制造商编码
  235. ManufacturerName string //代理的制造商名称
  236. Diff string //是否为比对出的不同项
  237. }