收支核对修改

This commit is contained in:
wanyongkang
2020-10-26 12:17:29 +08:00
parent 6cefe6a00e
commit e4bb638a1d

View File

@@ -5,7 +5,7 @@
* @Author: kangkang
* @Date: 2020-10-03 18:23:43
* @LastEditors: kangkang
* @LastEditTime: 2020-10-26 11:45:39
* @LastEditTime: 2020-10-26 12:16:13
*/
$is_script = 1;
include __DIR__ . '/../index.php';
@@ -33,8 +33,8 @@ $product_order_enum = new ProductOrderEnum;
$income_check_model = new IncomeCheckModel;
$data = [];
$today = date('Y-m-d', time());
$yesterday = date('Y-m-d', (time() - 86400));
$today = date('Y-m-d 00:00:00', time());
$yesterday = date('Y-m-d 00:00:00', (time() - 86400));
$data['user_balance'] = $user->field('SUM(`RestAmount`) AS balance')->fetch()['balance'];
$where1 = ['UpdateTime' => ['<', $today]];