Commit d613b709 by 程裕兵

feat:page cashier record

parent ddc43e84
package com.jiejing.fitness.finance.service.cashier.impl;
import com.alibaba.fastjson.JSON;
import com.jiejing.common.model.PageVO;
import com.jiejing.common.utils.convert.BeanUtil;
import com.jiejing.fitness.finance.api.cashier.vo.StudioCashierRecordVO;
......@@ -58,7 +59,8 @@ public class StudioCashierServiceImpl implements StudioCashierService {
@Override
public PageVO<StudioCashierRecordVO> page(PageStudioCashierParams params) {
PageBrandCashierRecordQuery query = BeanUtil.map(params, PageBrandCashierRecordQuery.class);
PageBrandCashierRecordQuery query = JSON.parseObject(JSON.toJSONString(params),
PageBrandCashierRecordQuery.class);
Page<StudioCashierRecord> page = studioCashierRecordRpService.page(query);
return CashierConvert.convertPageVO(page);
}
......@@ -72,7 +74,8 @@ public class StudioCashierServiceImpl implements StudioCashierService {
@Override
public StudioCashierStatisticVO statistic(PageStudioCashierParams params) {
PageBrandCashierRecordQuery query = BeanUtil.map(params, PageBrandCashierRecordQuery.class);
PageBrandCashierRecordQuery query = JSON.parseObject(JSON.toJSONString(params),
PageBrandCashierRecordQuery.class);
return studioCashierRecordRpService.statistic(query);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment