custom.go 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. package models
  2. type KyyChargeCustomTwo struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. Name string `gorm:"column:name" json:"name" form:"name"`
  5. XtOrgId int64 `gorm:"column:xt_org_id" json:"xt_org_id" form:"xt_org_id"`
  6. Status int64 `gorm:"column:status" json:"status" form:"status"`
  7. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  8. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  9. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  10. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  11. CustomType int64 `gorm:"column:custom_type" json:"custom_type" form:"custom_type"`
  12. Salesperson string `gorm:"column:salesperson" json:"salesperson" form:"salesperson"`
  13. SignTime string `gorm:"column:sign_time" json:"sign_time" form:"sign_time"`
  14. ContractPrice string `gorm:"column:contract_price" json:"contract_price" form:"contract_price"`
  15. SoftwarePrice string `gorm:"column:software_price" json:"software_price" form:"software_price"`
  16. HardwarePrice string `gorm:"column:hardware_price" json:"hardware_price" form:"hardware_price"`
  17. YearCostPrice string `gorm:"column:year_cost_price" json:"year_cost_price" form:"year_cost_price"`
  18. Address string `gorm:"column:address" json:"address" form:"address"`
  19. IsImplement int64 `gorm:"column:is_implement" json:"is_implement" form:"is_implement"`
  20. LisStatus int64 `gorm:"column:lis_status" json:"lis_status" form:"lis_status"`
  21. LisContact string `gorm:"column:lis_contact" json:"lis_contact" form:"lis_contact"`
  22. LisTime string `gorm:"column:lis_time" json:"lis_time" form:"lis_time"`
  23. LisRemark string `gorm:"column:lis_remark" json:"lis_remark" form:"lis_remark"`
  24. QcStatus int64 `gorm:"column:qc_status" json:"qc_status" form:"qc_status"`
  25. YbStatus int64 `gorm:"column:yb_status" json:"yb_status" form:"yb_status"`
  26. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  27. WeightScaleStatus int64 `gorm:"column:weight_scale_status" json:"weight_scale_status" form:"weight_scale_status"`
  28. WeightScaleBrand string `gorm:"column:weight_scale_brand" json:"weight_scale_brand" form:"weight_scale_brand"`
  29. WeightScaleRemark string `gorm:"column:weight_scale_remark" json:"weight_scale_remark" form:"weight_scale_remark"`
  30. SphygmomanometerStatus int64 `gorm:"column:sphygmomanometer_status" json:"sphygmomanometer_status" form:"sphygmomanometer_status"`
  31. SphygmomanometerBrand string `gorm:"column:sphygmomanometer_brand" json:"sphygmomanometer_brand" form:"sphygmomanometer_brand"`
  32. SphygmomanometerRemark string `gorm:"column:sphygmomanometer_remark" json:"sphygmomanometer_remark" form:"sphygmomanometer_remark"`
  33. ScannerStatus int64 `gorm:"column:scanner_status" json:"scanner_status" form:"scanner_status"`
  34. ScannerBrand string `gorm:"column:scanner_brand" json:"scanner_brand" form:"scanner_brand"`
  35. ScannerRemark string `gorm:"column:scanner_remark" json:"scanner_remark" form:"scanner_remark"`
  36. FacialRecognitionDeviceStatus int64 `gorm:"column:facial_recognition_device_status" json:"facial_recognition_device_status" form:"facial_recognition_device_status"`
  37. FacialRecognitionDeviceBrand string `gorm:"column:facial_recognition_device_brand" json:"facial_recognition_device_brand" form:"facial_recognition_device_brand"`
  38. FacialRecognitionDeviceRemark string `gorm:"column:facial_recognition_device_remark" json:"facial_recognition_device_remark" form:"facial_recognition_device_remark"`
  39. PrinterStatus int64 `gorm:"column:printer_status" json:"printer_status" form:"printer_status"`
  40. PrinterBrand string `gorm:"column:printer_brand" json:"printer_brand" form:"printer_brand"`
  41. PrinterRemark string `gorm:"column:printer_remark" json:"printer_remark" form:"printer_remark"`
  42. HardwareRemark string `gorm:"column:hardware_remark" json:"hardware_remark" form:"hardware_remark"`
  43. ImplementTime string `gorm:"column:implement_time" json:"implement_time" form:"implement_time"`
  44. ImplementPerson string `gorm:"column:implement_person" json:"implement_person" form:"implement_person"`
  45. ImplementRemark string `gorm:"column:implement_remark" json:"implement_remark" form:"implement_remark"`
  46. YbTime string `gorm:"column:yb_time" json:"yb_time" form:"yb_time"`
  47. YbPerson string `gorm:"column:yb_person" json:"yb_person" form:"yb_person"`
  48. YbRemark string `gorm:"column:yb_remark" json:"yb_remark" form:"yb_remark"`
  49. QcTime string `gorm:"column:qc_time" json:"qc_time" form:"qc_time"`
  50. QcPerson string `gorm:"column:qc_person" json:"qc_person" form:"qc_person"`
  51. QcRemark string `gorm:"column:qc_remark" json:"qc_remark" form:"qc_remark"`
  52. }
  53. func (KyyChargeCustomTwo) TableName() string {
  54. return "kyy_charge_custom"
  55. }
  56. type KyyChargeCustom struct {
  57. ID int64 `gorm:"column:id" json:"id" form:"id"`
  58. Name string `gorm:"column:name" json:"name" form:"name"`
  59. XtOrgId int64 `gorm:"column:xt_org_id" json:"xt_org_id" form:"xt_org_id"`
  60. Status int64 `gorm:"column:status" json:"status" form:"status"`
  61. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  62. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  63. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  64. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  65. CustomType int64 `gorm:"column:custom_type" json:"custom_type" form:"custom_type"`
  66. Salesperson string `gorm:"column:salesperson" json:"salesperson" form:"salesperson"`
  67. SignTime string `gorm:"column:sign_time" json:"sign_time" form:"sign_time"`
  68. ContractPrice string `gorm:"column:contract_price" json:"contract_price" form:"contract_price"`
  69. SoftwarePrice string `gorm:"column:software_price" json:"software_price" form:"software_price"`
  70. HardwarePrice string `gorm:"column:hardware_price" json:"hardware_price" form:"hardware_price"`
  71. YearCostPrice string `gorm:"column:year_cost_price" json:"year_cost_price" form:"year_cost_price"`
  72. Address string `gorm:"column:address" json:"address" form:"address"`
  73. IsImplement int64 `gorm:"column:is_implement" json:"is_implement" form:"is_implement"`
  74. LisStatus int64 `gorm:"column:lis_status" json:"lis_status" form:"lis_status"`
  75. LisContact string `gorm:"column:lis_contact" json:"lis_contact" form:"lis_contact"`
  76. LisTime string `gorm:"column:lis_time" json:"lis_time" form:"lis_time"`
  77. LisRemark string `gorm:"column:lis_remark" json:"lis_remark" form:"lis_remark"`
  78. QcStatus int64 `gorm:"column:qc_status" json:"qc_status" form:"qc_status"`
  79. YbStatus int64 `gorm:"column:yb_status" json:"yb_status" form:"yb_status"`
  80. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  81. WeightScaleStatus int64 `gorm:"column:weight_scale_status" json:"weight_scale_status" form:"weight_scale_status"`
  82. WeightScaleBrand string `gorm:"column:weight_scale_brand" json:"weight_scale_brand" form:"weight_scale_brand"`
  83. WeightScaleRemark string `gorm:"column:weight_scale_remark" json:"weight_scale_remark" form:"weight_scale_remark"`
  84. SphygmomanometerStatus int64 `gorm:"column:sphygmomanometer_status" json:"sphygmomanometer_status" form:"sphygmomanometer_status"`
  85. SphygmomanometerBrand string `gorm:"column:sphygmomanometer_brand" json:"sphygmomanometer_brand" form:"sphygmomanometer_brand"`
  86. SphygmomanometerRemark string `gorm:"column:sphygmomanometer_remark" json:"sphygmomanometer_remark" form:"sphygmomanometer_remark"`
  87. ScannerStatus int64 `gorm:"column:scanner_status" json:"scanner_status" form:"scanner_status"`
  88. ScannerBrand string `gorm:"column:scanner_brand" json:"scanner_brand" form:"scanner_brand"`
  89. ScannerRemark string `gorm:"column:scanner_remark" json:"scanner_remark" form:"scanner_remark"`
  90. FacialRecognitionDeviceStatus int64 `gorm:"column:facial_recognition_device_status" json:"facial_recognition_device_status" form:"facial_recognition_device_status"`
  91. FacialRecognitionDeviceBrand string `gorm:"column:facial_recognition_device_brand" json:"facial_recognition_device_brand" form:"facial_recognition_device_brand"`
  92. FacialRecognitionDeviceRemark string `gorm:"column:facial_recognition_device_remark" json:"facial_recognition_device_remark" form:"facial_recognition_device_remark"`
  93. PrinterStatus int64 `gorm:"column:printer_status" json:"printer_status" form:"printer_status"`
  94. PrinterBrand string `gorm:"column:printer_brand" json:"printer_brand" form:"printer_brand"`
  95. PrinterRemark string `gorm:"column:printer_remark" json:"printer_remark" form:"printer_remark"`
  96. HardwareRemark string `gorm:"column:hardware_remark" json:"hardware_remark" form:"hardware_remark"`
  97. ImplementTime string `gorm:"column:implement_time" json:"implement_time" form:"implement_time"`
  98. ImplementPerson string `gorm:"column:implement_person" json:"implement_person" form:"implement_person"`
  99. ImplementRemark string `gorm:"column:implement_remark" json:"implement_remark" form:"implement_remark"`
  100. YbTime string `gorm:"column:yb_time" json:"yb_time" form:"yb_time"`
  101. YbPerson string `gorm:"column:yb_person" json:"yb_person" form:"yb_person"`
  102. YbRemark string `gorm:"column:yb_remark" json:"yb_remark" form:"yb_remark"`
  103. QcTime string `gorm:"column:qc_time" json:"qc_time" form:"qc_time"`
  104. QcPerson string `gorm:"column:qc_person" json:"qc_person" form:"qc_person"`
  105. QcRemark string `gorm:"column:qc_remark" json:"qc_remark" form:"qc_remark"`
  106. KyyChargePaymentCollection []*KyyChargePaymentCollection `gorm:"ForeignKey:ID;AssociationForeignKey:CustomId" json:"cpc"`
  107. KyyChargeContact []*KyyChargeContact `gorm:"ForeignKey:ID;AssociationForeignKey:CustomId" json:"cc"`
  108. KyyChargeContract []*KyyChargeContract `gorm:"ForeignKey:ID;AssociationForeignKey:CustomId" json:"chargeContract"`
  109. KyyChargeDemand []*KyyChargeDemand `gorm:"ForeignKey:ID;AssociationForeignKey:CustomId" json:"cd"`
  110. KyyChargeFollow []*KyyChargeFollow `gorm:"ForeignKey:ID;AssociationForeignKey:CustomId" json:"cf"`
  111. KyyChargeRenewal []*KyyChargeRenewal `gorm:"ForeignKey:ID;AssociationForeignKey:CustomId" json:"cr"`
  112. }
  113. func (KyyChargeCustom) TableName() string {
  114. return "kyy_charge_custom"
  115. }
  116. type KyyChargePaymentCollection struct {
  117. ID int64 `gorm:"column:id" json:"id" form:"id"`
  118. XtOrgId int64 `gorm:"column:xt_org_id" json:"xt_org_id" form:"xt_org_id"`
  119. CustomId int64 `gorm:"column:custom_id" json:"custom_id" form:"custom_id"`
  120. CustomName string `gorm:"column:custom_name" json:"custom_name" form:"custom_name"`
  121. PaymentCollectionType int64 `gorm:"column:payment_collection_type" json:"payment_collection_type" form:"payment_collection_type"`
  122. PaymentCollectionSumamt string `gorm:"column:payment_collection_sumamt" json:"payment_collection_sumamt" form:"payment_collection_sumamt"`
  123. SoftwareSumamt string `gorm:"column:software_sumamt" json:"software_sumamt" form:"software_sumamt"`
  124. HardwareSumamt string `gorm:"column:hardware_sumamt" json:"hardware_sumamt" form:"hardware_sumamt"`
  125. PaymentCollectionDate string `gorm:"column:payment_collection_date" json:"payment_collection_date" form:"payment_collection_date"`
  126. PaymentCollectionRole string `gorm:"column:payment_collection_role" json:"payment_collection_role" form:"payment_collection_role"`
  127. Url string `gorm:"column:url" json:"url" form:"url"`
  128. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  129. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  130. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  131. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  132. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  133. Status int64 `gorm:"column:status" json:"status" form:"status"`
  134. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  135. }
  136. func (KyyChargePaymentCollection) TableName() string {
  137. return "kyy_charge_payment_collection"
  138. }
  139. type KyyChargeContact struct {
  140. ID int64 `gorm:"column:id" json:"id" form:"id"`
  141. XtOrgId int64 `gorm:"column:xt_org_id" json:"xt_org_id" form:"xt_org_id"`
  142. CustomId int64 `gorm:"column:custom_id" json:"custom_id" form:"custom_id"`
  143. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  144. ContactPhone string `gorm:"column:contact_phone" json:"contact_phone" form:"contact_phone"`
  145. ContactDuties string `gorm:"column:contact_duties" json:"contact_duties" form:"contact_duties"`
  146. IsDecision string `gorm:"column:is_decision" json:"is_decision" form:"is_decision"`
  147. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  148. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  149. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  150. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  151. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  152. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  153. Status int64 `gorm:"column:status" json:"status" form:"status"`
  154. ContactWay string `gorm:"column:contact_way" json:"contact_way" form:"contact_way"`
  155. }
  156. func (KyyChargeContact) TableName() string {
  157. return "kyy_charge_contact"
  158. }
  159. type KyyChargeContract struct {
  160. ID int64 `gorm:"column:id" json:"id" form:"id"`
  161. XtOrgId int64 `gorm:"column:xt_org_id" json:"xt_org_id" form:"xt_org_id"`
  162. CustomId int64 `gorm:"column:custom_id" json:"custom_id" form:"custom_id"`
  163. Code string `gorm:"column:code" json:"code" form:"code"`
  164. Name string `gorm:"column:name" json:"name" form:"name"`
  165. CustomName string `gorm:"column:custom_name" json:"custom_name" form:"custom_name"`
  166. Sumamt string `gorm:"column:sumamt" json:"sumamt" form:"sumamt"`
  167. StartTime string `gorm:"column:start_time" json:"start_time" form:"start_time"`
  168. EndTime string `gorm:"column:end_time" json:"end_time" form:"end_time"`
  169. SigningPerson string `gorm:"column:signing_person" json:"signing_person" form:"signing_person"`
  170. WordFileUrl string `gorm:"column:word_file_url" json:"word_file_url" form:"word_file_url"`
  171. PdfFileUrl string `gorm:"column:pdf_file_url" json:"pdf_file_url" form:"pdf_file_url"`
  172. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  173. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  174. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  175. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  176. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  177. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  178. Status int64 `gorm:"column:status" json:"status" form:"status"`
  179. }
  180. func (KyyChargeContract) TableName() string {
  181. return "kyy_charge_contract"
  182. }
  183. type KyyChargeDemand struct {
  184. ID int64 `gorm:"column:id" json:"id" form:"id"`
  185. DemandType int64 `gorm:"column:demand_type" json:"demand_type" form:"demand_type"`
  186. DemandDesc string `gorm:"column:demand_desc" json:"demand_desc" form:"demand_desc"`
  187. DemandStatus int64 `gorm:"column:demand_status" json:"demand_status" form:"demand_status"`
  188. DemandCreator string `gorm:"column:demand_creator" json:"demand_creator" form:"demand_creator"`
  189. DemandCreateDate string `gorm:"column:demand_create_date" json:"demand_create_date" form:"demand_create_date"`
  190. DemandDirector string `gorm:"column:demand_director" json:"demand_director" form:"demand_director"`
  191. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  192. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  193. Status int64 `gorm:"column:status" json:"status" form:"status"`
  194. CustomId int64 `gorm:"column:custom_id" json:"custom_id" form:"custom_id"`
  195. DemandFinishDate string `gorm:"column:demand_finish_date" json:"demand_finish_date" form:"demand_finish_date"`
  196. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  197. DemandDetail string `gorm:"column:demand_detail" json:"demand_detail" form:"demand_detail"`
  198. }
  199. func (KyyChargeDemand) TableName() string {
  200. return "kyy_charge_demand"
  201. }
  202. type KyyChargeFollow struct {
  203. ID int64 `gorm:"column:id" json:"id" form:"id"`
  204. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  205. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  206. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  207. CustomId int64 `gorm:"column:custom_id" json:"custom_id" form:"custom_id"`
  208. Desc string `gorm:"column:desc" json:"desc" form:"desc"`
  209. Status int64 `gorm:"column:status" json:"status" form:"status"`
  210. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  211. }
  212. func (KyyChargeFollow) TableName() string {
  213. return "kyy_charge_follow"
  214. }
  215. type KyyChargeRenewal struct {
  216. ID int64 `gorm:"column:id" json:"id" form:"id"`
  217. Type int64 `gorm:"column:type" json:"type" form:"type"`
  218. StartTime string `gorm:"column:start_time" json:"start_time" form:"start_time"`
  219. EndTime string `gorm:"column:end_time" json:"end_time" form:"end_time"`
  220. SigningPersonal string `gorm:"column:signing_personal" json:"signing_personal" form:"signing_personal"`
  221. CustomId int64 `gorm:"column:custom_id" json:"custom_id" form:"custom_id"`
  222. SignTime string `gorm:"column:sign_time" json:"sign_time" form:"sign_time"`
  223. CheckPersonal string `gorm:"column:check_personal" json:"check_personal" form:"check_personal"`
  224. Ctime string `gorm:"column:ctime" json:"ctime" form:"ctime"`
  225. Mtime string `gorm:"column:mtime" json:"mtime" form:"mtime"`
  226. Status int64 `gorm:"column:status" json:"status" form:"status"`
  227. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  228. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  229. }
  230. func (KyyChargeRenewal) TableName() string {
  231. return "kyy_charge_renewal"
  232. }