|
@@ -62,16 +62,24 @@ public class CostCostingGroupServiceImpl extends ServiceImpl<CostCostingGroupMap
|
|
|
* @param pageSize 每页数据大小
|
|
|
* @param responsibilityCode 责任中心代码
|
|
|
* @param accountCode 会计中心代码
|
|
|
- * @param date 日期 yyyy-MM-dd
|
|
|
+ * @param date 日期 yyyy-MM
|
|
|
* @param hospId 医院id
|
|
|
* @return 分摊前查询列表
|
|
|
*/
|
|
|
@Override
|
|
|
public PageUtils queryStartAllocation(Integer current, Integer pageSize, String responsibilityCode, String accountCode, String date, Long hospId) {
|
|
|
Integer startIndex = (current - 1) * pageSize;
|
|
|
- DateTime dateTime = DateUtil.parseDate(date);
|
|
|
- Integer year = DateUtil.year(dateTime);
|
|
|
- Integer month = DateUtil.month(dateTime) + 1;
|
|
|
+ int year = 0;
|
|
|
+ int month = 0;
|
|
|
+ if (StrUtil.isNotBlank(date)) {
|
|
|
+ Date dateTime = DateUtils.StringToDate(date, DateStyleEnum.YYYY_MM);
|
|
|
+ year = DateUtil.year(dateTime);
|
|
|
+ month = DateUtil.month(dateTime) + 1;
|
|
|
+ }
|
|
|
+// DateTime dateTime = DateUtil.parseDate(date);
|
|
|
+//
|
|
|
+// Integer year = DateUtil.year(dateTime);
|
|
|
+// Integer month = DateUtil.month(dateTime) + 1;
|
|
|
List<CostingGroupStartVO> list = baseMapper.queryStartAllocation(startIndex, pageSize, responsibilityCode, accountCode, year, month, hospId);
|
|
|
int count = baseMapper.queryStartAllocationCount(responsibilityCode, accountCode, year, month, hospId);
|
|
|
BigDecimal totalAmount = baseMapper.queryStartAllocationTotalAmount(responsibilityCode, accountCode, year, month, hospId);
|