|
@@ -133,7 +133,7 @@ func (m *menu) MenuList() error {
|
|
currentPage, _ := m.GetInteger("currentPage")
|
|
currentPage, _ := m.GetInteger("currentPage")
|
|
res := map[string]interface{}{}
|
|
res := map[string]interface{}{}
|
|
res["totalRows"] = mongodb.Count("jy_topMenu", nil)
|
|
res["totalRows"] = mongodb.Count("jy_topMenu", nil)
|
|
- data := *mongodb.Find("jy_topMenu", nil, `{"i_sort":1,"l_modifydate":-1,"_id":-1}`, `{"title":1,"i_status":1,"i_sort":1,"l_createdate":1,"l_modifydate":1,"top_menu":1,"bottom_link":1}`, false, (currentPage-1)*size, size)
|
|
|
|
|
|
+ data := *mongodb.Find("jy_topMenu", nil, `{"i_sort":1}`, `{"title":1,"i_status":1,"i_sort":1,"l_createdate":1,"l_modifydate":1,"top_menu":1,"bottom_link":1}`, false, (currentPage-1)*size, size)
|
|
for _, v := range data {
|
|
for _, v := range data {
|
|
data_c := v["l_createdate"]
|
|
data_c := v["l_createdate"]
|
|
v["l_createdate"] = util.FormatDateWithObj(&data_c, util.Date_Full_Layout)
|
|
v["l_createdate"] = util.FormatDateWithObj(&data_c, util.Date_Full_Layout)
|