|
|
|
|
@ -66,7 +66,7 @@ public class QscTaxBizVolServiceImpl implements IQscTaxBizVolService {
|
|
|
|
|
LambdaQueryWrapper<QscTaxBizVol> lqw = Wrappers.lambdaQuery();
|
|
|
|
|
// 如果bizMonthly不为空,则按年月格式进行模糊查询
|
|
|
|
|
if (bo.getBizMonthly() != null) {
|
|
|
|
|
lqw.like(QscTaxBizVol::getBizMonthly, formatToYearMonth(bo.getBizMonthly()));
|
|
|
|
|
lqw.like(QscTaxBizVol::getBizMonthly, DateUtils.formatToYearMonth(bo.getBizMonthly()));
|
|
|
|
|
}
|
|
|
|
|
lqw.eq(bo.getBizMonthlyVol() != null, QscTaxBizVol::getBizMonthlyVol, bo.getBizMonthlyVol());
|
|
|
|
|
lqw.eq(StringUtils.isNotBlank(bo.getBizMonthlyRatio()), QscTaxBizVol::getBizMonthlyRatio, bo.getBizMonthlyRatio());
|
|
|
|
|
@ -74,32 +74,6 @@ public class QscTaxBizVolServiceImpl implements IQscTaxBizVolService {
|
|
|
|
|
lqw.eq(bo.getDeptId() != null, QscTaxBizVol::getDeptId, bo.getDeptId());
|
|
|
|
|
return lqw;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 将日期对象格式化为年月字符串
|
|
|
|
|
*
|
|
|
|
|
* @param date 日期对象
|
|
|
|
|
* @return 格式化后的年月字符串(yyyy-MM)
|
|
|
|
|
*/
|
|
|
|
|
private String formatToYearMonth(Object date) {
|
|
|
|
|
if (date == null) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
// 如果已经是字符串格式且符合yyyy-MM格式,直接返回
|
|
|
|
|
if (date instanceof String) {
|
|
|
|
|
String dateStr = (String) date;
|
|
|
|
|
if (dateStr.matches("\\d{4}-\\d{2}")) {
|
|
|
|
|
return dateStr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 尝试解析日期
|
|
|
|
|
Date parsedDate = DateUtils.parseDate(date);
|
|
|
|
|
if (parsedDate != null) {
|
|
|
|
|
return DateUtils.parseDateToStr(DateUtils.YYYY_MM, parsedDate);
|
|
|
|
|
}
|
|
|
|
|
// 如果无法解析,返回原始字符串
|
|
|
|
|
return date.toString();
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 新增业务量总览
|
|
|
|
|
*/
|
|
|
|
|
|