新增汇总单号查找

master
chenzhi 4 years ago
parent 926b8975f1
commit 0c54e6ecb7

@ -73,6 +73,16 @@ class PaymentController extends BaseController
$map['s.verify_time'] = ['ELT', strtotime($_REQUEST['verifytime_end']) + 86399];
}
if(isset($_REQUEST['statement_num'])){
$statement_num = $_REQUEST['statement_num'];
$pool_ids = M("company_statement_pool","tab_")->where("statement_num like '%{$statement_num}%'")->getField("id",true);
if(!empty($pool_ids)){
$map['s.pool_id'] = ['in', $pool_ids];
}else{
$map['s.pool_id'] = 0;
}
}
if(isset($_REQUEST['company_type'])){
$map['s.company_type'] = $_REQUEST['company_type'];
}

@ -181,11 +181,8 @@
</select>
</div>
<div class="input-list">
<input type="text" name="pay_time_start" class="" value="{:I('pay_time_start')}" placeholder="支付开始时间" />
</div>
<input type="text" name="statement_num" class="" value="{:I('statement_num')}" placeholder="请输入汇总单号" style="width: 180px;"/>
</div>
<div class="input-list">
<input type="text" readonly id="time_start2" name="pay_time_start" class="" value="{:I('pay_time_start')}" placeholder="支付开始时间" />
&nbsp;-&nbsp;

Loading…
Cancel
Save