fix page_size update problem

This commit is contained in:
zhangyuheng 2023-12-28 17:47:20 +08:00
parent 60c4b1b61c
commit 34a35a243b

View File

@ -37,8 +37,9 @@
if ((CONDITION_DATA)->page <= 0) { \
(CONDITION_DATA)->page = 1; \
} \
(PAGE_DATA)->page = (CONDITION_DATA)->page; \
DB_RES = (DOO)->getPageByConditions(CONDITION_DATA); \
(PAGE_DATA)->page = (CONDITION_DATA)->page; \
(PAGE_DATA)->page_size = (CONDITION_DATA)->page_size; \
DB_RES = (DOO)->getPageByConditions(CONDITION_DATA); \
ASSERT_DB(DB_RES); \
(PAGE_DATA)->items = DB_RES->fetch<oatpp::List<oatpp::Object<ITEM_DTO>>>(); \
}