|
@@ -67,7 +67,7 @@ type BaseFromIcpiIndexView struct {
|
|
|
ModifyTime string `description:"修改时间"`
|
|
|
}
|
|
|
|
|
|
-func GetIcpiIndex(startDate, endDate string) (items []*BaseFromIcpiIndexView, err error) {
|
|
|
+func GetIcpiIndex(startDate, endDate string) (items []*BaseFromIcpiIndex, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := ` SELECT * FROM base_from_icpi_index WHERE end_date >= ? AND end_date <= ? `
|
|
|
_, err = o.Raw(sql, startDate, endDate).QueryRows(&items)
|