新增问诊类型
This commit is contained in:
parent
3935c8827b
commit
bb4dc3c710
@ -199,6 +199,10 @@ class SendStationMessageConsumer extends ConsumerMessage
|
||||
$notice_data['notice_system_type'] = $push_data['notice_system_type'] ;
|
||||
}
|
||||
|
||||
if (isset($push_data['inquiry_type'])){
|
||||
$notice_data['inquiry_type'] = $push_data['inquiry_type'] ;
|
||||
}
|
||||
|
||||
$notice_data['read_status'] = 0;
|
||||
|
||||
if (isset($push_data['from_name'])){
|
||||
|
||||
@ -11,6 +11,7 @@ use Extend\Prescription\Prescription;
|
||||
use Hyperf\Command\Command as HyperfCommand;
|
||||
use Hyperf\Command\Annotation\Command;
|
||||
use Hyperf\DbConnection\Db;
|
||||
use Hyperf\Utils\Coroutine\Concurrent;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
|
||||
@ -40,12 +41,16 @@ class getProductCommand extends HyperfCommand
|
||||
$prescription = new Prescription();
|
||||
|
||||
$page = 1;
|
||||
$page_size = 10;
|
||||
$result = $prescription->getProd(1, 10);
|
||||
$page_size = 100;
|
||||
$result = $prescription->getProd(1, 100);
|
||||
if (!empty($result['rows'])){
|
||||
$concurrent = new Concurrent(10);
|
||||
|
||||
foreach ($result['rows'] as $item) {
|
||||
$concurrent->create(function () use($item) {
|
||||
// 执行入库
|
||||
$this->handleData($item);
|
||||
});
|
||||
}
|
||||
|
||||
$count = ceil($result['count'] / $page * $page_size);
|
||||
@ -54,8 +59,10 @@ class getProductCommand extends HyperfCommand
|
||||
for ($i = 2; $i < $count; $i++) {
|
||||
$result = $prescription->getProd($i, $page_size);
|
||||
foreach ($result['rows'] as $item) {
|
||||
$concurrent->create(function () use($item) {
|
||||
// 执行入库
|
||||
$this->handleData($item);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,6 +35,7 @@ use Extend\RegulatoryPlatform\regulatoryPlatform;
|
||||
use Hyperf\Amqp\Producer;
|
||||
use Hyperf\DbConnection\Db;
|
||||
use Hyperf\Utils\ApplicationContext;
|
||||
use Hyperf\Utils\Coroutine\Concurrent;
|
||||
use Imagick;
|
||||
use Intervention\Image\ImageManager;
|
||||
use Spatie\PdfToImage\Pdf;
|
||||
|
||||
@ -351,7 +351,7 @@ class OrderInquiry extends Model
|
||||
{
|
||||
$raw = self::where($params)
|
||||
->whereIn('inquiry_status',$inquiry_status_params)
|
||||
->orderBy('created_at','desc')
|
||||
->orderBy('complete_time','desc')
|
||||
->paginate($per_page, $fields, "page", $page);
|
||||
|
||||
$data = array();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user