|
@@ -7,6 +7,7 @@ import com.kcim.common.constants.SplitConstant;
|
|
|
import com.kcim.common.exception.CostException;
|
|
import com.kcim.common.exception.CostException;
|
|
|
import com.kcim.common.util.BeanUtil;
|
|
import com.kcim.common.util.BeanUtil;
|
|
|
import com.kcim.common.util.ComputeDateUtils;
|
|
import com.kcim.common.util.ComputeDateUtils;
|
|
|
|
|
+import com.kcim.common.util.PageUtils;
|
|
|
import com.kcim.common.util.UserContext;
|
|
import com.kcim.common.util.UserContext;
|
|
|
import com.kcim.dao.model.*;
|
|
import com.kcim.dao.model.*;
|
|
|
import com.kcim.dao.repository.*;
|
|
import com.kcim.dao.repository.*;
|
|
@@ -2356,5 +2357,68 @@ public class StandardReportServiceImpl implements StandardReportService {
|
|
|
return costItemMap;
|
|
return costItemMap;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Object getDiseaseCostDetailByPage(Integer current, Integer pageSize, String computeDate) {
|
|
|
|
|
+ // 获取完整数据列表
|
|
|
|
|
+ List<DiseaseCostDetailVO> fullList = getDiseaseCostDetail(computeDate);
|
|
|
|
|
+
|
|
|
|
|
+ // 手动分页
|
|
|
|
|
+ int total = fullList.size();
|
|
|
|
|
+ int startIndex = (current - 1) * pageSize;
|
|
|
|
|
+ int endIndex = Math.min(startIndex + pageSize, total);
|
|
|
|
|
+
|
|
|
|
|
+ // 获取当前页数据
|
|
|
|
|
+ List<DiseaseCostDetailVO> pageList = new ArrayList<>();
|
|
|
|
|
+ if (startIndex < total) {
|
|
|
|
|
+ pageList = fullList.subList(startIndex, endIndex);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return new PageUtils(pageList, total, pageSize, current);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Object getDiseaseCostCompositionDetailByPage(Integer current, Integer pageSize, String computeDate) {
|
|
|
|
|
+ // 获取完整数据列表
|
|
|
|
|
+ List<DiseaseCostDetailVO> fullList = getDiseaseCostCompositionDetail(computeDate);
|
|
|
|
|
+
|
|
|
|
|
+ // 手动分页
|
|
|
|
|
+ int total = fullList.size();
|
|
|
|
|
+ int startIndex = (current - 1) * pageSize;
|
|
|
|
|
+ int endIndex = Math.min(startIndex + pageSize, total);
|
|
|
|
|
+
|
|
|
|
|
+ // 获取当前页数据
|
|
|
|
|
+ List<DiseaseCostDetailVO> pageList = new ArrayList<>();
|
|
|
|
|
+ if (startIndex < total) {
|
|
|
|
|
+ pageList = fullList.subList(startIndex, endIndex);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return new PageUtils(pageList, total, pageSize, current);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Object getDeptDiseaseCostCompositionDetailByPage(Integer current, Integer pageSize, String computeDate) {
|
|
|
|
|
+ // 获取完整数据
|
|
|
|
|
+ StandardDeptCostCollectResponse fullData = getDeptDiseaseCostCompositionDetail(computeDate);
|
|
|
|
|
+
|
|
|
|
|
+ // 对数据进行分页
|
|
|
|
|
+ List<StandardReportFormCustomVo> fullList = fullData.getData();
|
|
|
|
|
+ int total = fullList.size();
|
|
|
|
|
+ int startIndex = (current - 1) * pageSize;
|
|
|
|
|
+ int endIndex = Math.min(startIndex + pageSize, total);
|
|
|
|
|
+
|
|
|
|
|
+ // 获取当前页数据
|
|
|
|
|
+ List<StandardReportFormCustomVo> pageList = new ArrayList<>();
|
|
|
|
|
+ if (startIndex < total) {
|
|
|
|
|
+ pageList = fullList.subList(startIndex, endIndex);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 构造分页结果
|
|
|
|
|
+ StandardDeptCostCollectResponse pageData = new StandardDeptCostCollectResponse();
|
|
|
|
|
+ pageData.setTitle(fullData.getTitle());
|
|
|
|
|
+ pageData.setData(pageList);
|
|
|
|
|
+
|
|
|
|
|
+ return new PageUtils(pageList, total, pageSize, current);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|