|
|
@@ -2,10 +2,13 @@ package com.kym.service.admin.impl;
|
|
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
import com.kym.common.utils.CommUtil;
|
|
|
import com.kym.entity.admin.InvestorInfo;
|
|
|
import com.kym.entity.admin.Statements;
|
|
|
import com.kym.entity.admin.StationStatMonth;
|
|
|
+import com.kym.entity.admin.queryParams.StatementsQueryParam;
|
|
|
+import com.kym.entity.common.PageBean;
|
|
|
import com.kym.mapper.admin.StatementsMapper;
|
|
|
import com.kym.service.admin.InvestorInfoService;
|
|
|
import com.kym.service.admin.StatementsService;
|
|
|
@@ -94,4 +97,16 @@ public class StatementsServiceImpl extends ServiceImpl<StatementsMapper, Stateme
|
|
|
}).toList();
|
|
|
saveBatch(res);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public PageBean<Statements> listStatements(StatementsQueryParam params) {
|
|
|
+ PageHelper.startPage(params.getPageNum(), params.getPageSize());
|
|
|
+ var res = lambdaQuery()
|
|
|
+ .eq(!CommUtil.isEmptyOrNull(params.getStationId()), Statements::getStationId, params.getStationId())
|
|
|
+ .eq(!CommUtil.isEmptyOrNull(params.getStatMonth()), Statements::getStatMonth, params.getStatMonth())
|
|
|
+ .like(!CommUtil.isEmptyOrNull(params.getAdminUserName()), Statements::getAdminUserName, params.getAdminUserName())
|
|
|
+ .orderByDesc(Statements::getStatMonth)
|
|
|
+ .list();
|
|
|
+ return new PageBean<>(res);
|
|
|
+ }
|
|
|
}
|