bug
This commit is contained in:
parent
b3a1c3df30
commit
53fa99e0b2
@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="k-three">
|
<div class="k-three">
|
||||||
<div class="title_">充值总人数</div>
|
<div class="title_">充值总人数</div>
|
||||||
<div class="num-size">{{balance}}</div>
|
<div class="num-size">{{rechargeTotal || 0}}</div>
|
||||||
<img class="r-bot-img" src="./imgs/hy-3.png" alt="">
|
<img class="r-bot-img" src="./imgs/hy-3.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="k-four">
|
<div class="k-four">
|
||||||
@ -477,6 +477,7 @@ export default {
|
|||||||
addNum:'',
|
addNum:'',
|
||||||
// 昨日新增
|
// 昨日新增
|
||||||
yesterdayAddNum:'',
|
yesterdayAddNum:'',
|
||||||
|
rechargeTotal:"",
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
uploading: false,
|
uploading: false,
|
||||||
@ -612,6 +613,7 @@ export default {
|
|||||||
listStatistic(this.addDateRange(this.queryParams, dateRange)).then( response => {
|
listStatistic(this.addDateRange(this.queryParams, dateRange)).then( response => {
|
||||||
this.addNum = response.data.addNum;
|
this.addNum = response.data.addNum;
|
||||||
this.yesterdayAddNum = response.data.yesterdayAddNum;
|
this.yesterdayAddNum = response.data.yesterdayAddNum;
|
||||||
|
this.rechargeTotal = response.data.rechargeTotal;
|
||||||
if (!response.data.balance) {
|
if (!response.data.balance) {
|
||||||
this.balance = 0
|
this.balance = 0
|
||||||
}else {
|
}else {
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
<!-- 统计-->
|
<!-- 统计-->
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>统计</span>
|
<span>挂账订单统计</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-gang">
|
<div class="box-gang">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span></span>
|
<span>收银台订单统计</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-gang">
|
<div class="box-gang">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span></span>
|
<span>商品交易订单统计</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-gang">
|
<div class="box-gang">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
<!-- 统计-->
|
<!-- 统计-->
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span></span>
|
<span>会员充值订单统计</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-gang">
|
<div class="box-gang">
|
||||||
|
|
||||||
|
@ -90,4 +90,11 @@ public interface CardValueRecordService extends IService<CardValueRecord> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
IPage<CardValueRecord> selectCardValueRecordList(Page page, CardValueRecord cardValueRecord);
|
IPage<CardValueRecord> selectCardValueRecordList(Page page, CardValueRecord cardValueRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员充值总人数
|
||||||
|
* @param user
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Integer selectUserTotal(LJUserVo user);
|
||||||
}
|
}
|
||||||
|
@ -1151,5 +1151,17 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
|
|||||||
cardValueRecord.setStoreId(nowAccountInfo.getStoreId());
|
cardValueRecord.setStoreId(nowAccountInfo.getStoreId());
|
||||||
return baseMapper.selectCardValueRecordList(page,cardValueRecord);
|
return baseMapper.selectCardValueRecordList(page,cardValueRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer selectUserTotal(LJUserVo user) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||||
|
if (ObjectUtil.isNotEmpty(user.getParams())){
|
||||||
|
queryWrapper.apply(true,"create_time BETWEEN '" + user.getParams().get("beginTime") + "' and '" + user.getParams().get("endTime") + "'");
|
||||||
|
}
|
||||||
|
queryWrapper.eq("chain_store_id",user.getChainStoreId());
|
||||||
|
queryWrapper.groupBy("mt_user_id");
|
||||||
|
List list = baseMapper.selectList(queryWrapper);
|
||||||
|
return list.size();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.fuint.business.marketingActivity.cardValue.service.CardValueRecordService;
|
||||||
import com.fuint.business.marketingActivity.cardValueChildrens.entity.CardValudChildrens;
|
import com.fuint.business.marketingActivity.cardValueChildrens.entity.CardValudChildrens;
|
||||||
import com.fuint.business.marketingActivity.cardValueChildrens.service.CardValudChildrensService;
|
import com.fuint.business.marketingActivity.cardValueChildrens.service.CardValudChildrensService;
|
||||||
import com.fuint.business.storeInformation.entity.LJStore;
|
import com.fuint.business.storeInformation.entity.LJStore;
|
||||||
@ -40,6 +41,9 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
|
|||||||
private ILJStoreService storeService;
|
private ILJStoreService storeService;
|
||||||
@Resource
|
@Resource
|
||||||
private LJUserMapper ljUserMapper;
|
private LJUserMapper ljUserMapper;
|
||||||
|
@Resource
|
||||||
|
@Lazy
|
||||||
|
private CardValueRecordService cardValueRecordService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据条件分页查询会员信息
|
* 根据条件分页查询会员信息
|
||||||
@ -158,13 +162,14 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
|
|||||||
|
|
||||||
// Integer yesterdayAddNum = baseMapper.selectCount(queryWrapper1);
|
// Integer yesterdayAddNum = baseMapper.selectCount(queryWrapper1);
|
||||||
Integer yesterdayAddNum = userBalanceMapper.selectCount(queryWrapper1);
|
Integer yesterdayAddNum = userBalanceMapper.selectCount(queryWrapper1);
|
||||||
|
Integer rechargeTotal = cardValueRecordService.selectUserTotal(user);
|
||||||
map.put("balance",balance);
|
map.put("balance",balance);
|
||||||
map.put("point",point);
|
map.put("point",point);
|
||||||
// map.put("literCard",literCard);
|
// map.put("literCard",literCard);
|
||||||
// map.put("refuelMoney",refuelMoney);
|
// map.put("refuelMoney",refuelMoney);
|
||||||
map.put("addNum",addNum);
|
map.put("addNum",addNum);
|
||||||
map.put("yesterdayAddNum",yesterdayAddNum);
|
map.put("yesterdayAddNum",yesterdayAddNum);
|
||||||
|
map.put("rechargeTotal",rechargeTotal);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user