excel_info.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. package excel
  2. import (
  3. "fmt"
  4. "github.com/beego/beego/v2/client/orm"
  5. "time"
  6. )
  7. // ExcelInfo excel表格详情表
  8. type ExcelInfo struct {
  9. ExcelInfoId int `orm:"column(excel_info_id);pk"`
  10. Source int `description:"表格来源,1:excel插件的表格,2:自定义表格,3:混合表格,4:自定义分析,默认:1"`
  11. ExcelType int `description:"表格类型,1:指标列,2:日期列,默认:1"`
  12. ExcelName string `description:"表格名称"`
  13. UniqueCode string `description:"表格唯一编码"`
  14. ExcelClassifyId int `description:"表格分类id"`
  15. SysUserId int `description:"操作人id"`
  16. SysUserRealName string `description:"操作人真实姓名"`
  17. Content string `description:"表格内容"`
  18. ExcelImage string `description:"表格图片"`
  19. FileUrl string `description:"表格下载地址"`
  20. Sort int `description:"排序字段,数字越小越排前面"`
  21. IsDelete int `description:"是否删除,0:未删除,1:已删除"`
  22. ModifyTime time.Time `description:"最近修改日期"`
  23. CreateTime time.Time `description:"创建日期"`
  24. }
  25. // Update 更新 excel表格基础信息
  26. func (excelInfo *ExcelInfo) Update(cols []string) (err error) {
  27. o := orm.NewOrmUsingDB("data")
  28. _, err = o.Update(excelInfo, cols...)
  29. return
  30. }
  31. type MyExcelInfoList struct {
  32. ExcelInfoId int `orm:"column(excel_info_id);pk"`
  33. Source int `description:"表格来源,1:excel插件的表格,2:自定义表格,默认:1"`
  34. ExcelType int `description:"表格类型,1:指标列,2:日期列,默认:1"`
  35. ExcelName string `description:"表格名称"`
  36. UniqueCode string `description:"表格唯一编码"`
  37. ExcelClassifyId int `description:"表格分类id"`
  38. SysUserId int `description:"操作人id"`
  39. SysUserRealName string `description:"操作人真实姓名"`
  40. ExcelImage string `description:"表格图片"`
  41. FileUrl string `description:"表格下载地址"`
  42. Sort int `description:"排序字段,数字越小越排前面"`
  43. ModifyTime time.Time `description:"最近修改日期"`
  44. CreateTime time.Time `description:"创建日期"`
  45. }
  46. // AddExcelInfo 新增表格
  47. func AddExcelInfo(excelInfo *ExcelInfo, excelEdbMappingList []*ExcelEdbMapping) (err error) {
  48. o, err := orm.NewOrmUsingDB("data").Begin()
  49. if err != nil {
  50. return
  51. }
  52. defer func() {
  53. if err != nil {
  54. _ = o.Rollback()
  55. } else {
  56. _ = o.Commit()
  57. }
  58. }()
  59. // 表格信息入库
  60. lastId, err := o.Insert(excelInfo)
  61. if err != nil {
  62. return
  63. }
  64. excelInfo.ExcelInfoId = int(lastId)
  65. // excel与指标的关联关系
  66. dataNum := len(excelEdbMappingList)
  67. if dataNum > 0 {
  68. for k, v := range excelEdbMappingList {
  69. v.ExcelInfoId = excelInfo.ExcelInfoId
  70. excelEdbMappingList[k] = v
  71. }
  72. _, err = o.InsertMulti(dataNum, excelEdbMappingList)
  73. }
  74. return
  75. }
  76. // EditExcelInfo 编辑表格
  77. func EditExcelInfo(excelInfo *ExcelInfo, updateExcelInfoParams []string, excelEdbMappingList []*ExcelEdbMapping) (err error) {
  78. o, err := orm.NewOrmUsingDB("data").Begin()
  79. if err != nil {
  80. return
  81. }
  82. defer func() {
  83. if err != nil {
  84. _ = o.Rollback()
  85. } else {
  86. _ = o.Commit()
  87. }
  88. }()
  89. // ETA表格信息变更
  90. _, err = o.Update(excelInfo, updateExcelInfoParams...)
  91. if err != nil {
  92. return
  93. }
  94. // 删除关系表
  95. sql := `DELETE FROM excel_edb_mapping WHERE excel_info_id=? `
  96. _, err = o.Raw(sql, excelInfo.ExcelInfoId).Exec()
  97. // excel与指标的关联关系
  98. dataNum := len(excelEdbMappingList)
  99. if dataNum > 0 {
  100. for k, v := range excelEdbMappingList {
  101. v.ExcelInfoId = excelInfo.ExcelInfoId
  102. excelEdbMappingList[k] = v
  103. }
  104. _, err = o.InsertMulti(dataNum, excelEdbMappingList)
  105. }
  106. return
  107. }
  108. // GetExcelInfoAll 获取所有表格列表,用于分类展示
  109. func GetExcelInfoAll() (items []*ExcelClassifyItems, err error) {
  110. o := orm.NewOrmUsingDB("data")
  111. sql := ` SELECT excel_info_id,excel_classify_id,excel_name AS excel_classify_name,
  112. unique_code,sys_user_id,sys_user_real_name,start_date
  113. FROM excel_info where is_delete=0 ORDER BY sort asc,create_time ASC `
  114. _, err = o.Raw(sql).QueryRows(&items)
  115. return
  116. }
  117. // GetNoContentExcelInfoAll 获取不含content的表格列表 用于分类展示
  118. func GetNoContentExcelInfoAll(source, userId int) (items []*ExcelClassifyItems, err error) {
  119. o := orm.NewOrmUsingDB("data")
  120. sql := ` SELECT excel_info_id,excel_classify_id,excel_name AS excel_classify_name,
  121. unique_code,sys_user_id,sys_user_real_name
  122. FROM excel_info where is_delete=0 AND source = ? `
  123. pars := []interface{}{source}
  124. if userId > 0 {
  125. sql += ` AND sys_user_id = ? `
  126. pars = append(pars, userId)
  127. }
  128. sql += ` ORDER BY sort asc,excel_info_id desc `
  129. _, err = o.Raw(sql, pars...).QueryRows(&items)
  130. return
  131. }
  132. // GetAllExcelInfoBySource 根据来源获取包含content的表格列表
  133. func GetAllExcelInfoBySource(source int) (items []*ExcelInfo, err error) {
  134. o := orm.NewOrmUsingDB("data")
  135. sql := ` SELECT * FROM excel_info where is_delete=0 AND source = ? ORDER BY sort asc,create_time desc `
  136. _, err = o.Raw(sql, source).QueryRows(&items)
  137. return
  138. }
  139. // GetExcelInfoById 根据id 获取eta表格详情
  140. func GetExcelInfoById(excelInfoId int) (item *ExcelInfo, err error) {
  141. o := orm.NewOrmUsingDB("data")
  142. sql := ` SELECT * FROM excel_info WHERE excel_info_id=? AND is_delete=0 `
  143. err = o.Raw(sql, excelInfoId).QueryRow(&item)
  144. return
  145. }
  146. // GetExcelInfoByUnicode 编码获取表格
  147. func GetExcelInfoByUnicode(unicode string) (item *ExcelInfo, err error) {
  148. o := orm.NewOrmUsingDB("data")
  149. sql := ` SELECT * FROM excel_info WHERE unique_code = ? AND is_delete = 0 `
  150. err = o.Raw(sql, unicode).QueryRow(&item)
  151. return
  152. }
  153. func GetExcelInfoViewById(excelInfoId int) (item *ExcelInfoView, err error) {
  154. o := orm.NewOrmUsingDB("data")
  155. sql := ` SELECT * FROM excel_info WHERE excel_info_id=? AND is_delete=0 `
  156. err = o.Raw(sql, excelInfoId).QueryRow(&item)
  157. return
  158. }
  159. func GetExcelInfoCountByCondition(condition string, pars []interface{}) (count int, err error) {
  160. o := orm.NewOrmUsingDB("data")
  161. sql := ` SELECT COUNT(1) AS count FROM excel_info WHERE 1=1 AND is_delete=0 `
  162. if condition != "" {
  163. sql += condition
  164. }
  165. err = o.Raw(sql, pars).QueryRow(&count)
  166. return
  167. }
  168. func GetExcelInfoByCondition(condition string, pars []interface{}) (item *ExcelInfo, err error) {
  169. o := orm.NewOrmUsingDB("data")
  170. sql := ` SELECT * FROM excel_info WHERE 1=1 AND is_delete=0 `
  171. if condition != "" {
  172. sql += condition
  173. }
  174. err = o.Raw(sql, pars).QueryRow(&item)
  175. return
  176. }
  177. // GetNextExcelInfoByCondition 根据条件获取下一个表格
  178. func GetNextExcelInfoByCondition(condition string, pars []interface{}) (item *ExcelInfo, err error) {
  179. o := orm.NewOrmUsingDB("data")
  180. sql := ` SELECT * FROM excel_info WHERE 1=1 AND is_delete=0 `
  181. if condition != "" {
  182. sql += condition
  183. }
  184. sql += " ORDER BY sort asc , create_time desc LIMIT 1 "
  185. err = o.Raw(sql, pars).QueryRow(&item)
  186. return
  187. }
  188. // GetNextExcelInfo 根据分类id获取下一个excel表格
  189. func GetNextExcelInfo(classifyId, classifySort, source int) (item *ExcelInfo, err error) {
  190. o := orm.NewOrmUsingDB("data")
  191. sql := ` SELECT b.* FROM excel_classify AS a
  192. INNER JOIN excel_info AS b ON a.excel_classify_id=b.excel_classify_id
  193. WHERE (a.sort>? OR (a.sort=? and a.excel_classify_id>?) ) AND a.is_delete=0 AND b.is_delete=0
  194. AND a.source = ? AND b.source = ?
  195. ORDER BY a.sort ASC,b.sort asc,b.create_time desc
  196. LIMIT 1 `
  197. err = o.Raw(sql, classifySort, classifySort, classifyId, source, source).QueryRow(&item)
  198. return
  199. }
  200. // EditExcelInfoImage 修改excel表格的图片
  201. func EditExcelInfoImage(excelInfoId int, imageUrl string) (err error) {
  202. o := orm.NewOrmUsingDB("data")
  203. sql := ` UPDATE excel_info SET excel_image=?, modify_time = NOW() WHERE excel_info_id = ? AND is_delete=0 `
  204. _, err = o.Raw(sql, imageUrl, excelInfoId).Exec()
  205. if err != nil {
  206. fmt.Println("EditExcelInfoImage Err:", err.Error())
  207. return err
  208. }
  209. return
  210. }
  211. // GetExcelInfoByUniqueCode 根据unique_code来获取excel表格详情
  212. func GetExcelInfoByUniqueCode(uniqueCode string) (item *ExcelInfo, err error) {
  213. o := orm.NewOrmUsingDB("data")
  214. sql := ` SELECT * FROM excel_info WHERE unique_code=? AND is_delete=0 `
  215. err = o.Raw(sql, uniqueCode).QueryRow(&item)
  216. return
  217. }
  218. // GetFirstExcelInfoByClassifyId 获取当前分类下,且排序数相同 的排序第一条的数据
  219. func GetFirstExcelInfoByClassifyId(classifyId int) (item *ExcelInfo, err error) {
  220. o := orm.NewOrmUsingDB("data")
  221. sql := ` SELECT * FROM excel_info WHERE excel_classify_id=? AND is_delete=0 order by sort asc,excel_info_id desc limit 1`
  222. err = o.Raw(sql, classifyId).QueryRow(&item)
  223. return
  224. }
  225. // UpdateExcelInfoSortByClassifyId 根据表格id更新排序
  226. func UpdateExcelInfoSortByClassifyId(classifyId, nowSort, prevExcelInfoId int, updateSort string) (err error) {
  227. o := orm.NewOrmUsingDB("data")
  228. sql := ` update excel_info set sort = ` + updateSort + ` WHERE excel_classify_id=? AND is_delete=0 AND ( sort > ? `
  229. if prevExcelInfoId > 0 {
  230. sql += ` or (excel_info_id < ` + fmt.Sprint(prevExcelInfoId) + ` and sort = ` + fmt.Sprint(nowSort) + `)`
  231. }
  232. sql += `)`
  233. _, err = o.Raw(sql, classifyId, nowSort).Exec()
  234. return
  235. }
  236. type ExcelInfoView struct {
  237. ExcelInfoId int `orm:"column(excel_info_id);pk"`
  238. ExcelName string `description:"来源名称"`
  239. ExcelClassifyId int `description:"表格分类id"`
  240. ExcelClassifyName string `description:"表格名称"`
  241. SysUserId int
  242. SysUserRealName string
  243. UniqueCode string `description:"表格唯一编码"`
  244. CreateTime time.Time
  245. ModifyTime time.Time
  246. DateType int `description:"日期类型:1:00年至今,2:10年至今,3:15年至今,4:年初至今,5:自定义时间"`
  247. StartDate string `description:"自定义开始日期"`
  248. EndDate string `description:"自定义结束日期"`
  249. IsSetName int `description:"设置名称"`
  250. EdbInfoIds string `description:"指标id"`
  251. ExcelType int `description:"生成样式:1:曲线图,2:季节性图"`
  252. Calendar string `description:"公历/农历"`
  253. SeasonStartDate string `description:"季节性图开始日期"`
  254. SeasonEndDate string `description:"季节性图开始日期"`
  255. ExcelImage string `description:"表格图片"`
  256. Sort int `description:"排序字段,数字越小越排前面"`
  257. IsAdd bool `description:"true:已加入我的图库,false:未加入我的图库"`
  258. MyExcelId int
  259. MyExcelClassifyId string `description:"我的表格分类,多个用逗号隔开"`
  260. ExcelClassify []*ExcelClassifyView
  261. EdbEndDate string `description:"指标最新更新日期"`
  262. LeftMin string `description:"表格左侧最小值"`
  263. LeftMax string `description:"表格左侧最大值"`
  264. RightMin string `description:"表格右侧最小值"`
  265. RightMax string `description:"表格右侧最大值"`
  266. }
  267. // GetExcelInfoByClassifyIdAndName 根据分类id和表格名获取表格信息
  268. func GetExcelInfoByClassifyIdAndName(classifyId int, excelName string) (item *ExcelInfo, err error) {
  269. o := orm.NewOrmUsingDB("data")
  270. sql := ` SELECT * FROM excel_info WHERE excel_classify_id = ? and excel_name=? AND is_delete=0 `
  271. err = o.Raw(sql, classifyId, excelName).QueryRow(&item)
  272. return
  273. }
  274. // GetNoContentExcelListByCondition 获取没有content的excel表格列表数据
  275. func GetNoContentExcelListByCondition(condition string, pars []interface{}, startSize, pageSize int) (item []*MyExcelInfoList, err error) {
  276. o := orm.NewOrmUsingDB("data")
  277. sql := ` SELECT excel_info_id,source,excel_type,excel_name,unique_code,excel_classify_id,sys_user_id,sys_user_real_name,excel_image,file_url,sort,create_time,modify_time
  278. FROM excel_info WHERE 1=1 AND is_delete=0 `
  279. if condition != "" {
  280. sql += condition
  281. }
  282. //sql += " ORDER BY sort ASC,chart_info_id DESC LIMIT ?,? "
  283. sql += " ORDER BY create_time DESC LIMIT ?,? "
  284. _, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&item)
  285. return
  286. }
  287. func GetExcelListCountByCondition(condition string, pars []interface{}) (count int, err error) {
  288. o := orm.NewOrmUsingDB("data")
  289. sql := ` SELECT COUNT(1) AS count FROM excel_info WHERE 1=1 AND is_delete=0 `
  290. if condition != "" {
  291. sql += condition
  292. }
  293. err = o.Raw(sql, pars).QueryRow(&count)
  294. return
  295. }
  296. // GetExcelViewInfoByExcelInfoId 根据excelInfoId 获取ETA表格详情
  297. func GetExcelViewInfoByExcelInfoId(excelInfoId int) (item *MyExcelInfoList, err error) {
  298. o := orm.NewOrmUsingDB("data")
  299. sql := ` SELECT excel_info_id,source,excel_type,excel_name,unique_code,excel_classify_id,sys_user_id,sys_user_real_name,excel_image,file_url,sort,create_time,modify_time FROM excel_info WHERE excel_info_id = ? AND is_delete=0 `
  300. err = o.Raw(sql, excelInfoId).QueryRow(&item)
  301. return
  302. }
  303. // GetExcelInfoCountByClassifyId 根据分类id获取名下表格数量
  304. func GetExcelInfoCountByClassifyId(classifyId int) (total int64, err error) {
  305. o := orm.NewOrmUsingDB("data")
  306. sql := ` SELECT count(1) total FROM excel_info WHERE excel_classify_id = ? AND is_delete=0 `
  307. err = o.Raw(sql, classifyId).QueryRow(&total)
  308. return
  309. }
  310. // UpdateExcelInfoClassifyId 更改表格分类
  311. func UpdateExcelInfoClassifyId(classifyId, excelInfoId int) (err error) {
  312. o := orm.NewOrmUsingDB("data")
  313. sql := ` update excel_info set excel_classify_id = ? WHERE excel_info_id=? `
  314. _, err = o.Raw(sql, classifyId, excelInfoId).Exec()
  315. return
  316. }
  317. // GetNoContentExcelInfoByName 根据名称 获取eta表格详情
  318. func GetNoContentExcelInfoByName(excelName string, source int) (item *MyExcelInfoList, err error) {
  319. o := orm.NewOrmUsingDB("data")
  320. sql := ` SELECT excel_info_id,source,excel_type,excel_name,unique_code,excel_classify_id,sys_user_id,sys_user_real_name,excel_image,file_url,sort,create_time,modify_time
  321. FROM excel_info WHERE excel_name = ? AND source = ? AND is_delete=0 `
  322. err = o.Raw(sql, excelName, source).QueryRow(&item)
  323. return
  324. }
  325. // GetNoContentExcelInfoByUniqueCode 根据unique_code来获取excel表格详情
  326. func GetNoContentExcelInfoByUniqueCode(uniqueCode string) (item *MyExcelInfoList, err error) {
  327. o := orm.NewOrmUsingDB("data")
  328. sql := ` SELECT excel_info_id,source,excel_type,excel_name,unique_code,excel_classify_id,sys_user_id,sys_user_real_name,excel_image,file_url,sort,create_time,modify_time
  329. FROM excel_info WHERE unique_code=? AND is_delete=0 `
  330. err = o.Raw(sql, uniqueCode).QueryRow(&item)
  331. return
  332. }
  333. // AddExcelInfoAndSheet 新增excel
  334. func AddExcelInfoAndSheet(excelInfo *ExcelInfo, sheetParamsList []AddExcelSheetParams) (err error) {
  335. o, err := orm.NewOrmUsingDB("data").Begin()
  336. if err != nil {
  337. return
  338. }
  339. defer func() {
  340. if err != nil {
  341. _ = o.Rollback()
  342. } else {
  343. _ = o.Commit()
  344. }
  345. }()
  346. // 表格信息入库
  347. lastId, err := o.Insert(excelInfo)
  348. if err != nil {
  349. return
  350. }
  351. excelInfo.ExcelInfoId = int(lastId)
  352. // sheet信息入库
  353. for _, sheetInfo := range sheetParamsList {
  354. dataNum := len(sheetInfo.DataList)
  355. //sheet信息入库
  356. excelSheetInfo := &ExcelSheet{
  357. ExcelSheetId: 0,
  358. ExcelInfoId: excelInfo.ExcelInfoId,
  359. SheetName: sheetInfo.SheetName,
  360. PageNum: dataNum,
  361. Index: sheetInfo.Index,
  362. Sort: sheetInfo.Sort,
  363. Config: sheetInfo.Config,
  364. CalcChain: sheetInfo.CalcChain,
  365. ModifyTime: time.Now(),
  366. CreateTime: time.Now(),
  367. }
  368. sheetId, tmpErr := o.Insert(excelSheetInfo)
  369. if tmpErr != nil {
  370. err = tmpErr
  371. return
  372. }
  373. excelSheetInfo.ExcelSheetId = int(sheetId)
  374. // data信息入库
  375. if dataNum > 0 {
  376. for k, _ := range sheetInfo.DataList {
  377. sheetInfo.DataList[k].ExcelSheetId = excelSheetInfo.ExcelSheetId
  378. sheetInfo.DataList[k].ExcelInfoId = excelSheetInfo.ExcelInfoId
  379. }
  380. _, tmpErr = o.InsertMulti(dataNum, sheetInfo.DataList)
  381. if tmpErr != nil {
  382. err = tmpErr
  383. return
  384. }
  385. }
  386. }
  387. return
  388. }
  389. // SaveExcelInfoAndSheet 编辑保存
  390. func SaveExcelInfoAndSheet(excelInfo *ExcelInfo, updateExcelInfoParam []string, sheetParamsList []AddExcelSheetParams) (err error) {
  391. o, err := orm.NewOrmUsingDB("data").Begin()
  392. if err != nil {
  393. return
  394. }
  395. defer func() {
  396. if err != nil {
  397. _ = o.Rollback()
  398. } else {
  399. _ = o.Commit()
  400. }
  401. }()
  402. // 表格信息入库
  403. _, err = o.Update(excelInfo, updateExcelInfoParam...)
  404. if err != nil {
  405. return
  406. }
  407. // 先删除历史的sheet信息
  408. sql := `DELETE FROM excel_sheet WHERE excel_info_id = ?`
  409. _, err = o.Raw(sql, excelInfo.ExcelInfoId).Exec()
  410. if err != nil {
  411. return
  412. }
  413. // 再删除历史sheet中的cell data信息
  414. sql = `DELETE FROM excel_sheet_data WHERE excel_info_id = ?`
  415. _, err = o.Raw(sql, excelInfo.ExcelInfoId).Exec()
  416. if err != nil {
  417. return
  418. }
  419. // sheet信息入库
  420. for _, sheetInfo := range sheetParamsList {
  421. dataNum := len(sheetInfo.DataList)
  422. //sheet信息入库
  423. excelSheetInfo := &ExcelSheet{
  424. ExcelSheetId: 0,
  425. ExcelInfoId: excelInfo.ExcelInfoId,
  426. SheetName: sheetInfo.SheetName,
  427. PageNum: dataNum,
  428. Index: sheetInfo.Index,
  429. Sort: sheetInfo.Sort,
  430. Config: sheetInfo.Config,
  431. CalcChain: sheetInfo.CalcChain,
  432. ModifyTime: time.Now(),
  433. CreateTime: time.Now(),
  434. }
  435. sheetId, tmpErr := o.Insert(excelSheetInfo)
  436. if tmpErr != nil {
  437. err = tmpErr
  438. return
  439. }
  440. excelSheetInfo.ExcelSheetId = int(sheetId)
  441. // data信息入库
  442. if dataNum > 0 {
  443. for k, _ := range sheetInfo.DataList {
  444. sheetInfo.DataList[k].ExcelSheetId = excelSheetInfo.ExcelSheetId
  445. sheetInfo.DataList[k].ExcelInfoId = excelSheetInfo.ExcelInfoId
  446. }
  447. _, tmpErr = o.InsertMulti(dataNum, sheetInfo.DataList)
  448. if tmpErr != nil {
  449. err = tmpErr
  450. return
  451. }
  452. }
  453. }
  454. return
  455. }
  456. // BatchRefreshExcelReq 批量刷新表格请求
  457. type BatchRefreshExcelReq struct {
  458. ExcelCodes []string `description:"表格编码"`
  459. ReportId int `description:"报告ID"`
  460. ReportChapterId int `description:"报告章节ID"`
  461. Source string `description:"来源,枚举值:report、english_report、smart_report"`
  462. }