|
@@ -475,12 +475,18 @@ public class HospProfitAndLossServiceImpl extends ServiceImpl<HospProfitAndLossM
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public PageUtils hospProfitReports(Integer current, Integer pageSize, Long hospId) {
|
|
|
+ public PageUtils hospProfitReports(Integer current, Integer pageSize, Long hospId, String date) {
|
|
|
+ DateTime parse = DateUtil.parse(date);
|
|
|
+ int year = DateUtil.year(parse);
|
|
|
+ int month = DateUtil.month(parse) + 1;
|
|
|
+
|
|
|
Page<FileRecord> page = new Page<>(current, pageSize);
|
|
|
Page<FileRecord> pageUtils = fileRecordService.page(page,
|
|
|
new LambdaQueryWrapper<FileRecord>()
|
|
|
.eq(FileRecord::getHospId, hospId)
|
|
|
.eq(FileRecord::getFileType, "全院损益")
|
|
|
+ .eq(FileRecord::getDateYear, year)
|
|
|
+ .eq(FileRecord::getDateMonth, month)
|
|
|
);
|
|
|
return new PageUtils(pageUtils);
|
|
|
}
|