新增问诊类型

This commit is contained in:
wucongxing 2023-04-11 11:10:02 +08:00
parent 3935c8827b
commit bb4dc3c710
4 changed files with 19 additions and 7 deletions

View File

@ -199,6 +199,10 @@ class SendStationMessageConsumer extends ConsumerMessage
$notice_data['notice_system_type'] = $push_data['notice_system_type'] ; $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; $notice_data['read_status'] = 0;
if (isset($push_data['from_name'])){ if (isset($push_data['from_name'])){

View File

@ -11,6 +11,7 @@ use Extend\Prescription\Prescription;
use Hyperf\Command\Command as HyperfCommand; use Hyperf\Command\Command as HyperfCommand;
use Hyperf\Command\Annotation\Command; use Hyperf\Command\Annotation\Command;
use Hyperf\DbConnection\Db; use Hyperf\DbConnection\Db;
use Hyperf\Utils\Coroutine\Concurrent;
use Psr\Container\ContainerInterface; use Psr\Container\ContainerInterface;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
@ -40,12 +41,16 @@ class getProductCommand extends HyperfCommand
$prescription = new Prescription(); $prescription = new Prescription();
$page = 1; $page = 1;
$page_size = 10; $page_size = 100;
$result = $prescription->getProd(1, 10); $result = $prescription->getProd(1, 100);
if (!empty($result['rows'])){ if (!empty($result['rows'])){
$concurrent = new Concurrent(10);
foreach ($result['rows'] as $item) { foreach ($result['rows'] as $item) {
$concurrent->create(function () use($item) {
// 执行入库 // 执行入库
$this->handleData($item); $this->handleData($item);
});
} }
$count = ceil($result['count'] / $page * $page_size); $count = ceil($result['count'] / $page * $page_size);
@ -54,8 +59,10 @@ class getProductCommand extends HyperfCommand
for ($i = 2; $i < $count; $i++) { for ($i = 2; $i < $count; $i++) {
$result = $prescription->getProd($i, $page_size); $result = $prescription->getProd($i, $page_size);
foreach ($result['rows'] as $item) { foreach ($result['rows'] as $item) {
$concurrent->create(function () use($item) {
// 执行入库 // 执行入库
$this->handleData($item); $this->handleData($item);
});
} }
} }
} }

View File

@ -35,6 +35,7 @@ use Extend\RegulatoryPlatform\regulatoryPlatform;
use Hyperf\Amqp\Producer; use Hyperf\Amqp\Producer;
use Hyperf\DbConnection\Db; use Hyperf\DbConnection\Db;
use Hyperf\Utils\ApplicationContext; use Hyperf\Utils\ApplicationContext;
use Hyperf\Utils\Coroutine\Concurrent;
use Imagick; use Imagick;
use Intervention\Image\ImageManager; use Intervention\Image\ImageManager;
use Spatie\PdfToImage\Pdf; use Spatie\PdfToImage\Pdf;

View File

@ -351,7 +351,7 @@ class OrderInquiry extends Model
{ {
$raw = self::where($params) $raw = self::where($params)
->whereIn('inquiry_status',$inquiry_status_params) ->whereIn('inquiry_status',$inquiry_status_params)
->orderBy('created_at','desc') ->orderBy('complete_time','desc')
->paginate($per_page, $fields, "page", $page); ->paginate($per_page, $fields, "page", $page);
$data = array(); $data = array();