Commit 2d917d1b authored by hujun's avatar hujun

create_time

parent f5e9991f
......@@ -115,17 +115,17 @@ class Cost extends Basic
//申请提交时间
if (isset($param['create_time_start'])) {
$where['a.create_time'] = ['>=', $param['create_time_start']];
$where['create_time'] = ['>=', $param['create_time_start']];
}
//申请提交时间
if (isset($param['create_time_end'])) {
$where['a.create_time'] = ['<=', $param['create_time_end']];
$where['create_time'] = ['<=', $param['create_time_end']];
}
//申请提交时间
if (isset($param['create_time_start']) && isset($param['create_time_end'])) {
$where['a.create_time'] = ['between', [$param['create_time_start']. ' 00:00:00', $param['create_time_end'].' 23:59:59']];
$where['create_time'] = ['between', [$param['create_time_start']. ' 00:00:00', $param['create_time_end'].' 23:59:59']];
}
//财务三审通过时间
......@@ -135,12 +135,12 @@ class Cost extends Basic
//财务三审通过时间
if (isset($param['pass_time_end'])) {
$check_where['a.create_time'] = ['<=', $param['pass_time_end']];
$check_where['create_time'] = ['<=', $param['pass_time_end']];
}
//财务三审通过时间
if (isset($param['pass_time_start']) && isset($param['pass_time_end'])) {
$check_where['a.create_time'] = ['between', [$param['pass_time_end']. ' 00:00:00', $param['pass_time_end'].' 23:59:59']];
$check_where['create_time'] = ['between', [$param['pass_time_end']. ' 00:00:00', $param['pass_time_end'].' 23:59:59']];
}
if (isset($check_where)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment