|
|
@@ -14,6 +14,7 @@ import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
|
import com.zhongshu.card.server.core.domain.school.BookInfo;
|
|
|
import com.zhongshu.card.server.core.service.base.SuperService;
|
|
|
import com.zhongshu.card.server.core.util.BeanUtils;
|
|
|
+import com.zhongshu.card.server.core.util.DateUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -57,6 +58,19 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
return ResultContent.buildSuccess(expenseFlowDao.countPayment(param));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 统计用户今天支付的总金额
|
|
|
+ * @param userId 用户ID
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public ResultContent<ExpenseFlowCount> countToDayPayment(String userId) {
|
|
|
+ ExpenseFlowSearch param = new ExpenseFlowSearch();
|
|
|
+ param.setStartTime(DateUtils.getDayStartTime(System.currentTimeMillis()));
|
|
|
+ param.setEndTime(DateUtils.getDayEndTime(System.currentTimeMillis()));
|
|
|
+ param.setUserId(userId);
|
|
|
+ return ResultContent.buildSuccess(expenseFlowDao.countPayment(param));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 得到详情
|
|
|
*
|