custom.go 21KB

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