|
@@ -121,6 +121,7 @@ class TestCommand extends TestCase
|
|
QueueClient::push("QueryRefund", ['order_id' => 8987841]);
|
|
QueueClient::push("QueryRefund", ['order_id' => 8987841]);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //docker-compose run -d phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestCommand::testQueryAllRefund)( .*)?$/" --test-suffix TestCommand.php /var/www/html/test
|
|
public function testQueryAllRefund()
|
|
public function testQueryAllRefund()
|
|
{
|
|
{
|
|
$mod = Model();
|
|
$mod = Model();
|
|
@@ -132,14 +133,15 @@ class TestCommand extends TestCase
|
|
$cond = ['inner_status' => 0,
|
|
$cond = ['inner_status' => 0,
|
|
'order_state' => ORDER_STATE_SUCCESS,
|
|
'order_state' => ORDER_STATE_SUCCESS,
|
|
'vr_order.order_id' => ['gt', $start],
|
|
'vr_order.order_id' => ['gt', $start],
|
|
- 'store_id' => 33
|
|
|
|
|
|
+ 'store_id' => 33,
|
|
|
|
+ 'order_time' => ['lt', strtotime("2023-05-24 15:00:00")]
|
|
];
|
|
];
|
|
|
|
|
|
$items = $mod->table('refill_order,vr_order')
|
|
$items = $mod->table('refill_order,vr_order')
|
|
->field('refill_order.order_id')
|
|
->field('refill_order.order_id')
|
|
->where($cond)
|
|
->where($cond)
|
|
->join('inner')->on('refill_order.order_id=vr_order.order_id')
|
|
->join('inner')->on('refill_order.order_id=vr_order.order_id')
|
|
- ->limit("$start,100")
|
|
|
|
|
|
+ ->limit("0,100")
|
|
->select();
|
|
->select();
|
|
if(empty($items)) break;
|
|
if(empty($items)) break;
|
|
|
|
|