oilsuppliercertsub.go 14 KB

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