edb_info_calculate.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. package data_manage
  2. import (
  3. "errors"
  4. "eta/eta_mobile/utils"
  5. "fmt"
  6. "github.com/beego/beego/v2/client/orm"
  7. "github.com/yidane/formula"
  8. "strconv"
  9. "strings"
  10. "time"
  11. )
  12. type EdbInfoCalculateSaveReq struct {
  13. EdbName string `description:"指标名称"`
  14. Frequency string `description:"频率"`
  15. Unit string `description:"单位"`
  16. ClassifyId int `description:"分类id"`
  17. CalculateFormula string `description:"计算公式"`
  18. Calendar string `description:"公历/农历"`
  19. EdbInfoIdArr []EdbInfoFromTag `description:"指标信息"`
  20. }
  21. // EdbInfoFromTag 计算指标的关联指标
  22. type EdbInfoFromTag struct {
  23. EdbInfoId int `description:"指标id"`
  24. FromTag string `description:"指标对应标签"`
  25. MoveValue int `description:"移动的值"`
  26. }
  27. type EdbInfoCalculate struct {
  28. EdbInfoCalculateId int `orm:"column(edb_info_calculate_id);pk"`
  29. EdbInfoId int `description:"指标id"`
  30. EdbCode string `description:"指标编码"`
  31. FromEdbInfoId int `description:"计算指标id"`
  32. FromEdbCode string `description:"计算指标编码"`
  33. FromEdbName string `description:"计算指标名称"`
  34. FromSource int `description:"计算指标来源"`
  35. FromSourceName string `description:"计算指标来源名称"`
  36. FromTag string `description:"来源指标标签"`
  37. Sort int `description:"计算指标名称排序"`
  38. CreateTime time.Time `description:"创建时间"`
  39. ModifyTime time.Time `description:"修改时间"`
  40. }
  41. func AddEdbInfoCalculateMulti(items []*EdbInfoCalculate) (err error) {
  42. o := orm.NewOrmUsingDB("data")
  43. _, err = o.InsertMulti(1, items)
  44. return
  45. }
  46. type FromEdbInfoData struct {
  47. EdbInfoId int `description:"指标id"`
  48. EdbName string `description:"指标名称"`
  49. DataList []*EdbInfoSearchData
  50. }
  51. type EdbInfoCalculateDetail struct {
  52. EdbInfoCalculateId int `orm:"column(edb_info_calculate_id);pk"`
  53. EdbInfoId int `description:"指标id"`
  54. EdbCode string `description:"指标编码"`
  55. FromEdbInfoId int `description:"计算指标id"`
  56. FromEdbCode string `description:"计算指标编码"`
  57. FromEdbName string `description:"计算指标名称"`
  58. FromSource int `description:"计算指标来源"`
  59. FromSourceName string `description:"计算指标来源名称"`
  60. FromTag string `description:"来源指标标签"`
  61. MoveValue int `description:"移动的值,小于0是提前,0是不变,大于0是滞后"`
  62. Sort int `description:"计算指标名称排序"`
  63. CreateTime time.Time `description:"创建时间"`
  64. ModifyTime time.Time `description:"修改时间"`
  65. StartDate string `description:"开始日期"`
  66. EndDate string `description:"结束日期"`
  67. EdbType int `description:"指标类型:1:基础指标,2:计算指标"`
  68. }
  69. func GetEdbInfoCalculateDetail(edbInfoId, source int) (list []*EdbInfoCalculateDetail, err error) {
  70. o := orm.NewOrmUsingDB("data")
  71. //calculateTableName := GetEdbInfoCalculateTableName(source)
  72. //sql := ` SELECT a.*,b.start_date,b.end_date,b.edb_type FROM %s AS a
  73. // INNER JOIN edb_info AS b ON a.from_edb_info_id=b.edb_info_id
  74. // WHERE a.edb_info_id=? ORDER BY sort ASC `
  75. //
  76. //sql = fmt.Sprintf(sql, calculateTableName)
  77. sql := ` SELECT a.edb_info_calculate_mapping_id,a.edb_info_id,a.source,a.source_name,a.edb_code,a.from_edb_info_id,a.from_edb_code,a.from_source,a.from_source_name,a.sort,a.create_time,a.modify_time,a.from_tag,a.move_value,b.edb_name_source as from_edb_name,b.start_date,b.end_date,b.edb_type FROM edb_info_calculate_mapping AS a
  78. INNER JOIN edb_info AS b ON a.from_edb_info_id=b.edb_info_id
  79. WHERE a.edb_info_id=? ORDER BY sort ASC `
  80. _, err = o.Raw(sql, edbInfoId).QueryRows(&list)
  81. return
  82. }
  83. type CalculateDetailResp struct {
  84. EdbInfoDetail *EdbInfoFullClassify
  85. CalculateList []*EdbInfoCalculateDetail
  86. }
  87. type EdbInfoCalculateEditReq struct {
  88. EdbInfoId int `description:"指标id"`
  89. EdbName string `description:"指标名称"`
  90. Frequency string `description:"频率"`
  91. Unit string `description:"单位"`
  92. ClassifyId int `description:"分类id"`
  93. CalculateFormula string `description:"计算公式"`
  94. EdbInfoIdArr []EdbInfoFromTag `description:"指标信息"`
  95. }
  96. func GetCalculateEdbInfo(edbInfoId int) (from_edb_info_id string, err error) {
  97. o := orm.NewOrmUsingDB("data")
  98. sql := ` SELECT GROUP_CONCAT(from_edb_info_id ORDER BY sort ASC SEPARATOR ',') AS from_edb_info_id
  99. FROM edb_info_calculate_mapping
  100. WHERE edb_info_id=?
  101. GROUP BY edb_info_id
  102. `
  103. err = o.Raw(sql, edbInfoId).QueryRow(&from_edb_info_id)
  104. return
  105. }
  106. func DeleteCalculateEdbInfo(edbInfoId int) (err error) {
  107. o := orm.NewOrmUsingDB("data")
  108. to, err := o.Begin()
  109. if err != nil {
  110. return
  111. }
  112. defer func() {
  113. if err != nil {
  114. _ = to.Rollback()
  115. } else {
  116. _ = to.Commit()
  117. }
  118. }()
  119. sql := `DELETE FROM edb_data_calculate WHERE edb_info_id=?`
  120. _, err = to.Raw(sql, edbInfoId).Exec()
  121. if err != nil {
  122. return
  123. }
  124. sql = `DELETE FROM edb_info_calculate_mapping WHERE edb_info_id=?`
  125. _, err = to.Raw(sql, edbInfoId).Exec()
  126. return
  127. }
  128. func DeleteCalculateData(edbInfoId int) (err error) {
  129. o := orm.NewOrmUsingDB("data")
  130. sql := `DELETE FROM edb_data_calculate WHERE edb_info_id=?`
  131. _, err = o.Raw(sql, edbInfoId).Exec()
  132. return
  133. }
  134. type EdbInfoCalculateBatchSaveReq struct {
  135. EdbInfoId int `description:"指标id"`
  136. EdbName string `description:"指标名称"`
  137. Frequency string `description:"频度"`
  138. Unit string `description:"单位"`
  139. ClassifyId int `description:"分类id"`
  140. Formula string `description:"N值/移动天数"`
  141. FromEdbInfoId int `description:"计算来源指标id"`
  142. Source int `description:"来源:1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算,12:环比值,13:环差值,14:变频"`
  143. CalculateFormula string `description:"计算公式"`
  144. EdbInfoIdArr []EdbInfoFromTag `description:"指标信息"`
  145. MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
  146. MoveFrequency string `description:"移动频度:天/周/月/季/年"`
  147. Calendar string `description:"公历/农历"`
  148. }
  149. type EdbInfoCalculateBatchEditReq struct {
  150. EdbName string `description:"指标名称"`
  151. Frequency string `description:"频度"`
  152. Unit string `description:"单位"`
  153. ClassifyId int `description:"分类id"`
  154. Formula string `description:"N值"`
  155. EdbInfoId int `description:"编辑指标id"`
  156. FromEdbInfoId int `description:"计算来源指标id"`
  157. Source int `description:"来源:1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算,12:环比值,13:环差值,14:变频"`
  158. MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
  159. MoveFrequency string `description:"移动频度:天/周/月/季/年"`
  160. Calendar string `description:"公历/农历"`
  161. EdbInfoIdArr []EdbInfoFromTag
  162. }
  163. // EdbInfoCalculateBatchSaveReqByEdbLib edb指标库的请求逻辑
  164. type EdbInfoCalculateBatchSaveReqByEdbLib struct {
  165. AdminId int `description:"添加人id"`
  166. AdminName string `description:"添加人名称"`
  167. EdbInfoId int `description:"指标id"`
  168. EdbName string `description:"指标名称"`
  169. Frequency string `description:"频度"`
  170. Unit string `description:"单位"`
  171. ClassifyId int `description:"分类id"`
  172. Formula string `description:"N值/移动天数"`
  173. FromEdbInfoId int `description:"计算来源指标id"`
  174. Source int `description:"来源:1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算,12:环比值,13:环差值,14:变频"`
  175. CalculateFormula string `description:"计算公式"`
  176. EdbInfoIdArr []EdbInfoFromTag `description:"指标信息"`
  177. MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
  178. MoveFrequency string `description:"移动频度:天/周/月/季/年"`
  179. Calendar string `description:"公历/农历"`
  180. }
  181. // EdbInfoCalculateBatchEditReq 编辑计算指标的请求参数
  182. type EdbInfoCalculateBatchEditReqByEdbLib struct {
  183. EdbName string `description:"指标名称"`
  184. Frequency string `description:"频度"`
  185. Unit string `description:"单位"`
  186. ClassifyId int `description:"分类id"`
  187. Formula string `description:"N值"`
  188. EdbInfoId int `description:"编辑指标id"`
  189. FromEdbInfoId int `description:"计算来源指标id"`
  190. Source int `description:"来源:1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算,12:环比值,13:环差值,14:变频"`
  191. MoveType int `description:"移动方式:1:领先(默认),2:滞后"`
  192. MoveFrequency string `description:"移动频度:天/周/月/季/年"`
  193. Calendar string `description:"公历/农历"`
  194. EdbInfoIdArr []EdbInfoFromTag
  195. }
  196. func GetEdbInfoCalculateMap(edbInfoId, source int) (list []*EdbInfo, err error) {
  197. o := orm.NewOrmUsingDB("data")
  198. //calculateTableName := GetEdbInfoCalculateTableName(source)
  199. //sql := ` SELECT b.* FROM %s AS a
  200. // INNER JOIN edb_info AS b ON a.from_edb_info_id=b.edb_info_id
  201. // WHERE a.edb_info_id=? ORDER BY sort ASC `
  202. //sql = fmt.Sprintf(sql, calculateTableName)
  203. sql := ` SELECT b.* FROM edb_info_calculate_mapping AS a
  204. INNER JOIN edb_info AS b ON a.from_edb_info_id=b.edb_info_id
  205. WHERE a.edb_info_id=? ORDER BY sort ASC `
  206. _, err = o.Raw(sql, edbInfoId).QueryRows(&list)
  207. return
  208. }
  209. type CalculateItems struct {
  210. EdbInfoId int
  211. DataMap map[string]float64
  212. }
  213. func CheckFormula(formula string) map[string]string {
  214. mathFormula := []string{"MAX", "MIN", "ABS", "ACOS", "ASIN", "CEIL", "MOD", "POW", "ROUND", "SIGN", "SIN", "TAN", "LOG10", "LOG2", "LOG", "LN"}
  215. str := strings.ToUpper(formula)
  216. for _, v := range mathFormula {
  217. str = strings.Replace(str, v, "", -1)
  218. }
  219. str = strings.Replace(str, "(", "", -1)
  220. str = strings.Replace(str, ")", "", -1)
  221. byteMap := make(map[string]string)
  222. for i := 0; i < len(str); i++ {
  223. byteInt := str[i]
  224. if byteInt >= 65 && byteInt <= 90 {
  225. byteStr := string(byteInt)
  226. if _, ok := byteMap[byteStr]; !ok {
  227. byteMap[byteStr] = byteStr
  228. }
  229. }
  230. }
  231. return byteMap
  232. }
  233. func ReplaceFormula(edbInfoIdArr []*EdbInfo, valArr map[int]float64, formulaMap map[string]string, formulaStr string, edbInfoIdBytes []string) string {
  234. funMap := GetFormulaMap()
  235. for k, v := range funMap {
  236. formulaStr = strings.Replace(formulaStr, k, v, -1)
  237. }
  238. replaceCount := 0
  239. for dk, dv := range edbInfoIdArr {
  240. if dk == 0 {
  241. dKey := edbInfoIdBytes[dk]
  242. if _, ok := formulaMap[dKey]; ok { //公式中存在
  243. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  244. dvStr := fmt.Sprintf("%v", val)
  245. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  246. replaceCount++
  247. }
  248. }
  249. }
  250. if dk == 1 {
  251. dKey := edbInfoIdBytes[dk]
  252. if _, ok := formulaMap[dKey]; ok { //公式中存在
  253. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  254. dvStr := fmt.Sprintf("%v", val)
  255. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  256. replaceCount++
  257. }
  258. }
  259. }
  260. if dk == 2 {
  261. dKey := edbInfoIdBytes[dk]
  262. if _, ok := formulaMap[dKey]; ok { //公式中存在
  263. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  264. dvStr := fmt.Sprintf("%v", val)
  265. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  266. replaceCount++
  267. }
  268. }
  269. }
  270. if dk == 3 {
  271. dKey := edbInfoIdBytes[dk]
  272. if _, ok := formulaMap[dKey]; ok { //公式中存在
  273. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  274. dvStr := fmt.Sprintf("%v", val)
  275. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  276. replaceCount++
  277. }
  278. }
  279. }
  280. if dk == 4 {
  281. dKey := edbInfoIdBytes[dk]
  282. if _, ok := formulaMap[dKey]; ok { //公式中存在
  283. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  284. dvStr := fmt.Sprintf("%v", val)
  285. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  286. replaceCount++
  287. }
  288. }
  289. }
  290. if dk == 5 {
  291. dKey := edbInfoIdBytes[dk]
  292. if _, ok := formulaMap[dKey]; ok { //公式中存在
  293. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  294. dvStr := fmt.Sprintf("%v", val)
  295. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  296. replaceCount++
  297. }
  298. }
  299. }
  300. if dk == 6 {
  301. dKey := edbInfoIdBytes[dk]
  302. if _, ok := formulaMap[dKey]; ok { //公式中存在
  303. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  304. dvStr := fmt.Sprintf("%v", val)
  305. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  306. replaceCount++
  307. }
  308. }
  309. }
  310. if dk == 7 {
  311. dKey := edbInfoIdBytes[dk]
  312. if _, ok := formulaMap[dKey]; ok { //公式中存在
  313. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  314. dvStr := fmt.Sprintf("%v", val)
  315. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  316. replaceCount++
  317. }
  318. }
  319. }
  320. if dk == 8 {
  321. dKey := edbInfoIdBytes[dk]
  322. if _, ok := formulaMap[dKey]; ok { //公式中存在
  323. if val, valOk := valArr[dv.EdbInfoId]; valOk { //值存在
  324. dvStr := fmt.Sprintf("%v", val)
  325. formulaStr = strings.Replace(formulaStr, dKey, dvStr, -1)
  326. replaceCount++
  327. }
  328. }
  329. }
  330. }
  331. for k, v := range funMap {
  332. formulaStr = strings.Replace(formulaStr, v, k, -1)
  333. }
  334. if replaceCount == len(formulaMap) {
  335. return formulaStr
  336. } else {
  337. return ""
  338. }
  339. }
  340. func GetFormulaMap() map[string]string {
  341. funMap := make(map[string]string)
  342. funMap["MAX"] = "[@@]"
  343. funMap["MIN"] = "[@!]"
  344. funMap["ABS"] = "[@#]"
  345. funMap["CEIL"] = "[@$]"
  346. funMap["COS"] = "[@%]"
  347. funMap["FLOOR"] = "[@^]"
  348. funMap["MOD"] = "[@&]"
  349. funMap["POW"] = "[@*]"
  350. funMap["ROUND"] = "[@(]"
  351. return funMap
  352. }
  353. func Calculate(edbInfoIdArr []*EdbInfo, edbInfoId int, edbCode, formulaStr string, edbInfoIdBytes []string) (err error) {
  354. defer func() {
  355. if err != nil {
  356. utils.FileLog.Info("Calculate Err:%s" + err.Error())
  357. }
  358. }()
  359. saveDataMap := make(map[string]map[int]float64)
  360. for _, v := range edbInfoIdArr {
  361. var condition string
  362. var pars []interface{}
  363. condition += " AND edb_info_id=? "
  364. pars = append(pars, v.EdbInfoId)
  365. dataList, err := GetEdbDataListAll(condition, pars, v.Source, v.SubSource, 1)
  366. if err != nil {
  367. return err
  368. }
  369. dataMap := make(map[string]float64)
  370. for _, dv := range dataList {
  371. if val, ok := saveDataMap[dv.DataTime]; ok {
  372. if _, ok := val[v.EdbInfoId]; !ok {
  373. val[v.EdbInfoId] = dv.Value
  374. }
  375. } else {
  376. temp := make(map[int]float64)
  377. temp[v.EdbInfoId] = dv.Value
  378. saveDataMap[dv.DataTime] = temp
  379. }
  380. }
  381. item := new(CalculateItems)
  382. item.EdbInfoId = v.EdbInfoId
  383. item.DataMap = dataMap
  384. }
  385. formulaMap := CheckFormula(formulaStr)
  386. addSql := ` INSERT INTO edb_data_calculate(edb_info_id,edb_code,data_time,value,create_time,modify_time,status,data_timestamp) values `
  387. nowStr := time.Now().Format(utils.FormatDateTime)
  388. var isAdd bool
  389. for sk, sv := range saveDataMap {
  390. formulaStr = strings.ToUpper(formulaStr)
  391. formulaFormStr := ReplaceFormula(edbInfoIdArr, sv, formulaMap, formulaStr, edbInfoIdBytes)
  392. if formulaStr == "" {
  393. return
  394. }
  395. if formulaFormStr != "" {
  396. utils.FileLog.Info("formulaFormStr:%s", formulaFormStr)
  397. expression := formula.NewExpression(formulaFormStr)
  398. calResult, err := expression.Evaluate()
  399. if err != nil {
  400. err = errors.New("计算失败:Err:" + err.Error() + ";formulaStr:" + formulaFormStr)
  401. fmt.Println(err)
  402. return err
  403. }
  404. calVal, err := calResult.Float64()
  405. if err != nil {
  406. err = errors.New("计算失败:获取计算值失败 Err:" + err.Error() + ";formulaStr:" + formulaFormStr)
  407. fmt.Println(err)
  408. return err
  409. }
  410. //需要存入的数据
  411. {
  412. dataTime, _ := time.Parse(utils.FormatDate, sk)
  413. timestamp := dataTime.UnixNano() / 1e6
  414. timeStr := fmt.Sprintf("%d", timestamp)
  415. addSql += "("
  416. addSql += strconv.Itoa(edbInfoId) + "," + "'" + edbCode + "'" + "," + "'" + sk + "'" + "," + utils.SubFloatToString(calVal, 4) + "," + "'" + nowStr + "'" +
  417. "," + "'" + nowStr + "'" + "," + "1"
  418. addSql += "," + "'" + timeStr + "'"
  419. addSql += "),"
  420. isAdd = true
  421. }
  422. } else {
  423. fmt.Println("formulaFormStr is empty")
  424. }
  425. }
  426. if isAdd {
  427. addSql = strings.TrimRight(addSql, ",")
  428. AddEdbDataCalculateBySql(addSql)
  429. if err != nil {
  430. fmt.Println("AddEdbDataCalculate Err:" + err.Error())
  431. return err
  432. }
  433. }
  434. return
  435. }
  436. // SaveAdjustEdbInfoReq 保存数据调整请求参数(请求指标服务)
  437. type SaveAdjustEdbInfoReq struct {
  438. AdminId int `description:"添加人id"`
  439. AdminName string `description:"添加人名称"`
  440. EdbInfoId int `description:"指标id"`
  441. FromEdbInfoId int `description:"来源指标id"`
  442. EdbName string `description:"指标名称"`
  443. Frequency string `description:"频度"`
  444. Unit string `description:"单位"`
  445. ClassifyId int `description:"分类id"`
  446. DataList []SaveAdjustEdbDataReq `description:"指标对应的数据值"`
  447. }
  448. // SaveAdjustEdbDataReq 保存数据调整请求的数据的参数
  449. type SaveAdjustEdbDataReq struct {
  450. Date string `description:"数据日期"`
  451. Value float64 `description:"数据值"`
  452. }
  453. // BatchEdbInfoCalculateBatchSaveReq 批量添加 计算指标
  454. type BatchEdbInfoCalculateBatchSaveReq struct {
  455. CalculateId string `description:"当前请求时,单个计算的唯一标识"`
  456. CalculateInfo EdbInfoCalculateBatchSaveReq
  457. }
  458. // BatchEdbInfoCalculateBatchSaveResp 批量添加 计算指标 返回数据
  459. type BatchEdbInfoCalculateBatchSaveResp struct {
  460. Fail []BatchEdbInfoCalculateBatchSaveFailResp `description:"添加失败的指标"`
  461. Success []BatchEdbInfoCalculateBatchSaveSuccessResp `description:"添加成功的指标"`
  462. }
  463. // BatchEdbInfoCalculateBatchSaveFailResp 添加失败的指标信息
  464. type BatchEdbInfoCalculateBatchSaveFailResp struct {
  465. CalculateId string `description:"当前请求时,单个计算的唯一标识"`
  466. Msg string `description:"用户提示信息"`
  467. ErrMsg string `description:"错误信息,内部查看"`
  468. }
  469. // BatchEdbInfoCalculateBatchSaveSuccessResp 添加成功的指标信息
  470. type BatchEdbInfoCalculateBatchSaveSuccessResp struct {
  471. ClassifyId int `description:"分类id"`
  472. CalculateId string `description:"当前请求时,单个计算的唯一标识"`
  473. EdbInfoId int `description:"指标ID"`
  474. UniqueCode string `description:"指标唯一编码"`
  475. }