@@ -14,8 +14,22 @@ import org.springframework.data.domain.Pageable;
* @Version: 1.0
*/
public interface ExpenseFlowDaoExtend {
+
+ /**
+ * 查询消费流水记录
+ *
+ * @param pageable
+ * @param param
+ * @return
+ */
Page<ExpenseFlow> page(Pageable pageable, ExpenseFlowSearch param);
+ * 统计消费
ExpenseFlowCount countPayment(ExpenseFlowSearch param);
}
@@ -56,7 +56,7 @@ public class ExpenseFlowDaoImpl extends BaseImpl implements ExpenseFlowDaoExtend
if (StringUtils.isNotEmpty(param.getMonth())) {
- criteria.and("month").is(param.getMonth());
+ criteria.and("month").is(CommonUtil.turnMonthSearch(param.getMonth()));
if (param.getIsPaySuccess() != null) {
@@ -61,7 +61,7 @@ public class WalletRechargeDaoImpl extends BaseImpl implements WalletRechargeExt
if (!CommonUtil.longIsEmpty(param.getStartTime()) && !CommonUtil.longIsEmpty(param.getEndTime())) {
@@ -463,4 +463,21 @@ public class CommonUtil {
return null;
+ * 月份搜索的时候转换
+ * @param month
+ public static String turnMonthSearch(String month) {
+ if (StringUtils.isNotEmpty(month)) {
+ if (month.length() == 2) {
+ return month;
+ } else {
+ return String.format("0%s", month);
+ }