|
@@ -1,7 +1,5 @@
|
|
|
package com.xy.service;
|
|
|
|
|
|
-import cn.hutool.core.date.DatePattern;
|
|
|
-import cn.hutool.core.date.LocalDateTimeUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -80,10 +78,10 @@ public class MercFeeCountMonthServiceImpl extends ServiceImpl<MercFeeCountMonthM
|
|
|
public R<PageBean<MercFeeCountMonthDto.Vo>> page(MercFeeCountMonthDto.Page page) {
|
|
|
|
|
|
PageBean pageBean = page.getPage();
|
|
|
- LocalDateTime beginTime = page.getBeginTime();
|
|
|
- LocalDateTime endTime = page.getEndTime();
|
|
|
- String start = LocalDateTimeUtil.format(beginTime, DatePattern.SIMPLE_MONTH_PATTERN);
|
|
|
- String end = LocalDateTimeUtil.format(endTime, DatePattern.SIMPLE_MONTH_PATTERN);
|
|
|
+
|
|
|
+
|
|
|
+ String start = page.getBeginTime();
|
|
|
+ String end = page.getEndTime();
|
|
|
|
|
|
LambdaQueryWrapper<MercFeeCountMonth> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(page, MercFeeCountMonth.class)
|
|
|
.build()
|
|
@@ -91,8 +89,10 @@ public class MercFeeCountMonthServiceImpl extends ServiceImpl<MercFeeCountMonthM
|
|
|
.orderByDesc(MercFeeCountMonth::getDateValue);
|
|
|
|
|
|
if (StrUtil.isNotEmpty(start) && StrUtil.isNotEmpty(end)) {
|
|
|
- int s = Integer.valueOf(start).intValue();
|
|
|
- int e = Integer.valueOf(end).intValue();
|
|
|
+ String startDate = start.replaceAll("-", "");
|
|
|
+ String endDate = end.replaceAll("-", "");
|
|
|
+ int s = Integer.valueOf(startDate).intValue();
|
|
|
+ int e = Integer.valueOf(endDate).intValue();
|
|
|
lambdaQueryWrapper.between(MercFeeCountMonth::getDateValue, s, e);
|
|
|
}
|
|
|
IPage<MercFeeCountMonth> iPage = page(toIPage(pageBean), lambdaQueryWrapper);
|