mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
鲜花2.0-接口测试bug修复
This commit is contained in:
parent
6b20a06619
commit
e2eb40185f
@ -3,7 +3,6 @@
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Http\Service\MessageService;
|
||||
use App\Models\GoodsSku;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@ -51,7 +50,7 @@ class CheckPrice extends Command
|
||||
, 'b.cost','a.created_at','a.business_order_id')
|
||||
->leftJoin('goods_skus as b', 'a.external_sku_id', '=', 'b.external_sku_id')
|
||||
->whereBetween('a.created_at', [$startTime,$endTime])
|
||||
->havingRaw('goods_price < cost')
|
||||
->whereRaw('a.goods_price / 100 < cost')
|
||||
->get();
|
||||
if($results->isNotEmpty()){
|
||||
Log::info($startTime.'异常订单',$results->toArray());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user