修改查询会员充值bug
This commit is contained in:
@@ -379,8 +379,7 @@ public class SummaryServiceImpl implements SummaryService {
|
||||
|
||||
BigDecimal recharge = tbShopUserFlowService.sumUserFlowAmountByConditions(Long.valueOf(summaryDto.getShopId()),
|
||||
tbOrderPayCountByDayVo.getTradeDay() + " 00:00:00",
|
||||
tbOrderPayCountByDayVo.getTradeDay() + " 23:59:59",
|
||||
Arrays.asList("cashMemberIn", "scanMemberIn"));
|
||||
tbOrderPayCountByDayVo.getTradeDay() + " 23:59:59");
|
||||
tbOrderPayCountByDayVo.setRecharge(recharge);
|
||||
|
||||
BigDecimal decimal = tbOrderInfoRepository.queryRefundOrderAmountByTradeDay(summaryDto.getShopId(), tbOrderPayCountByDayVo.getTradeDay());
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package cn.ysk.cashier.service.impl.shopimpl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.ysk.cashier.dto.shop.TbShopRechargeListDto;
|
||||
import cn.ysk.cashier.dto.shop.TbShopRechargeRespDto;
|
||||
import cn.ysk.cashier.dto.shop.TbShopUserDto;
|
||||
@@ -49,8 +50,21 @@ public class TbShopUserServiceImpl implements TbShopUserService {
|
||||
|
||||
@Override
|
||||
public Map<String, Object> queryShopUser(TbShopUserQueryCriteria criteria) {
|
||||
IPage<ShopUserInfoVo> iPage = shopUserMapper.queryUser(criteria,
|
||||
IPage<ShopUserInfoVo> iPage = shopUserMapper.queryUser(criteria, criteria.getIsVip(),
|
||||
new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>(criteria.getPage(), criteria.getSize()));
|
||||
|
||||
for (ShopUserInfoVo shopUserInfoVo : iPage.getRecords()) {
|
||||
if (StrUtil.isBlank(shopUserInfoVo.getNickName())) {
|
||||
tbShopUserRepository.findById(shopUserInfoVo.getId()).ifPresent(tbShopUser -> {
|
||||
shopUserInfoVo.setNickName(tbShopUser.getName());
|
||||
shopUserInfoVo.setBirthDay(tbShopUser.getBirthDay());
|
||||
shopUserInfoVo.setHeadImg(tbShopUser.getHeadImg());
|
||||
shopUserInfoVo.setTelephone(tbShopUser.getTelephone());
|
||||
shopUserInfoVo.setTotalScore(0);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return PageUtil.toPlusPage(iPage.getRecords(), Integer.valueOf(iPage.getTotal() + ""));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user