| | |
| | | import cc.mrbird.febs.mall.entity.*; |
| | | import cc.mrbird.febs.mall.mapper.*; |
| | | import cc.mrbird.febs.mall.service.*; |
| | | import cc.mrbird.febs.mall.vo.ApiShopApplyVo; |
| | | import cc.mrbird.febs.mall.vo.OrderDetailVo; |
| | | import cc.mrbird.febs.mall.vo.OrderListVo; |
| | | import cc.mrbird.febs.mall.vo.OrderRefundVo; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import cc.mrbird.febs.pay.model.AgreementPayDto; |
| | | import cc.mrbird.febs.pay.model.AgreementSignDto; |
| | | import cc.mrbird.febs.pay.model.UnipayDto; |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse subsidyAmountInfo() { |
| | | MallMember member = LoginUserUtil.getLoginUser(); |
| | | ApiMallSubsidyAmountInfoVo apiMallSubsidyAmountInfoVo = new ApiMallSubsidyAmountInfoVo(); |
| | | DateTime today = DateUtil.date(); |
| | | DateTime yesterday = DateUtil.yesterday(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | String yyyyMMddToday = sdf.format(today); |
| | | String yyyyMMddYesterday = sdf.format(yesterday); |
| | | //今日补贴 |
| | | BigDecimal todayAmount = this.baseMapper.selectTodayAmountByCreateTimeAndMemberId(yyyyMMddToday,member.getId()); |
| | | apiMallSubsidyAmountInfoVo.setTodayAmount(todayAmount); |
| | | //今日累计接单 |
| | | Integer todayTotalCnt = this.baseMapper.selectCountByCreateTimeAndMemberId(yyyyMMddToday,member.getId()); |
| | | apiMallSubsidyAmountInfoVo.setTodayTotalCnt(todayTotalCnt); |
| | | //昨日补贴 |
| | | BigDecimal yesterdayAmount = this.baseMapper.selectTodayAmountByCreateTimeAndMemberId(yyyyMMddYesterday,member.getId()); |
| | | apiMallSubsidyAmountInfoVo.setYesterdayAmount(yesterdayAmount); |
| | | //昨日累计接单 |
| | | Integer totalYesterdayCnt = this.baseMapper.selectCountByCreateTimeAndMemberId(yyyyMMddYesterday,member.getId()); |
| | | apiMallSubsidyAmountInfoVo.setTotalYesterdayCnt(totalYesterdayCnt); |
| | | //获得总额 |
| | | BigDecimal totalAmount = this.baseMapper.selectTodayAmountByCreateTimeAndMemberId(null,member.getId()); |
| | | apiMallSubsidyAmountInfoVo.setTotalAmount(totalAmount); |
| | | return new FebsResponse().success().data(apiMallSubsidyAmountInfoVo); |
| | | } |
| | | |
| | | } |