Merge branch 'hotfix/query'

master
ELF 5 years ago
commit 27a0f7e4d5

@ -200,7 +200,7 @@ class SpendRepository {
$records = []; $records = [];
foreach ($dayList as $day) { foreach ($dayList as $day) {
$time = strtotime($day); $time = strtotime($day) + 24 * 3600;
$conditions['pay_time'] = ['elt', $time]; $conditions['pay_time'] = ['elt', $time];
$result = M('spend', 'tab_')->field('count(DISTINCT user_id) as count')->where($conditions)->find(); $result = M('spend', 'tab_')->field('count(DISTINCT user_id) as count')->where($conditions)->find();
$records[$day] = $result['count']; $records[$day] = $result['count'];

@ -135,6 +135,9 @@
<div class="form-group normal_space"> <div class="form-group normal_space">
<select id="promote-select" name="sub_promote_id" class="reselect select_gallery" style="width: 220px;" data-promote="{:I('sub_promote_id', 0)}"> <select id="promote-select" name="sub_promote_id" class="reselect select_gallery" style="width: 220px;" data-promote="{:I('sub_promote_id', 0)}">
<option value="0">请选择推广员</option> <option value="0">请选择推广员</option>
<volist name="subPromotes" id="promote">
<option ba-id="{$promote.id}" value="{$promote.id}" <if condition="I('promote_id') == $promote['id']">selected</if>>{$promote.account}({$promote.real_name})</option>
</volist>
</select> </select>
</div> </div>
</if> </if>

Loading…
Cancel
Save