qryErmcp3Report.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. /**
  2. * @Author: zou.yingbin
  3. * @Create : 2021/4/16 18:40
  4. * @Modify : 2021/4/16 18:40
  5. */
  6. package ermcp3
  7. import (
  8. "github.com/gin-gonic/gin"
  9. "mtp2_if/global/app"
  10. "mtp2_if/global/e"
  11. "mtp2_if/models"
  12. "net/http"
  13. "strconv"
  14. )
  15. // 查询日期
  16. type QueryDate string
  17. // IsNumberic 判断是否为数字, queryType 1:8位日期 2:6位日期
  18. func (v QueryDate) IsNumberic(queryType int32) bool {
  19. if queryType == 1 {
  20. // 日报表 日期长度YYYYMMDD
  21. if len(v) != 8 {
  22. return false
  23. }
  24. } else if queryType == 2 {
  25. // 月报表 日期长度YYYYMM
  26. if len(v) != 6 {
  27. return false
  28. }
  29. }
  30. // 判断是否为数字
  31. if _, err := strconv.ParseInt(string(v), 10, 32); err != nil {
  32. return false
  33. }
  34. return true
  35. }
  36. // 检查周期类型、周期时间
  37. type CycleTypeCheck struct {
  38. CYCLETYPE int32 `json:"cycletype" xorm:"'cycletype'"` // 周期类型 - 1:月 2:季 3:年 4:周 5:全报表【原值】
  39. CYCLETIME string `json:"cycletime" xorm:"'cycletime'"` // 周期时间 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)【原值】
  40. }
  41. func (r *CycleTypeCheck) Check() bool {
  42. if r.CYCLETYPE < 1 || r.CYCLETYPE > 5 {
  43. return false
  44. }
  45. nLen := len(r.CYCLETIME)
  46. // 判断是否为数字
  47. if _, err := strconv.ParseInt(r.CYCLETIME, 10, 32); err != nil {
  48. return false
  49. }
  50. // 判断长度
  51. switch r.CYCLETYPE {
  52. case 1:
  53. if nLen != 6 {
  54. return false
  55. }
  56. case 2:
  57. if nLen != 5 {
  58. return false
  59. }
  60. case 3:
  61. if nLen != 4 {
  62. return false
  63. }
  64. case 4:
  65. if nLen != 6 {
  66. return false
  67. }
  68. case 5:
  69. if r.CYCLETIME != "0" {
  70. return false
  71. }
  72. }
  73. return true
  74. }
  75. // QryReportReq 查报表请求
  76. // @Param userid query int true "用户ID"
  77. // @Param querytype query int true "查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日])"
  78. // @Param tradedate query string false "交易日(格式yyyymmdd)"
  79. // @Param cycletype query int false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表【原值】"
  80. // @Param cycletime query string false "周期时间 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)【原值】"
  81. // @Param begindate query string false "开始交易日(格式yyyymmdd)"
  82. // @Param enddate query string false "结束交易日(格式yyyymmdd)"
  83. type QryReportReq struct {
  84. USERID int64 `form:"userid" binding:"required"` // 用户id
  85. QUERYTYPE int32 `form:"querytype" binding:"required"` // 查询类型
  86. TRADEDATE string `form:"tradedate"` // 交易日
  87. CYCLETYPE int32 `form:"cycletype"` // 周期类型 - 1:月 2:季 3:年 4:周 5:全报表【原值】
  88. CYCLETIME string `form:"cycletime"` // 周期时间 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)【原值】
  89. BEGINDATE string `form:"begindate"` // 开始交易日
  90. ENDDATE string `form:"enddate"` // 结束交易日
  91. }
  92. // Check 参数检查
  93. func (r *QryReportReq) Check() bool {
  94. // 参数检查
  95. switch r.QUERYTYPE {
  96. case 1:
  97. return QueryDate(r.TRADEDATE).IsNumberic(1)
  98. case 2:
  99. switch r.CYCLETYPE {
  100. case 1, 2, 3, 4, 5:
  101. p := CycleTypeCheck{CYCLETYPE: r.CYCLETYPE, CYCLETIME: r.CYCLETIME}
  102. return p.Check()
  103. default:
  104. return false
  105. }
  106. case 3:
  107. return QueryDate(r.BEGINDATE).IsNumberic(1) && QueryDate(r.ENDDATE).IsNumberic(1)
  108. }
  109. return true
  110. }
  111. // QryReportDaySpotDetail 查询现货日报表详情(菜单:报表查询/现货报表/现货日报表详情) - 作废
  112. func QryReportDaySpotDetail(c *gin.Context) {
  113. a := app.GinUtils{Gin: app.Gin{C: c}}
  114. req := struct {
  115. USERID int64 `form:"userid" binding:"required"` // 用户id
  116. TRADEDATE string `form:"tradedate" binding:"required"` // 交易日
  117. DELIVERYGOODSID int32 `form:"deliverygoodsid" binding:"required"` // 现货商品id
  118. SPOTGOODSBRANDID int32 `form:"spotgoodsbrandid"` // 品牌id
  119. WRSTANDARDID int32 `form:"wrstandardid"` // 品类id
  120. }{}
  121. a.DoBindReq(&req)
  122. m := models.Ermcp3ReportOPLog{USERID: req.USERID, DELIVERYGOODSID: req.DELIVERYGOODSID,
  123. TRADEDATE: req.TRADEDATE, SPOTGOODSBRANDID: req.SPOTGOODSBRANDID, WRSTANDARDID: req.WRSTANDARDID,
  124. LogTypeFilter: "2,3,24,25,26,27"}
  125. a.DoGetDataI(&m)
  126. }
  127. // QryReportDayFinanceKx 查询财务日报表款项(菜单:报表查询/财务报表/日报表/款项) - 作废
  128. func QryReportDayFinanceKx(c *gin.Context) {
  129. a := app.GinUtils{Gin: app.Gin{C: c}}
  130. req := struct {
  131. USERID int64 `form:"userid" binding:"required"` // 用户id
  132. TRADEDATE string `form:"tradedate" binding:"required"` // 交易日
  133. }{}
  134. a.DoBindReq(&req)
  135. m := models.Ermcp3ReportOPLog{USERID: req.USERID, TRADEDATE: req.TRADEDATE, LogTypeFilter: "8,9,10"}
  136. a.DoGetDataI(&m)
  137. }
  138. // QryReportDayFinanceFp 查询财务日报表发票(菜单:报表查询/财务报表/日报表/发票) - 作废
  139. func QryReportDayFinanceFp(c *gin.Context) {
  140. a := app.GinUtils{Gin: app.Gin{C: c}}
  141. req := struct {
  142. USERID int64 `form:"userid" binding:"required"` // 用户id
  143. TRADEDATE string `form:"tradedate" binding:"required"` // 交易日
  144. }{}
  145. a.DoBindReq(&req)
  146. m := models.Ermcp3ReportOPLog{USERID: req.USERID, TRADEDATE: req.TRADEDATE, LogTypeFilter: "11, 12"}
  147. a.DoGetDataI(&m)
  148. }
  149. // QryReportDaySpot 查询现货日报表(菜单:报表查询/现货报表/现货日报表) - 作废
  150. func QryReportDaySpot(c *gin.Context) {
  151. a := app.GinUtils{Gin: app.Gin{C: c}}
  152. m := models.Ermcp3ReckonAreaSpotSub{}
  153. a.DoBindReq(&m)
  154. a.DoGetDataI(&m)
  155. }
  156. // QryReportMonthSpot
  157. // 查询现货月报表(菜单:报表查询/现货报表/现货月报表) - 作废
  158. func QryReportMonthSpot(c *gin.Context) {
  159. a := app.GinUtils{Gin: app.Gin{C: c}}
  160. m := models.Ermcp3ReportAreaSpotSub{}
  161. a.DoBindReq(&m)
  162. a.DoGetDataI(&m)
  163. }
  164. // QryReportMonthSpotDetail 查询现货月报表详情(菜单:报表查询/现货月报表/现货月报表详情) - 作废
  165. func QryReportMonthSpotDetail(c *gin.Context) {
  166. a := app.GinUtils{Gin: app.Gin{C: c}}
  167. req := models.Ermcp3ReportAreaSpotSub{}
  168. a.DoBindReq(&req)
  169. if req.CYCLETYPE != 1 || len(req.CYCLETIME) != 6 {
  170. // 目前仅支持月报表明细, 月报表的日期应是6位,如 202101
  171. a.Response(http.StatusBadRequest, e.INVALID_PARAMS, nil)
  172. return
  173. }
  174. t1 := req.CYCLETIME + "01"
  175. t2 := req.CYCLETIME + "31"
  176. // 月报表明细 = 01~31 日报表
  177. m := models.Ermcp3ReckonAreaSpotSub{
  178. AREAUSERID: req.AREAUSERID, DELIVERYGOODSID: req.DELIVERYGOODSID, ACCOUNTID: req.ACCOUNTID,
  179. WRSTANDARDID: req.WRSTANDARDID, SPOTGOODSBRANDID: req.SPOTGOODSBRANDID, BeginDate: t1, EndDate: t2}
  180. a.DoGetDataI(&m)
  181. }
  182. // QryAreaExpourseReport
  183. // @Summary 查询敞口报表
  184. // @Produce json
  185. // @Security ApiKeyAuth
  186. // @Param userid query int true "用户ID"
  187. // @Param querytype query int true "查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日])"
  188. // @Param tradedate query string false "交易日(格式yyyymmdd)"
  189. // @Param cycletype query int false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表【原值】"
  190. // @Param cycletime query string false "周期时间 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)【原值】"
  191. // @Param begindate query string false "开始交易日(格式yyyymmdd)"
  192. // @Param enddate query string false "结束交易日(格式yyyymmdd)"
  193. // @Success 200 {array} models.Ermcp3ExpourseReport
  194. // @Failure 500 {object} app.Response
  195. // @Router /Ermcp3/QryAreaExpourseReport [get]
  196. // @Tags 企业风险管理v3(app)
  197. func QryAreaExpourseReport(c *gin.Context) {
  198. a := app.GinUtils{Gin: app.Gin{C: c}}
  199. req := QryReportReq{}
  200. a.DoBindReq(&req)
  201. a.CheckParam(&req)
  202. m := models.Ermcp3ExpourseReport{AREAUSERID: req.USERID, QueryType: req.QUERYTYPE,
  203. CYCLETYPE: req.CYCLETYPE, CYCLETIME: req.CYCLETIME, BeginDate: req.BEGINDATE, EndDate: req.ENDDATE}
  204. a.DoGetDataI(&m)
  205. }
  206. // QryAreaExpourseContractDetail
  207. // @Summary 查询敞口合同明细(敞口报表/现货合同明细)
  208. // @Produce json
  209. // @Security ApiKeyAuth
  210. // @Param userid query int true "用户ID"
  211. // @Param middlegoodsid query int true "套保商品id"
  212. // @Param tradedate query string true "交易日(格式yyyymmdd)"
  213. // @Success 200 {array} models.Ermcp3ExposureContractDetail
  214. // @Failure 500 {object} app.Response
  215. // @Router /Ermcp3/QryAreaExpourseContractDetail [get]
  216. // @Tags 企业风险管理v3(app)
  217. func QryAreaExpourseContractDetail(c *gin.Context) {
  218. a := app.GinUtils{Gin: app.Gin{C: c}}
  219. req := struct {
  220. USERID int64 `form:"userid" binding:"required"` // 用户id
  221. MIDDLEGOODSID int32 `form:"middlegoodsid" binding:"required"` // 套保商品id
  222. TRADEDATE string `form:"tradedate" binding:"required"` // 交易日(格式yyyymmdd)
  223. }{}
  224. a.DoBindReq(&req)
  225. m := models.Ermcp3ExposureContractDetail{USERID: req.USERID,
  226. MIDDLEGOODSID: req.MIDDLEGOODSID, TRADEDATE: req.TRADEDATE}
  227. a.DoGetDataI(&m)
  228. }
  229. // QryAreaExpourseHedgeplanDetail
  230. // @Summary 查询敞口套保计划明细(敞口报表/套保计划明细)
  231. // @Produce json
  232. // @Security ApiKeyAuth
  233. // @Param userid query int true "用户ID"
  234. // @Param middlegoodsid query int true "套保商品id"
  235. // @Param tradedate query string true "交易日(格式yyyymmdd)"
  236. // @Success 200 {array} models.Ermcp3ExposureHedgeplanDetail
  237. // @Failure 500 {object} app.Response
  238. // @Router /Ermcp3/QryAreaExpourseHedgeplanDetail [get]
  239. // @Tags 企业风险管理v3(app)
  240. func QryAreaExpourseHedgeplanDetail(c *gin.Context) {
  241. a := app.GinUtils{Gin: app.Gin{C: c}}
  242. req := struct {
  243. USERID int64 `form:"userid" binding:"required"` // 用户id
  244. MIDDLEGOODSID int32 `form:"middlegoodsid" binding:"required"` // 套保商品id
  245. TRADEDATE string `form:"tradedate" binding:"required"` // 交易日(格式yyyymmdd)
  246. }{}
  247. a.DoBindReq(&req)
  248. m := models.Ermcp3ExposureHedgeplanDetail{USERID: req.USERID,
  249. MIDDLEGOODSID: req.MIDDLEGOODSID, TRADEDATE: req.TRADEDATE}
  250. a.DoGetDataI(&m)
  251. }
  252. // QryAreaSpotplReport
  253. // @Summary 查询现货报表
  254. // @Produce json
  255. // @Security ApiKeyAuth
  256. // @Param userid query int true "用户ID"
  257. // @Param querytype query int true "查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日])"
  258. // @Param tradedate query string false "交易日(格式yyyymmdd)"
  259. // @Param cycletype query int false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表【原值】"
  260. // @Param cycletime query string false "周期时间 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)【原值】"
  261. // @Param begindate query string false "开始交易日(格式yyyymmdd)"
  262. // @Param enddate query string false "结束交易日(格式yyyymmdd)"
  263. // @Success 200 {array} models.Ermcp3AreaSpotPLReport
  264. // @Failure 500 {object} app.Response
  265. // @Router /Ermcp3/QryAreaSpotplReport [get]
  266. // @Tags 企业风险管理v3(app)
  267. func QryAreaSpotplReport(c *gin.Context) {
  268. a := app.GinUtils{Gin: app.Gin{C: c}}
  269. req := QryReportReq{}
  270. a.DoBindReq(&req)
  271. a.CheckParam(&req)
  272. m := models.Ermcp3AreaSpotPLReport{AREAUSERID: req.USERID, QueryType: req.QUERYTYPE, RECKONDATE: req.TRADEDATE,
  273. CYCLETYPE: req.CYCLETYPE, CYCLETIME: req.CYCLETIME, BeginDate: req.BEGINDATE, EndDate: req.ENDDATE}
  274. a.DoGetDataI(&m)
  275. }
  276. // QryFinanceReport
  277. // @Summary 查询财务报表
  278. // @Produce json
  279. // @Security ApiKeyAuth
  280. // @Param userid query int true "用户ID"
  281. // @Param querytype query int true "查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日])"
  282. // @Param tradedate query string false "交易日(格式yyyymmdd)"
  283. // @Param cycletype query int false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表【原值】"
  284. // @Param cycletime query string false "周期时间 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)【原值】"
  285. // @Param begindate query string false "开始交易日(格式yyyymmdd)"
  286. // @Param enddate query string false "结束交易日(格式yyyymmdd)"
  287. // @Success 200 {array} models.Ermcp3FinanceReport
  288. // @Failure 500 {object} app.Response
  289. // @Router /Ermcp3/QryFinanceReport [get]
  290. // @Tags 企业风险管理v3(app)
  291. func QryFinanceReport(c *gin.Context) {
  292. a := app.GinUtils{Gin: app.Gin{C: c}}
  293. req := QryReportReq{}
  294. a.DoBindReq(&req)
  295. a.CheckParam(&req)
  296. m := models.Ermcp3FinanceReport{AREAUSERID: req.USERID, QueryType: req.QUERYTYPE, RECKONDATE: req.TRADEDATE,
  297. CYCLETYPE: req.CYCLETYPE, CYCLETIME: req.CYCLETIME, BeginDate: req.BEGINDATE, EndDate: req.ENDDATE}
  298. a.DoGetDataI(&m)
  299. }
  300. // QryAreaStockReport
  301. // @Summary 查询库存报表
  302. // @Produce json
  303. // @Security ApiKeyAuth
  304. // @Param userid query int true "用户ID"
  305. // @Param querytype query int true "查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日])"
  306. // @Param tradedate query string false "交易日(格式yyyymmdd)"
  307. // @Param cycletype query int false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表【原值】"
  308. // @Param cycletime query string false "周期时间 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)【原值】"
  309. // @Param begindate query string false "开始交易日(格式yyyymmdd)"
  310. // @Param enddate query string false "结束交易日(格式yyyymmdd)"
  311. // @Param deliverygoodsid query int false "现货商品ID"
  312. // @Param wrstandardid query int false "品类ID"
  313. // @Param spotgoodsbrandid query int false "品牌ID"
  314. // @Param warehouseinfoid query int false "仓库ID"
  315. // @Success 200 {array} models.Ermcp3AreaStockReport
  316. // @Failure 500 {object} app.Response
  317. // @Router /Ermcp3/QryAreaStockReport [get]
  318. // @Tags 企业风险管理v3(app)
  319. func QryAreaStockReport(c *gin.Context) {
  320. a := app.GinUtils{Gin: app.Gin{C: c}}
  321. req := QryReportReq{}
  322. req2 := struct {
  323. DELIVERYGOODSID int32 `form:"deliverygoodsid"` // 现货品种id
  324. WRSTANDARDID int32 `form:"wrstandardid"` // 品类ID
  325. SPOTGOODSBRANDID int32 `form:"spotgoodsbrandid"` // 品牌id
  326. WAREHOUSEINFOID string `form:"warehouseinfoid"` // 现货仓库ID
  327. }{}
  328. a.DoBindReq(&req)
  329. a.DoBindReq(&req2)
  330. a.CheckParam(&req)
  331. m := models.Ermcp3AreaStockReport{USERID: req.USERID, QueryType: req.QUERYTYPE, RECKONDATE: req.TRADEDATE,
  332. CYCLETYPE: req.CYCLETYPE, CYCLETIME: req.CYCLETIME, BeginDate: req.BEGINDATE, EndDate: req.ENDDATE,
  333. DELIVERYGOODSID: req2.DELIVERYGOODSID, WRSTANDARDID: req2.WRSTANDARDID, SPOTGOODSBRANDID: req2.SPOTGOODSBRANDID,
  334. WAREHOUSEINFOID: req2.WAREHOUSEINFOID}
  335. a.DoGetDataI(&m)
  336. }
  337. // QueryAreaStockReportDetail
  338. // 查询库存报表明细 - 作废(库存报表明细就是查库存申请记录,直接调用其接口)
  339. func QueryAreaStockReportDetail(c *gin.Context) {
  340. a := app.GinUtils{Gin: app.Gin{C: c}}
  341. req := struct {
  342. USERID int64 `form:"userid" binding:"required"` // 机构ID
  343. DELIVERYGOODSID int32 `form:"deliverygoodsid"` // 现货品种id
  344. WRSTANDARDID int32 `form:"wrstandardid"` // 品类ID
  345. SPOTGOODSBRANDID int32 `form:"spotgoodsbrandid"` // 品牌id
  346. WAREHOUSEINFOID string `form:"warehouseinfoid"` // 现货仓库ID
  347. QUERYTYPE int32 `form:"querytype" binding:"required"` // 查询类型
  348. QUERYDATE string `form:"querydate" binding:"required"` // 查询日期
  349. DETAILTYPE int32 `form:"detailtype" binding:"required"` // 明细类型
  350. }{}
  351. a.DoBindReq(&req)
  352. if QueryDate(req.QUERYDATE).IsNumberic(req.QUERYTYPE) {
  353. var beginDate, endDate string
  354. if req.QUERYTYPE == 1 {
  355. beginDate = req.QUERYDATE
  356. endDate = beginDate
  357. } else if req.QUERYTYPE == 2 {
  358. beginDate = req.QUERYDATE + "01"
  359. endDate = req.QUERYDATE + "31"
  360. }
  361. m := models.Ermcp3AreaStockApply{USERID: req.USERID, WRSTANDARDID: req.WRSTANDARDID,
  362. SPOTGOODSBRANDID: req.SPOTGOODSBRANDID, DELIVERYGOODSID: req.DELIVERYGOODSID,
  363. WAREHOUSEINFOID: req.WAREHOUSEINFOID, BeginDate: beginDate, EndDate: endDate, APPLYSTATUS: 2}
  364. // 出入库类型(可多项,逗号隔开) 1:采购入库 2:销售出库 3:生产入库 4:生产出库"
  365. if req.DETAILTYPE == 1 {
  366. m.FilterType = "1,3"
  367. } else if req.DETAILTYPE == 2 {
  368. m.FilterType = "2,4"
  369. }
  370. a.DoGetDataI(&m)
  371. } else {
  372. a.Gin.Response(http.StatusBadRequest, e.INVALID_PARAMS, nil)
  373. }
  374. }
  375. // QryAreaSumPL
  376. // @Summary 查询汇总损益表
  377. // @Produce json
  378. // @Security ApiKeyAuth
  379. // @Param userid query int true "用户ID"
  380. // @Param querytype query int true "查询类型 1-日报表 2-周期报表 3-日报表(指定时间段[开始交易日,结束交易日])"
  381. // @Param tradedate query string false "交易日(格式yyyymmdd)"
  382. // @Param cycletype query int false "周期类型 - 1:月 2:季 3:年 4:周 5:全报表【原值】"
  383. // @Param cycletime query string false "周期时间 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYIW) 全(0)【原值】"
  384. // @Param begindate query string false "开始交易日(格式yyyymmdd)"
  385. // @Param enddate query string false "结束交易日(格式yyyymmdd)"
  386. // @Success 200 {array} models.Ermcp3ArealSumPL
  387. // @Failure 500 {object} app.Response
  388. // @Router /Ermcp3/QryAreaSumPL [get]
  389. // @Tags 企业风险管理v3(app)
  390. func QryAreaSumPL(c *gin.Context) {
  391. a := app.GinUtils{Gin: app.Gin{C: c}}
  392. req := QryReportReq{}
  393. a.DoBindReq(&req)
  394. a.CheckParam(&req)
  395. m := models.Ermcp3ArealSumPL{AREAUSERID: req.USERID, QueryType: req.QUERYTYPE, RECKONDATE: req.TRADEDATE,
  396. CYCLETYPE: req.CYCLETYPE, CYCLETIME: req.CYCLETIME, BeginDate: req.BEGINDATE, EndDate: req.ENDDATE}
  397. a.DoGetDataI(&m)
  398. }