main
yanzai 5 months ago
commit 018bbf39c5

@ -0,0 +1,18 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2
[docker-compose.yml]
indent_size = 4

@ -0,0 +1,55 @@
APP_NAME=鹿和开发套件
APP_ENV=local
APP_KEY=base64:rr96HBMDJ8Otojf7W7BZcX3oDYnkZJCBHQb0ctDFl0c=
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000
REQUEST_LOG=true
TIMEZONE=Asia/Shanghai
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=auth.db
DB_USERNAME=root
DB_PASSWORD=a.123456
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=smtp.mail.com
MAIL_PORT=465
MAIL_USERNAME=mail@mail.com
MAIL_PASSWORD=000000
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=mail@mail.com
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

10
.gitattributes vendored

@ -0,0 +1,10 @@
* text=auto
*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php
/.github export-ignore
CHANGELOG.md export-ignore

24
.gitignore vendored

@ -0,0 +1,24 @@
/node_modules
/public/hot
/public/storage
/storage/app/public/assets/upload
/storage/*.key
/vendor
.env
.env.backup
.env.online
.env.dev
.phpunit.result.cache
docker-compose.override.yml
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
composer.lock
/.idea
/.vscode
/storage/app/forbidden
/public/*.txt
.env.local
public/.htaccess
public/nginx.htaccess

@ -0,0 +1,14 @@
php:
preset: laravel
version: 8
disabled:
- no_unused_imports
finder:
not-name:
- index.php
- server.php
js:
finder:
not-name:
- webpack.mix.js
css: true

@ -0,0 +1,22 @@
create table admin_accounts
(
id bigint unsigned auto_increment
primary key,
admin_id bigint not null,
account varchar(50) not null,
secret varchar(80) not null,
type tinyint not null comment '1-账号密码',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index admin_accounts_account_index
on admin_accounts (account);
create index admin_accounts_admin_id_index
on admin_accounts (admin_id);
INSERT INTO lkpe.admin_accounts (id, admin_id, account, secret, type, del, created_at, updated_at) VALUES (1, 1, 'admin', '$2y$10$RrkVbwgR7plyKBJA.82onul9Sv9iyLKqmJDN7bRmFY4b6.45C5Qsi', 1, 2, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.admin_accounts (id, admin_id, account, secret, type, del, created_at, updated_at) VALUES (2, 2, 'TEST_ADMIN_01', '$2y$10$KOdF2w9ebVB2QaKVjBaTcO53kbslyoGYysOvmHNHq.30ezd1t8z6q', 1, 2, '2023-06-09 15:31:02', '2023-06-09 15:31:02');

@ -0,0 +1,14 @@
create table admin_auths
(
id bigint unsigned auto_increment
primary key,
name varchar(20) not null comment '名称',
auth_ids varchar(1000) not null comment '权限IDS JSON',
remark varchar(100) not null comment '备注',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.admin_auths (id, name, auth_ids, remark, del, created_at, updated_at) VALUES (1, '医院最高权限', '["22","23","24","25","26","27","28"]', '', 2, '2023-06-09 15:56:40', '2023-06-09 22:13:43');

@ -0,0 +1,57 @@
create table admin_tokens
(
id bigint unsigned auto_increment
primary key,
admin_id bigint not null comment '账号ID',
token varchar(50) not null comment 'TOKEN',
type tinyint not null comment '1-后台',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index admin_tokens_admin_id_index
on admin_tokens (admin_id);
create index admin_tokens_token_index
on admin_tokens (token);
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (1, 1, '98df5399-19dd-4ce8-8d54-00aa18b8f2fc', 1, 2, '2023-04-07 14:37:56', '2023-04-09 00:59:27');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (2, 1, '98e149db-1544-4f22-a447-2a021d0908b8', 1, 2, '2023-04-08 14:02:21', '2023-04-08 14:08:15');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (3, 1, '98e50b68-4b02-4b5b-a2ad-524decbf5f89', 1, 2, '2023-04-10 10:51:03', '2023-04-12 10:57:58');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (4, 1, '98e913e1-9670-4540-b437-da221f6592e3', 1, 2, '2023-04-12 10:58:03', '2023-04-13 09:20:02');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (5, 1, '98eaf3d4-d770-45fd-938c-e431e3e52596', 1, 2, '2023-04-13 09:20:05', '2023-04-13 13:08:09');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (6, 1, '993d7322-2347-4eb8-acd7-582d9cc16f7d', 1, 2, '2023-05-24 09:33:56', '2023-05-26 11:11:38');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (7, 1, '99419c0f-31e5-440c-84cf-728dfc209e69', 1, 2, '2023-05-26 11:11:41', '2023-05-28 10:52:35');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (8, 1, '9949f7b4-fa54-48d6-8cb1-4ecf7d21df26', 1, 2, '2023-05-30 14:54:34', '2023-05-30 14:54:56');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (9, 1, '994e3be7-0ec9-4eaf-9c68-6736b2c42be2', 1, 2, '2023-06-01 17:48:34', '2023-06-01 17:55:56');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (10, 1, '9950cb48-d279-4d81-b027-f0232c62d79f', 1, 2, '2023-06-03 00:21:09', '2023-06-03 01:16:05');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (11, 1, '9956027f-7b16-4f78-a2bb-dfc07cb93f02', 1, 2, '2023-06-05 14:34:41', '2023-06-05 14:39:39');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (12, 1, '99566836-23ac-4979-b3ff-c22fe1ff3e13', 1, 2, '2023-06-05 19:19:06', '2023-06-06 10:51:15');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (13, 1, '9957db7f-9b0a-4375-a2ad-aa589a17bef9', 1, 2, '2023-06-06 12:37:17', '2023-06-06 17:20:54');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (14, 1, '995b9997-f43b-43d0-9ac1-06da5a99f78b', 1, 2, '2023-06-08 09:16:19', '2023-06-08 09:26:59');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (15, 1, '995c1b8b-c09b-46d8-9269-a302757013eb', 1, 2, '2023-06-08 15:19:41', '2023-06-08 21:32:39');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (16, 1, '995d0192-3448-459c-8b7e-54c79cce1d70', 1, 2, '2023-06-09 02:02:53', '2023-06-09 22:15:47');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (17, 1, '995eabd1-23b0-472a-b584-5826ca92c6d4', 1, 2, '2023-06-09 21:54:45', '2023-06-09 23:51:23');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (18, 2, '995eb3f5-4e35-4923-a122-4ded017ecfbf', 1, 2, '2023-06-09 22:17:31', '2023-06-09 22:22:49');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (19, 1, '995eb618-9b2a-4eed-861e-0ad94c061e73', 1, 2, '2023-06-09 22:23:30', '2023-06-09 22:44:28');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (20, 2, '995ebda5-6f6e-436a-b5ad-16c506cc8830', 1, 2, '2023-06-09 22:44:37', '2023-06-10 00:23:41');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (21, 1, '995ecf66-f020-4605-803e-577d471b4a86', 1, 2, '2023-06-09 23:34:16', '2023-06-09 23:34:16');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (22, 2, '995ee11a-1af6-44f8-9d25-34212fbc27c1', 1, 2, '2023-06-10 00:23:45', '2023-06-10 00:23:47');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (23, 2, '995ee21b-775a-4661-b2e0-b3ef898c38a8', 1, 2, '2023-06-10 00:26:34', '2023-06-10 00:35:42');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (24, 2, '995ee5b4-8b95-4502-a97c-3a757cf47436', 1, 2, '2023-06-10 00:36:37', '2023-06-10 00:36:39');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (25, 2, '995ee68b-0110-435b-8a29-c67d5e92cdca', 1, 2, '2023-06-10 00:38:58', '2023-06-10 00:39:01');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (26, 2, '995ee6be-bc69-47dd-9aba-3a0a547f82eb', 1, 2, '2023-06-10 00:39:32', '2023-06-10 00:39:34');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (27, 2, '995ee713-8ec4-4674-8fb3-248d6e1fe585', 1, 2, '2023-06-10 00:40:27', '2023-06-10 00:40:50');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (28, 2, '995ee7d8-e871-42f7-b1de-ed938685f4a3', 1, 2, '2023-06-10 00:42:37', '2023-06-10 00:45:34');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (29, 2, '995ee99a-14b3-4d67-bf46-3da7e044d4f2', 1, 2, '2023-06-10 00:47:31', '2023-06-10 10:20:40');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (30, 1, '995fb71a-acf1-4964-bcc5-79eb7ddc950d', 1, 2, '2023-06-10 10:22:09', '2023-06-10 12:18:18');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (31, 2, '995fe0c6-2fde-42f7-8a47-7b09c1a7d912', 1, 2, '2023-06-10 12:18:40', '2023-06-10 12:20:12');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (32, 2, '995fe1bf-5cb2-4f4e-b114-023b243b55a5', 1, 2, '2023-06-10 12:21:23', '2023-06-10 12:21:34');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (33, 2, '995fe228-8006-4977-a2ee-a9f114fe76ae', 1, 2, '2023-06-10 12:22:32', '2023-06-10 12:28:46');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (34, 1, '99600d74-4b58-4cd7-8ee2-0f84130f319d', 1, 2, '2023-06-10 14:23:36', '2023-06-10 14:27:55');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (35, 1, '99600f08-a80e-483a-9e8a-9a68cf578056', 1, 2, '2023-06-10 14:28:01', '2023-06-10 14:29:02');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (36, 2, '99600f7d-85c5-4cee-9b23-27f2f74872e2', 1, 2, '2023-06-10 14:29:17', '2023-06-10 14:37:47');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (37, 1, '9960130e-f5fd-44a9-8885-3a4569af3b10', 1, 2, '2023-06-10 14:39:16', '2023-06-10 23:11:37');
INSERT INTO lkpe.admin_tokens (id, admin_id, token, type, del, created_at, updated_at) VALUES (38, 2, '9960ca5c-8307-4cba-a12e-2b650bdc2068', 1, 2, '2023-06-10 23:11:49', '2023-06-10 23:48:30');

@ -0,0 +1,19 @@
create table admins
(
id bigint unsigned auto_increment
primary key,
nickname varchar(30) not null comment '名称',
admin_auth_id int not null comment '权限ID',
status tinyint default 1 not null comment '1-正常 2-禁用',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null,
hospital bigint not null
)
collate = utf8mb4_unicode_ci;
create index admins_hospital_index
on admins (hospital);
INSERT INTO lkpe.admins (id, nickname, admin_auth_id, status, del, created_at, updated_at, hospital) VALUES (1, '超级管理员', -1, 1, 2, '2023-04-06 23:01:36', '2023-04-06 23:01:36', 0);
INSERT INTO lkpe.admins (id, nickname, admin_auth_id, status, del, created_at, updated_at, hospital) VALUES (2, '测试医院管理员', 1, 1, 2, '2023-06-09 15:31:02', '2023-06-09 22:15:44', 1);

@ -0,0 +1,78 @@
create table analysis_types
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
name varchar(50) not null,
`range` varchar(200) default '["min","max"]' not null,
`desc` varchar(50) not null,
color varchar(8) not null,
mark varchar(50) not null,
content varchar(2000) not null,
type tinyint not null comment '1-临床生化 2-临床免疫 3-常规',
status tinyint default 1 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index analysis_types_hospital_index
on analysis_types (hospital);
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (1, 0, '空腹血糖分析', '{"s":"1","r":["0","min","max","10"],"l":["偏低","正常","偏高"]}', '空腹血糖变化趋势分析', '#78A155', 'KFPTT', '空腹血糖分析
', 1, 1, '2023-03-20 14:42:43', '2023-06-03 00:45:11');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (2, 0, '甘油三酯分析', '{"s":"0.2","r":["min","max","2"],"l":["正常","偏高"]}', '甘油三酯变化趋势分析', '#58D818', 'GYSZ', '甘油三酯分析
1.尿退
2.α-β', 1, 1, '2023-03-20 14:42:43', '2023-03-29 11:30:21');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (3, 0, '总胆固醇分析', '{"s":"1","r":["min","max","10"],"l":["正常","偏高"]}', '总胆固醇变化趋势分析', '#CA6D6A', 'ZDGC', '总胆固醇分析
1尿
2', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:25:33');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (4, 0, '高密度总胆固醇', '{"s":"0.2","r":["0","min","max","2"],"l":["偏低","正常","偏高"]}', '高密度总胆固醇变化趋势分析', '#C45E16', 'GMDZDBDGC', '高密度总胆固醇
HDL寿E
尿
HDL-C
HDL
尿', 1, 1, '2023-03-20 14:42:43', '2023-03-27 15:33:45');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (5, 0, '低密度总胆固醇', '{"s":"0.5","r":["min","max","5"],"l":["正常","偏高"]}', '低密度总胆固醇变化趋势分析', '#DFC039', 'DMDZDBDGC', '低密度总胆固醇
', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:28:09');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (6, 0, 'Y-谷氨酰基转肽酶GGT', '{"s":"10","r":["0","min","max","80"],"l":["偏低","正常","偏高"]}', 'Y-谷氨酰基转肽酶GGT趋势分析', '#D38014', 'QDYE4000HzZ', 'Y-谷氨酰基转肽酶GGT
1.γ-γ-GT
2.
3.γ-GT
4.
5.γ-GTγ-GTγ-GT
6.γ-', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:33:52');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (7, 0, '丙氨酸氨基转移酶', '{"s":"10","r":["0","min","max","80"],"l":["偏低","正常","偏高"]}', '丙氨酸氨基转移酶趋势分析', '#C25202', 'BASAJZYM', '丙氨酸氨基转移酶
尿', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:32:40');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (8, 0, '天门冬氨酸氨基转移酶', '{"s":"10","r":["0","min","max","80"],"l":["偏低","正常","偏高"]}', '天门冬氨酸氨基转移酶变化趋势分析', '#01739A', 'TMDASAJZYM', '天门冬氨酸氨基转移酶
 ()  (ALT)(AST)/(ALT)>1  ', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:34:48');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (9, 0, '尿酸', '{"s":"50","r":["0","min","max","500"],"l":["偏低","正常","偏高"]}', '尿酸趋势分析', '#DFC039', 'NS', '尿酸
尿
1尿尿尿尿
2尿尿
3退尿
4仿尿
尿
尿', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:36:19');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (10, 0, '甲胎蛋白', '{"s":"0.2","r":["0","min","max","8"],"l":["偏低","正常","偏高"]}', '甲胎蛋白变化趋势分析', '#A3433F', 'KFPTT', '甲胎蛋白
1.AFPAFP
2.AFP60%70%AFPAFP
3.AFP1000ug/L
4.AFP2-3AFP
5.', 2, 1, '2023-03-20 14:42:43', '2023-03-29 12:38:55');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (11, 0, '体重分析', '{"s":"5","r":["0","min","max","40"],"l":["偏低","正常","偏高"]}', '分析体重BMI指数', '#DC7948', 'TZZS', '体重分析
BMI尿', 3, 1, '2023-03-27 11:18:20', '2023-03-29 10:59:52');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (12, 0, '舒张压', '{"s":"30","r":["0","min","max","120"],"l":["偏低","正常","偏高"]}', '血压低趋势分析', '#ECC266', 'SZY', '血压
1.
2.
3.', 3, 1, '2023-03-27 11:19:52', '2023-04-03 14:22:07');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (13, 0, '癌胚抗原', '{"s":"2","r":["min","max","10"],"l":["正常","偏高"]}', '癌胚抗原变化趋势分析', '#C7F070', 'APKY', '癌胚抗原
CEA尿尿15%53%CEACEA
访', 2, 1, '2023-03-27 11:22:23', '2023-03-29 12:40:12');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (14, 0, '收缩压', '{"s":"30","r":["50","min","max","180"],"l":["偏低","正常","偏高"]}', '收缩压趋势分析', '#DD6565', 'SSY', '血压
1.
2.
3.', 3, 1, '2023-04-03 14:13:46', '2023-04-03 14:23:27');

@ -0,0 +1,30 @@
create table appointment_holidays
(
id bigint unsigned auto_increment
primary key,
year year not null,
date date not null,
type tinyint not null comment '1:工作日, 2:节假日',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index appointment_holidays_date_index
on appointment_holidays (date);
create index appointment_holidays_year_index
on appointment_holidays (year);
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (1, 2023, '2023-04-29', 1, '2023-04-08 22:18:16', '2023-04-08 22:18:16');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (2, 2023, '2023-04-30', 1, '2023-04-08 22:18:18', '2023-04-08 22:18:18');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (3, 2023, '2023-05-01', 1, '2023-04-08 22:18:25', '2023-04-08 22:18:25');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (4, 2023, '2023-05-02', 1, '2023-04-08 22:18:27', '2023-04-08 22:18:27');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (5, 2023, '2023-05-03', 1, '2023-04-08 22:18:30', '2023-04-08 22:18:30');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (6, 2023, '2023-04-23', 2, '2023-04-08 22:22:06', '2023-04-08 22:22:06');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (7, 2023, '2023-05-06', 2, '2023-04-08 22:23:28', '2023-04-08 22:23:28');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (8, 2023, '2023-04-05', 1, '2023-04-08 22:23:35', '2023-04-08 22:23:35');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (9, 2023, '2023-06-22', 1, '2023-04-08 22:23:55', '2023-04-08 22:23:55');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (10, 2023, '2023-06-23', 1, '2023-04-08 22:23:57', '2023-04-08 22:23:57');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (11, 2023, '2023-06-24', 1, '2023-04-08 22:24:01', '2023-04-08 22:24:01');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (12, 2023, '2023-06-25', 2, '2023-04-08 22:24:02', '2023-04-08 22:24:02');

@ -0,0 +1,25 @@
create table appointment_templates
(
id bigint unsigned auto_increment
primary key,
name varchar(50) not null,
weeks varchar(50) not null,
weekday tinyint not null,
holidays tinyint not null,
start_time time not null,
end_time time not null,
stop_time time not null,
max_count bigint not null,
created_at timestamp null,
updated_at timestamp null,
hospital bigint default 0 not null
)
collate = utf8mb4_unicode_ci;
create index appointment_templates_hospital_index
on appointment_templates (hospital);
INSERT INTO lkpe.appointment_templates (id, name, weeks, weekday, holidays, start_time, end_time, stop_time, max_count, created_at, updated_at, hospital) VALUES (1, '计划模板', '["1","2","3","4","5"]', 1, 2, '08:00:00', '13:00:00', '07:00:00', 30, '2023-04-08 02:06:07', '2023-04-10 10:52:06', 0);
INSERT INTO lkpe.appointment_templates (id, name, weeks, weekday, holidays, start_time, end_time, stop_time, max_count, created_at, updated_at, hospital) VALUES (2, '下午', '["1","2","3","4","5"]', 1, 2, '14:00:00', '17:00:00', '13:00:00', 20, '2023-04-09 00:59:02', '2023-04-09 00:59:02', 0);
INSERT INTO lkpe.appointment_templates (id, name, weeks, weekday, holidays, start_time, end_time, stop_time, max_count, created_at, updated_at, hospital) VALUES (3, '晚上', '["1","4","2","5","3"]', 1, 2, '18:00:00', '20:00:00', '19:00:00', 30, '2023-04-10 10:51:57', '2023-04-10 10:51:57', 0);
INSERT INTO lkpe.appointment_templates (id, name, weeks, weekday, holidays, start_time, end_time, stop_time, max_count, created_at, updated_at, hospital) VALUES (4, '测试医院机构模板', '["1","2","3","5","4","6","7"]', 1, 2, '05:00:00', '18:00:00', '17:00:00', 30, '2023-06-10 11:03:52', '2023-06-10 11:03:52', 1);

@ -0,0 +1,380 @@
create table appointments
(
id bigint unsigned auto_increment
primary key,
date date not null,
week tinyint not null,
start_time time not null,
end_time time not null,
stop_time time not null,
max_count bigint not null,
used_count bigint not null,
hospital bigint not null,
status tinyint not null,
del tinyint default 2 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index appointments_date_index
on appointments (date);
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (1, '2023-04-03', 1, '08:00:00', '13:00:00', '07:00:00', 30, -1, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (2, '2023-04-04', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (3, '2023-04-05', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (4, '2023-04-06', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (5, '2023-04-07', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (6, '2023-04-10', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (7, '2023-04-11', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (8, '2023-04-12', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (9, '2023-04-13', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (10, '2023-04-14', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (11, '2023-04-17', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (12, '2023-04-18', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (13, '2023-04-19', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (14, '2023-04-20', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (15, '2023-04-21', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (16, '2023-04-23', 7, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (17, '2023-04-24', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (18, '2023-04-25', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (19, '2023-04-26', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (20, '2023-04-27', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (21, '2023-04-28', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (22, '2023-05-01', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 1, '2023-04-09 00:55:45', '2023-04-10 15:33:18');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (23, '2023-05-02', 2, '08:00:00', '13:00:00', '07:00:00', 50, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-10 15:32:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (24, '2023-05-03', 3, '08:00:00', '13:00:00', '07:00:00', 50, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-10 15:32:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (25, '2023-05-04', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (26, '2023-05-05', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (27, '2023-05-06', 6, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (28, '2023-05-08', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (29, '2023-05-09', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (30, '2023-05-10', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (31, '2023-05-11', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (32, '2023-05-12', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (33, '2023-05-15', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (34, '2023-05-16', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (35, '2023-05-17', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (36, '2023-05-18', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (37, '2023-05-19', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (38, '2023-05-22', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (39, '2023-05-23', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (40, '2023-05-24', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (41, '2023-05-25', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (42, '2023-05-26', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (43, '2023-05-29', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (44, '2023-05-30', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (45, '2023-05-31', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (46, '2023-06-01', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (47, '2023-06-02', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (48, '2023-06-05', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (49, '2023-06-06', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (50, '2023-06-07', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (51, '2023-06-08', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (52, '2023-06-09', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (53, '2023-06-12', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (54, '2023-06-13', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (55, '2023-06-14', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (56, '2023-06-15', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (57, '2023-06-16', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (58, '2023-06-19', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (59, '2023-06-20', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (60, '2023-06-21', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (61, '2023-06-22', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (62, '2023-06-23', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (63, '2023-06-25', 7, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (64, '2023-06-26', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (65, '2023-06-27', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (66, '2023-06-28', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (67, '2023-06-29', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (68, '2023-06-30', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (69, '2023-07-03', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (70, '2023-07-04', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (71, '2023-07-05', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (72, '2023-07-06', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (73, '2023-07-07', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (74, '2023-07-10', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (75, '2023-07-11', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (76, '2023-07-12', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (77, '2023-07-13', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (78, '2023-07-14', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (79, '2023-07-17', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (80, '2023-07-18', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (81, '2023-07-19', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (82, '2023-07-20', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (83, '2023-07-21', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (84, '2023-07-24', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (85, '2023-07-25', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (86, '2023-07-26', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (87, '2023-07-27', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (88, '2023-07-28', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-09 00:55:45', '2023-04-09 00:55:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (89, '2023-04-03', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (90, '2023-04-04', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (91, '2023-04-06', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (92, '2023-04-07', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (93, '2023-04-10', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (94, '2023-04-11', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (95, '2023-04-12', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (96, '2023-04-13', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (97, '2023-04-14', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (98, '2023-04-17', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (99, '2023-04-18', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (100, '2023-04-19', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (101, '2023-04-20', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (102, '2023-04-21', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (103, '2023-04-23', 7, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (104, '2023-04-24', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (105, '2023-04-25', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (106, '2023-04-26', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (107, '2023-04-27', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (108, '2023-04-28', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (109, '2023-05-04', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (110, '2023-05-05', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (111, '2023-05-06', 6, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (112, '2023-05-08', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (113, '2023-05-09', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (114, '2023-05-10', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (115, '2023-05-11', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (116, '2023-05-12', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (117, '2023-05-15', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (118, '2023-05-16', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (119, '2023-05-17', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (120, '2023-05-18', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (121, '2023-05-19', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (122, '2023-05-22', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (123, '2023-05-23', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (124, '2023-05-24', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (125, '2023-05-25', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (126, '2023-05-26', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (127, '2023-05-29', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (128, '2023-05-30', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (129, '2023-05-31', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (130, '2023-06-01', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (131, '2023-06-02', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (132, '2023-06-05', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (133, '2023-06-06', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (134, '2023-06-07', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (135, '2023-06-08', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (136, '2023-06-09', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (137, '2023-06-12', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (138, '2023-06-13', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (139, '2023-06-14', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (140, '2023-06-15', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (141, '2023-06-16', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (142, '2023-06-19', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (143, '2023-06-20', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (144, '2023-06-21', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (145, '2023-06-25', 7, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (146, '2023-06-26', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (147, '2023-06-27', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (148, '2023-06-28', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (149, '2023-06-29', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (150, '2023-06-30', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (151, '2023-07-03', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (152, '2023-07-04', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (153, '2023-07-05', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (154, '2023-07-06', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (155, '2023-07-07', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (156, '2023-07-10', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (157, '2023-07-11', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (158, '2023-07-12', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (159, '2023-07-13', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (160, '2023-07-14', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (161, '2023-07-17', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (162, '2023-07-18', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (163, '2023-07-19', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (164, '2023-07-20', 4, '14:00:00', '17:00:00', '13:00:00', 20, 0, 2, 1, 2, '2023-04-09 00:59:27', '2023-04-09 00:59:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (165, '2023-04-03', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (166, '2023-04-04', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (167, '2023-04-06', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (168, '2023-04-07', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (169, '2023-04-10', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (170, '2023-04-11', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (171, '2023-04-12', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (172, '2023-04-13', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (173, '2023-04-14', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (174, '2023-04-17', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (175, '2023-04-18', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (176, '2023-04-19', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (177, '2023-04-20', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (178, '2023-04-21', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (179, '2023-04-23', 7, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (180, '2023-04-24', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (181, '2023-04-25', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (182, '2023-04-26', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (183, '2023-04-27', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (184, '2023-04-28', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (185, '2023-05-04', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (186, '2023-05-05', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (187, '2023-05-06', 6, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (188, '2023-05-08', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (189, '2023-05-09', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (190, '2023-05-10', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (191, '2023-05-11', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (192, '2023-05-12', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (193, '2023-05-15', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (194, '2023-05-16', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (195, '2023-05-17', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (196, '2023-05-18', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (197, '2023-05-19', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (198, '2023-05-22', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (199, '2023-05-23', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (200, '2023-05-24', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (201, '2023-05-25', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (202, '2023-05-26', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (203, '2023-05-29', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (204, '2023-05-30', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (205, '2023-05-31', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (206, '2023-06-01', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (207, '2023-06-02', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (208, '2023-06-05', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (209, '2023-06-06', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (210, '2023-06-07', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (211, '2023-06-08', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (212, '2023-06-09', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (213, '2023-06-12', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (214, '2023-06-13', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (215, '2023-06-14', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (216, '2023-06-15', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (217, '2023-06-16', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (218, '2023-06-19', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (219, '2023-06-20', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (220, '2023-06-21', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (221, '2023-06-25', 7, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (222, '2023-06-26', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (223, '2023-06-27', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (224, '2023-06-28', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (225, '2023-06-29', 4, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (226, '2023-06-30', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 2, 1, 2, '2023-04-10 10:52:29', '2023-04-10 10:52:29');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (227, '2023-04-03', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (228, '2023-04-04', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (229, '2023-04-06', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (230, '2023-04-07', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (231, '2023-04-10', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (232, '2023-04-11', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (233, '2023-04-12', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (234, '2023-04-13', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (235, '2023-04-14', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (236, '2023-04-17', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (237, '2023-04-18', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (238, '2023-04-19', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (239, '2023-04-20', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (240, '2023-04-21', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (241, '2023-04-23', 7, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (242, '2023-04-24', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (243, '2023-04-25', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (244, '2023-04-26', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (245, '2023-04-27', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (246, '2023-04-28', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (247, '2023-05-04', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (248, '2023-05-05', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (249, '2023-05-06', 6, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (250, '2023-05-08', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (251, '2023-05-09', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (252, '2023-05-10', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (253, '2023-05-11', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (254, '2023-05-12', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (255, '2023-05-15', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (256, '2023-05-16', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (257, '2023-05-17', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (258, '2023-05-18', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (259, '2023-05-19', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (260, '2023-05-22', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (261, '2023-05-23', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (262, '2023-05-24', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (263, '2023-05-25', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (264, '2023-05-26', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (265, '2023-05-29', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (266, '2023-05-30', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-04-10 11:02:14', '2023-04-10 11:02:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (267, '2023-05-31', 3, '08:00:00', '13:00:00', '07:00:00', 30, -1, 1, 1, 2, '2023-04-10 11:02:14', '2023-05-30 14:42:45');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (268, '2023-05-01', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 2, '2023-04-10 14:24:41', '2023-04-10 14:24:41');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (269, '2023-05-02', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 1, '2023-04-10 14:24:41', '2023-04-10 15:06:11');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (270, '2023-05-03', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 2, 1, 1, '2023-04-10 14:24:41', '2023-04-10 15:06:11');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (271, '2023-05-26', 5, '14:00:00', '17:00:00', '13:00:00', 20, 0, 1, 1, 2, '2023-05-27 11:20:53', '2023-05-27 11:20:53');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (272, '2023-05-29', 1, '14:00:00', '17:00:00', '13:00:00', 20, 0, 1, 1, 2, '2023-05-27 11:20:53', '2023-05-27 11:20:53');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (273, '2023-05-30', 2, '14:00:00', '17:00:00', '13:00:00', 20, 0, 1, 1, 2, '2023-05-27 11:20:53', '2023-05-30 11:15:16');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (274, '2023-05-31', 3, '14:00:00', '17:00:00', '13:00:00', 20, 0, 1, 1, 2, '2023-05-27 11:20:53', '2023-05-27 11:20:53');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (275, '2023-05-26', 5, '18:00:00', '20:00:00', '19:00:00', 30, 0, 1, 1, 2, '2023-05-27 11:22:41', '2023-05-27 11:22:41');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (276, '2023-05-29', 1, '18:00:00', '20:00:00', '19:00:00', 30, 0, 1, 1, 2, '2023-05-27 11:22:41', '2023-05-27 11:22:41');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (277, '2023-05-30', 2, '18:00:00', '20:00:00', '19:00:00', 30, 0, 1, 1, 2, '2023-05-27 11:22:41', '2023-05-27 11:22:41');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (278, '2023-05-31', 3, '18:00:00', '20:00:00', '19:00:00', 30, 0, 1, 1, 2, '2023-05-27 11:22:41', '2023-05-30 14:12:51');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (279, '2023-06-01', 4, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 14:55:12');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (280, '2023-06-02', 5, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 16:02:22');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (281, '2023-06-05', 1, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 16:04:43');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (282, '2023-06-06', 2, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 17:06:25');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (283, '2023-06-07', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 17:21:02');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (284, '2023-06-08', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 17:40:47');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (285, '2023-06-09', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 14:54:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (286, '2023-06-12', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 14:54:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (287, '2023-06-13', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 14:54:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (288, '2023-06-14', 3, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-06-01 16:46:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (289, '2023-06-15', 4, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-06-01 16:48:38');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (290, '2023-06-16', 5, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-06-10 23:29:55');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (291, '2023-06-19', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-06-10 23:00:53');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (292, '2023-06-20', 2, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 14:54:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (293, '2023-06-21', 3, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 14:54:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (294, '2023-06-25', 7, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 14:54:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (295, '2023-06-26', 1, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-05-30 14:54:56');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (296, '2023-06-27', 2, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-06-10 23:40:11');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (297, '2023-06-28', 3, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-06-10 23:33:39');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (298, '2023-06-29', 4, '08:00:00', '13:00:00', '07:00:00', 30, 1, 1, 1, 2, '2023-05-30 14:54:56', '2023-06-10 23:32:33');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (299, '2023-06-30', 5, '08:00:00', '13:00:00', '07:00:00', 30, 0, 1, 1, 2, '2023-05-30 14:54:56', '2023-06-01 16:53:06');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (300, '2023-06-01', 4, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (301, '2023-06-02', 5, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (302, '2023-06-03', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (303, '2023-06-04', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (304, '2023-06-05', 1, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (305, '2023-06-06', 2, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (306, '2023-06-07', 3, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (307, '2023-06-08', 4, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (308, '2023-06-09', 5, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (309, '2023-06-10', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (310, '2023-06-11', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (311, '2023-06-12', 1, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (312, '2023-06-13', 2, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (313, '2023-06-14', 3, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (314, '2023-06-15', 4, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (315, '2023-06-16', 5, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (316, '2023-06-17', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (317, '2023-06-18', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (318, '2023-06-19', 1, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 23:18:12');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (319, '2023-06-20', 2, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (320, '2023-06-21', 3, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (321, '2023-06-24', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (322, '2023-06-25', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (323, '2023-06-26', 1, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (324, '2023-06-27', 2, '05:00:00', '18:00:00', '17:00:00', 30, -1, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 23:03:27');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (325, '2023-06-28', 3, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (326, '2023-06-29', 4, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 12:22:44');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (327, '2023-06-30', 5, '05:00:00', '18:00:00', '17:00:00', 49, 0, 1, 1, 2, '2023-06-10 12:22:44', '2023-06-10 14:35:14');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (328, '2023-07-01', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (329, '2023-07-02', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (330, '2023-07-03', 1, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (331, '2023-07-04', 2, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (332, '2023-07-05', 3, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (333, '2023-07-06', 4, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (334, '2023-07-07', 5, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (335, '2023-07-08', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (336, '2023-07-09', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (337, '2023-07-10', 1, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (338, '2023-07-11', 2, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (339, '2023-07-12', 3, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (340, '2023-07-13', 4, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (341, '2023-07-14', 5, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (342, '2023-07-15', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (343, '2023-07-16', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (344, '2023-07-17', 1, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (345, '2023-07-18', 2, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (346, '2023-07-19', 3, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (347, '2023-07-20', 4, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (348, '2023-07-21', 5, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (349, '2023-07-22', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (350, '2023-07-23', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (351, '2023-07-24', 1, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (352, '2023-07-25', 2, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (353, '2023-07-26', 3, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (354, '2023-07-27', 4, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (355, '2023-07-28', 5, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (356, '2023-07-29', 6, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (357, '2023-07-30', 7, '05:00:00', '18:00:00', '17:00:00', 30, 0, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:28');
INSERT INTO lkpe.appointments (id, date, week, start_time, end_time, stop_time, max_count, used_count, hospital, status, del, created_at, updated_at) VALUES (358, '2023-07-31', 1, '05:00:00', '18:00:00', '17:00:00', 30, 1, 1, 1, 2, '2023-06-10 23:48:28', '2023-06-10 23:48:47');

@ -0,0 +1,48 @@
create table auths
(
id bigint unsigned auto_increment
primary key,
name varchar(50) not null comment '项目名称',
title varchar(20) not null comment '显示标题',
icon varchar(100) default '' not null comment '显示图标',
pid int not null comment '上级ID',
type tinyint not null comment '1-分组 2-页面/接口',
check_type tinyint not null comment '1-不需要验证 2-需要验证 3-特殊验证规则',
`show` tinyint default 1 not null comment '1-显示 2-不显示',
status tinyint default 1 not null comment '1-正常 2-禁用',
del tinyint default 2 not null comment '1-删除 2-正常',
`order` int default 0 not null comment '排序',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (1, 'admin_basics', '后台基础接口', '', 0, 1, 1, 2, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (2, 'admin_basics_login', '后台登录', '', 1, 2, 1, 2, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (3, 'admin', '管理员设置', 'every-user', 0, 1, 1, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (4, 'admin-info', '个人设置', 'user', 3, 2, 1, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (5, 'admin-auth', '权限管理', 'personal-privacy', 3, 2, 2, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (6, 'admin-list', '管理员列表', 'every-user', 3, 2, 2, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (7, 'settings', '后台管理', 'setting', 0, 1, 1, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (8, 'settings-config', '后台配置', 'setting-config', 7, 2, 2, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (9, 'settings-router', '路由配置', 'left-and-right-branch', 7, 2, 2, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (10, 'config', '基础设置', 'config', 0, 1, 1, 1, 1, 2, 0, '2023-04-07 14:41:39', '2023-04-07 14:41:39');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (11, 'config-hospital', '医院管理', 'hospital', 10, 2, 2, 1, 1, 2, 0, '2023-04-07 14:43:14', '2023-04-07 14:43:14');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (12, 'appointment', '预约管理', 'plan', 0, 1, 1, 1, 1, 2, 0, '2023-04-07 23:52:36', '2023-04-07 23:52:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (13, 'appointment-template', '计划模板', 'add-mode', 12, 2, 2, 1, 1, 2, 0, '2023-04-07 23:59:18', '2023-04-07 23:59:18');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (14, 'appointment-holidays', '节假日', 'beach-umbrella', 12, 2, 2, 1, 1, 2, 0, '2023-04-08 14:08:10', '2023-04-08 14:08:10');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (15, 'appointment-list', '预约计划', 'plan', 12, 2, 2, 1, 1, 2, 0, '2023-04-10 11:08:18', '2023-04-10 11:08:18');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (17, 'config-additional', '医院额外配置', 'tips-one', 10, 2, 2, 1, 1, 2, 0, '2023-04-11 09:31:54', '2023-04-11 09:31:54');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (18, 'user', '用户管理', 'user', 0, 1, 1, 1, 1, 2, 0, '2023-04-12 11:55:39', '2023-04-12 11:55:39');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (19, 'user-list', '用户列表', 'user', 18, 2, 2, 1, 1, 2, 0, '2023-04-12 11:55:58', '2023-04-12 11:55:58');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (20, 'user-person', '体检人列表', 'peoples', 18, 2, 2, 1, 1, 2, 0, '2023-04-13 09:24:52', '2023-04-13 09:24:52');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (21, 'hospital', '医院&小程序管理', 'plus-cross', 0, 1, 1, 1, 1, 2, 0, '2023-06-09 22:00:36', '2023-06-10 14:27:48');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (22, 'hospital-info', '基础信息', 'info', 21, 2, 2, 1, 1, 2, 0, '2023-06-09 22:02:15', '2023-06-09 22:02:15');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (23, 'hospital-home', '首页管理', 'home', 21, 2, 2, 1, 1, 2, 0, '2023-06-09 22:04:02', '2023-06-09 22:04:02');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (24, 'hospital-combo', '套餐管理', 'graphic-stitching-three', 21, 2, 2, 1, 1, 2, 0, '2023-06-09 22:05:09', '2023-06-09 22:05:09');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (25, 'hospital-additional', '额外配置', 'setting-two', 21, 2, 2, 1, 1, 2, 0, '2023-06-09 22:06:09', '2023-06-09 22:06:09');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (26, 'order-order', '订单管理', 'order', 29, 2, 2, 1, 1, 2, 0, '2023-06-09 22:06:55', '2023-06-10 14:25:09');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (27, 'order-template', '计划模板', 'plan', 29, 2, 2, 1, 1, 2, 0, '2023-06-09 22:08:32', '2023-06-10 14:25:15');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (28, 'order-appointment', '计划管理', 'plan', 29, 2, 2, 1, 1, 2, 0, '2023-06-09 22:09:15', '2023-06-10 14:25:22');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (29, 'order', '计划&订单', 'order', 0, 1, 1, 1, 1, 2, 0, '2023-06-10 14:24:29', '2023-06-10 14:24:29');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (30, 'order-super_order', '超级订单管理', 'text-wrap-overflow', 29, 2, 2, 1, 1, 2, 0, '2023-06-10 14:44:41', '2023-06-10 14:44:41');

@ -0,0 +1,40 @@
create table carousels
(
id bigint unsigned auto_increment
primary key,
name varchar(20) not null,
image varchar(200) not null,
`desc` varchar(50) default '' null,
hospital bigint not null,
type tinyint not null comment '1-轮播图 2-广告',
jump_type tinyint not null comment '1-无跳转 2-小程序跳转 3-H5跳转',
jump_path varchar(200) not null,
login_type tinyint not null comment '1-需要 2-不需要',
start_time datetime not null,
end_time datetime not null,
status tinyint not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index carousels_hospital_index
on carousels (hospital);
create index carousels_type_index
on carousels (type);
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (1, '测试轮播图', '/storage/assets/upload/image/2023/04/98e750cd-17c5-4f07-aadb-f1880b081cd4.png', null, 0, 1, 1, '/aaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 13:56:47', '2023-04-11 23:44:11');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (3, '测试2', '/storage/assets/upload/image/2023/04/98e75454-60a9-48d5-9ae7-70f9e222007b.jpeg', null, 0, 1, 1, '', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:06:38', '2023-04-11 23:44:20');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (4, '套餐测试', '/storage/assets/upload/image/2023/04/98e75485-3cac-4ebc-aa89-f918401a4b2f.png', '套餐测试', 0, 2, 4, 'activity_package;2', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:07:12', '2023-05-24 20:59:15');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (5, '测试2', '/storage/assets/upload/image/2023/04/98e75497-ea0d-476a-9c56-c475030ca832.jpeg', null, 0, 2, 4, 'combo_item_open;2349;1,2,3;{"id":0,"date":null}', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:07:22', '2023-05-27 10:51:40');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (6, '个检预约', '/storage/assets/upload/image/2023/04/98e85460-2128-4135-86cc-297dd9e748e8.png', '点击预约个检', 0, 3, 4, 'order_choose_type', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:15:13', '2023-04-12 02:18:57');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (7, '团检预约', '/storage/assets/upload/image/2023/04/98e85748-2963-4635-8654-d5a2776c1668.png', '点击预约团检', 0, 3, 2, '/pages/buy/person/person?type=group', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:15:26', '2023-05-26 16:20:48');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (8, '健康问卷', '/storage/assets/upload/image/2023/04/98e85af6-8a22-4ff0-a831-7f7bdd50ef0d.png', '填写问卷', 0, 4, 2, '/pages/buy/person/person?type=question', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:15:13', '2023-06-09 04:50:35');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (9, '满意度调查', '/storage/assets/upload/image/2023/04/98e85b8c-71f8-419d-8326-b691fbd9d1fd.png', '意见和建议', 0, 4, 3, 'http://192.168.31.84:5173/h5/#/pages/main/login/login?page=question&token=[TOKEN]&param=&hospital=[HOSPITAL]', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:15:26', '2023-06-09 02:16:04');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (10, '健康宣传', '/storage/assets/upload/image/2023/04/98e85b97-468b-4a1d-b55c-d72ed8076a21.png', '健康科普', 0, 4, 3, 'http://192.168.31.84:5173/h5/#/pages/main/posts/posts?type=1&hospital=[HOSPITAL]', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-12 01:25:21', '2023-06-09 02:16:10');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (11, '常见问题', '/storage/assets/upload/image/2023/04/98e85be6-c467-42ff-b62f-95fc274e8939.png', '问题解答', 0, 4, 3, 'http://192.168.31.84:5173/h5/#/pages/main/posts/posts?type=2&hospital=[HOSPITAL]', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-12 01:26:35', '2023-06-09 02:16:16');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (13, '体检引导', '/storage/assets/upload/image/2023/04/98e855dc-2df4-478f-9ac8-934deec649fc.png', '点击扫码排队', 0, 3, 2, '/pages/order/choose_person/choose_person', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 2, '2023-04-12 02:10:35', '2023-06-09 02:03:08');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (14, '报告查询', '/storage/assets/upload/image/2023/04/98e857d9-e99a-4146-bcc0-3dc6f220af0e.png', '点击查看报告', 0, 3, 2, '/pages/buy/person/person?type=report', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-12 02:13:46', '2023-06-03 01:16:05');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (15, '测试', '/storage/assets/upload/image/2023/06/995ee267-7d9f-4df7-ad45-410bddde770d.png', 'AAAAAAAAA', 1, 1, 1, '', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-06-10 00:27:30', '2023-06-10 00:27:30');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (16, 'ASDASDSAD', '/storage/assets/upload/image/2023/06/995ee441-6862-4d35-a3d7-e995464298e4.png', 'ASDASDASD', 1, 2, 1, '', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-06-10 00:32:37', '2023-06-10 00:32:37');

@ -0,0 +1,23 @@
create table configs
(
id bigint unsigned auto_increment
primary key,
label varchar(50) not null,
value varchar(1000) not null,
type tinyint not null comment '1-文字 2-图片 3-文字数组 4-图片数组 5-Key_Value',
remark varchar(100) not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index configs_type_index
on configs (type);
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (1, 'Logo', '/storage/assets/logo.png', 2, '', '2023-04-06 23:01:37', '2023-04-06 23:01:37');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (2, 'Favicon', '/storage/assets/favicon.png', 2, '', '2023-04-06 23:01:37', '2023-04-06 23:01:37');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (3, 'Login欢迎图片', '/storage/assets/login_image.jpg', 2, '', '2023-04-06 23:01:37', '2023-04-06 23:01:37');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (4, '网站名称', '岚科体检预约', 1, '', '2023-04-06 23:01:37', '2023-04-06 23:01:37');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (5, '客服电话', '13333333333', 1, '', '2023-04-10 23:22:21', '2023-04-11 23:17:51');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (6, '小程序默认封面图', '/storage/assets/mp/home/cover.png', 2, '', '2023-04-11 09:23:34', '2023-04-11 09:23:34');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (7, '会员卡配置', '{"open":0}', 5, '', '2023-04-11 09:29:24', '2023-04-11 09:29:24');

@ -0,0 +1,18 @@
create table hospital_activity_packages
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
name varchar(20) not null,
content text not null,
status tinyint not null comment '1:工作日, 2:节假日',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_activity_packages_hospital_index
on hospital_activity_packages (hospital);
INSERT INTO lkpe.hospital_activity_packages (id, hospital, name, content, status, created_at, updated_at) VALUES (1, 1, '测试活动', '["1875","2355","2354","2353","2352"]', 1, '2023-05-24 20:49:57', '2023-05-24 20:49:57');
INSERT INTO lkpe.hospital_activity_packages (id, hospital, name, content, status, created_at, updated_at) VALUES (2, 1, '测试123', '["2348","2349","2350"]', 1, '2023-05-24 20:51:01', '2023-05-24 20:51:01');

@ -0,0 +1,18 @@
create table hospital_additionals
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
combo_order text not null,
combo_count text not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_additionals_hospital_index
on hospital_additionals (hospital);
INSERT INTO lkpe.hospital_additionals (id, hospital, combo_order, combo_count, created_at, updated_at) VALUES (1, 2, '["1943","1944","1945","3344"]', '[{"id":"1944","count":111},{"id":"1943","count":0},{"id":"3333","count":234}]', '2023-04-11 16:24:20', '2023-04-11 17:10:10');
INSERT INTO lkpe.hospital_additionals (id, hospital, combo_order, combo_count, created_at, updated_at) VALUES (2, 0, '["112233"]', '[{"id":"11111","count":4}]', '2023-04-11 16:54:50', '2023-05-24 09:38:49');
INSERT INTO lkpe.hospital_additionals (id, hospital, combo_order, combo_count, created_at, updated_at) VALUES (3, 1, '["1959","1958"]', '[{"id":"2348","count":110},{"id":"2349","count":104},{"id":"2350","count":103},{"id":"2352","count":102},{"id":"2353","count":101}]', '2023-04-11 17:16:04', '2023-06-10 00:40:47');

@ -0,0 +1,27 @@
create table hospital_extras
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
mark varchar(20) not null,
content longtext not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_extras_hospital_index
on hospital_extras (hospital);
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (1, 0, 'pay', '{"wxp":{"open":1,"id":"1638739772","number":"3CE37188EBCFBBEB800B0E1C69B360F05A3E80CD","v3":"AVPV7NxK8cC2RvRrrwdTqUG9YbQXQe3w","key":"/storage/app/forbidden/2023/05/9943b647-1143-40c6-be2c-8844919ee1ff.pem","crt":"/storage/app/forbidden/2023/05/9943b64e-32f6-4eb1-b218-df86353965de.pem"}}', '2023-05-24 13:10:48', '2023-05-27 12:16:49');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (2, 0, 'order_type', '{"combo_add_item":2,"item":1}', '2023-05-24 13:10:48', '2023-06-09 10:06:24');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (3, 0, 'card_pay', '{"open":2}', '2023-05-24 14:29:59', '2023-05-24 14:35:50');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (4, 1, 'pay', '{"wxp":{"open":0,"id":"","number":"","v3":"","key":"","crt":""}}', '2023-05-25 21:31:04', '2023-05-25 21:31:04');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (5, 1, 'order_type', '{"combo_add_item":0,"item":0}', '2023-05-25 21:31:04', '2023-05-25 21:31:04');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (6, 1, 'card_pay', '{"open":0}', '2023-05-25 21:31:04', '2023-05-25 21:31:04');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (7, 0, 'readme', '{"open":1,"content":"1、体检前三天不应参加聚餐太甜、太咸、太油腻的食物应避免禁酒尽量以素食\\n为主。晚上八点钟后一般要求禁食并应早睡。<br/>\\n2、体检当日不吃早餐空腹进行抽血及腹部B超检查等体检项目。<br/>\\n3、进行女性妇科B超、男性前列腺B超时需要憋尿。<br/>\\n4、女性在作妇科检查时,需要排尽小便。<br/>\\n5、女性月经期间不宜做妇科检查及化验室小便检查;孕妇不应做X线检查。<br/>\\n6、静脉抽血后用棉球压住针头的穿刺点两分钟不能按揉防止形成血肿。<br/>\\n7、接受体检时应自然放松心态平和为医生提供真实的病历资料及自我身体状况\\n或感觉。","time":5}', '2023-05-26 11:50:02', '2023-05-27 12:20:08');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (8, 1, 'readme', '{"open":1,"content":"AAAAAAAAAAAAA","time":5}', '2023-05-26 12:50:40', '2023-06-10 00:51:02');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (9, 2, 'pay', '{"wxp":{"open":0,"id":"","number":"","v3":"","key":"","crt":""}}', '2023-05-26 12:51:54', '2023-05-26 12:51:54');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (10, 2, 'order_type', '{"combo_add_item":0,"item":0}', '2023-05-26 12:51:54', '2023-05-26 12:51:54');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (11, 2, 'card_pay', '{"open":0}', '2023-05-26 12:51:54', '2023-05-26 12:51:54');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (12, 2, 'readme', '{"open":0,"content":"","time":5}', '2023-05-26 12:51:54', '2023-05-26 12:51:54');

@ -0,0 +1,110 @@
create table hospital_posts
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
title varchar(100) not null,
author varchar(20) not null,
date date not null,
`desc` varchar(200) not null,
content longtext not null,
cover varchar(200) not null,
type tinyint not null comment '1-健康宣传 2-常见问题',
status tinyint not null,
del tinyint default 2 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_posts_type_index
on hospital_posts (type);
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (1, 0, '《用户服务协议》及《隐私政策》', '体检中心', '2023-06-05', '《用户服务协议》及《隐私政策》', '<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">本应用非常重视用户隐私政策并严格遵守相关的法律规定。请您仔细阅读《隐私政策》后再继续使用。如果您继续使用我们的服务,表示您已经充分阅读和理解我们协议的全部内容。</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">使使 使</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">1. </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(a) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(b) 使访IP使访</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(c)</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">2. 使</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(a)</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(b) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(c) 使便</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">3. </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;"></span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(a) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(b)</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(c) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(d) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(e) 便</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">4. </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">访</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">5.</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(a)便使访</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(b)</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">便</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;"></span></p>
<p>&nbsp;</p>', '/storage/assets/upload/image/2023/06/9956ae66-e79a-491f-9be0-811cdc33b58a.png', 1, 1, 2, '2023-06-05 22:35:23', '2023-06-06 09:40:12');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (2, 0, '体检须知', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;">一、体检前三天注意饮食</span> <span style="font-family: 宋体;">,勿食过于油腻、</span> &nbsp;<span style="font-family: 宋体;">辛辣、</span> &nbsp;<span style="font-family: 宋体;">刺激、</span> &nbsp;<span style="font-family: 宋体;">不易消化的食物</span> <span style="font-family: 宋体;">,不饮酒</span> <span style="font-family: 宋体;">,不吃对肝脏、</span> &nbsp;<span style="font-family: 宋体;">肾脏功能有损害的药物。</span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span>8<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">&nbsp;<span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span>10- 12<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">&nbsp;<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">2<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">(<span style="font-family: 宋体;"> </span><span style="font-family: Segoe UI;">1</span><span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">) </span><span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">;</span><span style="font-family: 宋体;">尿 </span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;">穿</span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">&nbsp;<span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span> &nbsp;<span style="font-family: 宋体;"></span> &nbsp;<span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">(<span style="font-family: 宋体;">尿</span><span style="font-family: Segoe UI;">)</span><span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">B</span><span style="font-family: 宋体;">尿</span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;">便</span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span> &nbsp;<span style="font-family: 宋体;"></span>(<span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">:</span><span style="font-family: 宋体;"> &nbsp; &nbsp; &nbsp;</span><span style="font-family: Segoe UI;">)</span><span style="font-family: 宋体;">怀 </span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span>:</span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">1<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">2<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span> &nbsp;<span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">3<span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">2</span><span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">4<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;">怀怀</span> <span style="font-family: 宋体;"></span>(<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">DR<span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">CT</span><span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">X</span><span style="font-family: 宋体;">线</span><span style="font-family: Segoe UI;">)</span><span style="font-family: 宋体;"></span></span></p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-08 09:26:59');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (3, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (4, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (5, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (6, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (7, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (8, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p><img src="http://127.0.0.1:8000/storage/assets/upload/image/2023/06/9956bfbd-5e5a-4006-aa39-559057151786.png" />BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 23:23:54');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (9, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (10, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (11, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (12, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (13, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (14, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (15, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (16, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (17, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (18, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (19, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (20, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (21, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (22, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (23, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>
<p>&nbsp;</p>
<p>234</p>
<p>234</p>
<p>23</p>
<p>423</p>
<p>4</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (24, 1, 'YOOO', 'sadf', '2023-06-10', 'sadfasdfsadf', '<p>sadfasdfasdfasdfsadf</p>', '/storage/assets/upload/image/2023/06/995ee9ce-b535-4043-8404-f6f3e11a1e92.png', 1, 1, 2, '2023-06-10 00:48:07', '2023-06-10 00:48:07');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (25, 0, '测试无封面', 'ASD', '2023-06-10', 'asdasd', '<p>ASDASD</p>', '', 1, 1, 2, '2023-06-10 12:12:47', '2023-06-10 12:12:47');

@ -0,0 +1,17 @@
create table hospital_question_logs
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
type tinyint default 1 null,
content longtext not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_question_logs_user_index
on hospital_question_logs (user);
INSERT INTO lkpe.hospital_question_logs (id, user, type, content, created_at, updated_at) VALUES (1, 1, 1, '[{"question":"请输入您的姓名","answer":"陆予三三","more":""},{"question":"请选择您的性别","answer":["男"],"more":["",""]},{"question":"测试多选","answer":["A. YOOOOO","C. LAAAAA"],"more":["","","AAAAAA",""]},{"question":"测试图片","answer":"/storage/assets/upload/image/2023/06/995cc039-b723-4e37-8dd0-731b30495665.jpeg","more":""}]', '2023-06-08 23:00:11', '2023-06-08 23:00:11');
INSERT INTO lkpe.hospital_question_logs (id, user, type, content, created_at, updated_at) VALUES (2, 1, 1, '[{"question":"请输入您的姓名","answer":"陆予三三","more":""},{"question":"请选择您的性别","answer":["女"],"more":["","AAAAAAAA"]},{"question":"测试多选","answer":["A. YOOOOO","C. LAAAAA","D. SAAAAAA"],"more":["","","ASDASD","SDFDSFDSF"]},{"question":"测试图片","answer":"/storage/assets/upload/image/2023/06/995cc343-a5ce-4b12-92d5-b4e8c8ccf2ec.jpeg","more":""}]', '2023-06-08 23:08:41', '2023-06-08 23:08:41');

@ -0,0 +1,24 @@
create table hospital_questions
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
question varchar(200) not null,
type tinyint not null comment '1-填空 2-单选 3-多选 4-图片',
content text not null,
mark varchar(20) not null,
`order` int default 1 null,
status tinyint not null,
del tinyint default 2 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_questions_type_index
on hospital_questions (type);
INSERT INTO lkpe.hospital_questions (id, hospital, question, type, content, mark, `order`, status, del, created_at, updated_at) VALUES (1, 0, '请输入您的姓名', 1, '{"placeholder":"请输入"}', 'NAME', 1, 1, 2, '2023-06-08 18:44:10', '2023-06-08 18:44:34');
INSERT INTO lkpe.hospital_questions (id, hospital, question, type, content, mark, `order`, status, del, created_at, updated_at) VALUES (2, 0, '请选择您的性别', 2, '{"item":["男","女{{MORE}}为什么选这个选项"]}', 'SEX', 2, 1, 2, '2023-06-08 19:09:08', '2023-06-08 21:32:39');
INSERT INTO lkpe.hospital_questions (id, hospital, question, type, content, mark, `order`, status, del, created_at, updated_at) VALUES (3, 0, '测试多选', 3, '{"item":["A. YOOOOO","B. HAAAAA","C. LAAAAA{{MORE}}为什么选这个选项","D. SAAAAAA{{MORE}}为什么选这个选项"]}', '', 3, 1, 2, '2023-06-08 19:16:53', '2023-06-08 21:32:33');
INSERT INTO lkpe.hospital_questions (id, hospital, question, type, content, mark, `order`, status, del, created_at, updated_at) VALUES (4, 0, '测试图片', 4, '{"placeholder":"请上传图片"}', '', 4, 1, 2, '2023-06-08 19:17:56', '2023-06-08 19:17:56');

@ -0,0 +1,21 @@
create table hospitals
(
id bigint unsigned auto_increment
primary key,
name varchar(50) not null,
code varchar(50) not null,
address varchar(100) not null,
longitude decimal(10, 6) not null,
latitude decimal(10, 6) not null,
logo varchar(100) not null,
dev tinyint not null comment '1:测试机构, 2:正式机构',
phone varchar(20) not null,
status tinyint not null,
del tinyint default 2 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.hospitals (id, name, code, address, longitude, latitude, logo, dev, phone, status, del, created_at, updated_at) VALUES (1, '测试医院机构', '130302999999', '测试医院机构测试医院机构测试医院机构测试医院机构', 119.514637, 39.903517, '/storage/assets/upload/image/2023/06/995ed894-39aa-4c62-a8a3-8183d7424ec9.png', 1, '03358888887', 1, 2, '2023-04-07 23:11:35', '2023-06-10 00:03:30');
INSERT INTO lkpe.hospitals (id, name, code, address, longitude, latitude, logo, dev, phone, status, del, created_at, updated_at) VALUES (2, '普通医院机构', '130302999999', '普通医院机构234', 119.600492, 39.935385, '/storage/assets/upload/image/2023/04/98e615fb-a73f-49cb-9aa2-95751bd82df4.jpeg', 2, '03357777777', 1, 2, '2023-04-07 23:18:13', '2023-04-10 23:16:28');

@ -0,0 +1,768 @@
create table admin_accounts
(
id bigint unsigned auto_increment
primary key,
admin_id bigint not null,
account varchar(50) not null,
secret varchar(80) not null,
type tinyint not null comment '1-账号密码',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index admin_accounts_account_index
on admin_accounts (account);
create index admin_accounts_admin_id_index
on admin_accounts (admin_id);
INSERT INTO lkpe.admin_accounts (id, admin_id, account, secret, type, del, created_at, updated_at) VALUES (1, 1, 'admin', '$2y$10$RrkVbwgR7plyKBJA.82onul9Sv9iyLKqmJDN7bRmFY4b6.45C5Qsi', 1, 2, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.admin_accounts (id, admin_id, account, secret, type, del, created_at, updated_at) VALUES (2, 2, 'TEST_ADMIN_01', '$2y$10$KOdF2w9ebVB2QaKVjBaTcO53kbslyoGYysOvmHNHq.30ezd1t8z6q', 1, 2, '2023-06-09 15:31:02', '2023-06-09 15:31:02');
create table admin_auths
(
id bigint unsigned auto_increment
primary key,
name varchar(20) not null comment '名称',
auth_ids varchar(1000) not null comment '权限IDS JSON',
remark varchar(100) not null comment '备注',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.admin_auths (id, name, auth_ids, remark, del, created_at, updated_at) VALUES (1, '医院最高权限', '["22","23","24","25","26","27","28"]', '', 2, '2023-06-09 15:56:40', '2023-06-09 22:13:43');
create table admin_tokens
(
id bigint unsigned auto_increment
primary key,
admin_id bigint not null comment '账号ID',
token varchar(50) not null comment 'TOKEN',
type tinyint not null comment '1-后台',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index admin_tokens_admin_id_index
on admin_tokens (admin_id);
create index admin_tokens_token_index
on admin_tokens (token);
create table admins
(
id bigint unsigned auto_increment
primary key,
nickname varchar(30) not null comment '名称',
admin_auth_id int not null comment '权限ID',
status tinyint default 1 not null comment '1-正常 2-禁用',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null,
hospital bigint not null
)
collate = utf8mb4_unicode_ci;
create index admins_hospital_index
on admins (hospital);
INSERT INTO lkpe.admins (id, nickname, admin_auth_id, status, del, created_at, updated_at, hospital) VALUES (1, '超级管理员', -1, 1, 2, '2023-04-06 23:01:36', '2023-04-06 23:01:36', 0);
INSERT INTO lkpe.admins (id, nickname, admin_auth_id, status, del, created_at, updated_at, hospital) VALUES (2, '测试医院管理员', 1, 1, 2, '2023-06-09 15:31:02', '2023-06-09 22:15:44', 1);
create table analysis_types
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
name varchar(50) not null,
`range` varchar(200) default '["min","max"]' not null,
`desc` varchar(50) not null,
color varchar(8) not null,
mark varchar(50) not null,
content varchar(2000) not null,
type tinyint not null comment '1-临床生化 2-临床免疫 3-常规',
status tinyint default 1 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index analysis_types_hospital_index
on analysis_types (hospital);
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (1, 0, '空腹血糖分析', '{"s":"1","r":["0","min","max","10"],"l":["偏低","正常","偏高"]}', '空腹血糖变化趋势分析', '#78A155', 'KFPTT', '空腹血糖分析
', 1, 1, '2023-03-20 14:42:43', '2023-06-03 00:45:11');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (2, 0, '甘油三酯分析', '{"s":"0.2","r":["min","max","2"],"l":["正常","偏高"]}', '甘油三酯变化趋势分析', '#58D818', 'GYSZ', '甘油三酯分析
1.尿退
2.α-β', 1, 1, '2023-03-20 14:42:43', '2023-03-29 11:30:21');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (3, 0, '总胆固醇分析', '{"s":"1","r":["min","max","10"],"l":["正常","偏高"]}', '总胆固醇变化趋势分析', '#CA6D6A', 'ZDGC', '总胆固醇分析
1尿
2', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:25:33');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (4, 0, '高密度总胆固醇', '{"s":"0.2","r":["0","min","max","2"],"l":["偏低","正常","偏高"]}', '高密度总胆固醇变化趋势分析', '#C45E16', 'GMDZDBDGC', '高密度总胆固醇
HDL寿E
尿
HDL-C
HDL
尿', 1, 1, '2023-03-20 14:42:43', '2023-03-27 15:33:45');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (5, 0, '低密度总胆固醇', '{"s":"0.5","r":["min","max","5"],"l":["正常","偏高"]}', '低密度总胆固醇变化趋势分析', '#DFC039', 'DMDZDBDGC', '低密度总胆固醇
', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:28:09');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (6, 0, 'Y-谷氨酰基转肽酶GGT', '{"s":"10","r":["0","min","max","80"],"l":["偏低","正常","偏高"]}', 'Y-谷氨酰基转肽酶GGT趋势分析', '#D38014', 'QDYE4000HzZ', 'Y-谷氨酰基转肽酶GGT
1.γ-γ-GT
2.
3.γ-GT
4.
5.γ-GTγ-GTγ-GT
6.γ-', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:33:52');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (7, 0, '丙氨酸氨基转移酶', '{"s":"10","r":["0","min","max","80"],"l":["偏低","正常","偏高"]}', '丙氨酸氨基转移酶趋势分析', '#C25202', 'BASAJZYM', '丙氨酸氨基转移酶
尿', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:32:40');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (8, 0, '天门冬氨酸氨基转移酶', '{"s":"10","r":["0","min","max","80"],"l":["偏低","正常","偏高"]}', '天门冬氨酸氨基转移酶变化趋势分析', '#01739A', 'TMDASAJZYM', '天门冬氨酸氨基转移酶
 ()  (ALT)(AST)/(ALT)>1  ', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:34:48');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (9, 0, '尿酸', '{"s":"50","r":["0","min","max","500"],"l":["偏低","正常","偏高"]}', '尿酸趋势分析', '#DFC039', 'NS', '尿酸
尿
1尿尿尿尿
2尿尿
3退尿
4仿尿
尿
尿', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:36:19');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (10, 0, '甲胎蛋白', '{"s":"0.2","r":["0","min","max","8"],"l":["偏低","正常","偏高"]}', '甲胎蛋白变化趋势分析', '#A3433F', 'KFPTT', '甲胎蛋白
1.AFPAFP
2.AFP60%70%AFPAFP
3.AFP1000ug/L
4.AFP2-3AFP
5.', 2, 1, '2023-03-20 14:42:43', '2023-03-29 12:38:55');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (11, 0, '体重分析', '{"s":"5","r":["0","min","max","40"],"l":["偏低","正常","偏高"]}', '分析体重BMI指数', '#DC7948', 'TZZS', '体重分析
BMI尿', 3, 1, '2023-03-27 11:18:20', '2023-03-29 10:59:52');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (12, 0, '舒张压', '{"s":"30","r":["0","min","max","120"],"l":["偏低","正常","偏高"]}', '血压低趋势分析', '#ECC266', 'SZY', '血压
1.
2.
3.', 3, 1, '2023-03-27 11:19:52', '2023-04-03 14:22:07');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (13, 0, '癌胚抗原', '{"s":"2","r":["min","max","10"],"l":["正常","偏高"]}', '癌胚抗原变化趋势分析', '#C7F070', 'APKY', '癌胚抗原
CEA尿尿15%53%CEACEA
访', 2, 1, '2023-03-27 11:22:23', '2023-03-29 12:40:12');
INSERT INTO lkpe.analysis_types (id, hospital, name, `range`, `desc`, color, mark, content, type, status, created_at, updated_at) VALUES (14, 0, '收缩压', '{"s":"30","r":["50","min","max","180"],"l":["偏低","正常","偏高"]}', '收缩压趋势分析', '#DD6565', 'SSY', '血压
1.
2.
3.', 3, 1, '2023-04-03 14:13:46', '2023-04-03 14:23:27');
create table appointment_holidays
(
id bigint unsigned auto_increment
primary key,
year year not null,
date date not null,
type tinyint not null comment '1:工作日, 2:节假日',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index appointment_holidays_date_index
on appointment_holidays (date);
create index appointment_holidays_year_index
on appointment_holidays (year);
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (1, 2023, '2023-04-29', 1, '2023-04-08 22:18:16', '2023-04-08 22:18:16');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (2, 2023, '2023-04-30', 1, '2023-04-08 22:18:18', '2023-04-08 22:18:18');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (3, 2023, '2023-05-01', 1, '2023-04-08 22:18:25', '2023-04-08 22:18:25');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (4, 2023, '2023-05-02', 1, '2023-04-08 22:18:27', '2023-04-08 22:18:27');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (5, 2023, '2023-05-03', 1, '2023-04-08 22:18:30', '2023-04-08 22:18:30');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (6, 2023, '2023-04-23', 2, '2023-04-08 22:22:06', '2023-04-08 22:22:06');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (7, 2023, '2023-05-06', 2, '2023-04-08 22:23:28', '2023-04-08 22:23:28');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (8, 2023, '2023-04-05', 1, '2023-04-08 22:23:35', '2023-04-08 22:23:35');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (9, 2023, '2023-06-22', 1, '2023-04-08 22:23:55', '2023-04-08 22:23:55');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (10, 2023, '2023-06-23', 1, '2023-04-08 22:23:57', '2023-04-08 22:23:57');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (11, 2023, '2023-06-24', 1, '2023-04-08 22:24:01', '2023-04-08 22:24:01');
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (12, 2023, '2023-06-25', 2, '2023-04-08 22:24:02', '2023-04-08 22:24:02');
create table appointment_templates
(
id bigint unsigned auto_increment
primary key,
name varchar(50) not null,
weeks varchar(50) not null,
weekday tinyint not null,
holidays tinyint not null,
start_time time not null,
end_time time not null,
stop_time time not null,
max_count bigint not null,
created_at timestamp null,
updated_at timestamp null,
hospital bigint default 0 not null
)
collate = utf8mb4_unicode_ci;
create index appointment_templates_hospital_index
on appointment_templates (hospital);
INSERT INTO lkpe.appointment_templates (id, name, weeks, weekday, holidays, start_time, end_time, stop_time, max_count, created_at, updated_at, hospital) VALUES (1, '计划模板', '["1","2","3","4","5"]', 1, 2, '08:00:00', '13:00:00', '07:00:00', 30, '2023-04-08 02:06:07', '2023-04-10 10:52:06', 0);
INSERT INTO lkpe.appointment_templates (id, name, weeks, weekday, holidays, start_time, end_time, stop_time, max_count, created_at, updated_at, hospital) VALUES (2, '下午', '["1","2","3","4","5"]', 1, 2, '14:00:00', '17:00:00', '13:00:00', 20, '2023-04-09 00:59:02', '2023-04-09 00:59:02', 0);
INSERT INTO lkpe.appointment_templates (id, name, weeks, weekday, holidays, start_time, end_time, stop_time, max_count, created_at, updated_at, hospital) VALUES (3, '晚上', '["1","4","2","5","3"]', 1, 2, '18:00:00', '20:00:00', '19:00:00', 30, '2023-04-10 10:51:57', '2023-04-10 10:51:57', 0);
INSERT INTO lkpe.appointment_templates (id, name, weeks, weekday, holidays, start_time, end_time, stop_time, max_count, created_at, updated_at, hospital) VALUES (4, '测试医院机构模板', '["1","2","3","5","4","6","7"]', 1, 2, '05:00:00', '18:00:00', '17:00:00', 30, '2023-06-10 11:03:52', '2023-06-10 11:03:52', 1);
create table appointments
(
id bigint unsigned auto_increment
primary key,
date date not null,
week tinyint not null,
start_time time not null,
end_time time not null,
stop_time time not null,
max_count bigint not null,
used_count bigint not null,
hospital bigint not null,
status tinyint not null,
del tinyint default 2 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index appointments_date_index
on appointments (date);
create table auths
(
id bigint unsigned auto_increment
primary key,
name varchar(50) not null comment '项目名称',
title varchar(20) not null comment '显示标题',
icon varchar(100) default '' not null comment '显示图标',
pid int not null comment '上级ID',
type tinyint not null comment '1-分组 2-页面/接口',
check_type tinyint not null comment '1-不需要验证 2-需要验证 3-特殊验证规则',
`show` tinyint default 1 not null comment '1-显示 2-不显示',
status tinyint default 1 not null comment '1-正常 2-禁用',
del tinyint default 2 not null comment '1-删除 2-正常',
`order` int default 0 not null comment '排序',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (1, 'admin_basics', '后台基础接口', '', 0, 1, 1, 2, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (2, 'admin_basics_login', '后台登录', '', 1, 2, 1, 2, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (3, 'admin', '管理员设置', 'every-user', 0, 1, 1, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (4, 'admin-info', '个人设置', 'user', 3, 2, 1, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (5, 'admin-auth', '权限管理', 'personal-privacy', 3, 2, 2, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (6, 'admin-list', '管理员列表', 'every-user', 3, 2, 2, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (7, 'settings', '后台管理', 'setting', 0, 1, 1, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (8, 'settings-config', '后台配置', 'setting-config', 7, 2, 2, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (9, 'settings-router', '路由配置', 'left-and-right-branch', 7, 2, 2, 1, 1, 2, 0, '2023-04-06 23:01:36', '2023-04-06 23:01:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (10, 'config', '基础设置', 'config', 0, 1, 1, 1, 1, 2, 0, '2023-04-07 14:41:39', '2023-04-07 14:41:39');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (11, 'config-hospital', '医院管理', 'hospital', 10, 2, 2, 1, 1, 2, 0, '2023-04-07 14:43:14', '2023-04-07 14:43:14');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (12, 'appointment', '预约管理', 'plan', 0, 1, 1, 1, 1, 2, 0, '2023-04-07 23:52:36', '2023-04-07 23:52:36');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (13, 'appointment-template', '计划模板', 'add-mode', 12, 2, 2, 1, 1, 2, 0, '2023-04-07 23:59:18', '2023-04-07 23:59:18');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (14, 'appointment-holidays', '节假日', 'beach-umbrella', 12, 2, 2, 1, 1, 2, 0, '2023-04-08 14:08:10', '2023-04-08 14:08:10');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (15, 'appointment-list', '预约计划', 'plan', 12, 2, 2, 1, 1, 2, 0, '2023-04-10 11:08:18', '2023-04-10 11:08:18');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (17, 'config-additional', '医院额外配置', 'tips-one', 10, 2, 2, 1, 1, 2, 0, '2023-04-11 09:31:54', '2023-04-11 09:31:54');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (18, 'user', '用户管理', 'user', 0, 1, 1, 1, 1, 2, 0, '2023-04-12 11:55:39', '2023-04-12 11:55:39');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (19, 'user-list', '用户列表', 'user', 18, 2, 2, 1, 1, 2, 0, '2023-04-12 11:55:58', '2023-04-12 11:55:58');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (20, 'user-person', '体检人列表', 'peoples', 18, 2, 2, 1, 1, 2, 0, '2023-04-13 09:24:52', '2023-04-13 09:24:52');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (21, 'hospital', '医院&小程序管理', 'plus-cross', 0, 1, 1, 1, 1, 2, 0, '2023-06-09 22:00:36', '2023-06-10 14:27:48');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (22, 'hospital-info', '基础信息', 'info', 21, 2, 2, 1, 1, 2, 0, '2023-06-09 22:02:15', '2023-06-09 22:02:15');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (23, 'hospital-home', '首页管理', 'home', 21, 2, 2, 1, 1, 2, 0, '2023-06-09 22:04:02', '2023-06-09 22:04:02');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (24, 'hospital-combo', '套餐管理', 'graphic-stitching-three', 21, 2, 2, 1, 1, 2, 0, '2023-06-09 22:05:09', '2023-06-09 22:05:09');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (25, 'hospital-additional', '额外配置', 'setting-two', 21, 2, 2, 1, 1, 2, 0, '2023-06-09 22:06:09', '2023-06-09 22:06:09');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (26, 'order-order', '订单管理', 'order', 29, 2, 2, 1, 1, 2, 0, '2023-06-09 22:06:55', '2023-06-10 14:25:09');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (27, 'order-template', '计划模板', 'plan', 29, 2, 2, 1, 1, 2, 0, '2023-06-09 22:08:32', '2023-06-10 14:25:15');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (28, 'order-appointment', '计划管理', 'plan', 29, 2, 2, 1, 1, 2, 0, '2023-06-09 22:09:15', '2023-06-10 14:25:22');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (29, 'order', '计划&订单', 'order', 0, 1, 1, 1, 1, 2, 0, '2023-06-10 14:24:29', '2023-06-10 14:24:29');
INSERT INTO lkpe.auths (id, name, title, icon, pid, type, check_type, `show`, status, del, `order`, created_at, updated_at) VALUES (30, 'order-super_order', '超级订单管理', 'text-wrap-overflow', 29, 2, 2, 1, 1, 2, 0, '2023-06-10 14:44:41', '2023-06-10 14:44:41');
create table carousels
(
id bigint unsigned auto_increment
primary key,
name varchar(20) not null,
image varchar(200) not null,
`desc` varchar(50) default '' null,
hospital bigint not null,
type tinyint not null comment '1-轮播图 2-广告',
jump_type tinyint not null comment '1-无跳转 2-小程序跳转 3-H5跳转',
jump_path varchar(200) not null,
login_type tinyint not null comment '1-需要 2-不需要',
start_time datetime not null,
end_time datetime not null,
status tinyint not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index carousels_hospital_index
on carousels (hospital);
create index carousels_type_index
on carousels (type);
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (1, '测试轮播图', '/storage/assets/upload/image/2023/04/98e750cd-17c5-4f07-aadb-f1880b081cd4.png', null, 0, 1, 1, '/aaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 13:56:47', '2023-04-11 23:44:11');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (3, '测试2', '/storage/assets/upload/image/2023/04/98e75454-60a9-48d5-9ae7-70f9e222007b.jpeg', null, 0, 1, 1, '', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:06:38', '2023-04-11 23:44:20');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (4, '套餐测试', '/storage/assets/upload/image/2023/04/98e75485-3cac-4ebc-aa89-f918401a4b2f.png', '套餐测试', 0, 2, 4, 'activity_package;2', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:07:12', '2023-05-24 20:59:15');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (5, '测试2', '/storage/assets/upload/image/2023/04/98e75497-ea0d-476a-9c56-c475030ca832.jpeg', null, 0, 2, 4, 'combo_item_open;2349;1,2,3;{"id":0,"date":null}', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:07:22', '2023-05-27 10:51:40');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (6, '个检预约', '/storage/assets/upload/image/2023/04/98e85460-2128-4135-86cc-297dd9e748e8.png', '点击预约个检', 0, 3, 4, 'order_choose_type', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:15:13', '2023-04-12 02:18:57');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (7, '团检预约', '/storage/assets/upload/image/2023/04/98e85748-2963-4635-8654-d5a2776c1668.png', '点击预约团检', 0, 3, 2, '/pages/buy/person/person?type=group', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:15:26', '2023-05-26 16:20:48');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (8, '健康问卷', '/storage/assets/upload/image/2023/04/98e85af6-8a22-4ff0-a831-7f7bdd50ef0d.png', '填写问卷', 0, 4, 2, '/pages/buy/person/person?type=question', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:15:13', '2023-06-09 04:50:35');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (9, '满意度调查', '/storage/assets/upload/image/2023/04/98e85b8c-71f8-419d-8326-b691fbd9d1fd.png', '意见和建议', 0, 4, 3, 'http://192.168.31.84:5173/h5/#/pages/main/login/login?page=question&token=[TOKEN]&param=&hospital=[HOSPITAL]', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-11 14:15:26', '2023-06-09 02:16:04');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (10, '健康宣传', '/storage/assets/upload/image/2023/04/98e85b97-468b-4a1d-b55c-d72ed8076a21.png', '健康科普', 0, 4, 3, 'http://192.168.31.84:5173/h5/#/pages/main/posts/posts?type=1&hospital=[HOSPITAL]', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-12 01:25:21', '2023-06-09 02:16:10');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (11, '常见问题', '/storage/assets/upload/image/2023/04/98e85be6-c467-42ff-b62f-95fc274e8939.png', '问题解答', 0, 4, 3, 'http://192.168.31.84:5173/h5/#/pages/main/posts/posts?type=2&hospital=[HOSPITAL]', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-12 01:26:35', '2023-06-09 02:16:16');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (13, '体检引导', '/storage/assets/upload/image/2023/04/98e855dc-2df4-478f-9ac8-934deec649fc.png', '点击扫码排队', 0, 3, 2, '/pages/order/choose_person/choose_person', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 2, '2023-04-12 02:10:35', '2023-06-09 02:03:08');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (14, '报告查询', '/storage/assets/upload/image/2023/04/98e857d9-e99a-4146-bcc0-3dc6f220af0e.png', '点击查看报告', 0, 3, 2, '/pages/buy/person/person?type=report', 1, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-04-12 02:13:46', '2023-06-03 01:16:05');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (15, '测试', '/storage/assets/upload/image/2023/06/995ee267-7d9f-4df7-ad45-410bddde770d.png', 'AAAAAAAAA', 1, 1, 1, '', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-06-10 00:27:30', '2023-06-10 00:27:30');
INSERT INTO lkpe.carousels (id, name, image, `desc`, hospital, type, jump_type, jump_path, login_type, start_time, end_time, status, created_at, updated_at) VALUES (16, 'ASDASDSAD', '/storage/assets/upload/image/2023/06/995ee441-6862-4d35-a3d7-e995464298e4.png', 'ASDASDASD', 1, 2, 1, '', 2, '2023-03-13 00:00:00', '2123-03-13 00:00:00', 1, '2023-06-10 00:32:37', '2023-06-10 00:32:37');
create table configs
(
id bigint unsigned auto_increment
primary key,
label varchar(50) not null,
value varchar(1000) not null,
type tinyint not null comment '1-文字 2-图片 3-文字数组 4-图片数组 5-Key_Value',
remark varchar(100) not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index configs_type_index
on configs (type);
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (1, 'Logo', '/storage/assets/logo.png', 2, '', '2023-04-06 23:01:37', '2023-04-06 23:01:37');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (2, 'Favicon', '/storage/assets/favicon.png', 2, '', '2023-04-06 23:01:37', '2023-04-06 23:01:37');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (3, 'Login欢迎图片', '/storage/assets/login_image.jpg', 2, '', '2023-04-06 23:01:37', '2023-04-06 23:01:37');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (4, '网站名称', '岚科体检预约', 1, '', '2023-04-06 23:01:37', '2023-04-06 23:01:37');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (5, '客服电话', '13333333333', 1, '', '2023-04-10 23:22:21', '2023-04-11 23:17:51');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (6, '小程序默认封面图', '/storage/assets/mp/home/cover.png', 2, '', '2023-04-11 09:23:34', '2023-04-11 09:23:34');
INSERT INTO lkpe.configs (id, label, value, type, remark, created_at, updated_at) VALUES (7, '会员卡配置', '{"open":0}', 5, '', '2023-04-11 09:29:24', '2023-04-11 09:29:24');
create table hospital_activity_packages
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
name varchar(20) not null,
content text not null,
status tinyint not null comment '1:工作日, 2:节假日',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_activity_packages_hospital_index
on hospital_activity_packages (hospital);
INSERT INTO lkpe.hospital_activity_packages (id, hospital, name, content, status, created_at, updated_at) VALUES (1, 1, '测试活动', '["1875","2355","2354","2353","2352"]', 1, '2023-05-24 20:49:57', '2023-05-24 20:49:57');
INSERT INTO lkpe.hospital_activity_packages (id, hospital, name, content, status, created_at, updated_at) VALUES (2, 1, '测试123', '["2348","2349","2350"]', 1, '2023-05-24 20:51:01', '2023-05-24 20:51:01');
create table hospital_additionals
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
combo_order text not null,
combo_count text not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_additionals_hospital_index
on hospital_additionals (hospital);
INSERT INTO lkpe.hospital_additionals (id, hospital, combo_order, combo_count, created_at, updated_at) VALUES (1, 2, '["1943","1944","1945","3344"]', '[{"id":"1944","count":111},{"id":"1943","count":0},{"id":"3333","count":234}]', '2023-04-11 16:24:20', '2023-04-11 17:10:10');
INSERT INTO lkpe.hospital_additionals (id, hospital, combo_order, combo_count, created_at, updated_at) VALUES (2, 0, '["112233"]', '[{"id":"11111","count":4}]', '2023-04-11 16:54:50', '2023-05-24 09:38:49');
INSERT INTO lkpe.hospital_additionals (id, hospital, combo_order, combo_count, created_at, updated_at) VALUES (3, 1, '["1959","1958"]', '[{"id":"2348","count":110},{"id":"2349","count":104},{"id":"2350","count":103},{"id":"2352","count":102},{"id":"2353","count":101}]', '2023-04-11 17:16:04', '2023-06-10 00:40:47');
create table hospital_extras
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
mark varchar(20) not null,
content longtext not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_extras_hospital_index
on hospital_extras (hospital);
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (1, 0, 'pay', '{"wxp":{"open":1,"id":"1638739772","number":"3CE37188EBCFBBEB800B0E1C69B360F05A3E80CD","v3":"AVPV7NxK8cC2RvRrrwdTqUG9YbQXQe3w","key":"/storage/app/forbidden/2023/05/9943b647-1143-40c6-be2c-8844919ee1ff.pem","crt":"/storage/app/forbidden/2023/05/9943b64e-32f6-4eb1-b218-df86353965de.pem"}}', '2023-05-24 13:10:48', '2023-05-27 12:16:49');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (2, 0, 'order_type', '{"combo_add_item":2,"item":1}', '2023-05-24 13:10:48', '2023-06-09 10:06:24');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (3, 0, 'card_pay', '{"open":2}', '2023-05-24 14:29:59', '2023-05-24 14:35:50');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (4, 1, 'pay', '{"wxp":{"open":0,"id":"","number":"","v3":"","key":"","crt":""}}', '2023-05-25 21:31:04', '2023-05-25 21:31:04');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (5, 1, 'order_type', '{"combo_add_item":0,"item":0}', '2023-05-25 21:31:04', '2023-05-25 21:31:04');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (6, 1, 'card_pay', '{"open":0}', '2023-05-25 21:31:04', '2023-05-25 21:31:04');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (7, 0, 'readme', '{"open":1,"content":"1、体检前三天不应参加聚餐太甜、太咸、太油腻的食物应避免禁酒尽量以素食\\n为主。晚上八点钟后一般要求禁食并应早睡。<br/>\\n2、体检当日不吃早餐空腹进行抽血及腹部B超检查等体检项目。<br/>\\n3、进行女性妇科B超、男性前列腺B超时需要憋尿。<br/>\\n4、女性在作妇科检查时,需要排尽小便。<br/>\\n5、女性月经期间不宜做妇科检查及化验室小便检查;孕妇不应做X线检查。<br/>\\n6、静脉抽血后用棉球压住针头的穿刺点两分钟不能按揉防止形成血肿。<br/>\\n7、接受体检时应自然放松心态平和为医生提供真实的病历资料及自我身体状况\\n或感觉。","time":5}', '2023-05-26 11:50:02', '2023-05-27 12:20:08');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (8, 1, 'readme', '{"open":1,"content":"AAAAAAAAAAAAA","time":5}', '2023-05-26 12:50:40', '2023-06-10 00:51:02');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (9, 2, 'pay', '{"wxp":{"open":0,"id":"","number":"","v3":"","key":"","crt":""}}', '2023-05-26 12:51:54', '2023-05-26 12:51:54');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (10, 2, 'order_type', '{"combo_add_item":0,"item":0}', '2023-05-26 12:51:54', '2023-05-26 12:51:54');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (11, 2, 'card_pay', '{"open":0}', '2023-05-26 12:51:54', '2023-05-26 12:51:54');
INSERT INTO lkpe.hospital_extras (id, hospital, mark, content, created_at, updated_at) VALUES (12, 2, 'readme', '{"open":0,"content":"","time":5}', '2023-05-26 12:51:54', '2023-05-26 12:51:54');
create table hospital_posts
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
title varchar(100) not null,
author varchar(20) not null,
date date not null,
`desc` varchar(200) not null,
content longtext not null,
cover varchar(200) not null,
type tinyint not null comment '1-健康宣传 2-常见问题',
status tinyint not null,
del tinyint default 2 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_posts_type_index
on hospital_posts (type);
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (1, 0, '《用户服务协议》及《隐私政策》', '体检中心', '2023-06-05', '《用户服务协议》及《隐私政策》', '<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">本应用非常重视用户隐私政策并严格遵守相关的法律规定。请您仔细阅读《隐私政策》后再继续使用。如果您继续使用我们的服务,表示您已经充分阅读和理解我们协议的全部内容。</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">使使 使</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">1. </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(a) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(b) 使访IP使访</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(c)</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">2. 使</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(a)</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(b) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(c) 使便</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">3. </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;"></span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(a) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(b)</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(c) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(d) </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(e) 便</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">4. </span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">访</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">5.</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(a)便使访</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">(b)</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;">便</span></p>
<p><span style="color: #999999; font-family: 宋体;"> </span></p>
<p><span style="color: #999999; background-color: #ffffff; font-family: 宋体;"></span></p>
<p>&nbsp;</p>', '/storage/assets/upload/image/2023/06/9956ae66-e79a-491f-9be0-811cdc33b58a.png', 1, 1, 2, '2023-06-05 22:35:23', '2023-06-06 09:40:12');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (2, 0, '体检须知', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;">一、体检前三天注意饮食</span> <span style="font-family: 宋体;">,勿食过于油腻、</span> &nbsp;<span style="font-family: 宋体;">辛辣、</span> &nbsp;<span style="font-family: 宋体;">刺激、</span> &nbsp;<span style="font-family: 宋体;">不易消化的食物</span> <span style="font-family: 宋体;">,不饮酒</span> <span style="font-family: 宋体;">,不吃对肝脏、</span> &nbsp;<span style="font-family: 宋体;">肾脏功能有损害的药物。</span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span>8<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">&nbsp;<span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span>10- 12<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">&nbsp;<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">2<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">(<span style="font-family: 宋体;"> </span><span style="font-family: Segoe UI;">1</span><span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">) </span><span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">;</span><span style="font-family: 宋体;">尿 </span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;">穿</span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">&nbsp;<span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span> &nbsp;<span style="font-family: 宋体;"></span> &nbsp;<span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">(<span style="font-family: 宋体;">尿</span><span style="font-family: Segoe UI;">)</span><span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">B</span><span style="font-family: 宋体;">尿</span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;">便</span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span> <span style="font-family: 宋体;"></span> &nbsp;<span style="font-family: 宋体;"></span>(<span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">:</span><span style="font-family: 宋体;"> &nbsp; &nbsp; &nbsp;</span><span style="font-family: Segoe UI;">)</span><span style="font-family: 宋体;">怀 </span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span>:</span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">1<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">2<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;"></span> &nbsp;<span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">3<span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">2</span><span style="font-family: 宋体;"></span></span></p>
<p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: \'Segoe UI\'; color: #666666; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">4<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;"><span style="font-family: 宋体;">怀怀</span> <span style="font-family: 宋体;"></span>(<span style="font-family: 宋体;"></span></span><span style="font-family: \'Segoe UI\'; color: #ff0000; letter-spacing: 0pt; font-size: 9pt; background: #fafafa;">DR<span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">CT</span><span style="font-family: 宋体;"></span><span style="font-family: Segoe UI;">X</span><span style="font-family: 宋体;">线</span><span style="font-family: Segoe UI;">)</span><span style="font-family: 宋体;"></span></span></p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-08 09:26:59');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (3, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (4, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (5, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (6, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (7, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 22:38:56');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (8, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p><img src="http://127.0.0.1:8000/storage/assets/upload/image/2023/06/9956bfbd-5e5a-4006-aa39-559057151786.png" />BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 2, '2023-06-05 22:38:56', '2023-06-05 23:23:54');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (9, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (10, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (11, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (12, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (13, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (14, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (15, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (16, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (17, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (18, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (19, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (20, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (21, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (22, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (23, 0, 'BBBBBB', 'BBBBBB', '2023-06-05', 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', '<p>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</p>
<p>&nbsp;</p>
<p>234</p>
<p>234</p>
<p>23</p>
<p>423</p>
<p>4</p>', '', 2, 1, 1, '2023-06-05 22:38:56', '2023-06-05 23:11:24');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (24, 1, 'YOOO', 'sadf', '2023-06-10', 'sadfasdfsadf', '<p>sadfasdfasdfasdfsadf</p>', '/storage/assets/upload/image/2023/06/995ee9ce-b535-4043-8404-f6f3e11a1e92.png', 1, 1, 2, '2023-06-10 00:48:07', '2023-06-10 00:48:07');
INSERT INTO lkpe.hospital_posts (id, hospital, title, author, date, `desc`, content, cover, type, status, del, created_at, updated_at) VALUES (25, 0, '测试无封面', 'ASD', '2023-06-10', 'asdasd', '<p>ASDASD</p>', '', 1, 1, 2, '2023-06-10 12:12:47', '2023-06-10 12:12:47');
create table hospital_question_logs
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
type tinyint default 1 null,
content longtext not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_question_logs_user_index
on hospital_question_logs (user);
INSERT INTO lkpe.hospital_question_logs (id, user, type, content, created_at, updated_at) VALUES (1, 1, 1, '[{"question":"请输入您的姓名","answer":"陆予三三","more":""},{"question":"请选择您的性别","answer":["男"],"more":["",""]},{"question":"测试多选","answer":["A. YOOOOO","C. LAAAAA"],"more":["","","AAAAAA",""]},{"question":"测试图片","answer":"/storage/assets/upload/image/2023/06/995cc039-b723-4e37-8dd0-731b30495665.jpeg","more":""}]', '2023-06-08 23:00:11', '2023-06-08 23:00:11');
INSERT INTO lkpe.hospital_question_logs (id, user, type, content, created_at, updated_at) VALUES (2, 1, 1, '[{"question":"请输入您的姓名","answer":"陆予三三","more":""},{"question":"请选择您的性别","answer":["女"],"more":["","AAAAAAAA"]},{"question":"测试多选","answer":["A. YOOOOO","C. LAAAAA","D. SAAAAAA"],"more":["","","ASDASD","SDFDSFDSF"]},{"question":"测试图片","answer":"/storage/assets/upload/image/2023/06/995cc343-a5ce-4b12-92d5-b4e8c8ccf2ec.jpeg","more":""}]', '2023-06-08 23:08:41', '2023-06-08 23:08:41');
create table hospital_questions
(
id bigint unsigned auto_increment
primary key,
hospital bigint not null,
question varchar(200) not null,
type tinyint not null comment '1-填空 2-单选 3-多选 4-图片',
content text not null,
mark varchar(20) not null,
`order` int default 1 null,
status tinyint not null,
del tinyint default 2 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index hospital_questions_type_index
on hospital_questions (type);
INSERT INTO lkpe.hospital_questions (id, hospital, question, type, content, mark, `order`, status, del, created_at, updated_at) VALUES (1, 0, '请输入您的姓名', 1, '{"placeholder":"请输入"}', 'NAME', 1, 1, 2, '2023-06-08 18:44:10', '2023-06-08 18:44:34');
INSERT INTO lkpe.hospital_questions (id, hospital, question, type, content, mark, `order`, status, del, created_at, updated_at) VALUES (2, 0, '请选择您的性别', 2, '{"item":["男","女{{MORE}}为什么选这个选项"]}', 'SEX', 2, 1, 2, '2023-06-08 19:09:08', '2023-06-08 21:32:39');
INSERT INTO lkpe.hospital_questions (id, hospital, question, type, content, mark, `order`, status, del, created_at, updated_at) VALUES (3, 0, '测试多选', 3, '{"item":["A. YOOOOO","B. HAAAAA","C. LAAAAA{{MORE}}为什么选这个选项","D. SAAAAAA{{MORE}}为什么选这个选项"]}', '', 3, 1, 2, '2023-06-08 19:16:53', '2023-06-08 21:32:33');
INSERT INTO lkpe.hospital_questions (id, hospital, question, type, content, mark, `order`, status, del, created_at, updated_at) VALUES (4, 0, '测试图片', 4, '{"placeholder":"请上传图片"}', '', 4, 1, 2, '2023-06-08 19:17:56', '2023-06-08 19:17:56');
create table hospitals
(
id bigint unsigned auto_increment
primary key,
name varchar(50) not null,
code varchar(50) not null,
address varchar(100) not null,
longitude decimal(10, 6) not null,
latitude decimal(10, 6) not null,
logo varchar(100) not null,
dev tinyint not null comment '1:测试机构, 2:正式机构',
phone varchar(20) not null,
status tinyint not null,
del tinyint default 2 not null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.hospitals (id, name, code, address, longitude, latitude, logo, dev, phone, status, del, created_at, updated_at) VALUES (1, '测试医院机构', '130302999999', '测试医院机构测试医院机构测试医院机构测试医院机构', 119.514637, 39.903517, '/storage/assets/upload/image/2023/06/995ed894-39aa-4c62-a8a3-8183d7424ec9.png', 1, '03358888887', 1, 2, '2023-04-07 23:11:35', '2023-06-10 00:03:30');
INSERT INTO lkpe.hospitals (id, name, code, address, longitude, latitude, logo, dev, phone, status, del, created_at, updated_at) VALUES (2, '普通医院机构', '130302999999', '普通医院机构234', 119.600492, 39.935385, '/storage/assets/upload/image/2023/04/98e615fb-a73f-49cb-9aa2-95751bd82df4.jpeg', 2, '03357777777', 1, 2, '2023-04-07 23:18:13', '2023-04-10 23:16:28');
create table user_accounts
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
account varchar(50) not null,
secret varchar(80) not null,
type tinyint not null comment '1-微信OPENID',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index user_accounts_account_index
on user_accounts (account);
create table user_orders
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
hospital bigint not null,
name varchar(50) not null,
id_number varchar(50) not null,
phone varchar(30) not null,
birthday date not null,
sex tinyint not null comment '1-男 2-女',
marriage tinyint not null comment '1-是 2-否',
buy_info text not null,
type tinyint not null comment '1-个检 2-团检',
combo varchar(50) not null,
price decimal(9, 2) not null,
true_price decimal(9, 2) not null,
group_price decimal(9, 2) not null,
pay_type tinyint default 0 not null comment '0-未指定 1-微信 2-会员卡 3-免费',
transaction varchar(50) null,
status tinyint not null comment '1-待支付 2-已支付 3-已取消 4-已完成 5-已退款',
pay_time datetime null,
refund bigint default 0 not null,
refund_time datetime null,
appointment bigint not null,
appointment_time datetime not null,
`show` varchar(50) not null,
appointment_number varchar(50) null,
appointment_info longtext null,
exam_number varchar(50) null,
check_status tinyint default 1 not null comment '1-待检查 2-已检查',
check_time datetime null,
referral varchar(50) default '' null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index user_orders_appointment_index
on user_orders (appointment);
create index user_orders_combo_index
on user_orders (combo);
create index user_orders_hospital_index
on user_orders (hospital);
create index user_orders_id_number_index
on user_orders (id_number);
create index user_orders_name_index
on user_orders (name);
create index user_orders_phone_index
on user_orders (phone);
create index user_orders_show_index
on user_orders (`show`);
create index user_orders_user_index
on user_orders (user);
create table user_people
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
name varchar(50) not null,
id_number varchar(50) not null,
birthday date not null,
sex tinyint not null comment '1-男 2-女',
phone varchar(30) not null,
relationship varchar(30) not null,
marriage tinyint not null comment '1-是 2-否',
`default` tinyint not null comment '1-是 2-否',
del tinyint default 2 not null comment '1-是 2-否',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index user_people_id_number_index
on user_people (id_number);
create index user_people_user_index
on user_people (user);
create table user_tokens
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
token varchar(50) not null,
type tinyint not null comment '1-微信',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null,
constraint user_tokens_token_unique
unique (token)
)
collate = utf8mb4_unicode_ci;
create table users
(
id bigint unsigned auto_increment
primary key,
nickname varchar(100) not null,
avatar varchar(200) not null,
dev tinyint default 2 not null comment '1-测试 2-普通',
pay decimal(8, 2) default -1.00 not null comment '支付金额 负数按实际金额支付',
status tinyint default 1 not null comment '1-正常 2-禁用',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create table we_chat_pays
(
id bigint unsigned auto_increment
primary key,
out_trade_no varchar(100) not null,
post_data text not null,
params text not null,
callback longtext null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index we_chat_pays_out_trade_no_index
on we_chat_pays (out_trade_no);
create table we_chat_refunds
(
id bigint unsigned auto_increment
primary key,
admin bigint default 0 null,
out_trade_no varchar(100) not null,
post_data text not null,
params longtext not null,
callback longtext null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index we_chat_refunds_out_trade_no_index
on we_chat_refunds (out_trade_no);

@ -0,0 +1,42 @@
create table migrations
(
id int unsigned auto_increment
primary key,
migration varchar(255) not null,
batch int not null
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (1, '2019_12_14_000001_create_personal_access_tokens_table', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (2, '2022_07_11_104036_create_admins_table', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (3, '2022_07_11_104729_create_admin_accounts_table', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (4, '2022_07_11_104741_create_admin_auths_table', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (5, '2022_07_11_104747_create_auths_table', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (6, '2022_07_11_104758_create_admin_tokens_table', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (7, '2022_07_11_105144_push_admin_data', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (8, '2022_07_11_105144_push_auth_data', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (9, '2022_07_15_143135_create_configs_table', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (10, '2022_07_15_143353_push_config_data', 1);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (11, '2023_04_07_141201_create_appointment_templates_table', 2);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (13, '2023_04_07_141238_create_appointments_table', 2);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (14, '2023_04_07_143013_create_hospitals_table', 2);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (15, '2023_04_07_141218_create_appointment_holidays_table', 3);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (18, '2023_04_11_101420_create_carousels_table', 4);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (19, '2023_04_11_145255_create_hospital_additionals_table', 5);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (20, '2022_11_16_132802_create_users_table', 6);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (21, '2022_11_16_132829_create_user_accounts_table', 6);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (22, '2022_11_16_132843_create_user_tokens_table', 6);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (25, '2023_04_12_200330_create_user_people_table', 7);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (26, '2023_05_24_094023_create_hospital_pays_table', 8);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (27, '2023_05_24_124518_create_hospital_extras_table', 9);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (28, '2023_05_24_190728_create_hospital_activity_packages_table', 10);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (29, '2023_05_27_150538_create_we_chat_pays_table', 11);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (30, '2023_05_27_171617_create_user_orders_table', 11);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (32, '2023_05_30_165024_create_we_chat_refunds_table', 12);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (34, '2023_03_20_143141_create_analysis_types_table', 13);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (36, '2023_06_05_192655_create_posts_table', 14);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (37, '2023_06_05_223025_create_hospital_posts_table', 15);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (38, '2023_06_06_124320_create_hospital_questions_table', 16);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (39, '2023_06_08_224407_create_hospital_question_logs_table', 17);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (41, '2023_06_09_152434_add_hospital_to_admins_table', 18);
INSERT INTO lkpe.migrations (id, migration, batch) VALUES (43, '2023_06_10_015333_add_hospital_to_appointment_templates_table', 19);

@ -0,0 +1,20 @@
create table personal_access_tokens
(
id bigint unsigned auto_increment
primary key,
tokenable_type varchar(255) not null,
tokenable_id bigint unsigned not null,
name varchar(255) not null,
token varchar(64) not null,
abilities text null,
last_used_at timestamp null,
created_at timestamp null,
updated_at timestamp null,
constraint personal_access_tokens_token_unique
unique (token)
)
collate = utf8mb4_unicode_ci;
create index personal_access_tokens_tokenable_type_tokenable_id_index
on personal_access_tokens (tokenable_type, tokenable_id);

@ -0,0 +1,18 @@
create table user_accounts
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
account varchar(50) not null,
secret varchar(80) not null,
type tinyint not null comment '1-微信OPENID',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index user_accounts_account_index
on user_accounts (account);
INSERT INTO lkpe.user_accounts (id, user, account, secret, type, del, created_at, updated_at) VALUES (1, 1, 'ourv44tbkA8yLB8X60GhmvhetVTM', '/hfvdK9AL5F6wGhwDX4TFw==', 1, 2, '2023-04-12 11:45:59', '2023-06-06 10:27:55');

@ -0,0 +1,98 @@
create table user_orders
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
hospital bigint not null,
name varchar(50) not null,
id_number varchar(50) not null,
phone varchar(30) not null,
birthday date not null,
sex tinyint not null comment '1-男 2-女',
marriage tinyint not null comment '1-是 2-否',
buy_info text not null,
type tinyint not null comment '1-个检 2-团检',
combo varchar(50) not null,
price decimal(9, 2) not null,
true_price decimal(9, 2) not null,
group_price decimal(9, 2) not null,
pay_type tinyint default 0 not null comment '0-未指定 1-微信 2-会员卡 3-免费',
transaction varchar(50) null,
status tinyint not null comment '1-待支付 2-已支付 3-已取消 4-已完成 5-已退款',
pay_time datetime null,
refund bigint default 0 not null,
refund_time datetime null,
appointment bigint not null,
appointment_time datetime not null,
`show` varchar(50) not null,
appointment_number varchar(50) null,
appointment_info longtext null,
exam_number varchar(50) null,
check_status tinyint default 1 not null comment '1-待检查 2-已检查',
check_time datetime null,
referral varchar(50) default '' null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index user_orders_appointment_index
on user_orders (appointment);
create index user_orders_combo_index
on user_orders (combo);
create index user_orders_hospital_index
on user_orders (hospital);
create index user_orders_id_number_index
on user_orders (id_number);
create index user_orders_name_index
on user_orders (name);
create index user_orders_phone_index
on user_orders (phone);
create index user_orders_show_index
on user_orders (`show`);
create index user_orders_user_index
on user_orders (user);
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (1, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1943","name":"健康体检套餐","price":"4.26"},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"},{"id":"3393","name":"视力、血压","price":"0.00"},{"id":"3425","name":"血脂八项","price":"124.20"},{"id":"3426","name":"冠状病毒核酸检测(本院)免费","price":"60.00"},{"id":"3427","name":"冠状病毒核酸检测(本院)自费","price":"60.00"}],"group":{"id":""}}', 1, '1943', 341.06, 0.01, 0.00, 0, null, 3, null, 0, null, 267, '2023-05-31 08:00:00', '23053000000001', null, null, null, 1, null, '', '2023-05-30 10:28:56', '2023-05-30 10:28:56');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (2, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 0, null, 3, null, 0, null, 267, '2023-05-31 08:00:00', '23053000000002', null, null, null, 1, null, '', '2023-05-30 11:09:38', '2023-05-30 11:09:38');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (3, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 0, null, 3, null, 0, null, 273, '2023-05-30 14:00:00', '23053000000003', null, null, null, 1, null, '', '2023-05-30 11:09:52', '2023-05-30 11:09:52');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (4, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 0, null, 3, null, 0, null, 273, '2023-05-30 14:00:00', '23053000000004', null, null, null, 1, null, '', '2023-05-30 11:15:12', '2023-05-30 11:15:12');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (5, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 0, null, 3, null, 0, null, 273, '2023-05-30 14:00:00', '23053000000005', null, null, null, 1, null, '', '2023-05-30 11:15:14', '2023-05-30 11:15:14');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (6, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 0, null, 3, null, 0, null, 273, '2023-05-30 14:00:00', '23053000000006', null, null, null, 1, null, '', '2023-05-30 11:15:16', '2023-05-30 11:15:16');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (7, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1943","name":"健康体检套餐","price":"4.26"},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"},{"id":"3393","name":"视力、血压","price":"0.00"},{"id":"3425","name":"血脂八项","price":"124.20"},{"id":"3426","name":"冠状病毒核酸检测(本院)免费","price":"60.00"},{"id":"3427","name":"冠状病毒核酸检测(本院)自费","price":"60.00"}],"group":{"id":""}}', 1, '1943', 341.06, 0.01, 0.00, 0, null, 3, null, 0, null, 267, '2023-05-31 08:00:00', '23053000000007', null, null, null, 1, null, '', '2023-05-30 13:23:57', '2023-05-30 13:23:57');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (8, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1943","name":"健康体检套餐","price":"4.26"},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"},{"id":"3393","name":"视力、血压","price":"0.00"},{"id":"3425","name":"血脂八项","price":"124.20"},{"id":"3426","name":"冠状病毒核酸检测(本院)免费","price":"60.00"},{"id":"3427","name":"冠状病毒核酸检测(本院)自费","price":"60.00"}],"group":{"id":""}}', 1, '1943', 341.06, 0.01, 0.00, 0, null, 3, null, 0, null, 267, '2023-05-31 08:00:00', '23053000000008', null, null, null, 1, null, '', '2023-05-30 13:42:46', '2023-05-30 13:42:46');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (9, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 1, null, 3, null, 0, null, 278, '2023-05-31 18:00:00', '23053000000009', null, null, null, 1, null, '', '2023-05-30 14:12:51', '2023-05-30 14:12:59');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (10, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1943","name":"健康体检套餐","price":"4.26"},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"},{"id":"3393","name":"视力、血压","price":"0.00"},{"id":"3425","name":"血脂八项","price":"124.20"},{"id":"3426","name":"冠状病毒核酸检测(本院)免费","price":"60.00"},{"id":"3427","name":"冠状病毒核酸检测(本院)自费","price":"60.00"}],"group":{"id":""}}', 1, '1943', 341.06, 0.01, 0.00, 1, null, 3, null, 0, null, 267, '2023-05-31 08:00:00', '23053000000010', null, null, null, 1, null, '陆予思思', '2023-05-30 14:42:45', '2023-05-30 14:42:47');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (11, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[{"id":"3393","name":"视力、血压","price":"0.00"},{"id":"3398","name":"驾驶证体检","price":"0.00"},{"id":"3436","name":"中医体质辨识","price":"52.00"}],"group":{"id":""}}', 1, '1958', 78.00, 0.01, 0.00, 1, '4200001881202305300809090763', 5, '2023-05-30 14:55:31', 0, '2023-05-30 17:00:17', 279, '2023-06-01 08:00:00', '23053000000011', '35a65e1f-e2ac-4d7b-9251-6b10c5472c41', '{"项目列表":[{"Id":"3393","名称":"视力、血压","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":true},{"Id":"3398","名称":"驾驶证体检","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":true},{"Id":"3414","名称":"无抗凝采血管","价格":"1.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3422","名称":"动脉采血","价格":"25.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3436","名称":"中医体质辨识","价格":"52.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":true},{"Id":"3497","名称":"男性测试项目","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3498","名称":"男性测试项目2","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"35a65e1f-e2ac-4d7b-9251-6b10c5472c41","姓名":"陆予三三","婚姻状态":"已婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-01","预约结束日期":"2023-06-02","套餐名称":"男性限定测试套餐","当前状态":"未支付","总计金额":"78.00","预约来源":"微信个人预约","到达日期":"2023-06-01","已收费":true}', null, 1, null, null, '2023-05-30 14:55:12', '2023-05-30 17:00:17');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (12, 1, 1, '陆予九', '130322199409060012', '15232310906', '1994-09-06', 1, 2, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 1, '4200001853202305309462597922', 5, '2023-05-30 16:02:41', 0, '2023-05-30 16:43:51', 280, '2023-06-02 08:00:00', '23053000000012', '42c22d8d-aa1e-4443-a943-e2e38883cae9', '{"项目列表":[{"Id":"3414","名称":"无抗凝采血管","价格":"1.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3422","名称":"动脉采血","价格":"25.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3497","名称":"男性测试项目","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3498","名称":"男性测试项目2","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"42c22d8d-aa1e-4443-a943-e2e38883cae9","姓名":"陆予九","婚姻状态":"未婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-02","预约结束日期":"2023-06-03","套餐名称":"男性限定测试套餐","当前状态":"未支付","总计金额":"26.00","预约来源":"微信个人预约","到达日期":"2023-06-02","已收费":true}', null, 1, null, 'AAAAA', '2023-05-30 16:02:22', '2023-05-30 16:43:51');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (13, 1, 1, '陆予十', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 1, '4200001870202305304767033509', 5, '2023-05-30 16:05:00', 0, '2023-05-30 16:42:53', 281, '2023-06-05 08:00:00', '23053000000013', '01edd317-3776-49ae-805f-c01c14aa52b9', '{"项目列表":[{"Id":"3414","名称":"无抗凝采血管","价格":"1.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3422","名称":"动脉采血","价格":"25.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3497","名称":"男性测试项目","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3498","名称":"男性测试项目2","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"01edd317-3776-49ae-805f-c01c14aa52b9","姓名":"陆予十","婚姻状态":"已婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-05","预约结束日期":"2023-06-06","套餐名称":"男性限定测试套餐","当前状态":"未支付","总计金额":"26.00","预约来源":"微信个人预约","到达日期":"2023-06-05","已收费":true}', null, 1, null, null, '2023-05-30 16:04:43', '2023-05-30 16:42:53');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (14, 1, 1, '陆予八', '130322199409060012', '15232310906', '1994-09-06', 1, 2, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 1, '4200001869202305309840726002', 4, '2023-05-30 17:06:45', 0, null, 282, '2023-06-06 08:00:00', '23053000000014', 'e8bdbc3c-9fb6-4143-a627-7be2142a9d20', '{"项目列表":[{"Id":"3414","名称":"无抗凝采血管","价格":"1.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3422","名称":"动脉采血","价格":"25.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3497","名称":"男性测试项目","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3498","名称":"男性测试项目2","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"e8bdbc3c-9fb6-4143-a627-7be2142a9d20","姓名":"陆予八","婚姻状态":"未婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-06","预约结束日期":"2023-06-07","套餐名称":"男性限定测试套餐","当前状态":"未支付","总计金额":"26.00","预约来源":"微信个人预约","到达日期":"2023-06-06","已收费":true}', 'AAAAAAA', 2, '2023-05-30 17:07:37', null, '2023-05-30 17:06:25', '2023-05-30 17:06:46');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (15, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 1, null, 3, null, 0, null, 283, '2023-06-07 08:00:00', '23053000000015', null, null, null, 1, null, null, '2023-05-30 17:21:02', '2023-05-30 17:21:03');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (16, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1943","name":"健康体检套餐","price":"4.26"},"items":[],"group":{"id":""}}', 1, '1943', 4.26, 0.01, 0.00, 1, '4200001863202305305655791592', 5, '2023-05-30 17:25:25', 0, '2023-05-30 17:32:55', 284, '2023-06-08 08:00:00', '23053000000016', '049673e2-ec9a-4c02-ae0d-c29bd6bc88ad', '{"项目列表":[{"Id":"2627","名称":"常规检查","价格":"15.5000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2759","名称":"彩超(肝、胆、脾、肾、膀胱、输尿管、女子宫、附件)","价格":"352.9900","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":"19.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"3261","名称":"尿常规+镜检","价格":"12.6000","优惠方式":"打折","优惠值":"0.0100","自选项目":false}],"预约Id":"049673e2-ec9a-4c02-ae0d-c29bd6bc88ad","姓名":"陆予三三","婚姻状态":"已婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-08","预约结束日期":"2023-06-09","套餐名称":"健康体检套餐","当前状态":"未支付","总计金额":"4.26","预约来源":"微信个人预约","到达日期":"2023-06-08","已收费":true}', null, 1, null, null, '2023-05-30 17:25:03', '2023-05-30 17:32:55');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (17, 1, 1, '陆予十', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1943","name":"健康体检套餐","price":"4.26"},"items":[],"group":{"id":""}}', 1, '1943', 4.26, 0.01, 0.00, 1, '4200001863202305304225474765', 5, '2023-05-30 17:33:38', 0, '2023-05-30 17:33:56', 284, '2023-06-08 08:00:00', '23053000000017', 'deb2d9fa-fa12-4008-9cdc-8f595809d48d', '{"项目列表":[{"Id":"2627","名称":"常规检查","价格":"15.5000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2759","名称":"彩超(肝、胆、脾、肾、膀胱、输尿管、女子宫、附件)","价格":"352.9900","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":"19.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"3261","名称":"尿常规+镜检","价格":"12.6000","优惠方式":"打折","优惠值":"0.0100","自选项目":false}],"预约Id":"deb2d9fa-fa12-4008-9cdc-8f595809d48d","姓名":"陆予十","婚姻状态":"已婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-08","预约结束日期":"2023-06-09","套餐名称":"健康体检套餐","当前状态":"未支付","总计金额":"4.26","预约来源":"微信个人预约","到达日期":"2023-06-08","已收费":true}', null, 1, null, null, '2023-05-30 17:33:18', '2023-05-30 17:33:56');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (18, 1, 1, '陆予十', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1943","name":"健康体检套餐","price":"4.26"},"items":[],"group":{"id":""}}', 1, '1943', 4.26, 0.01, 0.00, 1, '4200001863202305309332322462', 5, '2023-05-30 17:40:33', 0, '2023-05-30 17:40:48', 284, '2023-06-08 08:00:00', '23053000000018', '0defebb8-0bd0-461f-8c90-43248449f643', '{"项目列表":[{"Id":"2627","名称":"常规检查","价格":"15.5000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2759","名称":"彩超(肝、胆、脾、肾、膀胱、输尿管、女子宫、附件)","价格":"352.9900","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":"19.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"3261","名称":"尿常规+镜检","价格":"12.6000","优惠方式":"打折","优惠值":"0.0100","自选项目":false}],"预约Id":"0defebb8-0bd0-461f-8c90-43248449f643","姓名":"陆予十","婚姻状态":"已婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-08","预约结束日期":"2023-06-09","套餐名称":"健康体检套餐","当前状态":"未支付","总计金额":"4.26","预约来源":"微信个人预约","到达日期":"2023-06-08","已收费":true}', null, 1, null, 'AAAA', '2023-05-30 17:36:14', '2023-05-30 17:40:48');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (19, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '2023-05-30', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"}],"group":{"id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","combo_name":"测试120","combo_id":"C1109","group_name":"百年人寿客户全部","items":[{"id":"2748","name":"盆底彩超"},{"id":"2820","name":"血常规18项"},{"id":"2821","name":"血细胞分析22项"},{"id":"2851","name":"空腹血糖"},{"id":"3012","name":"甲功三项"},{"id":"3489","name":"测试材料费1"},{"id":"3490","name":"测试材料费2"}],"appointment_number":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4"}}', 2, '0', 55.80, 0.01, 0.00, 1, null, 3, null, 0, null, 288, '2023-06-14 08:00:00', '23053000000019', 'd9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4', null, null, 1, null, null, '2023-05-30 18:50:46', '2023-05-30 18:50:47');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (20, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"}],"group":{"id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","combo_name":"测试120","combo_id":"C1109","group_name":"百年人寿客户全部","items":[{"id":"2748","name":"盆底彩超"},{"id":"2820","name":"血常规18项"},{"id":"2821","name":"血细胞分析22项"},{"id":"2851","name":"空腹血糖"},{"id":"3012","name":"甲功三项"},{"id":"3489","name":"测试材料费1"},{"id":"3490","name":"测试材料费2"}],"appointment_number":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4"}}', 2, '0', 92.60, 0.01, 0.00, 1, '4200001854202306017391028977', 2, '2023-06-01 16:37:45', 0, null, 288, '2023-06-14 08:00:00', '23060100000020', 'd9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4', '{"单位名称":"百年人寿客户","批次名称":"2022","部门名称":"全部","分组名称":"登记","项目列表":[{"Id":"2748","名称":"盆底彩超","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"2820","名称":"血常规18项","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"2851","名称":"空腹血糖","价格":null,"优惠方式":"打折","优惠值":"0.1491","自选项目":false},{"Id":"3012","名称":"甲功三项","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"3406","名称":"口腔全景CR片","价格":"55.8000","优惠方式":"打折","优惠值":"1.0000","自选项目":true},{"Id":"3408","名称":"口腔全景CR片(无片)","价格":"36.8000","优惠方式":"打折","优惠值":"1.0000","自选项目":true},{"Id":"3489","名称":"测试材料费1","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3490","名称":"测试材料费2","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","姓名":"团检预约测试","婚姻状态":"其他","证件号码":"110101198805279357","电话号码":"12345678901","预约开始日期":"2023-05-27","预约结束日期":"2023-07-01","套餐名称":"测试120","当前状态":"未支付","总计金额":"417.60","预约来源":"微信团检预约","到达日期":"2023-06-14","已收费":false}', null, 1, null, null, '2023-06-01 16:13:49', '2023-06-01 16:37:46');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (21, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[],"group":{"id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","combo_name":"测试120","combo_id":"C1109","group_name":"百年人寿客户全部","items":[{"id":"2748","name":"盆底彩超"},{"id":"2820","name":"血常规18项"},{"id":"2821","name":"血细胞分析22项"},{"id":"2851","name":"空腹血糖"},{"id":"3012","name":"甲功三项"},{"id":"3489","name":"测试材料费1"},{"id":"3490","name":"测试材料费2"}],"appointment_number":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4"}}', 2, '0', 0.00, 0.00, 0.00, 0, null, 3, null, 0, null, 288, '2023-06-14 08:00:00', '23060100000021', 'd9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4', null, null, 1, null, null, '2023-06-01 16:29:39', '2023-06-01 16:29:39');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (22, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[],"group":{"id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","combo_name":"测试120","combo_id":"C1109","group_name":"百年人寿客户全部","items":[{"id":"2748","name":"盆底彩超"},{"id":"2820","name":"血常规18项"},{"id":"2821","name":"血细胞分析22项"},{"id":"2851","name":"空腹血糖"},{"id":"3012","name":"甲功三项"},{"id":"3489","name":"测试材料费1"},{"id":"3490","name":"测试材料费2"}],"appointment_number":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4"}}', 2, '0', 0.00, 0.00, 0.00, 3, '', 5, '2023-06-01 16:39:30', 0, '2023-06-01 16:40:22', 288, '2023-06-14 08:00:00', '23060100000022', 'd9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4', '{"单位名称":"百年人寿客户","批次名称":"2022","部门名称":"全部","分组名称":"登记","项目列表":[{"Id":"2748","名称":"盆底彩超","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"2820","名称":"血常规18项","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"2851","名称":"空腹血糖","价格":null,"优惠方式":"打折","优惠值":"0.1491","自选项目":false},{"Id":"3012","名称":"甲功三项","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"3489","名称":"测试材料费1","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3490","名称":"测试材料费2","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","姓名":"团检预约测试","婚姻状态":"其他","证件号码":"110101198805279357","电话号码":"12345678901","预约开始日期":"2023-05-27","预约结束日期":"2023-07-01","套餐名称":"测试120","当前状态":"未支付","总计金额":"325.00","预约来源":"微信团检预约","到达日期":"2023-06-14","已收费":false}', null, 1, null, null, '2023-06-01 16:32:40', '2023-06-01 16:40:22');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (23, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[],"group":{"id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","combo_name":"测试120","combo_id":"C1109","group_name":"百年人寿客户全部","items":[{"id":"2748","name":"盆底彩超"},{"id":"2820","name":"血常规18项"},{"id":"2821","name":"血细胞分析22项"},{"id":"2851","name":"空腹血糖"},{"id":"3012","name":"甲功三项"},{"id":"3489","name":"测试材料费1"},{"id":"3490","name":"测试材料费2"}],"appointment_number":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4"}}', 2, '0', 0.00, 0.00, 0.00, 3, '', 5, '2023-06-01 16:46:04', 0, '2023-06-01 16:46:14', 288, '2023-06-14 08:00:00', '23060100000023', 'd9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4', '{"单位名称":"百年人寿客户","批次名称":"2022","部门名称":"全部","分组名称":"登记","项目列表":[{"Id":"2748","名称":"盆底彩超","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"2820","名称":"血常规18项","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"2851","名称":"空腹血糖","价格":null,"优惠方式":"打折","优惠值":"0.1491","自选项目":false},{"Id":"3012","名称":"甲功三项","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"3489","名称":"测试材料费1","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3490","名称":"测试材料费2","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","姓名":"团检预约测试","婚姻状态":"其他","证件号码":"110101198805279357","电话号码":"12345678901","预约开始日期":"2023-05-27","预约结束日期":"2023-07-01","套餐名称":"测试120","当前状态":"未支付","总计金额":"325.00","预约来源":"微信团检预约","到达日期":"2023-06-14","已收费":false}', null, 1, null, null, '2023-06-01 16:34:11', '2023-06-01 16:46:14');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (24, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"}],"group":{"id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","combo_name":"测试120","combo_id":"C1109","group_name":"百年人寿客户全部","items":[{"id":"2748","name":"盆底彩超"},{"id":"2820","name":"血常规18项"},{"id":"2821","name":"血细胞分析22项"},{"id":"2851","name":"空腹血糖"},{"id":"3012","name":"甲功三项"},{"id":"3489","name":"测试材料费1"},{"id":"3490","name":"测试材料费2"}],"appointment_number":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4"}}', 2, '0', 92.60, 0.01, 0.00, 1, '4200001875202306016475448464', 5, '2023-06-01 16:47:59', 0, '2023-06-01 16:48:40', 289, '2023-06-15 08:00:00', '23060100000024', 'd9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4', '{"单位名称":"百年人寿客户","批次名称":"2022","部门名称":"全部","分组名称":"登记","项目列表":[{"Id":"2748","名称":"盆底彩超","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"2820","名称":"血常规18项","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"2851","名称":"空腹血糖","价格":null,"优惠方式":"打折","优惠值":"0.1491","自选项目":false},{"Id":"3012","名称":"甲功三项","价格":null,"优惠方式":"打折","优惠值":"0.1512","自选项目":false},{"Id":"3406","名称":"口腔全景CR片","价格":"55.8000","优惠方式":"打折","优惠值":"1.0000","自选项目":true},{"Id":"3408","名称":"口腔全景CR片(无片)","价格":"36.8000","优惠方式":"打折","优惠值":"1.0000","自选项目":true},{"Id":"3489","名称":"测试材料费1","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3490","名称":"测试材料费2","价格":null,"优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"d9f1fa6d-5b2a-4778-a0fe-3bca3b6b3cb4","姓名":"团检预约测试","婚姻状态":"其他","证件号码":"110101198805279357","电话号码":"12345678901","预约开始日期":"2023-05-27","预约结束日期":"2023-07-01","套餐名称":"测试120","当前状态":"未支付","总计金额":"417.60","预约来源":"微信团检预约","到达日期":"2023-06-15","已收费":false}', null, 1, null, null, '2023-06-01 16:47:33', '2023-06-01 16:48:40');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (25, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1943","name":"健康体检套餐","price":"4.26"},"items":[],"group":{"id":""}}', 1, '1943', 4.26, 0.01, 0.00, 1, '4200001875202306012554576392', 5, '2023-06-01 16:52:52', 0, '2023-06-01 16:53:07', 299, '2023-06-30 08:00:00', '23060100000025', 'e65411b9-050b-4782-887a-471e0f52f8d9', '{"项目列表":[{"Id":"2627","名称":"常规检查","价格":"15.5000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2759","名称":"彩超(肝、胆、脾、肾、膀胱、输尿管、女子宫、附件)","价格":"352.9900","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":"19.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"3261","名称":"尿常规+镜检","价格":"12.6000","优惠方式":"打折","优惠值":"0.0100","自选项目":false}],"预约Id":"e65411b9-050b-4782-887a-471e0f52f8d9","姓名":"陆予三三","婚姻状态":"已婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-30","预约结束日期":"2023-07-01","套餐名称":"健康体检套餐","当前状态":"未支付","总计金额":"4.26","预约来源":"微信个人预约","到达日期":"2023-06-30","已收费":true}', null, 1, null, null, '2023-06-01 16:52:32', '2023-06-01 16:53:07');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (26, 1, 1, '陆予', '130322199409060012', '15232310906', '1994-09-06', 1, 2, '{"combo":{"id":"1944","name":"2022春季体检套餐","price":"0.21"},"items":[],"group":{"id":""}}', 1, '1944', 0.21, 0.01, 0.00, 1, '4200001869202306017909135918', 5, '2023-06-01 16:55:01', 13, '2023-06-10 23:12:12', 297, '2023-06-28 08:00:00', '23060100000026', '', '{"项目列表":[{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"优惠","优惠值":"25.0000","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"优惠","优惠值":"0.0000","自选项目":false},{"Id":"2749","名称":"腹部彩超","价格":"132.9900","优惠方式":"优惠","优惠值":"132.9800","自选项目":false},{"Id":"2820","名称":"血常规18项","价格":"14.0000","优惠方式":"优惠","优惠值":"14.0000","自选项目":false},{"Id":"2895","名称":"血脂四项","价格":"29.2000","优惠方式":"优惠","优惠值":"29.0000","自选项目":false}],"预约Id":"8c6c3ccb-88be-4204-bf7c-5b828cc0ec1e","姓名":"陆予","婚姻状态":"未婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-28","预约结束日期":"2023-06-29","套餐名称":"2022春季体检套餐","当前状态":"未支付","总计金额":"0.21","预约来源":"微信个人预约","到达日期":"2023-06-28","已收费":true}', null, 1, null, null, '2023-06-01 16:53:45', '2023-06-10 23:12:12');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (27, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1944","name":"2022春季体检套餐","price":"0.21"},"items":[],"group":{"id":""}}', 1, '1944', 0.21, 1.00, 0.00, 1, '4200001878202306106472014572', 3, '2023-06-10 22:04:07', 0, null, 298, '2023-06-29 08:00:00', '23061000000027', '', '{"项目列表":[{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"优惠","优惠值":"25.0000","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"优惠","优惠值":"0.0000","自选项目":false},{"Id":"2749","名称":"腹部彩超","价格":"132.9900","优惠方式":"优惠","优惠值":"132.9800","自选项目":false},{"Id":"2820","名称":"血常规18项","价格":"14.0000","优惠方式":"优惠","优惠值":"14.0000","自选项目":false},{"Id":"2895","名称":"血脂四项","价格":"29.2000","优惠方式":"优惠","优惠值":"29.0000","自选项目":false}],"预约Id":"349757c2-474a-4a79-921d-9226292b809d","姓名":"陆予三三","婚姻状态":"已婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-29","预约结束日期":"2023-06-30","套餐名称":"2022春季体检套餐","当前状态":"未支付","总计金额":"0.21","预约来源":"微信个人预约","到达日期":"2023-06-29","已收费":true}', null, 1, null, null, '2023-06-10 22:03:47', '2023-06-10 23:04:22');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (28, 1, 1, '陆予', '130322199409060012', '15232310906', '1994-09-06', 1, 2, '{"combo":{"id":"1944","name":"2022春季体检套餐","price":"0.21"},"items":[],"group":{"id":""}}', 1, '1944', 0.21, 0.01, 0.00, 1, '4200001874202306106949118449', 3, '2023-06-10 22:05:43', 10, '2023-06-10 22:07:02', 324, '2023-06-27 05:00:00', '23061000000028', '', '{"项目列表":[{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"优惠","优惠值":"25.0000","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"优惠","优惠值":"0.0000","自选项目":false},{"Id":"2749","名称":"腹部彩超","价格":"132.9900","优惠方式":"优惠","优惠值":"132.9800","自选项目":false},{"Id":"2820","名称":"血常规18项","价格":"14.0000","优惠方式":"优惠","优惠值":"14.0000","自选项目":false},{"Id":"2895","名称":"血脂四项","价格":"29.2000","优惠方式":"优惠","优惠值":"29.0000","自选项目":false}],"预约Id":"a710c023-8fbd-4bf4-952c-3514b043c511","姓名":"陆予","婚姻状态":"未婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-27","预约结束日期":"2023-06-28","套餐名称":"2022春季体检套餐","当前状态":"未支付","总计金额":"0.21","预约来源":"微信个人预约","到达日期":"2023-06-27","已收费":true}', null, 1, null, null, '2023-06-10 22:05:08', '2023-06-10 23:03:27');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (29, 1, 1, '陆予', '130322199409060012', '15232310906', '1994-09-06', 1, 2, '{"combo":{"id":"1945","name":"测试体检套餐","price":"4.61"},"items":[],"group":{"id":""}}', 1, '1945', 4.61, 0.01, 0.00, 1, '4200001865202306104894982654', 3, '2023-06-10 22:10:21', 11, '2023-06-10 22:10:30', 291, '2023-06-19 08:00:00', '23061000000029', '', '{"项目列表":[{"Id":"2627","名称":"常规检查","价格":"15.5000","优惠方式":"打折","优惠值":"0.0090","自选项目":false},{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2759","名称":"彩超(肝、胆、脾、肾、膀胱、输尿管、女子宫、附件)","价格":"352.9900","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2821","名称":"血细胞分析22项","价格":"19.0000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"2857","名称":"尿生化6项","价格":"36.6000","优惠方式":"打折","优惠值":"0.0100","自选项目":false},{"Id":"3261","名称":"尿常规+镜检","价格":"12.6000","优惠方式":"打折","优惠值":"0.0100","自选项目":false}],"预约Id":"082e5b43-d363-46ea-8c64-261055883c06","姓名":"陆予","婚姻状态":"未婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-06-19","预约结束日期":"2023-06-20","套餐名称":"测试体检套餐","当前状态":"未支付","总计金额":"4.61","预约来源":"微信个人预约","到达日期":"2023-06-19","已收费":true}', null, 1, null, null, '2023-06-10 22:10:02', '2023-06-10 23:00:53');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (30, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 1, '4200001857202306100716925903', 5, '2023-06-10 22:19:09', 12, '2023-06-10 22:19:22', 298, '2023-06-29 08:00:00', '23061000000030', '', '{"项目列表":[{"Id":"3414","名称":"无抗凝采血管","价格":"1.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3422","名称":"动脉采血","价格":"25.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3497","名称":"男性测试项目","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3498","名称":"男性测试项目2","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"b4ddb308-3727-4d96-bbcc-a6e828ef49de","姓名":"团检预约测试","婚姻状态":"未婚","证件号码":"110101198805279357","电话号码":"12345678901","预约开始日期":"2023-06-29","预约结束日期":"2023-06-30","套餐名称":"男性限定测试套餐","当前状态":"未支付","总计金额":"26.00","预约来源":"微信个人预约","到达日期":"2023-06-29","已收费":true}', null, 1, null, null, '2023-06-10 22:18:50', '2023-06-10 22:19:24');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (31, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '2023-05-30', 1, 2, '{"combo":{"id":"1944","name":"2022春季体检套餐","price":"0.21"},"items":[],"group":{"id":""}}', 1, '1944', 0.21, 0.01, 0.00, 1, '4200001863202306101114595220', 5, '2023-06-10 23:17:57', 14, '2023-06-10 23:18:12', 318, '2023-06-19 05:00:00', '23061000000031', '', '{"项目列表":[{"Id":"2649","名称":"内科一般检查(健康体检)","价格":"25.0000","优惠方式":"优惠","优惠值":"25.0000","自选项目":false},{"Id":"2657","名称":"外科一般检查(健康体检)","价格":"0.0000","优惠方式":"优惠","优惠值":"0.0000","自选项目":false},{"Id":"2749","名称":"腹部彩超","价格":"132.9900","优惠方式":"优惠","优惠值":"132.9800","自选项目":false},{"Id":"2820","名称":"血常规18项","价格":"14.0000","优惠方式":"优惠","优惠值":"14.0000","自选项目":false},{"Id":"2895","名称":"血脂四项","价格":"29.2000","优惠方式":"优惠","优惠值":"29.0000","自选项目":false}],"预约Id":"05fff8e4-8e2b-495b-8d35-38808d30a362","姓名":"团检预约测试","婚姻状态":"未婚","证件号码":"110101198805279357","电话号码":"12345678901","预约开始日期":"2023-06-19","预约结束日期":"2023-06-20","套餐名称":"2022春季体检套餐","当前状态":"未支付","总计金额":"0.21","预约来源":"微信个人预约","到达日期":"2023-06-19","已收费":true}', null, 1, null, null, '2023-06-10 23:17:29', '2023-06-10 23:18:12');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (32, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"}],"group":{"id":""}}', 2, '0', 92.60, 0.01, 0.00, 1, null, 1, null, 0, null, 290, '2023-06-16 08:00:00', '23061000000032', '', null, null, 1, null, null, '2023-06-10 23:29:55', '2023-06-10 23:29:56');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (33, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"}],"group":{"id":""}}', 2, '0', 92.60, 0.01, 0.00, 1, null, 1, null, 0, null, 298, '2023-06-29 08:00:00', '23061000000033', '', null, null, 1, null, null, '2023-06-10 23:32:33', '2023-06-10 23:32:34');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (34, 1, 1, '陆予', '130322199409060012', '15232310906', '1994-09-06', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"}],"group":{"id":""}}', 2, '0', 92.60, 0.01, 0.00, 1, null, 1, null, 0, null, 297, '2023-06-28 08:00:00', '23061000000034', '', null, null, 1, null, null, '2023-06-10 23:33:39', '2023-06-10 23:33:40');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (35, 1, 1, '团检预约测试', '110101198805279357', '12345678901', '1988-05-27', 1, 2, '{"combo":{"id":0,"name":"自选项目","price":0},"items":[{"id":"3406","name":"口腔全景CR片","price":"55.80"},{"id":"3408","name":"口腔全景CR片(无片)","price":"36.80"}],"group":{"id":""}}', 1, '0', 92.60, 0.01, 0.00, 1, '4200001863202306108304916068', 2, '2023-06-10 23:40:31', 0, null, 296, '2023-06-27 08:00:00', '23061000000035', '4bbc3d3a-bbd0-4782-8317-27ff2243ec8a', '{"项目列表":[{"Id":"3406","名称":"口腔全景CR片","价格":"55.8000","优惠方式":"打折","优惠值":"1.0000","自选项目":true},{"Id":"3408","名称":"口腔全景CR片(无片)","价格":"36.8000","优惠方式":"打折","优惠值":"1.0000","自选项目":true}],"预约Id":"4bbc3d3a-bbd0-4782-8317-27ff2243ec8a","姓名":"团检预约测试","婚姻状态":"未婚","证件号码":"110101198805279357","电话号码":"12345678901","预约开始日期":"2023-06-27","预约结束日期":"2023-06-28","套餐名称":"","当前状态":"未支付","总计金额":"92.60","预约来源":"微信个人预约","到达日期":"2023-06-27","已收费":true}', null, 1, null, null, '2023-06-10 23:40:11', '2023-06-10 23:40:31');
INSERT INTO lkpe.user_orders (id, user, hospital, name, id_number, phone, birthday, sex, marriage, buy_info, type, combo, price, true_price, group_price, pay_type, transaction, status, pay_time, refund, refund_time, appointment, appointment_time, `show`, appointment_number, appointment_info, exam_number, check_status, check_time, referral, created_at, updated_at) VALUES (36, 1, 1, '陆予三三', '130322199409060012', '15232310906', '1994-09-06', 1, 1, '{"combo":{"id":"1958","name":"男性限定测试套餐","price":"26.0"},"items":[],"group":{"id":""}}', 1, '1958', 26.00, 0.01, 0.00, 1, '4200001882202306108911542132', 2, '2023-06-10 23:49:06', 0, null, 358, '2023-07-31 05:00:00', '23061000000036', '13cd639b-3247-40ae-8385-9c8310288e49', '{"项目列表":[{"Id":"3414","名称":"无抗凝采血管","价格":"1.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3422","名称":"动脉采血","价格":"25.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3497","名称":"男性测试项目","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false},{"Id":"3498","名称":"男性测试项目2","价格":"0.0000","优惠方式":"打折","优惠值":"1.0000","自选项目":false}],"预约Id":"13cd639b-3247-40ae-8385-9c8310288e49","姓名":"陆予三三","婚姻状态":"已婚","证件号码":"130322199409060012","电话号码":"15232310906","预约开始日期":"2023-07-31","预约结束日期":"2023-08-01","套餐名称":"男性限定测试套餐","当前状态":"未支付","总计金额":"26.00","预约来源":"微信个人预约","到达日期":"2023-07-31","已收费":true}', null, 1, null, null, '2023-06-10 23:48:47', '2023-06-10 23:49:07');

@ -0,0 +1,40 @@
create table user_people
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
name varchar(50) not null,
id_number varchar(50) not null,
birthday date not null,
sex tinyint not null comment '1-男 2-女',
phone varchar(30) not null,
relationship varchar(30) not null,
marriage tinyint not null comment '1-是 2-否',
`default` tinyint not null comment '1-是 2-否',
del tinyint default 2 not null comment '1-是 2-否',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index user_people_id_number_index
on user_people (id_number);
create index user_people_user_index
on user_people (user);
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (1, 1, '陆予', '130322199409060012', '1994-09-06', 1, '15232310906', '本人', 2, 2, 2, '2023-04-12 23:29:17', '2023-04-13 10:22:35');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (2, 1, '陆予一二', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 1, '2023-04-12 23:29:31', '2023-04-13 00:16:50');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (3, 1, '陆予二', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 2, '2023-04-12 23:29:31', '2023-04-13 00:23:39');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (4, 1, '陆予三', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 2, '2023-04-12 23:29:31', '2023-04-12 23:29:31');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (5, 1, '陆予四', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 1, '2023-04-12 23:29:31', '2023-04-13 00:16:56');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (6, 1, '陆予五', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 2, '2023-04-12 23:29:31', '2023-04-12 23:29:31');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (7, 1, '陆予六', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 2, '2023-04-12 23:29:31', '2023-04-12 23:29:31');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (8, 1, '陆予七', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 2, '2023-04-12 23:29:31', '2023-04-12 23:29:31');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (9, 1, '陆予八', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 2, '2023-04-12 23:29:31', '2023-04-12 23:29:31');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (10, 1, '陆予九', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 2, 2, 2, '2023-04-12 23:29:31', '2023-04-12 23:29:31');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (11, 1, '陆予十', '130322199409060012', '1994-09-06', 1, '15232310906', '其他', 1, 2, 2, '2023-04-12 23:29:31', '2023-04-13 10:21:41');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (12, 1, '陆予三三', '130322199409060012', '1994-09-06', 1, '15232310906', '本人', 1, 1, 2, '2023-04-13 10:22:35', '2023-05-26 14:48:06');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (13, 1, '团检预约测试', '110101198805279357', '2023-05-30', 1, '12345678901', '其他', 2, 2, 2, '2023-05-30 18:02:04', '2023-05-30 18:02:04');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (14, 1, '团检预约测试', '110101198805279357', '1988-05-27', 1, '12345678901', '其他', 2, 2, 2, '2023-06-01 15:57:40', '2023-06-01 15:57:40');
INSERT INTO lkpe.user_people (id, user, name, id_number, birthday, sex, phone, relationship, marriage, `default`, del, created_at, updated_at) VALUES (15, 1, '报告测试', '130302200005307330', '2000-05-30', 1, '13245678901', '其他', 2, 2, 2, '2023-06-03 01:28:08', '2023-06-03 01:28:08');

@ -0,0 +1,31 @@
create table user_tokens
(
id bigint unsigned auto_increment
primary key,
user bigint not null,
token varchar(50) not null,
type tinyint not null comment '1-微信',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null,
constraint user_tokens_token_unique
unique (token)
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (1, 1, '98e92506-4c18-4f7d-b477-52e3358f9f63', 1, 2, '2023-04-12 11:45:59', '2023-04-12 12:54:53');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (2, 1, '98e93efe-70bb-4490-b6e6-d3bae7412e14', 1, 2, '2023-04-12 12:58:36', '2023-04-12 18:51:35');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (3, 1, '98e9bed5-0c46-47c9-a651-69fac6f67c61', 1, 2, '2023-04-12 18:56:04', '2023-04-12 18:56:04');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (4, 1, '98e9bf2b-4d5b-46a6-a2af-01d8c0c0670b', 1, 2, '2023-04-12 18:57:00', '2023-04-12 18:57:21');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (5, 1, '98e9bf54-7502-44c8-aa6a-896bfc2614c7', 1, 2, '2023-04-12 18:57:27', '2023-04-12 18:57:27');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (6, 1, '98e9bf5a-afb2-447d-a094-41ab5b7a0856', 1, 2, '2023-04-12 18:57:31', '2023-04-12 18:57:31');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (7, 1, '98e9bf62-cc9a-4843-bf0c-99a6035d357c', 1, 2, '2023-04-12 18:57:37', '2023-04-12 23:25:03');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (8, 1, '98ea1f42-fb6a-4ba5-9b20-2c7176c41649', 1, 2, '2023-04-12 23:25:42', '2023-04-13 11:33:36');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (9, 1, '98eb26e8-792f-4247-8574-bcc3c0c44623', 1, 2, '2023-04-13 11:42:55', '2023-04-13 11:43:11');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (10, 1, '98eb2710-b131-4da2-893b-af12eceb215a', 1, 2, '2023-04-13 11:43:21', '2023-04-13 13:12:37');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (11, 1, '993d956d-6d13-48a1-8cba-b889dc928394', 1, 2, '2023-05-24 11:09:50', '2023-05-26 15:02:31');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (12, 1, '9941f2ac-c400-42fe-8800-fd9afbc208aa', 1, 2, '2023-05-26 15:13:53', '2023-05-26 15:14:47');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (13, 1, '9941f318-38c6-45f3-8033-acbcbf544238', 1, 2, '2023-05-26 15:15:03', '2023-05-26 16:42:45');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (14, 1, '99421300-8fcc-4c91-b257-9c852787b56e', 1, 2, '2023-05-26 16:44:16', '2023-05-30 19:05:47');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (15, 1, '994e13e3-b165-4cef-8dac-41f32f24aca9', 1, 2, '2023-06-01 15:56:41', '2023-06-03 01:50:13');
INSERT INTO lkpe.user_tokens (id, user, token, type, del, created_at, updated_at) VALUES (16, 1, '9957ad3b-48d6-4080-819d-26b517e8637c', 1, 2, '2023-06-06 10:27:55', '2023-06-11 00:08:13');

@ -0,0 +1,16 @@
create table users
(
id bigint unsigned auto_increment
primary key,
nickname varchar(100) not null,
avatar varchar(200) not null,
dev tinyint default 2 not null comment '1-测试 2-普通',
pay decimal(8, 2) default -1.00 not null comment '支付金额 负数按实际金额支付',
status tinyint default 1 not null comment '1-正常 2-禁用',
del tinyint default 2 not null comment '1-删除 2-正常',
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
INSERT INTO lkpe.users (id, nickname, avatar, dev, pay, status, del, created_at, updated_at) VALUES (1, 'sa0', '/storage/assets/upload/image/2023/04/98e93d7d-5518-432a-9e0e-1533390cb231.png', 1, 0.01, 1, 2, '2023-04-12 11:45:59', '2023-04-13 13:08:08');

@ -0,0 +1,43 @@
create table we_chat_pays
(
id bigint unsigned auto_increment
primary key,
out_trade_no varchar(100) not null,
post_data text not null,
params text not null,
callback longtext null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index we_chat_pays_out_trade_no_index
on we_chat_pays (out_trade_no);
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (1, '23053000000007', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000007","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685425092","nonceStr":"45KH9Yg234bTsB9J","package":"prepay_id=wx30133812272024ade44dd4782ebb390000","paySign":"oWy3\\/Uo+lDTPgMPIZ\\/C0js8lKF11Tbd7eBzTO3N\\/6sJlpS1Jl3GK+NVYjP5a0bfNj8F1IDUdWyYiy+70p7cfgkGvjdJgnmF2A3OqfsBkCl3YALls28cMq8SIZvKfh\\/1I5oB8VaDAPx7mKfD7DfKnTEm2htdLS4wdXuoYoFWQHN2yXKnI1nsERgW5DWnS5Rg953Dc0L0LT2tBYhccVkVHm6SyU0uFxnHpH51P1OQi4GPTqIgThm1L8lcqoMYzATuB2zmi7Th88wsR0xpbGmxLOzs\\/rwEuSA+VU5SPVNyZ7b+MXWgJjiWYbAGBUCT84usYt6boiuEEKyTuOnr61lPvKg==","signType":"RSA"}', null, '2023-05-30 13:38:12', '2023-05-30 13:38:12');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (2, '23053000000008', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000008","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685425371","nonceStr":"RQVF0gnKJCXn29JV","package":"prepay_id=wx30134251643366c8c0b9544c055b110000","paySign":"lwrkuFyIJAe7RgyMv6ZG4dZ52hQ5MGu97faxWY7zvWJ55bSNdghyjhMobKel7g2XGvh0aEX07982\\/yffYZIfXCH\\/OnbbVU1SqWUI4nJAAhe32URTUHbutpcxf35bxZ34Ipf81VsRkNyrbhYWIsniU3C4U5Hgo32eadCXCpWKKVZ3v8q0KFzDvAf2\\/6VZYCVG\\/JmPOoAqqvxaBUfQaTseolZWUqZkwgJR1Iv1en3P35HsJmOcAttoSY9uetBbIcLZXXe2l2zqU60dyZkxxSnNnSMNqlApFedHgrdZ8sRrzPlLoAXDUu0DP+YvtIJBYZB0tKo1beu7wZQZtW\\/Ac7tp6w==","signType":"RSA"}', null, '2023-05-30 13:42:51', '2023-05-30 13:42:51');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (3, '23053000000009', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000009","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685427179","nonceStr":"zjjWJVM9hzBqAhqq","package":"prepay_id=wx301412591151913b53cfc9a2a74f020000","paySign":"J6RCVnQNqci1ZZkR+2bGQ2RKxPBWR1Ey6Jb72ASQtCNLSzfDhCdLkNwoXyRjTtyL5ImymzBNKuRJYP7hxKxv4J+ffXrPul0AO8be84v0Ep+y9HFtdUG2E74EDChS6xtglwObp0AB7m7bWySCPtrMUj+AskVsY4fX9QRpMNTH3alWiVG5CsqbDGfbhNfp5WB36ZztPbLQR5KRXpQ\\/MuagmuT5gLIJBuasoSkocw5YS+icJTXXGDLGREA6EWQo4PEwJ9vjs+JldcHAbLGs4\\/0iM8Ph0BPjlzNJGkQ4MF0vhpS0dtq\\/OFoyBlETN0ROioeUY0P5XFTkDkGviwL3NbYjMw==","signType":"RSA"}', null, '2023-05-30 14:12:59', '2023-05-30 14:12:59');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (4, '23053000000010', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000010","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685428967","nonceStr":"4MTQ6ebMTtRBHGXj","package":"prepay_id=wx30144247296348f7a156f5f356eee50000","paySign":"OYouU4zSUHq8wtCJtwsS66bkYw7P+IEg9S\\/Rp+\\/8fGdMX4Cs4OGRCOd\\/dws+U\\/+t\\/hOMsUOxSUt8EH+Is9WyP1oL21iGsVlB9ZbpOUUKZ7jGCW7Ucw2+N2f9VRmsliw+DSCDJAH1Div6QPXYJzOEOcQJHdRpDQRaSfSTKKAyzr5jsthiHhYBwD28nhaHGiTzCsjTYzkYSVUmDnP1nipC86mOtSe7kYKRjqmLaQpOUlyNAwgSaL\\/hKFgcHlbvrikjFPd09+uT14a+m09\\/MlVSzSj\\/o\\/LhmJ2KtxezTXuxa\\/wGl0+n6+LkgJPgoPqJ\\/icoGkMl4ZLn9+4tKtc+zszIrQ==","signType":"RSA"}', null, '2023-05-30 14:42:47', '2023-05-30 14:42:47');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (5, '23053000000011', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000011","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685429713","nonceStr":"buvsuwWKBJukPBVE","package":"prepay_id=wx30145513543084256629f3955b15220000","paySign":"m58VQfUtoJKX6MLCUs8Jk9G+2MQQdFvqLLBjXK4Y6UuNDDVl92FJTPZe1I9U+AZeTzIbRzjjHz9+mKam0oZ\\/vks+Y7xlXmoaYacv0ANE7I7WOCrQnlGzreIi+5Z\\/JBTOxxoFfYyg+0dBlxRwIQmDz8uG0zi4nsvSYXrS6l6TGJ3wjcSAo1pN\\/6sc8BoczgjJvUV8HjkkGi+oUngbqo78X910pmc5odvmIPWWDPL98GKhEA7+7QECywsnhNaXDyVAriKAGkVst9hKxVbdts5ujqHjGxQLpWk6BQv5jcJxLwu5ujsJ4NcDNOe9R2h0sLKZKfVofTcjpOFyem43ukWxGg==","signType":"RSA"}', null, '2023-05-30 14:55:13', '2023-05-30 14:55:13');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (6, '23053000000012', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000012","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685433743","nonceStr":"7WVLZgyZ1Z23j7cg","package":"prepay_id=wx3016022372181413d22ab223cd49ac0000","paySign":"iulJeuliOlqiCGmxHKpzPNaQV7cFQooCNl6tAM8X4aoDS\\/GCAQGvYqZSAqLRAKrbm1xg1NNfESJ9LOhQ+vlaOrp0hQh0RAUoRKopjEdUq30gaV7ritssYfO\\/jaya8o33VbCBEkJNVUdpGgUcz60xEPmHxF4d4dCSojCS09iJbTeEH8p7ah31m+szz7NUURnqGALrkgLcqWaKjxGjvyq770uFsRYY25HoGyTmVUxw9pdqLeylqa5zezc+0E+9HDlsPd0LJN1QUnV1ocG2bDg6OhBjI+4AS63Pi2YnCIb7k+Z2m9FOxGk9+3T+ZUuu7++qpRLzwX0ds39D91DtNn4KTw==","signType":"RSA"}', null, '2023-05-30 16:02:23', '2023-05-30 16:02:23');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (7, '23053000000013', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000013","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685433885","nonceStr":"yWDzXdTshgRy1N2Q","package":"prepay_id=wx30160445096415afe3526b709cc70b0000","paySign":"Ooaj3+JYlDQYc4uWwWWiidyvEKR2jZrPWCzti\\/Tu2dM3kxDI1UjaTflLFM6mJ0osdms+KjGrUTrC4a6SfSl11C7Js1ZbdcrxxLgbN8Ut92uLU7b0zwvjot7xO+3qSVYWVN7PBNC8hx\\/j2LETwD7n1H4RYhshFQ8IaZYnnhVpJ1pYbGiiBMagNSXkL1dgfha7ExblsA\\/taNmZs3MvGcb9ULbZgcjM1UcJ87BgOzhrD5laKSqf2S+yftnUP4PWZXZwjN8ivar0Ns8yK3X\\/AVFdYibfjCm0AhYdzBU4Gfs6F1vVLlDwnrUvna8Z48K8yscnlIbc4\\/S7LoNW\\/SJQ\\/lUbNw==","signType":"RSA"}', null, '2023-05-30 16:04:45', '2023-05-30 16:04:45');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (8, '23053000000014', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000014","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685437586","nonceStr":"TQDAkXPWs0hzVvpg","package":"prepay_id=wx301706263548906f44cbb89c419b220000","paySign":"FRcJ\\/7LjOUs2gUiYpMfAK3HgFhi83GMbbErDFTv+CjjUoNq2PYL15li0+xKO2df7PTGwaiQmnhR5CyY\\/7kcsY4JZOcbJVklCIgUDIxRrG\\/JWPTyix8pj94y6vVFlZkJGBmJrEdVlD0ROVp3vlLobRPkD+Cgww1tKE+2gezAyksttnqz+3INnsAG6LEHBQq2LszrynRFNsPF0ds3qxrWMXYpASLWXj7+gOl\\/oWbDJq5\\/jow6MIfDNZ6+E\\/ZZXHPECn68aR8+7psylR0fexSQMtHzaZ133zrgFmvpNoHRZuRJFEE3ls6l5s4CWnMGu9PoOnRzO+Kxa58E\\/ySeBXqSqHQ==","signType":"RSA"}', null, '2023-05-30 17:06:26', '2023-05-30 17:06:26');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (9, '23053000000015', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000015","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685438463","nonceStr":"MuBwawEbfuWjrU79","package":"prepay_id=wx3017210350169659145b8d5e836a1e0000","paySign":"CwCyNc4eGv8Ovd+wWb5rjaChPMMH1pgS0XVxm484D6L5VdQ8XOtwJguRV8op3nCpxtCzJbbThDkGWR1cqSFKNZumLUMjjd9XJAljxtk46QuSJornf8qf9Wk9b9b3qwF+M31q3zzRlJZ9sw6USkdFH9gU0Dz8FzOrhhmSOyF1h2fCTdIZUBcUXWa7yY3YQy9Q2HyZq2\\/V+vEfMfCP1b92qKJCK+kJGbFN+hPYZHkGLxkh0ejXs1d6S1a4DVWUr2petW79J4t9VMYIyYT2joea271c2japjHGZSCpDcyOfOY2EDbm3YgD3MdfJaON3HgAeLC7RsO4x2jRuaiSmHokCXg==","signType":"RSA"}', null, '2023-05-30 17:21:03', '2023-05-30 17:21:03');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (10, '23053000000016', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000016","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685438704","nonceStr":"fQ2SRAG7hDqH6Y7G","package":"prepay_id=wx30172504578143c8b754f78f1275a50000","paySign":"AElaBXJ+HfxlR2bkzFZIr5\\/NBxroEYnaZMFJed98lnNOzlz8tTE2r9KEVCXoE2tYtMw\\/tGYt46eq\\/7m1mXE+SEnCcZgBw3L2QjApt9j6Vv8qPVDryzls\\/wwmDkuPJMDl1cINTfNWZXDLv5d5z0QG3LiaZIga7v99P\\/qQntRMDKhpjhQ3IyZLc7tiJoizxBvbenSJsyuIpOv2+TcRqmkNKEIYuO85cMSCQVTN9e\\/esKR9jqgjAaOH9JQWb044FMPI0Di629e6amiWiK1pwXCEGbmHwQxhYpt8lF8HDFI+7Z5uF2vPoS70iWlnJt5R7O+3YO7ao2cwSEl6wflCl3dACg==","signType":"RSA"}', null, '2023-05-30 17:25:04', '2023-05-30 17:25:04');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (11, '23053000000017', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000017","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685439200","nonceStr":"Vkk0kWWJsPPAN30a","package":"prepay_id=wx3017332000802618f7d2701480274c0000","paySign":"NqpUP732RZrnhTs\\/AxMgkvnAfwAP4OjDTo\\/Oq44OL0b1iI4Ejp+juyd+pLY4sH8VN7xqSRWhPuJf18L2q1sW8iFjT95JGgd\\/exM5PPu6IKWADjBYo53xcFeQT056ienzaCIWe+\\/lrUZnFNJ12cjLvvHFvudfdrrNtcSaBGvVlgXmpJIahteLs3MtH9dyrYAQG+WM0s7uP6OhylTQvEJ9X3XIhNh29ldOZI5BQZJsmKrecquByUrOM2+utLWshG6513Qpb5+Z6jLH+YNKEeu8SCKfiNsd3Ei7+sjtRFYy0hg8XZ4RhgFSbAgYMN6sn7\\/wlLU6NhcMcoILPLBg82DlcA==","signType":"RSA"}', null, '2023-05-30 17:33:20', '2023-05-30 17:33:20');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (12, '23053000000018', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000018","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685439375","nonceStr":"8pEg1U0amGzuJTPq","package":"prepay_id=wx30173615669227368a28634f5bb46a0000","paySign":"Qc806RAfEk8mdo4\\/3WR7MfmwhSkTE\\/ar8PBw5XJNapqCcAsWfY51nI7stR0oOPidaGaoH0Q7tlWR1WYDquj93Wv3TnJhOc6iwaQCQxVoU29d\\/VENBd7vCQPHZwtlFu686p2rq90qmlOAw8OdTzvZg\\/eNkec0YIUCJk61WPSuKvFqSJmajAFcARw+WDHV7WlgW\\/MrYUCQvJfJ017N7iut7N8JfLtTrh5MA8TPObcNN3+dhiCATzgwE4cirDKUT9wcFoCIu3jiG44Zph16ybBLtauYSPrNhh3kxC6ynrDDNv+BOaPaqK0J7c3ypBvgxE6u1dNdZIZOGf2jDDymMjZJdg==","signType":"RSA"}', null, '2023-05-30 17:36:15', '2023-05-30 17:36:15');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (13, '23053000000019', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23053000000019","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685443847","nonceStr":"L1Xq9FnGcesprwZH","package":"prepay_id=wx30185047661855b34b4ac65d3bdee80000","paySign":"Qtw7j2wM3CGYXazaCp9n6CssdUX\\/+FlciWsigJsSWX5x4xDJcFWxJCZNAVGMRN0pUgo0Qdi+pZDfbD1jCIu1P7QkEKy\\/yB625GPi6Vp72XwkjgSd7l3ItMFWV8RRGAge8JHY5C7QLzcoqE7u46OJRdYnuBVXu3EO6u4WMANYKrZH+yB6nfbX3WlNFbuKRYRavW4+iFkn4RA9D5H2Ux2D4LbdlZgt\\/NmIGpOaSv7o4to2Zbfmc6f+BGfv7Gg6yr0Kde12an92R3+YFLYxDOBHDUtfKHLxF19ew8\\/y26SNuqc7v1uVYfpQZctzl8JCT6eO4PjHUj8nYS3QoLTkipXDDQ==","signType":"RSA"}', null, '2023-05-30 18:50:47', '2023-05-30 18:50:47');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (14, '23060100000020', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23060100000020","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685607231","nonceStr":"7NwN8yuCn5fdCvuu","package":"prepay_id=wx01161351776233c0e5ba129af341b20000","paySign":"rMJB2qIheJ47K6CE0x114Sj9wJEpF7\\/x77Ikr3cNS2h7E\\/Bbg0NljyBQ36jDjot\\/8LGk9tyYtpsCsLfNHxft8HeWt5\\/pLp8xeiGlhqHZ0BJPDI85r\\/r2XIWAKW0U5rqBdJRWaYeolCEeqQBGLlOgj1nuX743tZKmqo+ZZOQgmD29HAMxLxfWOfyd5nYGhAEr\\/gaAmVFJ3ofHyaPFi04GWR9HduyfbhmvD64xoAFX9L4onp8htsiuIwKwzdli0y+o2mH+hpuMUHcoLXj0qHcNVCdCDagHAzGrH6LwB19NSjts8DEc2ROfYhA2C4jsH5piWq8e6Mqlux8IuDNaZvo5IA==","signType":"RSA"}', null, '2023-06-01 16:13:51', '2023-06-01 16:13:51');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (15, '23060100000024', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23060100000024","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685609256","nonceStr":"CRvZXMbrgWr2eqMp","package":"prepay_id=wx0116473594462802714c57108be67d0000","paySign":"KGtWvWItKhfT25sRYL1lV20NFq0S\\/KaibyH1XIt\\/A6kQPBcqmkakj2VN8IbIkl1dl8VFq9sMY7v9ASziQwTMESv\\/xzym\\/4bn6wOLHACsu2ZPtVXRYhSvRIBCJJaS7y6B8QdXlyrgCs9diUZWblMJlQwrBba5KI\\/7viKbnlBW5usH7ogPUlkddbZ5mEDXY0kCwwqNFUPGBS0JeImwYbACKt1LGWwWRlKzJj1M4wjSvAydVeMvEtWXu7JOxv1I3G1p9QqtHtUT\\/PbBYDC7sHaWZkyYuyMK+fxSy3jLxDWMA5A5AnfyTgTmZnM123fPoZDtV+gQCZHHR8BINFwzcyAWeQ==","signType":"RSA"}', null, '2023-06-01 16:47:36', '2023-06-01 16:47:36');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (16, '23060100000025', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23060100000025","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685609553","nonceStr":"ZBj7j4BdZb6ZPqNY","package":"prepay_id=wx011652338660865b9e892e4a9408570000","paySign":"q0\\/LIzMCws\\/T8RLh0wzfLsojMxOutwgucLYbAn2dXyvt7qBCILlbD9ZZKqJhnbSLUr8TDCr+e7lXLujwArVkqE6WXp5LSO9Tm2A6uK\\/Ro2DABf\\/skF37joFpJuWOyN3KFf7eSBX0WtNKSdgS8pc1laROgX7fLL7JS6RxLp5MkdZMrE1pblpWXUAPObI0r9uL3muWL3cXrdOSTAhVTZLHsT6KDk\\/Vup8Li1UdbTb4\\/9TX3yByLA3i5EQX6X5Iq34YEXyx4doIRYHTO68u\\/u5JobhxM1GOJ36c\\/rZv\\/lRmRQwmR\\/oQK8ProcXX94iMMN7JAjqLrYr+hNx4r0cX3nQUNg==","signType":"RSA"}', null, '2023-06-01 16:52:33', '2023-06-01 16:52:33');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (17, '23060100000026', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23060100000026","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1685609628","nonceStr":"DDT5qP6e3CVGPgyn","package":"prepay_id=wx011653489282592fa71c96a8d61cb60000","paySign":"Rs\\/8a4bCQVFR13qGFFG4Nf5EdvNAyLf6PFLimIHwjKQ7h+iE3rSZvVc9jamgC5LS7DyKUM2tHNjQBJhGch7pOfSavkhIxAtQYaYBss7BjNedfwTnFcU\\/FONb3pMIHIqZNqB9bDRgWc4zm\\/2lu7OtiehFjLhM58y9jHIT\\/p0xeocoFF+e7Xei8nYMACX9vbgsycgatbssL11QW2oGxnGu8Jo2wWuR4dZJNtrk0UoxR1w95GZcTerFm4jol34Y9hcF4LDFjnSEr\\/ojrA3NkWyc11u5TL4cg65bqkF7IHAVJRWO\\/PLlbshuf0s+Bw7dv9wE0zxvFeSTVv80CU5ufFpijA==","signType":"RSA"}', null, '2023-06-01 16:53:48', '2023-06-01 16:53:48');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (18, '23061000000027', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000027","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":100},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686405828","nonceStr":"3AdRJSega43k6Gff","package":"prepay_id=wx10220349013541c346a9cd81e95ac70000","paySign":"V3RnMbFVPYCbtCnW32axvVyRFi2JHC+fAEFWRh+GGnYNyruUyDqnQ\\/G8mV\\/udhKabZdK3dqueUYLhPLme0EeOPfzkzJ8EQ6bw9xpNtWobpfnDXBBC\\/qiGA2KDcQZCOQxuZNYb53jSCfDsnFsKHGw1rnvQ+YmqZRbJZyoaPFA7zPyRZ7DuZ0T3fVwlWrqcvtwHw4YmnUx4t8LRgu4JUPZxxwP1SY8eb\\/ClC+PA8+EfL7YrFf9Fvwc+0zqP01QaDLN4Z\\/aqlpNqS\\/Gt0a96LMwijngrDiQQOnftD\\/ciHKLXyrZmEWuLAvQKax8MsapqUwNOfPnKC7ATrWvIIfLnhOHGw==","signType":"RSA"}', null, '2023-06-10 22:03:48', '2023-06-10 22:03:48');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (19, '23061000000028', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000028","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686405909","nonceStr":"6qMfg6CqVDUcQgyW","package":"prepay_id=wx10220510226351b571476d4a66a0330000","paySign":"ZIb3Fc4Za1xHVV3tBXNw5yGvZy0IXx2sM+Lwusgf9EqZjORlPyXatShJD9Z+xzIt9oc5FX4ZsdrGkNw3G50KiUl1bTxXJOaeg5uoXJlizwmNA7nNkSehZcD\\/GvqdJnOP0sVMh2Q5ACydLY+32TPcqJY6ADEirGHBhm+PgObccjBd9UP8cs8p2A9iVqBRqC5+Rzl5tQS\\/Z6qEB6XjCfmsRZ2mMLKV+SiR\\/1o36gRTEF6Ctohv4O3juAfDS8HegcsnU4sFjxsOKuvBU8n3AA1tz2W2lIjzleKZG+cEAS4AttTxRaL5Xgh1XFtVYPsZvBcb11hNYYqhPcIzVQGiJD8ccg==","signType":"RSA"}', null, '2023-06-10 22:05:09', '2023-06-10 22:05:09');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (20, '23061000000029', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000029","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686406203","nonceStr":"RFMNgtTXaxgSCs39","package":"prepay_id=wx1022100380318381b64a9b38843c440000","paySign":"Wn3EHWkLR+7wlfabjpMb264\\/XHmef75l1foOBcV6R0pziw5j0QDm9\\/numLoZ8UadxsCCY8bM1IGsrB01qUUi1G3LcA5dKSDI0Xu7XLKH35j\\/ALnoqLfbuX\\/br\\/XDrHvROhh6W4LiTZluvMt6c3tR8M9L8RUUZfSxMkMc18aHDuQHU2RuAGzYnwTkgU2anMVJEkmhClYUKUItCVcZFKUDQ1TirEoz\\/e67YGmCGU3BJkxiE70P6TYVktkQqmkp2Jvp8pLGDabMK5Aob3vetEfzmFzW9LEtv4HZ8vu5DBqEUfJCgB9RhlN5acqmjxxGMlQ9w\\/2RZjY6sp8geveKA4GtJw==","signType":"RSA"}', null, '2023-06-10 22:10:03', '2023-06-10 22:10:03');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (21, '23061000000030', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000030","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686406732","nonceStr":"7EpWmWZ1FGddcM8a","package":"prepay_id=wx102218526195617b8fc608ff5a30510000","paySign":"eLWK53gKCY0sj1GWdPwT6R2tKobopyYmYoXm\\/B4a+dhFLl76vlAsPkDqpuKzNrfFwgCOtRcFy\\/rz91sVLy8tb+qD\\/JOCD6QZmnW7D6854f600i\\/i3HV8aVNRw0a25MTlk3wCi7WQJSYVlFSdXjQfBRCXN1386j4dE\\/inSnaHVju9lYXsra+vWG8GRvxx0G87CtTmrmZS65ZQHSAshICy6tHqbmgxvZP5DzUZsN8j59JpJ+t4czPb0WBYl2vPAfRem1GwVAx7heGEWwcOPsddLjGCkZjEqcD6OYhG76mosY4vjflnTzqN1ovPL58+NUw+8qskLnWP2MSHU3+CuBP4Zg==","signType":"RSA"}', null, '2023-06-10 22:18:52', '2023-06-10 22:18:52');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (22, '23061000000031', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000031","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686410250","nonceStr":"dJrmVJXguDVN8eup","package":"prepay_id=wx1023173086039953f1a231065b15a80000","paySign":"iMJ+FWhojBFEI83EA7zP2CYLusscg32mmcRkltpDqojo9skSVYlgCSAtf7ppRfdvsoy4XtVp+jw62Qdc9Z\\/OtqHxSkVp3Yt47aWhV1VWFSPuu\\/YvcLtryvR\\/4owY8vmK0Yh\\/vH01euowQ5zwCL7aIKUToTBR3MsyFOOaCBj2lHWdyyS1KaZ0l4\\/83z0AoOG2TkbDXeaq4bq20X4oox2VJenBHBFv01mIWyJMOW4cUi7bCO7zzUIFAnWc4MF+pOVsb3HKGa1AmyE25XnszPjMXzcXRbPZ5pbVWP4Aqn1RI8MXPRpeVDCVlfNPVHqtcxO5QdHYvgsTfiW5sEBuCweeoQ==","signType":"RSA"}', null, '2023-06-10 23:17:30', '2023-06-10 23:17:30');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (23, '23061000000032', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000032","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686410996","nonceStr":"PrA4YM3nAYrCH4hs","package":"prepay_id=wx10232957059134aa9d1c92302119f30000","paySign":"MbsE0Kav3yXJ7zp96Umy7I0PdvC\\/IlYHiQk2zFcGnmBFhq3Q3rLIiiU3smgHBV12IzUaoiCPQiPcpDR87zKPifg6+38WEE+tDVjlBnw5jMfsulHsjooZlasw9\\/JZI1\\/vbDHdnvhjvF1qWYBLrAudmzL2BFKSCYkNtYOZVTHYI99CPVaVEodfixoBExCF9ipZART9Ast\\/b3re4Rfc0\\/2bSGSYKs0LTAjoI8hoD1UbfpBDjTfWgQ89LsgyqwozK7xI0J4soJXK8qMhctf5ijJz8dB1biOL\\/3dLuaZeFtFKOs7aq5bNvBsi7AtIeDGiI20dawdNN2fH3FSJhgHq3tlBSw==","signType":"RSA"}', null, '2023-06-10 23:29:56', '2023-06-10 23:29:56');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (24, '23061000000033', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000033","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686411154","nonceStr":"jGrrczX9cHXJ0Yjx","package":"prepay_id=wx1023323485648168403b4100b82ba80000","paySign":"JSWpYJsjt0vLsNuAip8\\/C35L42zL+kBQ478DZzToD7C5SC6cmZQcnraqvW5PjMhTCLll8WHleo42UqjpntuWNy8WfYXj6tf3zo2VjZqPn17JDnl19\\/F3anrBmSGGzrBCNM5LF+6NYyKNIc6GhXgiV2vd4auOGTg8eqixnmVxbbhlKu6hZXkMjPGzQjQRezewRxt7PMHoM+wetDg03blB7+e45wwip7m9FJNTaV7OcMvWB2VY2nlXBQb6qsCNesHzNEj0nRpfmSI+5EXTcpGo1LgRZ9XDqN4\\/qZPjtg\\/LtKaMtlq6spj7CzfBgIwDX76Ygpw3S5NOwuF1BXvr\\/DDXxA==","signType":"RSA"}', null, '2023-06-10 23:32:34', '2023-06-10 23:32:34');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (25, '23061000000034', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000034","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686411220","nonceStr":"FFTw33EeUpuxKZTf","package":"prepay_id=wx10233340901229b2340492444cb6780000","paySign":"ZmedULu6Yika6xcaSWAN+9qdabl9fIgS9Vwh9DbQc\\/E2T17ma24rz9a5N+vDeAZj5+TOy90SLHdAFHl0i+78D0Y1DqAP2uOFo+rBzrI8KchE+gRfGnJF7k0ea1RXPsL0KRz1D+nJdycN0nqu1cE1TeX6U5vpbfTNmWpGiPBSYRH7XKQQGFyZLOlliFp6EWgBoid5hQfdNV+dKmOCmXxSrtRP7TfIGxStyt8pfRx43T8H9Fy42PUSTX8IVbXivorq8tIF+dUnQo6eOaZLwwmJYfK4oWHQ0QEzaSGIZHcimvEZy\\/wq3DisAO7+kOZwJVxMUboeVA+OELxEaRnXKsBP+A==","signType":"RSA"}', null, '2023-06-10 23:33:40', '2023-06-10 23:33:40');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (26, '23061000000035', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000035","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686411612","nonceStr":"as99yWPMAh2nbgCC","package":"prepay_id=wx10234013307321da45fa87ceb840d10000","paySign":"gT2UYvv4lh7hJIZocHmXwaphpw47LTAC3F3UsReS532\\/kdUF4TbRcX2nERDj5QpjYTrN4k\\/lWstcBqHRM32e8nP1HwgOlkw19Ve+sZkT7oAdr4iDF9i4cNjUU3CvBAwmXlj274SuU9UBju5EAdX4FnRTfVmjKKmYQfBVLVLAsZVmT8Qkq1xlJZbvdDscLwWBA9O3LY\\/49jEOwoFma3WVnBCjaPQwIIMV0EgjWHsQicrEVIVpZfoe3M3dk84WmoqB\\/3dizFStpBLBtQKpCtBM44CVHCq+UmsyXVpKIvfBXiNb1mBRNatqByiO9rtkUTpKcjlUOXNz1G\\/1OjIW3GjJFw==","signType":"RSA"}', null, '2023-06-10 23:40:12', '2023-06-10 23:40:12');
INSERT INTO lkpe.we_chat_pays (id, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (27, '23061000000036', '{"appid":"wx0d92d2990ec16a55","mchid":"1638739772","description":"体检预约","out_trade_no":"23061000000036","notify_url":"http:\\/\\/nodetest.sa0.online\\/api\\/Test\\/wxp_callback\\/123456","amount":{"total":1},"payer":{"openid":"ourv44tbkA8yLB8X60GhmvhetVTM"}}', '{"appId":"wx0d92d2990ec16a55","timeStamp":"1686412129","nonceStr":"jJPZuQPQ562Q2TJP","package":"prepay_id=wx10234849398325e47797df3de8b1de0000","paySign":"lYBmlhpiAs1KikSko6Rw1qUIi68sDgoE3KG8xBy8sfbJ6QsbYCT7y6j0uFbjSHKe7vymicDseaOQrBdlBKIGZVqFf+XNv37XoM8kq6MceZs2+PZf\\/TUSeOKGuAcq667odEo7mg7KyCW1a2ULt1anGc29AX5pOiMx5vrSQlMB9StkdKB8g2NyP8DED5JYAppQ9Q8Bl0L25I9jynyGn2GEIcf+Dl8mqk+ZlBbsqRilOF+1m4SDjyX0eXAdGcILrBU3Vx\\/Dy+855cT8jrul3xSIZB05sqycY2LrhQbKh2HZwKawI99Wlq0xrxBOdKYEkg6GtDtx5ahkaNbu2+pMIzbN4g==","signType":"RSA"}', null, '2023-06-10 23:48:49', '2023-06-10 23:48:49');

@ -0,0 +1,31 @@
create table we_chat_refunds
(
id bigint unsigned auto_increment
primary key,
admin bigint default 0 null,
out_trade_no varchar(100) not null,
post_data text not null,
params longtext not null,
callback longtext null,
created_at timestamp null,
updated_at timestamp null
)
collate = utf8mb4_unicode_ci;
create index we_chat_refunds_out_trade_no_index
on we_chat_refunds (out_trade_no);
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (1, 0, '23053000000011', '{"transaction_id":"4200001881202305300809090763","out_refund_no":"23053000000011","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-05-30T16:57:37+08:00","funds_account":"AVAILABLE","out_refund_no":"23053000000011","out_trade_no":"23053000000011","promotion_detail":[],"refund_id":"50301505962023053035072822346","status":"SUCCESS","success_time":"2023-05-30T16:57:45+08:00","transaction_id":"4200001881202305300809090763","user_received_account":"支付用户零钱通"}', null, '2023-05-30 16:59:02', '2023-05-30 16:59:02');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (2, 0, '23053000000011', '{"transaction_id":"4200001881202305300809090763","out_refund_no":"23053000000011","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-05-30T16:57:37+08:00","funds_account":"AVAILABLE","out_refund_no":"23053000000011","out_trade_no":"23053000000011","promotion_detail":[],"refund_id":"50301505962023053035072822346","status":"SUCCESS","success_time":"2023-05-30T16:57:45+08:00","transaction_id":"4200001881202305300809090763","user_received_account":"支付用户零钱通"}', null, '2023-05-30 17:00:17', '2023-05-30 17:00:17');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (3, 0, '23053000000016', '{"transaction_id":"4200001863202305305655791592","out_refund_no":"23053000000016","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-05-30T17:32:54+08:00","funds_account":"AVAILABLE","out_refund_no":"23053000000016","out_trade_no":"23053000000016","promotion_detail":[],"refund_id":"50302505992023053035071691562","status":"PROCESSING","transaction_id":"4200001863202305305655791592","user_received_account":"支付用户零钱通"}', null, '2023-05-30 17:32:55', '2023-05-30 17:32:55');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (4, 0, '23053000000017', '{"transaction_id":"4200001863202305304225474765","out_refund_no":"23053000000017","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-05-30T17:33:56+08:00","funds_account":"AVAILABLE","out_refund_no":"23053000000017","out_trade_no":"23053000000017","promotion_detail":[],"refund_id":"50302005962023053035077607469","status":"PROCESSING","transaction_id":"4200001863202305304225474765","user_received_account":"支付用户零钱通"}', null, '2023-05-30 17:33:56', '2023-05-30 17:33:56');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (5, 0, '23053000000018', '{"transaction_id":"4200001863202305309332322462","out_refund_no":"23053000000018","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-05-30T17:40:48+08:00","funds_account":"AVAILABLE","out_refund_no":"23053000000018","out_trade_no":"23053000000018","promotion_detail":[],"refund_id":"50301605982023053035078819254","status":"PROCESSING","transaction_id":"4200001863202305309332322462","user_received_account":"支付用户零钱通"}', null, '2023-05-30 17:40:48', '2023-05-30 17:40:48');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (6, 0, '23060100000024', '{"transaction_id":"4200001875202306016475448464","out_refund_no":"23060100000024","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-06-01T16:48:39+08:00","funds_account":"AVAILABLE","out_refund_no":"23060100000024","out_trade_no":"23060100000024","promotion_detail":[],"refund_id":"50300605902023060135166636128","status":"PROCESSING","transaction_id":"4200001875202306016475448464","user_received_account":"支付用户零钱通"}', null, '2023-06-01 16:48:40', '2023-06-01 16:48:40');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (7, 0, '23060100000025', '{"transaction_id":"4200001875202306012554576392","out_refund_no":"23060100000025","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-06-01T16:53:06+08:00","funds_account":"AVAILABLE","out_refund_no":"23060100000025","out_trade_no":"23060100000025","promotion_detail":[],"refund_id":"50302305832023060135177440501","status":"PROCESSING","transaction_id":"4200001875202306012554576392","user_received_account":"支付用户零钱通"}', null, '2023-06-01 16:53:07', '2023-06-01 16:53:07');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (8, 0, '23060100000020', '{"transaction_id":"4200001854202306017391028977","out_refund_no":"23060100000020","total":1}', '{"code":"NOT_ENOUGH","message":"基本账户余额不足,请充值后重新发起"}', null, '2023-06-10 21:46:51', '2023-06-10 21:46:51');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (9, 0, '23060100000026', '{"transaction_id":"4200001869202306017909135918","out_refund_no":"23060100000026","total":1}', '{"code":"NOT_ENOUGH","message":"基本账户余额不足,请充值后重新发起"}', null, '2023-06-10 21:52:21', '2023-06-10 21:52:21');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (10, 0, '23061000000028', '{"transaction_id":"4200001874202306106949118449","out_refund_no":"23061000000028","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-06-10T22:07:03+08:00","funds_account":"AVAILABLE","out_refund_no":"23061000000028","out_trade_no":"23061000000028","promotion_detail":[],"refund_id":"50302605802023061035535085859","status":"PROCESSING","transaction_id":"4200001874202306106949118449","user_received_account":"支付用户零钱通"}', null, '2023-06-10 22:07:02', '2023-06-10 22:07:02');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (11, 0, '23061000000029', '{"transaction_id":"4200001865202306104894982654","out_refund_no":"23061000000029","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-06-10T22:10:31+08:00","funds_account":"AVAILABLE","out_refund_no":"23061000000029","out_trade_no":"23061000000029","promotion_detail":[],"refund_id":"50301406012023061035536279054","status":"PROCESSING","transaction_id":"4200001865202306104894982654","user_received_account":"支付用户零钱通"}', null, '2023-06-10 22:10:30', '2023-06-10 22:10:30');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (12, 0, '23061000000030', '{"transaction_id":"4200001857202306100716925903","out_refund_no":"23061000000030","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-06-10T22:19:23+08:00","funds_account":"AVAILABLE","out_refund_no":"23061000000030","out_trade_no":"23061000000030","promotion_detail":[],"refund_id":"50301905902023061035535702945","status":"PROCESSING","transaction_id":"4200001857202306100716925903","user_received_account":"支付用户零钱通"}', null, '2023-06-10 22:19:22', '2023-06-10 22:19:22');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (13, 0, '23060100000026', '{"transaction_id":"4200001869202306017909135918","out_refund_no":"23060100000026","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-06-10T23:12:12+08:00","funds_account":"AVAILABLE","out_refund_no":"23060100000026","out_trade_no":"23060100000026","promotion_detail":[],"refund_id":"50302605992023061035538149410","status":"PROCESSING","transaction_id":"4200001869202306017909135918","user_received_account":"支付用户零钱通"}', null, '2023-06-10 23:12:12', '2023-06-10 23:12:12');
INSERT INTO lkpe.we_chat_refunds (id, admin, out_trade_no, post_data, params, callback, created_at, updated_at) VALUES (14, 2, '23061000000031', '{"transaction_id":"4200001863202306101114595220","out_refund_no":"23061000000031","total":1}', '{"amount":{"currency":"CNY","discount_refund":0,"from":[],"payer_refund":1,"payer_total":1,"refund":1,"refund_fee":0,"settlement_refund":1,"settlement_total":1,"total":1},"channel":"ORIGINAL","create_time":"2023-06-10T23:18:12+08:00","funds_account":"AVAILABLE","out_refund_no":"23061000000031","out_trade_no":"23061000000031","promotion_detail":[],"refund_id":"50300405782023061059069585248","status":"PROCESSING","transaction_id":"4200001863202306101114595220","user_received_account":"支付用户零钱通"}', null, '2023-06-10 23:18:12', '2023-06-10 23:18:12');

@ -0,0 +1,64 @@
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400"></a></p>
<p align="center">
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>
## About Laravel
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
Laravel is accessible, powerful, and provides tools required for large, robust applications.
## Learning Laravel
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
## Laravel Sponsors
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
### Premium Partners
- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Cubet Techno Labs](https://cubettech.com)**
- **[Cyber-Duck](https://cyber-duck.co.uk)**
- **[Many](https://www.many.co.uk)**
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
- **[DevSquad](https://devsquad.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
- **[OP.GG](https://op.gg)**
- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)**
- **[Lendio](https://lendio.com)**
## Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
## Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

@ -0,0 +1,32 @@
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}

@ -0,0 +1,41 @@
<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array<int, class-string<Throwable>>
*/
protected $dontReport = [
//
];
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array<int, string>
*/
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
];
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register()
{
$this->reportable(function (Throwable $e) {
//
});
}
}

@ -0,0 +1,108 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditAdminAuthInput;
use App\Models\Admin;
use App\Models\AdminAuth;
use App\Models\Auth;
use Login;
use Yo;
class AdminAuthController extends Controller
{
public function select()
{
Login::admin();
$admin_auth_list = AdminAuth::select('id', 'name', 'del')->where('del', 2)->orderBy('updated_at', 'desc')->get();
$list = [];
foreach ($admin_auth_list as $item) {
$push = true;
if ($item->del == 1) {
$admin_count = Admin::where('admin_auth_id', $item->id)->where('del', 2)->count();
if ($admin_count == 0) $push = false;
}
if ($push) {
$list[] = [
'value' => $item->id,
'label' => $item->name,
'disabled' => $item->del == 1,
];
}
}
return Yo::echo([
'list' => $list
]);
}
public function list()
{
Login::admin();
$admin_auth_list = AdminAuth::where('del', 2)->orderBy('updated_at', 'desc')->get();
$list = [];
foreach ($admin_auth_list as $item) {
$auth_ids_turn = [];
foreach (json_decode($item->auth_ids, true) as $i) {
$auth_ids_turn[] = intval($i);
}
$list[] = [
'id' => $item->id,
'name' => $item->name,
'auth_ids' => $item->auth_ids,
'auth_ids_turn' => $auth_ids_turn,
'remark' => $item->remark,
];
}
return Yo::echo([
'list' => $list
]);
}
public function delete()
{
Login::admin([5]);
$ids = request()->post('ids');
AdminAuth::whereIn('id', $ids)->update([
'del' => 1
]);
return Yo::delete_echo($ids);
}
public function update(EditAdminAuthInput $request)
{
Login::admin([5]);
$id = request()->post('id');
$name = $request->post('name');
$auth_ids = $request->post('auth_ids');
$remark = $request->post('remark');
$auth_ids_arr = [];
foreach ($auth_ids as $auth_id) $auth_ids_arr[] = (string)$auth_id;
$auth_ids_str = json_encode($auth_ids_arr, JSON_UNESCAPED_UNICODE);
if (mb_strlen($auth_ids_str) > 1000) Yo::error_echo(100014);
$admin_auth = AdminAuth::find($id);
if (!$admin_auth || $admin_auth->del !== 2) Yo::error_echo(100000, ['权限']);
$admin_auth->name = $name;
$admin_auth->auth_ids = $auth_ids_str;
$admin_auth->remark = $remark ?? '';
$admin_auth->save();
return Yo::update_echo($admin_auth->id);
}
public function create(EditAdminAuthInput $request)
{
Login::admin([5]);
$name = $request->post('name');
$auth_ids = $request->post('auth_ids');
$remark = $request->post('remark');
$auth_ids_arr = [];
foreach ($auth_ids as $auth_id) $auth_ids_arr[] = (string)$auth_id;
$auth_ids_str = json_encode($auth_ids_arr, JSON_UNESCAPED_UNICODE);
if (mb_strlen($auth_ids_str) > 1000) Yo::error_echo(100014);
$admin_auth = new AdminAuth();
$admin_auth->name = $name;
$admin_auth->auth_ids = $auth_ids_str ?? '[]';
$admin_auth->remark = $remark ?? '';
$admin_auth->save();
return Yo::create_echo($admin_auth->id);
}
}

@ -0,0 +1,247 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\CreateAdminInput;
use App\Http\Requests\UpdateAdminNickname;
use App\Http\Requests\UpdateAdminPassword;
use App\Models\Admin;
use App\Models\AdminAccount;
use App\Models\AdminAuth;
use App\Models\AdminToken;
use App\Models\Auth;
use Illuminate\Support\Str;
use Yo;
use Login;
class AdminController extends Controller
{
public function delete()
{
Login::admin([6]);
$ids = request()->post('ids');
$super_admin_count = Admin::whereIn('id', $ids)->where('admin_auth_id', -1)->where('del', 2)->count();
if ($super_admin_count > 0) Yo::error_echo(100018);
Admin::whereIn('id', $ids)->update([
'del' => 1
]);
AdminAccount::whereIn('admin_id', $ids)->where('del', 2)->update([
'del' => 1
]);
return Yo::delete_echo($ids);
}
public function update(UpdateAdminNickname $request)
{
Login::admin([6]);
$hospital = $request->post('hospital');
$admin_id = $request->post('admin_id');
$nickname = $request->post('nickname');
$status = $request->post('status');
$admin_auth_id = $request->post('admin_auth_id');
$admin = Admin::find($admin_id);
if (!$admin) Yo::error_echo(100000, ['管理员']);
if ($admin->admin_auth_id != -1 && $admin_auth_id == -1) Yo::error_echo(100018);
if ($admin->admin_auth_id == -1 && $admin_auth_id != -1) Yo::error_echo(100018);
if ($admin->admin_auth_id == -1 && $status == 2) Yo::error_echo(100018);
$admin->hospital = $hospital;
$admin->nickname = $nickname;
$admin->admin_auth_id = $admin_auth_id;
$admin->status = $status;
$admin->save();
return Yo::update_echo($admin->id);
}
public function create(CreateAdminInput $request)
{
Login::admin([6]);
$hospital = $request->post('hospital');
$nickname = $request->post('nickname');
$account = $request->post('account');
$password = $request->post('password');
$admin_auth_id = request()->post('admin_auth_id');
if ($admin_auth_id == -1) Yo::error_echo(100018);
$admin_account_check = AdminAccount::select('id')
->where('account', $account)
->where('type', 1)
->where('del', 2)
->first();
if ($admin_account_check) Yo::error_echo(100017);
$admin = new Admin();
$admin->hospital = $hospital;
$admin->nickname = $nickname;
$admin->admin_auth_id = $admin_auth_id;
$admin->save();
$admin_account = new AdminAccount();
$admin_account->admin_id = $admin->id;
$admin_account->account = $account;
$admin_account->secret = bcrypt($password);
$admin_account->type = 1;
$admin_account->save();
return Yo::create_echo($admin->id);
}
public function list()
{
Login::admin([6]);
$status = request()->post('status');
$search = request()->post('search');
$admin_list = Admin::select('*')
->selectRaw("IFNULL((select name from admin_auths where admins.admin_auth_id = admin_auths.id),'') as admin_auth_name")
->selectRaw("IFNULL((select account from admin_accounts where admins.id = admin_accounts.admin_id and del = 2),'') as account")
->selectRaw("IFNULL((select id from admin_accounts where admins.id = admin_accounts.admin_id and del = 2),'') as account_id")
->where(function ($query) use ($status) {
if ($status != 0) $query->where('status', $status);
})
->where(function ($query) use ($search) {
if ($search != '') $query->where('nickname', 'like', "%$search%");
})
->where('del', 2)
->paginate(15);
return Yo::echo($admin_list);
}
public function edit_password(UpdateAdminPassword $request)
{
Login::admin([6]);
$account_id = request()->post('account_id');
$password = $request->post('password');
$admin_account = AdminAccount::where('id', $account_id)->first();
if (!$admin_account) Yo::error_echo(100002);
$admin_account->secret = bcrypt($password);
$admin_account->save();
return Yo::update_echo(Login::$info->id);
}
public function change_password(UpdateAdminPassword $request)
{
Login::admin();
$account_id = request()->post('account_id');
$password = $request->post('password');
$old_password = request()->post('old_password');
$admin_account = AdminAccount::where('id', $account_id)->where('admin_id', Login::$info->id)->first();
if (!$admin_account) Yo::error_echo(100002);
if (!password_verify($old_password, $admin_account->secret)) Yo::error_echo(100010);
if ($old_password === $password) Yo::error_echo(100009);
$admin_account->secret = bcrypt($password);
$admin_account->save();
return Yo::update_echo(Login::$info->id);
}
public function change_nickname(UpdateAdminNickname $request)
{
Login::admin();
$nickname = $request->post('nickname');
Admin::where('id', Login::$info->id)->update([
'nickname' => $nickname
]);
return Yo::update_echo(Login::$info->id);
}
public function menu()
{
Login::admin();
$menu_group = Auth::select('id', 'name', 'title', 'icon', 'status')
->where('type', 1)->where('show', 1)->where('del', 2)
->orderBy('order', 'desc')->get();
$list = [];
foreach ($menu_group as $item) {
switch (Login::$info->admin_auth_id) {
case -1:
$auth_list = Auth::select('id', 'name', 'title', 'icon', 'status')->where('pid', $item->id)
->where('type', 2)->where('show', 1)->where('del', 2)
->orderBy('order', 'desc')->get();
break;
case 0:
$auth_list = Auth::select('id', 'name', 'title', 'icon', 'status')->where('pid', $item->id)
->where('type', 2)->where('check_type', 1)->where('show', 1)->where('del', 2)
->orderBy('order', 'desc')->get();
break;
default:
$admin_auth = AdminAuth::find(Login::$info->admin_auth_id);
$auth_ids = json_decode($admin_auth->auth_ids, true);
$auth_list = Auth::select('id', 'name', 'title', 'icon', 'status')
->where(function ($query) use ($auth_ids, $item) {
$query->whereIn('id', $auth_ids)->where('pid', $item->id)->where('type', 2)->where('check_type', 2)->where('show', 1)->where('del', 2);
})
->orWhere(function ($query) use ($auth_ids, $item) {
$query->where('type', 2)->where('pid', $item->id)->where('check_type', 1)->where('show', 1)->where('del', 2);
})
->orderBy('order', 'desc')->get();
}
if (count($auth_list) !== 0) $list[] = [
"id" => $item->id,
"name" => $item->name,
"title" => $item->title,
"icon" => $item->icon,
"status" => $item->status,
"children" => $auth_list
];
}
return Yo::echo([
'list' => $list
]);
}
public function info()
{
Login::admin();
$admin_account = AdminAccount::where('admin_id', Login::$info->id)
->where('type', 1)
->where('del', 2)
->first();
return Yo::echo([
'info' => [
'id' => Login::$info->id,
'account' => $admin_account ? $admin_account->account : '',
'account_id' => $admin_account ? $admin_account->id : 0,
'nickname' => Login::$info->nickname,
]
]);
}
public function status()
{
Login::admin();
return Yo::echo();
}
public function create_token($admin, $type): string
{
if ($admin->status != 1 || $admin->del != 2) Yo::error_echo(100002);
$token = Str::orderedUuid();
$admin_token = new AdminToken();
$admin_token->admin_id = $admin->id;
$admin_token->token = $token;
$admin_token->type = $type;
$admin_token->del = 2;
$admin_token->save();
return $token;
}
public function login()
{
$account = request()->post('account');
$password = request()->post('password');
$type = 1;
$admin_account = AdminAccount::where('account', $account)
->where('type', 1)
->where('del', 2)
->first();
if (!$admin_account) Yo::error_echo(100004);
if (!password_verify($password, $admin_account->secret)) Yo::error_echo(100004);
$admin = Admin::where('id', $admin_account->admin_id)
->where('status', 1)
->where('del', 2)
->first();
if (!$admin) Yo::error_echo(100002);
Login::$info = $admin;
Login::$login_type = $type;
$auth_check_res = Login::check_admin_auth([2]);
if ($auth_check_res !== 0) Yo::error_echo($auth_check_res);
$token = $this->create_token($admin, $type);
return Yo::echo([
'token' => $token
]);
}
}

@ -0,0 +1,104 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditAnalysisTypeInput;
use App\Models\AnalysisType;
use Illuminate\Http\Request;
use Yo;
use Login;
class AnalysisTypeController extends Controller
{
public function delete(Request $request)
{
Login::admin([17]);
$ids = $request->post('ids');
AnalysisType::whereIn('id', $ids)->delete();
return Yo::delete_echo($ids);
}
public function update(EditAnalysisTypeInput $request)
{
Login::admin([17]);
$id = $request->post('id');
$hospital = $request->post('hospital');
$name = $request->post('name');
$range = $request->post('range');
$desc = $request->post('desc');
$color = $request->post('color');
$mark = $request->post('mark');
$type = $request->post('type');
$status = $request->post('status');
$content = $request->post('content');
$analysis_type = AnalysisType::find($id);
if (!$analysis_type) Yo::error_echo(100000, ['检测项目']);
$analysis_type->hospital = $hospital;
$analysis_type->name = $name;
$analysis_type->range = $range;
$analysis_type->desc = $desc;
$analysis_type->color = $color;
$analysis_type->mark = $mark;
$analysis_type->type = $type;
$analysis_type->status = $status;
$analysis_type->content = $content;
$analysis_type->save();
return Yo::update_echo($analysis_type->id);
}
public function create(EditAnalysisTypeInput $request)
{
Login::admin();
$hospital = $request->post('hospital');
$name = $request->post('name');
$range = $request->post('range');
$desc = $request->post('desc');
$color = $request->post('color');
$mark = $request->post('mark');
$type = $request->post('type');
$status = $request->post('status');
$content = $request->post('content');
$analysis_type = new AnalysisType();
$analysis_type->hospital = $hospital;
$analysis_type->name = $name;
$analysis_type->range = $range;
$analysis_type->desc = $desc;
$analysis_type->color = $color;
$analysis_type->mark = $mark;
$analysis_type->type = $type;
$analysis_type->status = $status;
$analysis_type->content = $content;
$analysis_type->save();
return Yo::create_echo($analysis_type->id);
}
public function admin_list(Request $request)
{
$hospital = $request->post('hospital');
$analysis_type_list = AnalysisType::where('hospital', $hospital)->get();
return Yo::echo(['list' => $analysis_type_list]);
}
public function list(Request $request)
{
$hospital = $request->post('hospital');
$analysis_type_list = AnalysisType::where('hospital', $hospital)->where('status', 1)->get();
if (count($analysis_type_list) == 0) {
$analysis_type_list = AnalysisType::where('hospital', 0)->where('status', 1)->get();
}
$analysis_list = [[
'title' => '临床生化',
'list' => [],
], [
'title' => '临床免疫',
'list' => [],
], [
'title' => '常规',
'list' => [],
]];
foreach ($analysis_type_list as $item) {
$analysis_list[$item['type'] - 1]['list'][] = $item;
}
return Yo::echo(['list' => $analysis_list]);
}
}

@ -0,0 +1,311 @@
<?php
namespace App\Http\Controllers;
use App\Models\Appointment;
use App\Models\AppointmentHolidays;
use App\Models\AppointmentTemplate;
use App\Models\Hospital;
use Illuminate\Http\Request;
use Login;
use Yo;
class AppointmentController extends Controller
{
public function month_map($month)
{
$week = date('w', strtotime($month[0]['date']));
if ($week == 0) $week = 7;
$month_list = [
[],
[],
[],
[],
[],
[],
];
for ($i = 0; $i < $week; $i++) {
$month_list[0][] = [
'date' => '',
'day' => 0,
'create' => false,
];
}
foreach ($month as $item) {
$c = date('d', strtotime($item['date'])) + ($week - 2);
$w = date('w', strtotime($item['date']));
if ($w == 0) $w = 7;
$month_list[floor($c / 7)][$w - 1] = $item;
}
foreach ($month_list as $key => $item) {
$c = count($item);
if ($c != 7) {
for ($i = 0; $i < 7 - $c; $i++) {
$month_list[$key][] = [
'date' => '',
'day' => 0,
'create' => false,
];
}
}
}
return $month_list;
}
public function last_day($date)
{
$date = strtotime($date);
$count = cal_days_in_month(CAL_GREGORIAN, date('m', $date), date('Y', $date));
return date('Y-m', $date) . '-' . $count;
}
public function first_day($date)
{
$date = strtotime($date);
return date('Y-m-01', $date);
}
public function check_create($appointment_template, $date, $list)
{
$weekday = $appointment_template->weekday;
$holidays = $appointment_template->holidays;
$weeks = json_decode($appointment_template->weeks, true);
$week = date('w', strtotime($date));
$week = $week == 0 ? 7 : $week;
switch ($week) {
case 1:
case 2:
case 3:
case 4:
case 5:
if (isset($list[$date]) && $list[$date]['type'] == 1) {
if ($holidays == 2) return false;
}
return in_array((string)$week, $weeks);
case 6:
case 7:
if (isset($list[$date]) && $list[$date]['type'] == 2) {
if ($weekday == 1) return true;
}
return in_array((string)$week, $weeks);
}
}
public function date_map($start_date, $end_date, $appointment_template, $list)
{
$date_map = [];
$first_day = self::first_day($start_date);
$last_day = self::last_day($end_date);
$first_day_time = strtotime($first_day);
$last_day_time = strtotime($last_day);
for ($i = $first_day_time; $i <= $last_day_time; $i += 86400) {
$date = date('Y-m-d', $i);
$key = date('Y_m', $i);
$create = self::check_create($appointment_template, $date, $list);
if (strtotime($start_date) > $i) $create = false;
if (strtotime($end_date) < $i) $create = false;
$item = [
'date' => $date,
'day' => date('d', $i),
'create' => $create,
];
$date_map[$key][] = $item;
}
$map = [];
foreach ($date_map as $key => $item) {
$map[] = [
'year' => explode('_', $key)[0],
'month' => explode('_', $key)[1],
'list' => self::month_map($item),
];
}
return $map;
}
public function create(Request $request)
{
Login::admin([], [13, 15, 27]);
$hospital_id = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital_id != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$date_arr = $request->post('date_arr');
$appointment_template = AppointmentTemplate::find($id);
if (!$appointment_template) Yo::error_echo(100000, ['计划模板']);
if (count($date_arr) > 300) Yo::error_echo(200022);
$hospital = Hospital::where('id', $hospital_id)->where('del', 2)->first();
if (!$hospital) Yo::error_echo(100000, ['机构/医院']);
$list = [];
$error = [];
foreach ($date_arr as $date) {
$week = date('w', strtotime($date));
$week = $week == 0 ? 7 : $week;
$appointment = new Appointment();
$appointment->date = $date;
$appointment->week = $week;
$appointment->start_time = $appointment_template->start_time;
$appointment->end_time = $appointment_template->end_time;
$appointment->stop_time = $appointment_template->stop_time;
$appointment->max_count = $appointment_template->max_count;
$appointment->used_count = 0;
$appointment->hospital = $hospital->id;
$appointment->status = 1;
$appointment->save();
if (!!$appointment->id) {
$list[] = $appointment;
} else {
$error[] = $appointment;
}
}
return Yo::echo([
'list' => $list,
'error' => $error,
]);
}
public function create_list(Request $request)
{
Login::admin([], [13, 27]);
$id = $request->post('id');
$start_date = $request->post('start_date');
$end_date = $request->post('end_date');
if (strtotime($start_date) > strtotime($end_date)) Yo::error_echo(200020);
$appointment_template = AppointmentTemplate::find($id);
if (!$appointment_template) Yo::error_echo(100000, ['计划模板']);
$appointment_holiday_list = AppointmentHolidays::where('date', '>=', $start_date)
->where('date', '<=', $end_date)
->get();
$list = [];
foreach ($appointment_holiday_list as $item) {
$list[$item->date] = [
'date' => $item->date,
'type' => $item->type,
];
}
$date_map = self::date_map($start_date, $end_date, $appointment_template, $list);
if (count($date_map) > 12) Yo::error_echo(200021);
return Yo::echo([
'list' => $date_map,
]);
}
public function delete(Request $request)
{
Login::admin([], [15, 27]);
$ids = $request->post('ids');
$appointments_to_delete = Appointment::whereIn('id', $ids)
->where('used_count', '>', 0)
->get();
if (count($appointments_to_delete)) {
return Yo::error_echo(200023);
}
if (Login::$info->id == 1) {
Appointment::whereIn('id', $ids)->update(['del' => 1]);
} else {
Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->update(['del' => 1]);
}
return Yo::delete_echo($ids);
}
public function change_status(Request $request)
{
Login::admin([], [15, 27]);
$ids = $request->post('ids');
$status = $request->post('status');
if (Login::$info->id == 1) {
Appointment::whereIn('id', $ids)->update(['status' => $status]);
} else {
Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->update(['status' => $status]);
}
return Yo::update_echo($ids);
}
public function change_count(Request $request)
{
Login::admin([], [15, 27]);
$ids = $request->post('ids');
$count = $request->post('count');
if (Login::$info->id == 1) {
$list = Appointment::whereIn('id', $ids)->get();
} else {
$list = Appointment::whereIn('id', $ids)->where('hospital', Login::$info->hospital)->get();
}
foreach ($list as $item) {
$item->max_count = $count;
$item->save();
}
return Yo::update_echo($ids);
}
public function list(Request $request)
{
Login::admin([], [15, 27]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$start_date = $request->post('start_date');
$end_date = $request->post('end_date');
$status = $request->post('status');
$weeks = $request->post('weeks');
$query = Appointment::select('*')
->selectRaw("IFNULL((select type from appointment_holidays where appointment_holidays.date = appointments.date),0) as date_type")
->where('hospital', $hospital);
if ($status != 0) $query->where('status', '>=', $status);
if (!!$start_date) $query->where('date', '>=', $start_date);
if (!!$end_date) $query->where('date', '<=', $end_date);
if (count($weeks) == 0) $weeks = [1, 2, 3, 4, 5, 6, 7];
$query->whereIn('week', $weeks);
$appointments = $query->where('del', 2)->orderBy('date', 'desc')->paginate(20);
return Yo::echo($appointments);
}
public function mp_list(Request $request)
{
Login::user();
$month = $request->post('month');
$hospital = $request->post('hospital');
$appointments = Appointment::where('hospital', $hospital)
->where('date', 'like', $month . '%')
->where('status', 1)
->where('del', 2)
->orderBy('date')
->get();
$list = [];
foreach ($appointments as $appointment) {
$date = substr($appointment->date, 8, 2);
if (!isset($list[$date])) {
$list[$date] = [
'date' => $appointment->date,
'info' => 0,
'data' => [
'list' => []
],
];
}
$item_time = strtotime($appointment->date . ' ' . $appointment->stop_time);
$start_show = date('H:i', strtotime($appointment->date . ' ' . $appointment->start_time));
$end_show = date('H:i', strtotime($appointment->date . ' ' . $appointment->end_time));
$appointment->start_show = $start_show;
$appointment->end_show = $end_show;
if ($item_time < time()) {
$appointment->used_count = $appointment->max_count;
} else {
$list[$date]['info'] += max($appointment->max_count - $appointment->used_count, 0);
}
$list[$date]['data']['list'][] = $appointment;
}
$l = [];
foreach ($list as $item) {
$l[] = $item;
}
return Yo::echo([
'list' => $l,
]);
}
}

@ -0,0 +1,124 @@
<?php
namespace App\Http\Controllers;
use App\Models\AppointmentHolidays;
use Illuminate\Http\Request;
use Login;
use Yo;
class AppointmentHolidaysController extends Controller
{
public function month_map($month)
{
$week = date('w', strtotime($month[0]['date']));
if ($week == 0) $week = 7;
$month_list = [
[],
[],
[],
[],
[],
[],
];
for ($i = 0; $i < $week; $i++) {
$month_list[0][] = [
'date' => '',
'day' => 0,
'type' => 0,
];
}
foreach ($month as $item) {
$c = date('d', strtotime($item['date'])) + ($week - 2);
$w = date('w', strtotime($item['date']));
if ($w == 0) $w = 7;
$month_list[floor($c / 7)][$w - 1] = $item;
}
foreach ($month_list as $key => $item) {
$c = count($item);
if ($c != 7) {
for ($i = 0; $i < 7 - $c; $i++) {
$month_list[$key][] = [
'date' => '',
'day' => 0,
'type' => 0,
];
}
}
}
return $month_list;
}
public function year_map($year, $list)
{
$year_map = [];
$date = strtotime($year . '-01-01');
$next_year = strtotime(($year + 1) . '-01-01');
for ($i = $date; $i < $next_year; $i += 86400) {
$date = date('Y-m-d', $i);
$m = 'm' . date('m', $i);
if (isset($list[$date])) {
$year_map[$m][] = [
'date' => $date,
'day' => date('d', $i),
'type' => $list[$date]['type'],
];
} else {
$year_map[$m][] = [
'date' => $date,
'day' => date('d', $i),
'type' => 0,
];
}
}
$map = [];
foreach ($year_map as $item) {
$map[] = self::month_map($item);
}
return $map;
}
public function list(Request $request)
{
Login::admin([14]);
$year = $request->post('year') ?? date('Y');
$appointment_holiday_list = AppointmentHolidays::where('year', $year)->get();
$list = [];
foreach ($appointment_holiday_list as $item) {
$list[$item->date] = [
'date' => $item->date,
'type' => $item->type,
];
}
$year_map = self::year_map($year, $list);
return Yo::echo([
'year' => $year,
'list' => $year_map,
]);
}
public function change(Request $request)
{
Login::admin([14]);
$date = $request->post('date');
$type = $request->post('type');
$appointment_holidays = AppointmentHolidays::where('date', $date)->first();
if ($appointment_holidays) {
if ($type == 0) {
$appointment_holidays->delete();
} else {
$appointment_holidays->type = $type;
$appointment_holidays->save();
}
} else {
if ($type != 0) {
$appointment_holidays = new AppointmentHolidays();
$appointment_holidays->year = date('Y', strtotime($date));
$appointment_holidays->date = $date;
$appointment_holidays->type = $type;
$appointment_holidays->save();
}
}
return Yo::create_echo($appointment_holidays->id);
}
}

@ -0,0 +1,106 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditAppointmentTemplateInput;
use App\Models\AppointmentTemplate;
use Illuminate\Http\Request;
use Login;
use Yo;
class AppointmentTemplateController extends Controller
{
public function list(Request $request)
{
Login::admin([], [13, 27]);
$hospital = $request->post('hospital');
$list = AppointmentTemplate::where('hospital', $hospital)->get();
return Yo::echo([
'list' => $list
]);
}
public function select_list(Request $request)
{
Login::admin([15]);
$hospital = $request->post('hospital');
$list = AppointmentTemplate::whereIn('hospital', [$hospital, 0])->get();
return Yo::echo([
'list' => $list
]);
}
public function delete(Request $request)
{
Login::admin([], [13, 27]);
$id = $request->post('id');
$appointment_template = AppointmentTemplate::find($id);
if (!$appointment_template) Yo::error_echo(100000, ['计划模板']);
$appointment_template->delete();
return Yo::delete_echo($appointment_template->id);
}
public function update(EditAppointmentTemplateInput $request)
{
Login::admin([], [13, 27]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$name = $request->post('name');
$weeks = $request->post('weeks');
$weekday = $request->post('weekday');
$holidays = $request->post('holidays');
$start_time = $request->post('start_time');
$end_time = $request->post('end_time');
$stop_time = $request->post('stop_time');
$max_count = $request->post('max_count');
$appointment_template = AppointmentTemplate::find($id);
if (!$appointment_template) Yo::error_echo(100000, ['计划模板']);
$appointment_template->name = $name;
$appointment_template->weeks = $weeks;
$appointment_template->hospital = $hospital;
$appointment_template->weekday = $weekday;
$appointment_template->holidays = $holidays;
$appointment_template->start_time = $start_time;
$appointment_template->end_time = $end_time;
$appointment_template->stop_time = $stop_time;
$appointment_template->max_count = $max_count;
$appointment_template->save();
return Yo::update_echo($appointment_template->id);
}
public function create(EditAppointmentTemplateInput $request)
{
Login::admin([], [13, 27]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$name = $request->post('name');
$weeks = $request->post('weeks');
$weekday = $request->post('weekday');
$holidays = $request->post('holidays');
$start_time = $request->post('start_time');
$end_time = $request->post('end_time');
$stop_time = $request->post('stop_time');
$max_count = $request->post('max_count');
$appointment_template = new AppointmentTemplate();
$appointment_template->name = $name;
$appointment_template->weeks = $weeks;
$appointment_template->hospital = $hospital;
$appointment_template->weekday = $weekday;
$appointment_template->holidays = $holidays;
$appointment_template->start_time = $start_time;
$appointment_template->end_time = $end_time;
$appointment_template->stop_time = $stop_time;
$appointment_template->max_count = $max_count;
$appointment_template->save();
return Yo::create_echo($appointment_template->id);
}
}

@ -0,0 +1,141 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditAuthInput;
use App\Models\Auth;
use Yo;
use Login;
class AuthController extends Controller
{
public function list()
{
Login::admin();
$group = Auth::select('*')
->where('type', 1)->where('del', 2)
->orderBy('order', 'desc')->get();
$list = [];
foreach ($group as $item) {
$auth_list = Auth::select('*')->where('pid', $item->id)
->where('type', 2)->where('del', 2)
->orderBy('order', 'desc')->get();
$item['children'] = $auth_list;
$list[] = $item;
}
return Yo::echo([
'list' => $list,
]);
}
public function delete()
{
Login::admin([9]);
$id = request()->post('id');
$auth = Auth::where('id', $id)->where('del', 2)->first();
if (!$auth) Yo::error_echo(100000, ['路由']);
$auth->del = 1;
$auth->save();
if ($auth->pid == 0) {
Auth::where('pid', $id)->where('del', 2)->update([
'del' => 1
]);
}
return Yo::delete_echo($id);
}
public function update(EditAuthInput $request)
{
Login::admin([9]);
$id = $request->post('id');
$name = $request->post('name');
$title = $request->post('title');
$icon = $request->post('icon');
$pid = $request->post('pid');
$check_type = $request->post('check_type');
$show = $request->post('show');
$status = $request->post('status');
$order = $request->post('order');
$auth = Auth::where('id', $id)->where('del', 2)->first();
if (!$auth) Yo::error_echo(100000, ['路由']);
$type = $auth->type;
if ($pid === $id) Yo::error_echo(100029);
if ($auth->pid != $pid) {
if ($auth->pid == 0) {
$s_auth = Auth::where('pid', $id)->where('del', 2)->count();
if ($s_auth > 0) Yo::error_echo(100023);
$type = 2;
} else {
if ($pid != 0) {
$p_auth = Auth::where('id', $pid)->where('pid', 0)->where('del', 2)->first();
if (!$p_auth) Yo::error_echo(100000, ['分组']);
$type = 2;
}
}
}
$auth->name = $name;
$auth->title = $title;
$auth->icon = $icon ?? '';
$auth->pid = $pid;
$auth->type = $type;
$auth->check_type = $check_type;
$auth->show = $show;
$auth->status = $status;
$auth->order = $order;
$auth->save();
return Yo::update_echo($auth->id);
}
public function create(EditAuthInput $request)
{
Login::admin([9]);
$name = $request->post('name');
$title = $request->post('title');
$icon = $request->post('icon');
$pid = $request->post('pid');
$check_type = $request->post('check_type');
$show = $request->post('show');
$status = $request->post('status');
$order = $request->post('order');
$type = 1;
if ($pid != 0) {
$p_auth = Auth::where('id', $pid)->where('pid', 0)->where('del', 2)->first();
if (!$p_auth) Yo::error_echo(100000, ['路由']);
$type = 2;
}
$auth = new Auth();
$auth->name = $name;
$auth->title = $title;
$auth->icon = $icon ?? '';
$auth->pid = $pid;
$auth->type = $type;
$auth->check_type = $check_type;
$auth->show = $show;
$auth->status = $status;
$auth->order = $order;
$auth->save();
return Yo::create_echo($auth->id);
}
public function select()
{
Login::admin();
$group = Auth::select('id', 'title')
->where('type', 1)->where('del', 2)
->orderBy('order', 'desc')->get();
$list = [];
foreach ($group as $item) {
$auth_list = Auth::select('id', 'title')->where('pid', $item->id)
->where('type', 2)->where('check_type', 2)->where('del', 2)
->orderBy('order', 'desc')->get();
if (count($auth_list) !== 0) $list[] = [
"id" => $item->id,
"title" => $item->title,
"children" => $auth_list
];
}
return Yo::echo([
'list' => $list,
]);
}
}

@ -0,0 +1,157 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditCarouselInput;
use Illuminate\Http\Request;
use App\Models\Carousel;
use Yo;
use Login;
class CarouselController extends Controller
{
public function create(EditCarouselInput $request)
{
Login::admin([], [17, 23]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$name = $request->post('name');
$image = $request->post('image');
$desc = $request->post('desc');
$type = $request->post('type');
$jump_type = $request->post('jump_type');
$jump_path = $request->post('jump_path');
$login_type = $request->post('login_type');
$start_time = $request->post('start_time');
$end_time = $request->post('end_time');
$status = $request->post('status');
if (strtotime($start_time) > strtotime($end_time)) Yo::error_echo(200020);
$carousel = new Carousel();
$carousel->name = $name;
$carousel->image = $image;
$carousel->desc = $desc;
$carousel->hospital = $hospital;
$carousel->type = $type;
$carousel->jump_type = $jump_type;
$carousel->jump_path = $jump_path ?? '';
$carousel->login_type = $login_type;
$carousel->start_time = $start_time;
$carousel->end_time = $end_time;
$carousel->status = $status;
$carousel->save();
return Yo::create_echo($carousel->id);
}
public function update(EditCarouselInput $request)
{
Login::admin([], [17, 23]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$name = $request->post('name');
$image = $request->post('image');
$desc = $request->post('desc');
$type = $request->post('type');
$jump_type = $request->post('jump_type');
$jump_path = $request->post('jump_path');
$login_type = $request->post('login_type');
$start_time = $request->post('start_time');
$end_time = $request->post('end_time');
$status = $request->post('status');
if (strtotime($start_time) > strtotime($end_time)) Yo::error_echo(200020);
$carousel = Carousel::find($id);
if (!$carousel) Yo::error_echo(100000, ['内容']);
$carousel->name = $name;
$carousel->image = $image;
$carousel->desc = $desc;
$carousel->hospital = $hospital;
$carousel->type = $type;
$carousel->jump_type = $jump_type;
$carousel->jump_path = $jump_path ?? '';
$carousel->login_type = $login_type;
$carousel->start_time = $start_time;
$carousel->end_time = $end_time;
$carousel->status = $status;
$carousel->save();
return Yo::update_echo($carousel->id);
}
public function delete(Request $request)
{
Login::admin([], [17, 23]);
$id = $request->post('id');
$carousel = Carousel::find($id);
if (!$carousel) Yo::error_echo(100000, ['内容']);
$hospital = $carousel->hospital;
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$carousel->delete();
return Yo::delete_echo($carousel->id);
}
public function list(Request $request)
{
Login::admin([], [17, 23]);
$type = $request->post('type');
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$carousel_list = Carousel::where('hospital', $hospital)->where('type', $type)->get();
return Yo::echo([
'list' => $carousel_list
]);
}
public function mp_list(Request $request)
{
$type = $request->post('type');
$hospital = $request->post('hospital');
$carousel_list = Carousel::where('hospital', $hospital)
->where('type', $type)
->where('start_time', '<=', date('Y-m-d H:i:s'))
->where('end_time', '>=', date('Y-m-d H:i:s'))
->where('status', 1)
->get();
if (count($carousel_list) == 0) $carousel_list = [];
$merged_list = [];
if ($type == 1 || $type == 2) {
$public_list = Carousel::where('hospital', 0)
->where('type', $type)
->where('start_time', '<=', date('Y-m-d H:i:s'))
->where('end_time', '>=', date('Y-m-d H:i:s'))
->where('status', 1)
->get();
if (count($carousel_list) == 0) {
$merged_list = $public_list;
} else {
$merged_list = array_merge($carousel_list->toArray(), $public_list->toArray());
}
} else if ($type == 3 || $type == 4) {
if (count($carousel_list) == 0) {
$merged_list = Carousel::where('hospital', 0)
->where('type', $type)
->where('start_time', '<=', date('Y-m-d H:i:s'))
->where('end_time', '>=', date('Y-m-d H:i:s'))
->where('status', 1)
->get();
}
}
return Yo::echo([
'list' => $merged_list
]);
}
}

@ -0,0 +1,165 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Yo;
use Login;
class ChatController extends Controller
{
//h5新建对话,返回新的对话id
public function creatNew(){
$title=request('title');
Login::user();
$UserId=Login::$info->id;
if(!isset($UserId)) return Yo::echo(['status' => false,'msg'=>'用户id必填']);
$id=DB::table('chat_workorders')->insertGetId([
'userid'=>$UserId,
'title'=>$title,
]);
if($id){
return Yo::echo(['status' => true,'id'=>$id]);
}else{
return Yo::echo(['status' => false]);
}
}
//h5插入消息
public function InsertMsg(){
$MsgInfo=request('MsgInfo');
Login::user();
$UserId=Login::$info->id;
$querywork=DB::table('chat_workorders')->select(['status'])->where(['id'=>$MsgInfo['WorkOrder'],'userid'=>$UserId])->first();
if($querywork->status==3) return Yo::echo(['status' => false,'msg'=>'工单已关闭,如遇到问题请重新提交工单']);
$i=DB::table('chat_lists')->insert([
'work_order_id'=>$MsgInfo['WorkOrder'],
'msg_type'=>0,
'userid'=>$UserId,
'content'=>$MsgInfo['Content']
]);
if($i){
return Yo::echo(['status' => true]);
}else{
return Yo::echo(['status' => false,'msg'=>'留言失败']);
}
}
//h5获取自己的消息记录
public function GetSelfMsgList(){
$WorkOrderId=request('WorkOrder');
Login::user();
$UserId=Login::$info->id;
$page=request('Page');
$pagesize=200;
$offset=($page-1)*$pagesize;
$querywork=DB::table('chat_workorders')->select(['status'])->where(['id'=>$WorkOrderId,'userid'=>$UserId])->first();
if(!isset($querywork)) return Yo::echo(['status' => false,'msg'=>'非法']); //如果没有找到此用户名下工单
$query=DB::table('chat_lists')
->where(['work_order_id'=>$WorkOrderId])
->orderBy('id','desc')
->offset($offset)->take($pagesize)
->get();
return Yo::echo(['status' => true,'list'=>$query,'workorder_status'=>$querywork]);
}
//h5获取工单列表
public function GetWorkOrderList(){
Login::user();
$UserId=Login::$info->id;
//查看是否有未完结工单
$IncompleteCount=DB::table('chat_workorders')->where('userid',$UserId)->whereIn('status',[1,2])->count();
$query=DB::select("SELECT a.title,a.status,a.created_at ,b.content,a.id FROM
( SELECT * FROM chat_workorders WHERE userid = ? AND STATUS <> 0 AND del = 2 ) AS a
LEFT JOIN (
select * from( select * from chat_lists where userid = ? AND msg_type = 0 ) as aa INNER JOIN
(SELECT max(id) as bid, work_order_id as w_id FROM chat_lists WHERE userid = ? AND msg_type = 0 GROUP BY work_order_id) as bb
on aa.id=bb.bid) AS b ON a.id = b.work_order_id order by a.id desc",[$UserId,$UserId,$UserId] );
return Yo::echo(['status' => true,'list'=>$query,'incompleteCount'=>$IncompleteCount]);
}
//admin获取工单列表
public function GetAdminWorkOrderList(){
$search=request('search');
$page=request('page');
$pagesize=request('pagesize');
$offset=($page-1)*$pagesize;
$query=DB::select("select a.*,b.nickname from chat_workorders as a left JOIN users as b on a.userid = b.id
where a.del<>1 order by id desc limit ?,?",[$offset,$pagesize]);
$count=DB::select("select count(*) as c from chat_workorders as a left JOIN users as b on a.userid = b.id where a.del<>1");
return Yo::echo(['count' => $count[0]->c,'list'=>$query]);
}
//admin获取工单消息记录
public function GetAdminMsgList(){
$WorkOrderId=request('WorkOrder');
$querywork=DB::select("select a.*,b.nickname from chat_workorders as a join users as b on a.userid=b.id where a.id=?",[$WorkOrderId]);
if(isset($querywork)){
$querywork=$querywork[0];
}else{
$querywork='';
}
$query=DB::table('chat_lists')
->where(['work_order_id'=>$WorkOrderId])
->orderBy('id', )
->get();
return Yo::echo(['status' => true,'list'=>$query,'workOrderInfo'=>$querywork]);
}
//admin插入消息
public function adminInsertMsg(){
$Content=request('Content');
$WorkOrderId=request('WorkOrder');
$querywork=DB::table('chat_workorders')->select(['status'])->where(['id'=>$WorkOrderId])->first();
if($querywork->status==3) return Yo::echo(['status' => false,'msg'=>'工单已关闭,无法回复']);
$i=DB::table('chat_lists')->insert([
'work_order_id'=>$WorkOrderId,
'msg_type'=>1,
'userid'=>0,
'content'=>$Content
]);
if($i){
return Yo::echo(['status' => true]);
}else{
return Yo::echo(['status' => false,'msg'=>'回复失败']);
}
}
//更改工单信息
public function changeWorkOrder(){
$WorkOrderId=request('WorkOrderId');
$Status=request('Status');
$u=DB::table('chat_workorders')->where(['id'=>$WorkOrderId])->update([
'status'=>$Status
]);
if($u){
return Yo::echo(['status' => true,'msg'=>'操作完成']);
}else{
return Yo::echo(['status' => false,'msg'=>'操作失败']);
}
}
//H5用户自己关闭工单
public function UserChangeWorkOrder(){
$WorkOrderId=request('WorkOrder');
Login::user();
$UserId=Login::$info->id;
$u=DB::table('chat_workorders')->where(['id'=>$WorkOrderId,'userid'=>$UserId])->update([
'status'=>3
]);
if($u){
return Yo::echo(['status' => true,'msg'=>'操作完成']);
}else{
return Yo::echo(['status' => false,'msg'=>'操作失败']);
}
}
}

@ -0,0 +1,366 @@
<?php
namespace App\Http\Controllers;
use App\Models\Appointment;
use App\Models\HospitalAdditional;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Login;
use Yo;
class ComboItemController extends Controller
{
public function group_info($hospital, $data)
{
$peis = new PEISApiController();
$info = $peis::Post('团检登记查询', $hospital, $data);
$items = [];
$group_info = $info['data'][0];
if (isset($group_info['项目列表'])) {
foreach ($group_info['项目列表'] as $datum) {
$items[] = [
'id' => $datum['Id'],
'name' => $datum['名称'],
];
}
}
return [
'name' => $group_info['姓名'],
'id_number' => $group_info['证件号码'],
'combo_name' => $group_info['套餐名称'],
'combo_id' => $group_info['套餐Id'],
'start_time' => $group_info['预约开始日期'],
'end_time' => $group_info['预约结束日期'],
'group_name' => $group_info['单位名称'] . ($group_info['部门名称']),
'items' => $items,
'appointment_number' => $group_info['预约Id']
];
}
public function combo($hospital, $data)
{
$peis = new PEISApiController();
$combo_list = $peis::Post('套餐查询', $hospital, $data)['data'];
$list = [];
foreach ($combo_list as $item) {
$list[] = [
'id' => $item['Id'],
'name' => $item['名称'],
'py' => $item['拼音'],
'price' => $item['价格'],
'original_price' => $item['原价'],
'sex' => $item['性别限制'],
'desc' => $item['简介'],
'count' => $item['简介'],
// 'original_info' => $item
];
}
return $list;
}
public function combo_info($hospital, $data)
{
$peis = new PEISApiController();
$combo_info = $peis::Post('套餐详情查询', $hospital, $data)['data'][0];
$info = [
'id' => $combo_info['Id'],
'name' => $combo_info['名称'],
'price' => $combo_info['价格'],
'original_price' => $combo_info['原价'],
'sex' => $combo_info['性别限制'],
'items' => [],
];
foreach ($combo_info['包含项目'] as $item) {
$info['items'][] = [
'id' => $item['Id'],
'name' => $item['名称'],
'price' => $item['价格'],
'discount_type' => $item['优惠方式'],
'discount_value' => $item['优惠值'],
];
}
$info['count'] = count($info['items']);
return $info;
}
public function items($hospital, $data)
{
$peis = new PEISApiController();
$items = $peis::Post('自选项目查询', $hospital, $data)['data'];
$list = [];
foreach ($items as $item) {
$list[] = [
'id' => $item['Id'],
'name' => $item['名称'],
'py' => $item['拼音'],
'price' => $item['价格'],
'sex' => $item['性别限制'],
'clinic' => $item['科室Id'],
'clinic_name' => $item['科室名称'],
'choose' => $item['可选'],
];
}
return $list;
}
//获取思信所有检查项目
public function GetSiXinItems(Request $request)
{
$hospital = $request->post('hospital');
$data = [
'价格下限' => "0",
'价格上限' => "999999",
"性别" => null,
"妇检" => null,
"套餐Id" => null,
"项目Id列表" => []
];
$peis = new PEISApiController();
$items = $peis::Post('自选项目查询', $hospital, $data)['data'];
$list = [];
foreach ($items as $item) {
if($item['可选']==true)
$list[]=$item;
}
return Yo::echo([
'list' => $list
]);
}
//获取思信项目绑定的检查项目
public function GetSiXinItemsLinks(Request $request)
{
$hospital = $request->post('hospital');
$itemId= $request->post('items');
$cha=DB::table('item_links')->where('hospital',$hospital)->where('item_id',$itemId)->first();
return Yo::echo([
'info'=>$cha
]);
}
//绑定思信项目和检查项目
public function BindSiXinItemsLinks(Request $request)
{
$hospital = $request->post('hospital');
$itemId= $request->post('items');
$linkIds= $request->post('linkIds');
$cha=DB::table('item_links')->where('hospital',$hospital)->where('item_id',$itemId)->first();
if($cha){
$cha=DB::table('item_links')->where('id',$cha->id)->update([
'link_ids'=>$linkIds
]);
}else{
$cha=DB::table('item_links')->insert([
'hospital'=>$hospital,
'item_id'=>$itemId,
'link_ids'=>$linkIds
]);
}
return Yo::echo([
'info'=>$cha
]);
}
public function mp_items_list(Request $request)
{
Login::user();
$hospital = $request->post('hospital');
$combo = $request->post('combo');
$list = self::items($hospital, [
'价格下限' => "0",
'价格上限' => "999999",
"性别" => null,
"妇检" => null,
"套餐Id" => $combo ? (string)$combo : null,
"项目Id列表" => []
]);
$list_map = [];
foreach ($list as $item) {
if (!!$item['choose']) {
if (!isset($list_map['g' . $item['clinic']])) {
$list_map['g' . $item['clinic']] = [
'id' => $item['clinic'],
'name' => $item['clinic_name'],
'items' => []
];
}
$list_map['g' . $item['clinic']]['items'][] = [
'id' => $item['id'],
'name' => $item['name'],
'py' => $item['py'],
'price' => $item['price'],
'sex' => $item['sex'],
];
}
}
$l = [];
foreach ($list_map as $item) {
$l[] = $item;
}
return Yo::echo([
'list' => $l
]);
}
public function combo_list(Request $request)
{
Login::admin([], [17, 24]);
$hospital = $request->post('hospital');
$list = self::combo($hospital, [
'价格下限' => "0",
'价格上限' => "999999",
'性别' => null,
'妇检' => false
]);
return Yo::echo([
'list' => $list
]);
}
public function mp_buy_info(Request $request)
{
Login::user();
$hospital = $request->post('hospital');
$combo = $request->post('combo');
$count = 0;
$price = 0;
$original_price = 0;
$combo_info = false;
$combo_items_ids = [];//套餐内项目id
if (!!$combo) {
$combo_info = self::combo_info($hospital, [
'套餐Id' => $combo,
]);
$count += $combo_info['count'];
$price += $combo_info['price'];
if ($combo_info['original_price'] > $combo_info['price']) {
$original_price += $combo_info['original_price'];
} else {
$original_price += $combo_info['price'];
}
foreach ($combo_info['items'] as $item) {
$combo_items_ids[] = $item['id'];
}
}
$items = $request->post('items');
//查询勾选的项目,判断是否有关联项目
$cha=DB::table('item_links')->where('hospital',$hospital)->whereIn('item_id',$items)->get();
foreach ($cha as $link) {
// 将逗号分隔的字符串转换为数组
$linkIdsArray = explode(',', $link->link_ids);
// 合并数组到 $items 中
$items = array_merge($items, $linkIdsArray);
}
// 去除重复的元素
$items = array_values(array_unique($items));
// 判断自选数组中的某项是否在套餐数组中
$intersection = array_intersect($items, $combo_items_ids);
// 移除自选数组中在套餐数组中存在的项
$items =array_values(array_diff($items, $intersection));
$items_list = [];
if (count($items) != 0) {
$items_list = self::items($hospital, [
'价格下限' => "0",
'价格上限' => "999999",
"性别" => null,
"妇检" => null,
"套餐Id" => null,
"项目Id列表" => $items
]);
}
$item_list_ret = [];
foreach ($items_list as $item) {
$count++;
$price += $item['price'];
$original_price += $item['price'];
$item_list_ret[] = [
'id' => $item['id'],
'name' => $item['name'],
'price' => $item['price']
];
}
$time = $request->post('time');
$time_info = Appointment::where('id', $time['id'])->where('status', 1)->where('del', 2)->first();
if (!!$time_info) {
if ($time_info->max_count <= $time_info->used_count) {
$time_info = false;
}
}
if (!!$time_info) {
$show = date('Y-m-d H:i', strtotime($time_info->date . ' ' . $time_info->start_time)) . ' - ' . date('H:i', strtotime($time_info->date . ' ' . $time_info->end_time));
$time_info = [
'id' => $time_info->id,
'date' => $time_info->date,
'show' => $show,
];
}
$group = $request->post('group');
$group_info = false;
if (!!$group) {
$group_info = self::group_info($hospital, [
"电话号码" => null,
"证件号码" => null,
"预约Id" => $group
]);
$count += count($group_info['items']);
}
return Yo::echo([
'links'=>$cha,
'price' => $price,
'original_price' => $original_price,
'group' => $group_info,
'count' => $count,
'combo' => $combo_info,
'items' => $item_list_ret,
'time' => !!$time_info ? $time_info : [
'id' => 0,
'date' => date('Y-m-d'),
],
]);
}
public function mp_combo_list(Request $request)
{
Login::user();
$hospital = $request->post('hospital');
$list = self::combo($hospital, [
'价格下限' => "0",
'价格上限' => "999999",
'性别' => null,
'妇检' => false
]);
$list_map = [];
foreach ($list as $item) {
$item['count'] = 0;
$list_map['i' . $item['id']] = $item;
}
$hospital_additional = HospitalAdditional::where('hospital', $hospital)->first();
$self_count = [];
if (!!$hospital_additional) $self_count = json_decode($hospital_additional->combo_count, true);
$public_additional = HospitalAdditional::where('hospital', 0)->first();
$public_count = [];
if (!!$public_additional) $public_count = json_decode($public_additional->combo_count, true);
foreach ($public_count as $item) {
if (isset($list_map['i' . $item['id']])) {
$list_map['i' . $item['id']]['count'] = $item['count'];
}
}
foreach ($self_count as $item) {
if (isset($list_map['i' . $item['id']])) {
$list_map['i' . $item['id']]['count'] = $item['count'];
}
}
$l = [];
foreach ($list_map as $item) {
$l[] = $item;
}
return Yo::echo([
'list' => $l
]);
}
}

@ -0,0 +1,123 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditConfigInput;
use App\Models\Config;
use Yo;
use Login;
class ConfigController extends Controller
{
public function create(EditConfigInput $request)
{
Login::admin([8]);
$label = $request->post('label');
$value = $request->post('value');
$type = $request->post('type');
$remark = $request->post('remark');
$config = new Config();
$config->label = $label;
$config->value = $value;
$config->type = $type;
$config->remark = $remark ?? '';
$config->save();
return Yo::create_echo($config->id);
}
public function delete()
{
Login::admin([8]);
$id = request()->post('id');
Config::where('id', $id)->delete();
return Yo::delete_echo($id);
}
public function update(EditConfigInput $request)
{
$config_id = $request->post('config_id');
Login::admin([8]);
$label = $request->post('label');
$value = $request->post('value');
$type = $request->post('type');
$remark = $request->post('remark');
$config = Config::find($config_id);
if (!$config) Yo::error_echo(100000, ['配置']);
$config->label = $label;
$config->value = $value;
$config->type = $type;
$config->remark = $remark ?? '';
$config->save();
return Yo::update_echo($config->id);
}
public function list()
{
$configs = Config::get();
$list = [];
foreach ($configs as $config) {
$value = $config->value;
if (in_array($config->type, [3, 4, 5])) {
$value = json_decode($value, true);
}
$config['value_turn'] = $value;
$list[] = $config;
}
return Yo::echo(['list' => $list]);
}
public function get()
{
$check_res = Login::admin_check();
$label_arr = request()->post('label_arr');
if ($check_res != 0) {
$can_get_arr = ['Logo', 'Favicon', 'Login欢迎图片', '网站名称', '客服电话', '小程序默认封面图'];
foreach ($label_arr as $item) {
if (!in_array($item, $can_get_arr)) {
return Yo::error_echo(100000, ['配置']);
}
}
}
$configs = $this->get_config_list($label_arr);
$list = [];
foreach ($configs as $config) {
$value = $config->value;
if (in_array($config->type, [3, 4, 5])) {
$value = json_decode($value, true);
}
$list[$config->label] = $value;
}
return Yo::echo($list);
}
public function mp_get()
{
$label_arr = request()->post('label_arr');
$can_get_arr = ['客服电话', '小程序默认封面图'];
foreach ($label_arr as $item) {
if (!in_array($item, $can_get_arr)) {
return Yo::error_echo(100000, ['配置']);
}
}
$configs = $this->get_config_list($label_arr);
$list = [];
foreach ($configs as $config) {
$value = $config->value;
if (in_array($config->type, [3, 4, 5])) {
$value = json_decode($value, true);
}
$list[$config->label] = $value;
}
return Yo::echo($list);
}
public function get_config_list($arr): array
{
$config_arr = [];
foreach ($arr as $item) {
$config = Config::where('label', $item)->first();
if ($config) $config_arr[] = $config;
}
return $config_arr;
}
}

@ -0,0 +1,19 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use Lu;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
public function __construct()
{
Lu::RequestLog();
}
}

@ -0,0 +1,107 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditHospitalActivityPackageInput;
use Illuminate\Http\Request;
use App\Models\HospitalActivityPackage;
use Yo;
use Login;
class HospitalActivityPackageController extends Controller
{
public function create(EditHospitalActivityPackageInput $request)
{
Login::admin([], [17, 24]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$name = $request->post('name');
$content = $request->post('content');
$status = $request->post('status');
$hospital_activity_package = new HospitalActivityPackage();
$hospital_activity_package->name = $name;
$hospital_activity_package->hospital = $hospital;
$hospital_activity_package->content = $content;
$hospital_activity_package->status = $status;
$hospital_activity_package->save();
return Yo::create_echo($hospital_activity_package->id);
}
public function update(EditHospitalActivityPackageInput $request)
{
Login::admin([], [17, 24]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$name = $request->post('name');
$content = $request->post('content');
$status = $request->post('status');
$hospital_activity_package = HospitalActivityPackage::find($id);
if (!$hospital_activity_package) Yo::error_echo(100000, ['内容']);
$hospital_activity_package->name = $name;
$hospital_activity_package->hospital = $hospital;
$hospital_activity_package->content = $content;
$hospital_activity_package->status = $status;
$hospital_activity_package->save();
return Yo::update_echo($hospital_activity_package->id);
}
public function delete(Request $request)
{
Login::admin([], [17, 24]);
$id = $request->post('id');
$hospital_activity_package = HospitalActivityPackage::find($id);
if (!$hospital_activity_package) Yo::error_echo(100000, ['内容']);
$hospital = $hospital_activity_package->hospital;
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$hospital_activity_package->delete();
return Yo::delete_echo($hospital_activity_package->id);
}
public function list(Request $request)
{
Login::admin([], [17, 24]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$hospital_activity_package_list = HospitalActivityPackage::where('hospital', $hospital)->get();
return Yo::echo([
'list' => $hospital_activity_package_list
]);
}
public function mp_list(Request $request)
{
$hospital = $request->post('hospital');
$hospital_activity_package_list = HospitalActivityPackage::where('hospital', $hospital)
->where('status', 1)
->get();
if (count($hospital_activity_package_list) == 0) $hospital_activity_package_list = [];
$public_list = HospitalActivityPackage::where('hospital', 0)
->where('status', 1)
->get();
if (count($hospital_activity_package_list) == 0) {
$merged_list = $public_list;
} else {
$merged_list = $hospital_activity_package_list;
}
return Yo::echo([
'list' => $merged_list
]);
}
}

@ -0,0 +1,59 @@
<?php
namespace App\Http\Controllers;
use App\Models\HospitalAdditional;
use Illuminate\Http\Request;
use Login;
use Yo;
class HospitalAdditionalController extends Controller
{
public function get_hospital_additional($hospital)
{
$hospital_additional = HospitalAdditional::where('hospital', $hospital)->first();
if (!$hospital_additional) {
$hospital_additional = new HospitalAdditional();
$hospital_additional->hospital = $hospital;
$hospital_additional->combo_order = '[]';
$hospital_additional->combo_count = '[]';
$hospital_additional->save();
}
$hospital_additional->combo_order = json_decode($hospital_additional->combo_order, true);
$hospital_additional->combo_count = json_decode($hospital_additional->combo_count, true);
return $hospital_additional;
}
public function update(Request $request)
{
Login::admin([], [17, 24]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$combo_order = $request->post('combo_order');
$combo_count = $request->post('combo_count');
$hospital_additional = self::get_hospital_additional($hospital);
$hospital_additional->combo_order = $combo_order;
$hospital_additional->combo_count = $combo_count;
$hospital_additional->save();
return Yo::update_echo($hospital_additional->id);
}
public function info(Request $request)
{
Login::admin([], [17, 24]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$hospital_additional = self::get_hospital_additional($hospital);
return Yo::echo([
'info' => $hospital_additional
]);
}
}

@ -0,0 +1,190 @@
<?php
namespace App\Http\Controllers;
use App\Models\Hospital;
use Illuminate\Http\Request;
use App\Http\Requests\EditHospitalInput;
use Illuminate\Support\Facades\DB;
use Login;
use Yo;
class HospitalController extends Controller
{
public function list()
{
Login::admin([11]);
$list = Hospital::where('del', 2)->get();
return Yo::echo([
'list' => $list
]);
}
public function info(Request $request)
{
$id = $request->post('id');
$latitude = $request->post('latitude');
$longitude = $request->post('longitude');
$info = Hospital::select('id', 'address', 'logo', 'name', 'phone', 'latitude', 'longitude', DB::raw('(ROUND(6371 * acos(cos(radians(?)) * cos(radians(latitude)) * cos(radians(longitude) - radians(?)) + sin(radians(?)) * sin(radians(latitude))), 2)) AS distance'))
->setBindings([$latitude, $longitude, $latitude])
->where('id', $id)
->where('status', 1)
->where('del', 2)
->first();
if (!$info) {
$info = Hospital::select('id', 'address', 'logo', 'name', 'phone', 'latitude', 'longitude', DB::raw('(ROUND(6371 * acos(cos(radians(?)) * cos(radians(latitude)) * cos(radians(longitude) - radians(?)) + sin(radians(?)) * sin(radians(latitude))), 2)) AS distance'))
->setBindings([$latitude, $longitude, $latitude])
->where('dev', 2)
->where('status', 1)
->where('del', 2)
->first();
}
return Yo::echo([
'info' => $info
]);
}
public function count()
{
Login::user();
$query = Hospital::where('status', 1)->where('del', 2);
if (Login::$info->dev != 1) $query->where('dev', 2);
$count = $query->count();
return Yo::echo([
'count' => $count
]);
}
public function mp_list(Request $request)
{
Login::user();
$latitude = $request->post('latitude');
$longitude = $request->post('longitude');
$query = Hospital::select('id', 'address', 'logo', 'name', 'phone', DB::raw('(ROUND(6371 * acos(cos(radians(?)) * cos(radians(latitude)) * cos(radians(longitude) - radians(?)) + sin(radians(?)) * sin(radians(latitude))), 2)) AS distance'))
->setBindings([$latitude, $longitude, $latitude])
->where('status', 1)->where('del', 2);
if (Login::$info->dev != 1) $query->where('dev', 2);
$list = $query->orderBy('distance', 'asc')->get();
return Yo::echo([
'list' => $list
]);
}
public function select_list()
{
Login::admin();
$list = Hospital::where('del', 2)->get();
return Yo::echo([
'list' => $list
]);
}
public function delete(Request $request)
{
Login::admin([11]);
$id = $request->post('id');
$hospital = Hospital::where('id', $id)->where('del', 2)->first();
if (!$hospital) Yo::error_echo(100000, ['机构/医院']);
$hospital->del = 1;
$hospital->save();
return Yo::delete_echo($hospital->id);
}
public function update(EditHospitalInput $request)
{
Login::admin([11]);
$id = $request->post('id');
$name = $request->post('name');
$code = $request->post('code');
$address = $request->post('address');
$longitude = $request->post('longitude');
$latitude = $request->post('latitude');
$logo = $request->post('logo');
$dev = $request->post('dev');
$phone = $request->post('phone');
$status = $request->post('status');
$hospital = Hospital::where('id', $id)->where('del', 2)->first();
if (!$hospital) Yo::error_echo(100000, ['机构/医院']);
$hospital->name = $name;
$hospital->code = $code;
$hospital->address = $address;
$hospital->longitude = $longitude;
$hospital->latitude = $latitude;
$hospital->logo = $logo;
$hospital->dev = $dev;
$hospital->phone = $phone;
$hospital->status = $status;
$hospital->save();
return Yo::update_echo($hospital->id);
}
public function create(EditHospitalInput $request)
{
Login::admin([11]);
$name = $request->post('name');
$code = $request->post('code');
$address = $request->post('address');
$longitude = $request->post('longitude');
$latitude = $request->post('latitude');
$logo = $request->post('logo');
$dev = $request->post('dev');
$phone = $request->post('phone');
$status = $request->post('status');
$hospital = new Hospital();
$hospital->name = $name;
$hospital->code = $code;
$hospital->address = $address;
$hospital->longitude = $longitude;
$hospital->latitude = $latitude;
$hospital->logo = $logo;
$hospital->dev = $dev;
$hospital->phone = $phone;
$hospital->status = $status;
$hospital->save();
return Yo::create_echo($hospital->id);
}
public function hospital_info(Request $request)
{
Login::admin([22]);
if (Login::$info->hospital == -1) Yo::error_echo(100000, ['机构/医院']);
if (Login::$info->hospital == 0) {
return Yo::echo([
'info' => [
'id' => 0
]
]);
}
$info = Hospital::where('id', Login::$info->hospital)
->where('status', 1)
->where('del', 2)
->first();
if (!$info) Yo::error_echo(100000, ['机构/医院']);
return Yo::echo([
'info' => $info
]);
}
public function hospital_update(EditHospitalInput $request)
{
Login::admin([22]);
$id = $request->post('id');
if (Login::$info->hospital != $id) Yo::error_echo(100000, ['机构/医院']);
$name = $request->post('name');
$address = $request->post('address');
$longitude = $request->post('longitude');
$latitude = $request->post('latitude');
$logo = $request->post('logo');
$phone = $request->post('phone');
$hospital = Hospital::where('id', $id)->where('del', 2)->first();
if (!$hospital) Yo::error_echo(100000, ['机构/医院']);
$hospital->name = $name;
$hospital->address = $address;
$hospital->longitude = $longitude;
$hospital->latitude = $latitude;
$hospital->logo = $logo;
$hospital->phone = $phone;
$hospital->save();
return Yo::update_echo($hospital->id);
}
}

@ -0,0 +1,172 @@
<?php
namespace App\Http\Controllers;
use App\Models\HospitalExtra;
use Illuminate\Http\Request;
use Login;
use Yo;
class HospitalExtraController extends Controller
{
public function get_hospital_extra($hospital, $mark)
{
$hospital_extra = HospitalExtra::where('hospital', $hospital)->where('mark', $mark)->first();
if (!$hospital_extra) {
$hospital_extra = new HospitalExtra();
$hospital_extra->hospital = $hospital;
$hospital_extra->mark = $mark;
switch ($mark) {
case 'pay':
$hospital_extra->content = '{"wxp":{"open":0,"id":"","number":"","v3":"","key":"","crt":""}}';
break;
case 'order_type':
$hospital_extra->content = '{"combo_add_item":0,"item":0}';
break;
case 'card_pay':
$hospital_extra->content = '{"open":0}';
break;
case 'readme':
$hospital_extra->content = '{"open":0,"content":"","time":5}';
break;
case 'h5txt':
$hospital_extra->content = '{"path":""}';
break;
case 'report':
$hospital_extra->content = '{"open":0}';
break;
case 'profitsharing':
$hospital_extra->content = '{"open":0}';
break;
}
$hospital_extra->save();
}
$hospital_extra->content = json_decode($hospital_extra->content, true);
return $hospital_extra;
}
public function update(Request $request)
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$mark = $request->post('mark');
$content = $request->post('content');
$hospital_extra = self::get_hospital_extra($hospital, $mark);
$hospital_extra->content = $content;
$hospital_extra->save();
return Yo::update_echo($hospital_extra->id);
}
public function info(Request $request)
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$mark = $request->post('mark');
$hospital_extra = self::get_hospital_extra($hospital, $mark);
return Yo::echo([
'info' => $hospital_extra
]);
}
public function report_status(Request $request)
{
$hospital = $request->post('hospital');
$mark = 'report';
$hospital_extra = HospitalExtra::where('hospital', $hospital)->where('mark', $mark)->first();
$hospital_extra_public = HospitalExtra::where('hospital', 0)->where('mark', $mark)->first();
$hospital_extra_public_content = json_decode($hospital_extra_public->content, true);
if (!!$hospital_extra) {
$hospital_extra_content = json_decode($hospital_extra->content, true);
$hospital_extra_content['open'] = $hospital_extra_content['open'] == 0 ? $hospital_extra_public_content['open'] : $hospital_extra_content['open'];
} else {
$hospital_extra_content = $hospital_extra_public_content;
}
if ($hospital_extra_content['open'] == 0) $hospital_extra_content['open'] = 2;
return Yo::echo([
'info' => $hospital_extra_content
]);
}
public function profitsharing_status(Request $request)
{
$hospital = $request->post('hospital');
$mark = 'profitsharing';
$hospital_extra = HospitalExtra::where('hospital', $hospital)->where('mark', $mark)->first();
$hospital_extra_public = HospitalExtra::where('hospital', 0)->where('mark', $mark)->first();
$hospital_extra_public_content = json_decode($hospital_extra_public->content, true);
if (!!$hospital_extra) {
$hospital_extra_content = json_decode($hospital_extra->content, true);
$hospital_extra_content['open'] = $hospital_extra_content['open'] == 0 ? $hospital_extra_public_content['open'] : $hospital_extra_content['open'];
} else {
$hospital_extra_content = $hospital_extra_public_content;
}
if ($hospital_extra_content['open'] == 0) $hospital_extra_content['open'] = 2;
return Yo::echo([
'info' => $hospital_extra_content
]);
}
public function mp_info(Request $request)
{
Login::user();
$hospital = $request->post('hospital');
$mark = $request->post('mark');
$hospital_extra = HospitalExtra::where('hospital', $hospital)->where('mark', $mark)->first();
$hospital_extra_public = HospitalExtra::where('hospital', 0)->where('mark', $mark)->first();
$hospital_extra_public_content = json_decode($hospital_extra_public->content, true);
if (!!$hospital_extra) {
$hospital_extra_content = json_decode($hospital_extra->content, true);
switch ($mark) {
case 'pay':
$hospital_extra_content['wxp'] = $hospital_extra_content['wxp']['open'] == 0 ? $hospital_extra_public_content['wxp'] : $hospital_extra_content['wxp'];
break;
case 'order_type':
$hospital_extra_content['combo_add_item'] = $hospital_extra_content['combo_add_item'] == 0 ? $hospital_extra_public_content['combo_add_item'] : $hospital_extra_content['combo_add_item'];
$hospital_extra_content['item'] = $hospital_extra_content['item'] == 0 ? $hospital_extra_public_content['item'] : $hospital_extra_content['item'];
break;
case 'card_pay':
case 'report':
case 'profitsharing':
$hospital_extra_content['open'] = $hospital_extra_content['open'] == 0 ? $hospital_extra_public_content['open'] : $hospital_extra_content['open'];
break;
case 'readme':
$hospital_extra_content['open'] = $hospital_extra_content['open'] == 0 ? $hospital_extra_public_content['open'] : $hospital_extra_content['open'];
$hospital_extra_content['content'] = $hospital_extra_content['content'] == '' ? $hospital_extra_public_content['content'] : $hospital_extra_content['content'];
$hospital_extra_content['time'] = $hospital_extra_content['time'] == 0 ? $hospital_extra_public_content['time'] : $hospital_extra_content['time'];
break;
}
} else {
$hospital_extra_content = $hospital_extra_public_content;
}
switch ($mark) {
case 'pay':
if ($hospital_extra_content['wxp']['open'] == 0) $hospital_extra_content['wxp']['open'] = 2;
break;
case 'order_type':
if ($hospital_extra_content['combo_add_item'] == 0) $hospital_extra_content['combo_add_item'] = 2;
if ($hospital_extra_content['item'] == 0) $hospital_extra_content['item'] = 2;
break;
case 'card_pay':
case 'readme':
case 'report':
case 'profitsharing':
if ($hospital_extra_content['open'] == 0) $hospital_extra_content['open'] = 2;
break;
}
return Yo::echo([
'info' => $hospital_extra_content
]);
}
}

@ -0,0 +1,123 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditHospitalPostInput;
use App\Models\HospitalPost;
use Illuminate\Http\Request;
use Yo;
use Login;
class HospitalPostController extends Controller
{
public function delete(Request $request)
{
Login::admin([17]);
$ids = $request->post('ids');
HospitalPost::whereIn('id', $ids)->update([
'del' => 1
]);
return Yo::delete_echo($ids);
}
public function update(EditHospitalPostInput $request)
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$title = $request->post('title');
$author = $request->post('author');
$date = $request->post('date');
$desc = $request->post('desc');
$content = $request->post('content');
$cover = $request->post('cover');
$type = $request->post('type');
$status = $request->post('status');
$hospital_post = HospitalPost::find($id);
if (!$hospital_post) Yo::error_echo(100000, ['新闻']);
$hospital_post->hospital = $hospital;
$hospital_post->title = $title;
$hospital_post->author = $author;
$hospital_post->date = $date;
$hospital_post->desc = $desc;
$hospital_post->content = $content;
$hospital_post->cover = $cover ?? '';
$hospital_post->type = $type;
$hospital_post->status = $status;
$hospital_post->save();
return Yo::update_echo($hospital_post->id);
}
public function create(EditHospitalPostInput $request)
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$title = $request->post('title');
$author = $request->post('author');
$date = $request->post('date');
$desc = $request->post('desc');
$content = $request->post('content');
$cover = $request->post('cover');
$type = $request->post('type');
$status = $request->post('status');
$hospital_post = new HospitalPost();
$hospital_post->hospital = $hospital;
$hospital_post->title = $title;
$hospital_post->author = $author;
$hospital_post->date = $date;
$hospital_post->desc = $desc;
$hospital_post->content = $content;
$hospital_post->cover = $cover ?? '';
$hospital_post->type = $type;
$hospital_post->status = $status;
$hospital_post->save();
return Yo::create_echo($hospital_post->id);
}
public function admin_list(Request $request)
{
$hospital = $request->post('hospital');
$type = $request->post('type');
$hospital_post_list = HospitalPost::where('hospital', $hospital)
->where(function ($query) use ($type) {
if ($type != 0) $query->where('type', $type);
})
->where('del', 2)->orderBy('id', 'desc')
->paginate(15);
return Yo::echo($hospital_post_list);
}
public function list(Request $request)
{
$hospital = $request->post('hospital');
$type = $request->post('type');
$hospital_post_list = HospitalPost::select('id', 'title', 'author', 'date', 'desc', 'cover')->where('hospital', $hospital)
->where('type', $type)
->where('status', 1)->where('del', 2)->orderBy('id', 'desc')->get();
if (count($hospital_post_list) == 0) {
$hospital_post_list = HospitalPost::where('hospital', 0)
->where('type', $type)
->where('status', 1)->where('del', 2)->orderBy('id', 'desc')->get();
}
return Yo::echo(['list' => $hospital_post_list]);
}
public function info(Request $request)
{
$id = $request->post('id');
$hospital_post = HospitalPost::where('id', $id)
->where('status', 1)->where('del', 2)->first();
if (!$hospital_post) Yo::error_echo(100000, ['文章']);
return Yo::echo(['info' => $hospital_post]);
}
}

@ -0,0 +1,132 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditHospitalQuestionInput;
use App\Models\HospitalQuestion;
use Illuminate\Http\Request;
use Yo;
use Login;
class HospitalQuestionController extends Controller
{
public function delete(Request $request)
{
Login::admin([17]);
$ids = $request->post('ids');
HospitalQuestion::whereIn('id', $ids)->update([
'del' => 1
]);
return Yo::delete_echo($ids);
}
public function update(EditHospitalQuestionInput $request)
{
Login::admin([17]);
$id = $request->post('id');
$hospital = $request->post('hospital');
$question = $request->post('question');
$type = $request->post('type');
$content = $request->post('content');
$mark = $request->post('mark');
$status = $request->post('status');
$order = $request->post('order');
$hospital_question = HospitalQuestion::find($id);
if (!$hospital_question) Yo::error_echo(100000, ['新闻']);
$hospital_question->hospital = $hospital;
$hospital_question->question = $question;
$hospital_question->type = $type;
$hospital_question->content = $content;
$hospital_question->mark = $mark ?? '';
$hospital_question->status = $status;
$hospital_question->order = $order;
$hospital_question->save();
return Yo::update_echo($hospital_question->id);
}
public function create(EditHospitalQuestionInput $request)
{
Login::admin([17]);
$hospital = $request->post('hospital');
$question = $request->post('question');
$type = $request->post('type');
$content = $request->post('content');
$mark = $request->post('mark');
$status = $request->post('status');
$order = $request->post('order');
$hospital_question = new HospitalQuestion();
$hospital_question->hospital = $hospital;
$hospital_question->question = $question;
$hospital_question->type = $type;
$hospital_question->content = $content;
$hospital_question->mark = $mark ?? '';
$hospital_question->status = $status;
$hospital_question->order = $order;
$hospital_question->save();
return Yo::create_echo($hospital_question->id);
}
public function admin_list(Request $request)
{
$hospital = $request->post('hospital');
$hospital_question_list = HospitalQuestion::where('hospital', $hospital)
->where('del', 2)->orderBy('order', 'asc')
->orderBy('id', 'asc')
->get();
return Yo::echo([
'list' => $hospital_question_list
]);
}
public function question_list($hospital, $data)
{
$peis = new PEISApiController();
$list = $peis::Post('获取题目列表', $hospital, $data);
return $list['data'];
}
public function list(Request $request)
{
$hospital = $request->post('hospital');
$type = $request->post('type');
$hospital_question_list = [];
if ($type == 1) {
$hospital_question_list = HospitalQuestion::where('hospital', $hospital)
->where('status', 1)->where('del', 2)->orderBy('id', 'desc')->get();
if (count($hospital_question_list) == 0) {
$hospital_question_list = HospitalQuestion::where('hospital', 0)
->where('status', 1)->where('del', 2)
->orderBy('order', 'asc')
->orderBy('id', 'asc')
->get();
}
}
if ($type == 2) {
$hospital_question_list = self::question_list($hospital, [
"性别" => $request->post('sex')
]);
}
return Yo::echo(['list' => $hospital_question_list]);
}
public function push_choose($hospital, $data)
{
$peis = new PEISApiController();
$list = $peis::Post('获取答题结果', $hospital, $data);
return $list['data'];
}
public function push(Request $request)
{
$hospital = $request->post('hospital');
$age = $request->post('age');
$sex = $request->post('sex');
$choose = $request->post('choose');
$res = self::push_choose($hospital, [
"年龄" => intval($age),
"选中项" => $choose,
"性别" => $sex == 1 ? '男' : "女"
]);
return Yo::echo(['list' => $res]);
}
}

@ -0,0 +1,22 @@
<?php
namespace App\Http\Controllers;
use App\Models\HospitalQuestionLog;
use Illuminate\Http\Request;
use Login;
use Yo;
class HospitalQuestionLogController extends Controller
{
public function save(Request $request)
{
Login::user();
$log = new HospitalQuestionLog();
$log->user = Login::$info->id;
$log->content = $request->post('content');
$log->type = $request->post('type');
$log->save();
return Yo::create_echo($log->id);
}
}

@ -0,0 +1,82 @@
<?php
namespace App\Http\Controllers;
use App\Models\NoProfitsharing;
use Illuminate\Http\Request;
use Login;
use Yo;
class NoProfitsharingController extends Controller
{
public function create(Request $request)
{
Login::admin([], [31, 32]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$item_id = $request->post('item_id');
$desc = $request->post('desc');
$np = new NoProfitsharing();
$np->hospital = $hospital;
$np->item_id = $item_id;
$np->desc = $desc;
$np->save();
return Yo::create_echo();
}
public function update(Request $request)
{
Login::admin([], [31, 32]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$np = NoProfitsharing::find($id);
if (!$np) Yo::error_echo(100000, ['分账项目']);
if ($np->hospital != $hospital) Yo::error_echo(100000, ['分账项目']);
$item_id = $request->post('item_id');
$desc = $request->post('desc');
$np->item_id = $item_id;
$np->desc = $desc;
$np->save();
return Yo::update_echo();
}
public function delete(Request $request)
{
Login::admin([], [31, 32]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$np = NoProfitsharing::find($id);
if (!$np) Yo::error_echo(100000, ['分账项目']);
if ($np->hospital != $hospital) Yo::error_echo(100000, ['分账项目']);
$np->delete();
return Yo::delete_echo();
}
public function list(Request $request)
{
Login::admin([], [31, 32]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
return Yo::echo([
'list' => NoProfitsharing::where('hospital', $hospital)->orderBy('id', 'desc')->get()
]);
}
}

@ -0,0 +1,149 @@
<?php
namespace App\Http\Controllers;
use App\Models\Hospital;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Lu;
use Yo;
class PEISApiController extends Controller
{
public static $request;
public static function Api($url_code, $code)
{
$url = 'https://dqgatjzx-wx.sixinyun.com';
$api['获取答题结果'] = "{$url}/PEISCommon/EvalQuestionAnswer/{$code}";
$api['获取题目列表'] = "{$url}/PEISCommon/GetQuestionList/{$code}";
$api['团检预约取消'] = "{$url}/PEISCommon/CancelUnitAppointment/{$code}";
$api['个检预约取消'] = "{$url}/PEISCommon/CancelPersonAppointment/{$code}";
$api['报告文件下载'] = "{$url}/PEISCommon/DownloadReportFile/{$code}";
$api['体检报告查询'] = "{$url}/PEISCommon/QueryExamReport/{$code}";
$api['分诊延后队列'] = "{$url}/PEISCommon/SkipQueue/{$code}";
$api['分诊加入队列'] = "{$url}/PEISCommon/JoinQueue/{$code}";
$api['分诊查询排队信息'] = "{$url}/PEISCommon/QueryTriage/{$code}";
$api['分诊查询体检号'] = "{$url}/PEISCommon/QueryEventNo/{$code}";
$api['队列信息查询'] = "{$url}/PEISCommon/QueryQueueStatus/{$code}";
$api['预约状态查询'] = "{$url}/PEISCommon/QueryAppointmentStatus/{$code}";
$api['不可用日期查询'] = "{$url}/PEISCommon/QueryUnavailableDate/{$code}";
$api['团检预约查询'] = "{$url}/PEISCommon/QueryUnitAppointment/{$code}";
$api['团检预约'] = "{$url}/PEISCommon/UnitAppointment/{$code}";
$api['预约时间检查'] = "{$url}/PEISCommon/CheckAppointmentTime/{$code}";
$api['个检预约查询'] = "{$url}/PEISCommon/QueryPersonAppointment/{$code}";
$api['个检预约'] = "{$url}/PEISCommon/PersonAppointment/{$code}";
$api['套餐项目检查'] = "{$url}/PEISCommon/CheckComboAndGroup/{$code}";
$api['团检登记查询'] = "{$url}/PEISCommon/QueryUnitAppointmentReg/{$code}";
$api['套餐详情查询'] = "{$url}/PEISCommon/QueryComboDetail/{$code}";
$api['自选项目查询'] = "{$url}/PEISCommon/QueryGroups/{$code}";
$api['套餐查询'] = "{$url}/PEISCommon/QueryCombos/{$code}";
return $api["{$url_code}"] ?? $url_code;
}
public static function Post($url_code, $hospital_id, $data, $print = false)
{
$data['请求来源'] = '小程序';
$hospital = Hospital::where('id', $hospital_id)->where('del', 2)->first();
if (!$hospital) Yo::error_echo(100000, ['机构/医院']);
$code = $hospital->code;
$url = self::Api($url_code, $code);
self::RequestLog($url, $data, $code, $url_code);
$data_string = json_encode($data, JSON_UNESCAPED_UNICODE);
//var_dump($data);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen($data_string)
]);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
$res_string = curl_exec($ch);
curl_close($ch);
$str_len = mb_strlen($res_string, 'utf-8');
$str_size = $str_len / 1024;
$save_res = $res_string;
if ($str_size > 10) $save_res = '{"data":"Row size too large"}';
self::$request->response_data = $save_res;
self::$request->save();
if (!json_decode($res_string, true)) {
Yo::error_exit(Lu::exit([
'code' => '900000',
'message' => $url_code . '获取失败',
'data' => [
'url' => $url,
'data' => $data,
'res' => $res_string
]
]));
}
$res = json_decode($res_string, true);
if ($print) {
Yo::error_exit(Lu::exit([
'code' => '900000',
'message' => 'PEIS接口调试打印',
'data' => [
'url' => $url,
'data' => $data,
'res' => $res
]
]));
}
if ($res['ResultCode'] == -1) Yo::error_exit(Lu::exit([
'code' => $res['ResultCode'],
'message' => $res['ResultContent'],
'data' => [],
]));
if ($res['ResultCode'] != 0) Yo::error_exit(Lu::exit([
'code' => $res['ResultCode'],
'message' => $res['ResultContent'],
'data' => [],
]));
return [
'code' => $res['ResultCode'],
'message' => $res['ResultContent'],
'data' => $res['Records']
];
}
public static function RequestLog($url, $post_data, $code, $mark)
{
self::CheckTableName();
foreach ($post_data as $key => $post_datum) {
$str_len = mb_strlen(json_encode($post_datum, JSON_UNESCAPED_UNICODE), 'utf-8');
$str_size = $str_len / 1024;
if ($str_size > 10) {
$post_data["$key"] = 'Row size too large';
}
}
$post_data = json_encode($post_data, JSON_UNESCAPED_UNICODE);
self::$request->code = $code;
self::$request->mark = $mark;
self::$request->post_data = $post_data == '[]' ? '{}' : $post_data;
self::$request->request_url = $url;
self::$request->save();
}
public static function CheckTableName()
{
$table_name = 'zz_peis_log_' . date('ym');
$table_count = DB::select('select count(1) as c from information_schema.TABLES where table_schema = ? and table_name = ?', [env('DB_DATABASE'), $table_name])[0];
if ($table_count->c === 0) {
Schema::create($table_name, function (Blueprint $table) {
$table->id();
$table->string('code', 50)->index();
$table->string('mark', 50)->index();
$table->text('post_data');
$table->text('response_data')->nullable();
$table->string('request_url', 300);
$table->timestamps();
});
}
self::$request = new \App\Models\PEISLog();
self::$request->setTable($table_name);
}
}

@ -0,0 +1,25 @@
<?php
namespace App\Http\Controllers;
use App\Models\Profitsharing;
use App\Models\ProfitsharingActionLog;
use Illuminate\Http\Request;
class ProfitsharingActionLogController extends Controller
{
public function list()
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$p = ProfitsharingActionLog::where('hospital', $hospital)->where('del', 2)->get();
return Yo::echo([
'list' => $p
]);
}
}

@ -0,0 +1,196 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditProfitsharingsInput;
use App\Models\Config;
use App\Models\Profitsharing;
use App\Models\ProfitsharingLog;
use App\Models\UserOrder;
use Illuminate\Http\Request;
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
use Login;
use Yo;
class ProfitsharingController extends Controller
{
public function recover(Request $request)
{
Login::admin([], [31, 32]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$pl = ProfitsharingLog::where('id', $id)->where('status', 1)->first();
if (!$pl) Yo::error_echo(100000, ['分账记录']);
if ($pl->type != 1) Yo::error_echo(200089);
$wcp = new WeChatPayController();
$builder_config = json_decode($pl->builder, JSON_UNESCAPED_UNICODE);
$receivers = json_decode($pl->receivers, JSON_UNESCAPED_UNICODE);
$response = json_decode($pl->response, JSON_UNESCAPED_UNICODE);
$wcp->builder($builder_config);
$order_id = $response['order_id'];
$recover = [];
foreach ($receivers as $key => $receiver) {
if ($receiver['type'] == 'MERCHANT_ID') {
$return_data = [
'out_order_no' => 'P' . $order_id,
'out_return_no' => 'R' . $order_id . 'P' . $key,
'return_mchid' => $receiver['account'],
'amount' => $receiver['amount'],
'description' => $receiver['description'] . '退回',
];
$res = $wcp->profitsharing_return($return_data);
$recover[] = $res;
}
}
$pl->recover = json_encode($recover, JSON_UNESCAPED_UNICODE);
$pl->status = 2;
$pl->save();
return Yo::echo();
}
public function create(EditProfitsharingsInput $request)
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$name = $request->post('name');
$type = $request->post('type');
$account = $request->post('account');
$formula = $request->post('formula');
$desc = $request->post('desc');
$status = $request->post('status');
$p = new Profitsharing();
$p->hospital = $hospital;
$p->name = $name;
$p->type = $type;
$p->account = $account;
$p->formula = $formula;
$p->desc = $desc;
$p->status = $status;
$p->save();
return Yo::create_echo($p->id);
}
public function ee()
{
}
public function eval_action($php, $in_value)
{
$out_value = 0;
if ($php) {
try {
$service_config = Config::where('label', '微信手续费')->first();
$service = $service_config->value;
eval($php);
} catch (Exception $e) {
$out_value = 0;
}
}
return $out_value;
}
public function bcceilDecimal($value, $decimal)
{
$multipliedValue = bcmul($value, $decimal, 1);
$roundedValue = ceil($multipliedValue);
return bcdiv($roundedValue, $decimal, 2);
}
public function test(Request $request)
{
$php = $request->post('php');
$in_value = $request->post('in_value');
return Yo::echo([
'out_value' => self::eval_action($php, [
'price' => $in_value,
'hold' => 0
]),
]);
}
public function update(EditProfitsharingsInput $request)
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$p = Profitsharing::where('id', $id)->where('hospital', $hospital)->where('del', 2)->first();
if (!$p) Yo::error_echo(100000, ['分账']);
$name = $request->post('name');
$type = $request->post('type');
$account = $request->post('account');
$formula = $request->post('formula');
$desc = $request->post('desc');
$status = $request->post('status');
$p->name = $name;
$p->type = $type;
$p->account = $account;
$p->formula = $formula;
$p->desc = $desc;
$p->status = $status;
$p->save();
return Yo::update_echo($p->id);
}
public function delete(Request $request)
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$id = $request->post('id');
$p = Profitsharing::where('id', $id)->where('hospital', $hospital)->where('del', 2)->first();
if (!$p) Yo::error_echo(100000, ['分账']);
$p->del = 1;
$p->save();
return Yo::delete_echo($p->id);
}
public function list(Request $request)
{
Login::admin([], [17, 25]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$p = Profitsharing::where('hospital', $hospital)->where('del', 2)->get();
return Yo::echo([
'list' => $p
]);
}
public function sharing($order_id, $hospital)
{
$user_order = UserOrder::where('id', $order_id)->first();
if (!!$user_order) {
return Profitsharing::where('hospital', $hospital)->where('status', 1)->where('del', 2)->get();
}
return [];
}
public function calculateExpression($expression)
{
$language = new ExpressionLanguage();
return $language->evaluate($expression);
}
}

@ -0,0 +1,38 @@
<?php
namespace App\Http\Controllers;
use App\Models\ProfitsharingLog;
use Illuminate\Http\Request;
use Login;
use Yo;
class ProfitsharingLogController extends Controller
{
public function list(Request $request)
{
Login::admin([], [31, 32]);
$hospital = $request->post('hospital');
if (Login::$info->hospital != 0) {
if ($hospital != Login::$info->hospital) {
Yo::error_echo(100000, ['机构/医院']);
}
}
$start_time = $request->post('start_time');
$end_time = $request->post('end_time');
$time = $request->post('time');
$status = $request->post('status');
$list = ProfitsharingLog::select('*')
->where('hospital', $hospital)
->where(function ($query) use ($status) {
if ($status != 0) $query->where('status', $status);
});
if (!!$start_time) {
$list->where('created_at', '>=', $start_time);
}
if (!!$end_time) {
$list->where('created_at', '<=', $end_time);
}
return Yo::echo($list->orderBy('id', 'desc')->paginate(10));
}
}

@ -0,0 +1,144 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Yo;
class ReferenceController extends Controller
{
//admin后台获取推荐人列表
public function GetList(){
$search=request('search');
$page=request('page');
$pagesize=request('pagesize');
$hospital=request('hospital');
$offset=($page-1)*$pagesize;
$query=DB::table('references')->where(['hospital'=>$hospital]);
if($search){
$query->where('name', 'like', '%'.$search.'%');
}
$count=$query->whereIn('status',[0,1])->count();
$list=$query->whereIn('status',[0,1])->orderBy('id','desc')->offset($offset)->take($pagesize)->get();
$order=DB::table('user_orders')
->select('referral', 'status', DB::raw('count(*) as counts'))
->where('hospital', $hospital)
->whereIn('status', [2, 4])
->groupBy('referral', 'status')
->get();
foreach ($list as $key=> $value){
$list[$key]->order_counts['yijian']=[];
$list[$key]->order_counts['daijian']=[];
foreach ($order as $v){
if($value->sn==$v->referral){
if($v->status==2){
$list[$key]->order_counts['daijian']=$v;
}
if($v->status==4){
$list[$key]->order_counts['yijian']=$v;
}
}
}
}
return Yo::echo(['list' => $list,'count'=>$count]);
}
public function saveInfo(){
$userInfo=request('userInfo');
if($userInfo['name'] ){
//如果设置id 更新
if($userInfo['id']){
$u=DB::table('references')->where(['id'=>$userInfo['id']])->update([
'name'=>$userInfo['name'],
'proportion'=>$userInfo['proportion'],
'status'=>$userInfo['status'],
]);
if($u){
return Yo::echo(['status' => true]);
}else{
return Yo::echo(['status' => false]);
}
}else{
//否则新增
$sn='';
for ($i = 0; $i < mb_strlen($userInfo['name']); $i++) {
$a= mb_substr($userInfo['name'], $i, 1);
if ($this->isChineseCharacter($a)) {
$szm= $this->getFirstCharter($a);
$sn=$sn.$szm;
} else {
$sn=$sn.$a;
}
}
$maxId = DB::table('references')->max('id');
$sn=$sn.($maxId+1);
$i=DB::table('references')->insert([
'hospital'=>$userInfo['hospital'],
'name'=>$userInfo['name'],
'sn'=>$userInfo['hospital'].'_'.$sn,
'proportion'=>$userInfo['proportion'],
'status'=>$userInfo['status'],
]);
if($i){
return Yo::echo(['status' => true]);
}else{
return Yo::echo(['status' => false]);
}
}
}else{
Yo::error_echo(200091);
}
}
public function GetReferenceOrderList()
{
$sn=request('sn');
$type=request('type');
$hospital=request('hospital');
$list=DB::table('user_orders')->where(['referral'=>$sn,'hospital'=>$hospital,'status'=>$type])->orderBy('id','desc')->get();
return Yo::echo(['list' => $list]);
}
function isChineseCharacter($char) {
if (preg_match("/^[\x{4e00}-\x{9fa5}]+$/u", $char)) {
return true;
} else {
return false;
}
}
function getFirstCharter($str){
if(empty($str)){return '';}
$fchar=ord($str{0});
if($fchar>=ord('A')&&$fchar<=ord('z')) return strtoupper($str{0});
$s1=iconv('UTF-8','gb2312',$str);
$s2=iconv('gb2312','UTF-8',$s1);
$s=$s2==$str?$s1:$str;
$asc=ord($s{0})*256+ord($s{1})-65536;
if($asc>=-20319&&$asc<=-20284) return 'A';
if($asc>=-20283&&$asc<=-19776) return 'B';
if($asc>=-19775&&$asc<=-19219) return 'C';
if($asc>=-19218&&$asc<=-18711) return 'D';
if($asc>=-18710&&$asc<=-18527) return 'E';
if($asc>=-18526&&$asc<=-18240) return 'F';
if($asc>=-18239&&$asc<=-17923) return 'G';
if($asc>=-17922&&$asc<=-17418) return 'H';
if($asc>=-17417&&$asc<=-16475) return 'J';
if($asc>=-16474&&$asc<=-16213) return 'K';
if($asc>=-16212&&$asc<=-15641) return 'L';
if($asc>=-15640&&$asc<=-15166) return 'M';
if($asc>=-15165&&$asc<=-14923) return 'N';
if($asc>=-14922&&$asc<=-14915) return 'O';
if($asc>=-14914&&$asc<=-14631) return 'P';
if($asc>=-14630&&$asc<=-14150) return 'Q';
if($asc>=-14149&&$asc<=-14091) return 'R';
if($asc>=-14090&&$asc<=-13319) return 'S';
if($asc>=-13318&&$asc<=-12839) return 'T';
if($asc>=-12838&&$asc<=-12557) return 'W';
if($asc>=-12556&&$asc<=-11848) return 'X';
if($asc>=-11847&&$asc<=-11056) return 'Y';
if($asc>=-11055&&$asc<=-10247) return 'Z';
return null;
}
}

@ -0,0 +1,614 @@
<?php
namespace App\Http\Controllers;
use App\Models\AnalysisType;
use App\Models\Hospital;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Yo;
class ReportController extends Controller
{
public function down_pdf(Request $request)
{
$data = [
"体检号" => $request->post('rid'),
"查询密码" => $request->post('password'),
"文件Id" => $request->post('id')
];
$hospital_info = Hospital::where('id', $request->post('hospital'))->where('del', 2)->first();
if (!$hospital_info) Yo::error_echo(100000, ['机构/医院']);
$code = $hospital_info->code;
$peis = new PEISApiController();
$url = $peis::Api('报告文件下载', $code);
$data_string = json_encode($data, JSON_UNESCAPED_UNICODE);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen($data_string)
]);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
$res_string = curl_exec($ch);
curl_close($ch);
if ($res_string == '无效URL') Yo::error_echo(200065);
$disk = Storage::disk('public');
$name = $request->post('id');
$date = $request->post('rid');
$path = "/assets/upload/pdf/$date/$name.pdf";
$put = $disk->put($path, $res_string);
if (!$put) Yo::error_echo(100028, ['put']);
$save = "/storage/assets/upload/pdf/$date/$name.pdf";
return Yo::echo([
'url' => $save
]);
}
public function get_report($id)
{
$peis = new PEISApiController();
$report = $peis::Post('体检报告查询', request()->post('hospital'), [
"电话号码" => "",
"证件号码" => '',
"体检号" => $id
])['data'];
// Yo::error_exit(['message'=>"res",'code'=>200,'data'=>$report]);
return $report;
}
public function orderReport($report_data)
{
$report_data['收费项目列表'] = self::myUsort($report_data['收费项目列表'], ['收费项目顺序'], [0]);
foreach ($report_data['收费项目列表'] as $key => $report_datum) {
$report_data['收费项目列表'][$key]['基础项目列表'] = self::myUsort(
$report_data['收费项目列表'][$key]['基础项目列表'],
['基础项目顺序'],
[0]
);
}
return $report_data;
}
public function orderReportTime($res)
{
foreach ($res as $key => $re) {
$res[$key]['order_time'] = date('YmdHi', strtotime($re['登记时间']));
}
return self::myUsort($res, ['order_time'], [0]);
}
public function myUsort($array, $key_array, $sort)
{
if (count($key_array) != count($sort)) return $array;
usort($array, function ($a, $b) use ($key_array, $sort) {
foreach ($key_array as $index => $key) {
if ($a[$key] != $b[$key]) {
return ($sort[$index] ? $a[$key] < $b[$key] : $a[$key] > $b[$key])
? 1 : -1;
}
}
return 1;
});
return $array;
}
//报告预查询检查报告内容是否存在PrepareCheckReport
public function PrepareCheckReport(Request $request)
{
$id = $request->post('id');
$id_number = $request->post('id_number');
$date = $request->post('date');
$hospital = $request->post('hospital');
$analysis_type = AnalysisType::find($id);
$mark = $analysis_type->mark;
$peis = new PEISApiController();
$res = $peis::Post('体检报告查询', $hospital, [
"电话号码" => "",
"证件号码" => $id_number,
"体检号" => ""
])['data'];
$info = [
'title' => '',
'result' => '',
'name' => '',
'value' => '',
'date' => '',
'content' => '',
'table' => [
'name' => '',
'list' => []
],
];
$value = 0;
$unit = '';
$info['title'] = $analysis_type->name;
$info['content'] = $analysis_type->content;
$range_data = json_decode($analysis_type->range, true);
$range = $range_data['r'];
$label = $range_data['l'];
$step = $range_data['s'];
$color = ['#357e24', '#a7ea9b', '#95cde8', '#f0a93f', '#f0a93f', '#ec572c'];
$time = 0;
$range_str = '';
$data_arr = [];
$res_done_arr = [];
foreach ($res as $re) {
if ($re['体检状态'] == '报告已出') {
$res_done_arr[] = $re;
}
}
$res = $res_done_arr;
$res = self::orderReportTime($res);
$date_list = [];
$datetime = '';
foreach ($res as $item) {
$report_data = self::get_report($item['体检号']);
// Yo::error_exit([
// 'message' => "res",
// 'code' => 2001,
// 'data' => $report_data
// ]);
$report = false;
if (isset($report_data[0]['收费项目列表'])) {
$report = self::orderReport($report_data[0]);
}
if (!!$report) {
$datetime = explode('T', $report['登记时间'])[0];
foreach ($report['收费项目列表'] as $item) {
foreach ($item['基础项目列表'] as $i) {
if ($i['基础项目代码'] == $mark) {
if ($i['结果类型'] == '数值' && !!$i['结果值范围']) {
$date_list[] = $datetime;
$result = '正常';
if ($i['异常标识'] == '↑') $result = '偏高';
if ($i['异常标识'] == '↓') $result = '偏低';
$range_str = $i['结果值范围'];
if (strtotime($datetime) > $time) {
$info['result'] = $result;
$info['value'] = $i['异常标识'] . $i['结果值'] . $i['结果值单位'];
$value = $i['结果值'];
$data_arr[] = [
'value' => $value,
'datetime' => $datetime,
];
$unit = $i['结果值单位'];
$info['date'] = $datetime;
$time = strtotime($datetime);
}
$info['name'] = $i['基础项目名称'];
$info['table']['name'] = $i['基础项目名称'];
$info['table']['list'][] = [
'date' => $datetime,
'value' => $i['异常标识'] . $i['结果值'],
'assess' => $result,
];
}
}
}
}
}
}
if ($date == '') $date = $datetime;
$rc = 0;
foreach ($res as $item) {
$report_data = self::get_report($item['体检号']);
$report = false;
if (isset($report_data[0]['收费项目列表'])) {
$report = self::orderReport($report_data[0]);
}
if (!!$report) {
$datetime = explode('T', $report['登记时间'])[0];
foreach ($report['收费项目列表'] as $item) {
foreach ($item['基础项目列表'] as $i) {
if ($i['基础项目代码'] == $mark) {
$result = '正常';
if ($i['异常标识'] == '↑') $result = '偏高';
if ($i['异常标识'] == '↓') $result = '偏低';
if ($datetime == $date) {
$info['result'] = $result;
$info['value'] = $i['异常标识'] . $i['结果值'] . $i['结果值单位'];
$value = $i['结果值'];
$unit = $i['结果值单位'];
$info['date'] = $datetime;
$rc++;
}
$info['name'] = $i['基础项目名称'];
$info['table']['name'] = $i['基础项目名称'];
}
}
}
}
}
if ($rc == 0) Yo::error_echo(200081);
if (!$range_str) Yo::error_echo(200081);
return Yo::echo([
'status' => 'ok',
]);
}
public function analysis(Request $request)
{
$id = $request->post('id');
$id_number = $request->post('id_number');
$date = $request->post('date');
$hospital = $request->post('hospital');
$analysis_type = AnalysisType::find($id);
$mark = $analysis_type->mark;
$peis = new PEISApiController();
$res = $peis::Post('体检报告查询', $hospital, [
"电话号码" => "",
"证件号码" => $id_number,
"体检号" => ""
])['data'];
$info = [
'title' => '',
'result' => '',
'name' => '',
'value' => '',
'date' => '',
'content' => '',
'table' => [
'name' => '',
'list' => []
],
];
$value = 0;
$unit = '';
$info['title'] = $analysis_type->name;
$info['content'] = $analysis_type->content;
$range_data = json_decode($analysis_type->range, true);
$range = $range_data['r'];
$label = $range_data['l'];
$step = $range_data['s'];
$color = ['#357e24', '#a7ea9b', '#95cde8', '#f0a93f', '#f0a93f', '#ec572c'];
$time = 0;
$range_str = '';
$data_arr = [];
$res_done_arr = [];
foreach ($res as $re) {
if ($re['体检状态'] == '报告已出') {
$res_done_arr[] = $re;
}
}
$res = $res_done_arr;
$res = self::orderReportTime($res);
$date_list = [];
$datetime = '';
foreach ($res as $item) {
$report_data = self::get_report($item['体检号']);
$report = false;
if (isset($report_data[0]['收费项目列表'])) {
$report = self::orderReport($report_data[0]);
}
if (!!$report) {
$datetime = explode('T', $report['登记时间'])[0];
foreach ($report['收费项目列表'] as $item) {
foreach ($item['基础项目列表'] as $i) {
if ($i['基础项目代码'] == $mark) {
if ($i['结果类型'] == '数值' && !!$i['结果值范围']) {
$date_list[] = $datetime;
$result = '正常';
if ($i['异常标识'] == '↑') $result = '偏高';
if ($i['异常标识'] == '↓') $result = '偏低';
$range_str = $i['结果值范围'];
if (strtotime($datetime) > $time) {
$info['result'] = $result;
$info['value'] = $i['异常标识'] . $i['结果值'] . $i['结果值单位'];
$value = $i['结果值'];
$data_arr[] = [
'value' => $value,
'datetime' => $datetime,
];
$unit = $i['结果值单位'];
$info['date'] = $datetime;
$time = strtotime($datetime);
}
$info['name'] = $i['基础项目名称'];
$info['table']['name'] = $i['基础项目名称'];
$info['table']['list'][] = [
'date' => $datetime,
'value' => $i['异常标识'] . $i['结果值'],
'assess' => $result,
];
}
}
}
}
}
}
if ($date == '') $date = $datetime;
$rc = 0;
foreach ($res as $item) {
$report_data = self::get_report($item['体检号']);
$report = false;
if (isset($report_data[0]['收费项目列表'])) {
$report = self::orderReport($report_data[0]);
}
if (!!$report) {
$datetime = explode('T', $report['登记时间'])[0];
foreach ($report['收费项目列表'] as $item) {
foreach ($item['基础项目列表'] as $i) {
if ($i['基础项目代码'] == $mark) {
$result = '正常';
if ($i['异常标识'] == '↑') $result = '偏高';
if ($i['异常标识'] == '↓') $result = '偏低';
if ($datetime == $date) {
$info['result'] = $result;
$info['value'] = $i['异常标识'] . $i['结果值'] . $i['结果值单位'];
$value = $i['结果值'];
$unit = $i['结果值单位'];
$info['date'] = $datetime;
$rc++;
}
$info['name'] = $i['基础项目名称'];
$info['table']['name'] = $i['基础项目名称'];
}
}
}
}
}
if ($rc == 0) Yo::error_echo(200066);
$chart1_option = [
'show' => true,
'range' => [],
'min' => 0,
'max' => 0,
'value' => $value,
'label' => $label,
];
$chart2_option = [
'show' => true,
'data' => $data_arr,
'min' => 0,
'max' => 0,
'unit' => $unit,
'step' => $step,
'range' => [],
];
if (!$range_str) Yo::error_echo(200066);
$data_show = true;
if (!$range_str) {
$data_show = false;
$chart1_option['show'] = false;
$chart2_option['show'] = false;
} else if (strstr($range_str, '>') || strstr($range_str, '<')) {
$data_show = false;
$chart1_option['show'] = false;
$chart2_option['show'] = false;
} else {
$range_str = str_replace('~~', '-', $range_str);
$range_str = str_replace('--', '-', $range_str);
$range_str = str_replace('~', '-', $range_str);
$range_arr = explode('-', $range_str);
$min_index = array_search("min", $range);
$max_index = array_search("max", $range);
$range[$min_index] = $range_arr[0];
$range[$max_index] = $range_arr[1];
$chart1_option['min'] = $range_arr[0];
$chart1_option['max'] = $range_arr[1];
$chart2_option['range'] = $range_arr;
$chart2_option['min'] = $range[0];
$chart2_option['max'] = $range[count($range) - 1];
foreach ($range as $key => $item) {
$chart1_option['range'][] = [
'percent' => $item / ($range[count($range) - 1] - $range[0]),
'value' => $item,
'color' => $color[$key - $min_index + 1],
];
}
}
return Yo::echo([
'date' => $date,
'date_list' => $date_list,
'show' => $data_show,
'info' => $info,
'chart1_option' => $chart1_option,
'chart2_option' => $chart2_option,
]);
}
public function contrast(Request $request)
{
$ids = $request->post('ids');
$r1 = self::get_report($ids[0]);
$r2 = self::get_report($ids[1]);
$res = self::orderReportTime([$r1[0], $r2[0]]);
$r1 = [$res[0]];
$r2 = [$res[1]];
$r1_datetime = '';
$r1_map = [];
if (count($r1) != 0) {
$r1_info = $r1[0];
foreach ($r1_info['收费项目列表'] as $item) {
foreach ($item['基础项目列表'] as $i) {
$r1_datetime = explode('T', $r1_info['登记时间'])[0];
$r1_map[$i['基础项目代码']] = $i;
}
}
}
$r2_map = [];
$r2_datetime = '';
if (count($r2) != 0) {
$r2_info = $r2[0];
foreach ($r2_info['收费项目列表'] as $item) {
foreach ($item['基础项目列表'] as $i) {
$r2_datetime = explode('T', $r2_info['登记时间'])[0];
$r2_map[$i['基础项目代码']] = $i;
}
}
}
$clear_type1_list = [];
$clear_type2_list = [];
$id = 1;
foreach ($r1_map as $key => $item) {
$r2_data = isset($r2_map[$key]) ? [
'date' => $r2_datetime,
'content' => $r2_map[$key]['结果值'] . $r2_map[$key]['结果值单位'],
'icon' => $r2_map[$key]['异常标识'],
'desc' => $r2_map[$key]['结果值范围'],
] : [
'date' => $r2_datetime,
'content' => '',
'icon' => '',
'desc' => ''
];
$i = [
'id' => $id,
'title' => $item['基础项目名称'],
'r1' => [
'date' => $r1_datetime,
'content' => $item['结果值'] . $item['结果值单位'],
'icon' => $item['异常标识'],
'desc' => $item['结果值范围'],
],
'r2' => $r2_data
];
if ($item['结果类型'] == '数值') {
$clear_type2_list[$key] = $i;
} else {
$clear_type1_list[$key] = $i;
}
$id = $id + 1;
}
foreach ($r2_map as $key => $item) {
$r1_data = isset($r1_map[$key]) ? [
'date' => $r1_datetime,
'content' => $r1_map[$key]['结果值'] . $r1_map[$key]['结果值单位'],
'icon' => $r1_map[$key]['异常标识'],
'desc' => $r1_map[$key]['结果值范围'],
] : [
'date' => $r1_datetime,
'content' => '',
'icon' => '',
'desc' => '',
];
$i = [
'id' => $id,
'title' => $item['基础项目名称'],
'r1' => $r1_data,
'r2' => [
'date' => $r2_datetime,
'content' => $item['结果值'] . $item['结果值单位'],
'icon' => $item['异常标识'],
'desc' => $item['结果值范围'],
]
];
if ($item['结果类型'] == '数值') {
$clear_type2_list[$key] = $i;
} else {
$clear_type1_list[$key] = $i;
}
$id = $id + 1;
}
$report_type1_content = [];
$report_type2_content = [];
foreach ($clear_type1_list as $item) {
$report_type1_content[] = $item;
}
foreach ($clear_type2_list as $item) {
$report_type2_content[] = $item;
}
return Yo::echo([
'report_type1_content' => $report_type1_content,
'report_type2_content' => $report_type2_content,
]);
}
public function info(Request $request)
{
$id = $request->post('id');
$res = self::get_report($id);
// return Yo::echo([
// 'message' => "res",
// 'code' => 2001,
// 'data' => $res
// ]);
$conclusion = [
'datetime' => '',
'doctor' => '',
'content' => '',
'suggestion' => '',
];
$content = [];
$list = [
'info' => [
'id' => '',
'password' => ''
],
'list' => []
];
if (count($res) != 0) {
if($res[0]['体检状态'] != '报告已出') Yo::error_echo(200090);
$info = self::orderReport($res[0]);
$list['info']['id'] = $info['体检号'];
$list['info']['password'] = $info['查询密码'];
$list['list'] = $info['报告文件列表'];
$conclusion = [
'datetime' => str_replace('T', ' ', $info['登记时间']),
'doctor' => $info['总检医生'],
'content' => $info['总检结论'],
'suggestion' => $info['总检建议'],
];
foreach ($info['收费项目列表'] as $item) {
$content_list = [];
foreach ($item['基础项目列表'] as $i) {
$content_list[] = [
'title' => $i['基础项目名称'],
'content' => $i['结果值'] . $i['结果值单位'],
'icon' => $i['异常标识'],
'desc' => $i['结果值范围'],
];
}
$content[] = [
'title' => $item['收费项目名称'],
'datetime' => str_replace('T', ' ', $info['登记时间']),
'doctor' => $item['检查医生'],
'list' => $content_list
];
}
}
return Yo::echo([
'conclusion' => $conclusion,
'content' => $content,
'list' => $list,
]);
}
public function list(Request $request)
{
$id_number = $request->post('id_number');
$hospital = Hospital::where('id', $request->post('hospital'))->where('del', 2)->first();
if (!$hospital) Yo::error_echo(100000, ['机构/医院']);
$peis = new PEISApiController();
$res = $peis::Post('体检报告查询', $hospital->id, [
"电话号码" => "",
"证件号码" => $id_number,
"体检号" => ''
])['data'];
$list = [];
foreach ($res as $item) {
$list[] = [
'id' => $item['体检号'],
'title' => explode('T', $item['登记时间'])[0] . ' 体检报告',
'desc' => $hospital->name,
];
}
return Yo::echo(['list' => $list]);
}
}

@ -0,0 +1,57 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Str;
use Yo;
use Illuminate\Support\Facades\Storage;
use Illuminate\Http\Request;
class UploadController extends Controller
{
public function file(Request $request)
{
if (!$request->hasFile('file')) Yo::error_echo(200024);
$file = $request->file('file');
$type = $request->post('type') ?? 'public';
if (!$file->isValid()) Yo::error_echo(200024);
$date = date('Y/m');
$filename = Str::orderedUuid() . '.' . $file->getClientOriginalExtension();
if ($type == 'forbidden') {
$file->storeAs("forbidden/$date", $filename);
$url = "/storage/app/forbidden/$date/$filename";
} else if ($type == 'h5txt') {
$filename = $file->getClientOriginalName();
$file->move(public_path(), $filename);
$url = "/$filename";
} else {
$file->storeAs("public/assets/upload/file/$date", $filename);
$url = "/storage/assets/upload/file/$date/$filename";
}
return Yo::echo([
'url' => $url
]);
}
public function image()
{
$base64 = request()->post('base64');
if (preg_match('/^(data:\s*image\/(\w+);base64,)/', $base64, $result)) {
$type = ['png', 'jpeg', 'jpg', 'gif'];
if (!in_array($result[2], $type)) Yo::error_echo(100027);
$disk = Storage::disk('public');
$name = Str::orderedUuid();
$date = date('Y/m');
$path = "/assets/upload/image/$date/$name.$result[2]";
$put = $disk->put($path, base64_decode(str_replace($result[1], '', $base64)));
if (!$put) Yo::error_echo(100028, ['put']);
$save = "/storage/assets/upload/image/$date/$name.$result[2]";
return Yo::echo([
'url' => $save
]);
} else {
Yo::error_echo(100028, ['base64']);
}
}
}

@ -0,0 +1,10 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UserAccountController extends Controller
{
}

@ -0,0 +1,130 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditUserInput;
use App\Models\User;
use App\Models\UserAccount;
use App\Models\UserPerson;
use App\Models\UserToken;
use Illuminate\Http\Request;
use WeiXin;
use Yo;
use Login;
use Illuminate\Support\Str;
class UserController extends Controller
{
public function update(EditUserInput $request)
{
Login::admin([19]);
$id = $request->post('id');
$nickname = $request->post('nickname');
$avatar = $request->post('avatar');
$dev = $request->post('dev');
$pay = $request->post('pay');
$status = $request->post('status');
$user = User::where('id', $id)->where('del', 2)->first();
if (!$user) Yo::error_echo(100000, ['用户']);
$user->nickname = $nickname;
$user->avatar = $avatar ?? '';
$user->dev = $dev;
$user->pay = $pay;
$user->status = $status;
$user->save();
return Yo::update_echo($id);
}
public function info(Request $request)
{
Login::user();
$id = $request->post('id');
$user_person = UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->first();
if (!$user_person) {
$user_person = UserPerson::where('user', Login::$info->id)
->where('del', 2)->orderBy('id', 'desc')->first();
}
if (!$user_person) {
$user_person = [
'id' => 0,
'name' => '',
'phone' => ''
];
}
return Yo::echo([
'info' => [
'id' => Login::$info->id,
'nickname' => Login::$info->nickname,
'avatar' => Login::$info->avatar,
'person' => $user_person,
'dev' => Login::$info->dev,
]
]);
}
public function admin_list()
{
Login::admin([19]);
$status = request()->post('status');
$user_list = User::select('*')
->selectRaw("IFNULL((select account from user_accounts where users.id = user_accounts.user and type = 1 and del = 2),'') as openid")
->where(function ($query) use ($status) {
if ($status != 0) $query->where('status', $status);
})
->where('del', 2)
->paginate(15);
return Yo::echo($user_list);
}
public function status()
{
Login::user();
return Yo::echo();
}
public function create_token($user, $type = 1)
{
if ($user->status != 1) Yo::error_echo(100002);
if ($user->del != 2) Yo::error_echo(100002);
$token = Str::orderedUuid();
$user_token = new UserToken();
$user_token->user = $user->id;
$user_token->token = $token;
// $type 1-微信登录
$user_token->type = $type;
$user_token->save();
return $token;
}
public function login()
{
$code = request()->post('code');
$wx_login_info = WeiXin::codeLogin($code);
if (!isset($wx_login_info['openid'])) Yo::error_echo(100002);
$user_account = UserAccount::where('account', $wx_login_info['openid'])->where('del', '2')->where('type', '1')->first();
if (!$user_account) {
$user = new User();
$user->nickname = '';
$user->avatar = '';
$user->status = 1;
$user->save();
$user->nickname = '用户#' . $user->id;
$user->save();
$user_account = new UserAccount();
$user_account->user = $user->id;
$user_account->account = $wx_login_info['openid'];
$user_account->type = 1;
} else {
$user = User::find($user_account->user);
if (!$user) Yo::error_echo(100002);
}
$user = User::find($user->id);
$user_account->secret = $wx_login_info['session_key'];
$user_account->save();
return Yo::echo([
'token' => $this->create_token($user)
]);
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,223 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditUserPersonInput;
use App\Models\UserPerson;
use Illuminate\Http\Request;
use Login;
use Yo;
class UserPersonController extends Controller
{
public function group_search(Request $request)
{
Login::user();
$hospital = $request->post('hospital');
$phone = $request->post('phone');
$id_number = $request->post('id_number');
$cic = new ComboItemController();
$info = $cic->group_info($hospital, [
"电话号码" => $phone,
"证件号码" => $id_number,
"预约Id" => null
]);
return Yo::echo([
'appointment_number' => $info['appointment_number']
]);
}
public function create(EditUserPersonInput $request)
{
Login::user();
$name = $request->post('name');
$id_number = $request->post('id_number');
$birthday = $request->post('birthday');
$sex = $request->post('sex');
$phone = $request->post('phone');
$relationship = $request->post('relationship');
$marriage = $request->post('marriage');
$default = $request->post('default');
$user_person_default_count = UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->count();
if ($user_person_default_count == 0) $default = 1;
if ($default == 1) {
UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->update(['default' => 2]);
}
$default = $user_person_default_count > 0 ? 2 : 1;
$user_person = new UserPerson();
$user_person->user = Login::$info->id;
$user_person->name = $name;
$user_person->id_number = $id_number;
$user_person->birthday = $birthday;
$user_person->sex = $sex;
$user_person->phone = $phone;
$user_person->relationship = $relationship;
$user_person->marriage = $marriage;
$user_person->default = $default;
$user_person->save();
return Yo::create_echo($user_person->id);
}
public function update(EditUserPersonInput $request)
{
Login::user();
$id = $request->post('id');
$name = $request->post('name');
$id_number = $request->post('id_number');
$birthday = $request->post('birthday');
$sex = $request->post('sex');
$phone = $request->post('phone');
$relationship = $request->post('relationship');
$marriage = $request->post('marriage');
$default = $request->post('default');
$user_person_default_count = UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->count();
if ($user_person_default_count == 0) $default = 1;
if ($default == 1) {
UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->update(['default' => 2]);
}
$user_person = UserPerson::where('id', $id)
->where('user', Login::$info->id)
->where('del', 2)
->first();
if (!$user_person) Yo::error_echo(100000, ['体检人']);
$user_person->name = $name;
$user_person->id_number = $id_number;
$user_person->birthday = $birthday;
$user_person->sex = $sex;
$user_person->phone = $phone;
$user_person->relationship = $relationship;
$user_person->marriage = $marriage;
$user_person->default = $default;
$user_person->save();
return Yo::update_echo($user_person->id);
}
public function update_default(Request $request)
{
Login::user();
$id = $request->post('id');
UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->update(['default' => 2]);
$user_person = UserPerson::where('id', $id)
->where('user', Login::$info->id)
->where('del', 2)
->first();
if (!$user_person) Yo::error_echo(100000, ['体检人']);
$user_person->default = 1;
$user_person->save();
return Yo::update_echo($user_person->id);
}
public function delete(Request $request)
{
Login::user();
$id = $request->post('id');
$user_person = UserPerson::where('id', $id)
->where('user', Login::$info->id)
->where('del', 2)
->first();
if (!$user_person) Yo::error_echo(100000, ['体检人']);
$user_person->del = 1;
$user_person->save();
return Yo::delete_echo($user_person->id);
}
public function info(Request $request)
{
Login::user();
$id = $request->post('id');
$user_person = UserPerson::where('id', $id)
->where('user', Login::$info->id)
->where('del', 2)
->first();
if (!$user_person) $user_person = ['id' => 0];
return Yo::echo([
'info' => $user_person
]);
}
public function list()
{
Login::user();
$user_person_list = UserPerson::where('user', Login::$info->id)
->where('del', 2)
->orderBy('default')
->get();
return Yo::echo([
'list' => $user_person_list
]);
}
public function admin_update(EditUserPersonInput $request)
{
Login::admin([20]);
$id = $request->post('id');
$name = $request->post('name');
$id_number = $request->post('id_number');
$birthday = $request->post('birthday');
$sex = $request->post('sex');
$phone = $request->post('phone');
$relationship = $request->post('relationship');
$marriage = $request->post('marriage');
$default = $request->post('default');
$user_person_default_count = UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->count();
if ($user_person_default_count == 0) $default = 1;
if ($default == 1) {
UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->update(['default' => 2]);
}
$user_person = UserPerson::where('id', $id)
->where('del', 2)
->first();
if (!$user_person) Yo::error_echo(100000, ['体检人']);
$user_person->name = $name;
$user_person->id_number = $id_number;
$user_person->birthday = $birthday;
$user_person->sex = $sex;
$user_person->phone = $phone;
$user_person->relationship = $relationship;
$user_person->marriage = $marriage;
$user_person->default = $default;
$user_person->save();
return Yo::update_echo($user_person->id);
}
public function admin_list()
{
Login::admin([20]);
$search = request()->post('search');
$user_person_list = UserPerson::select('*')
->selectRaw("IFNULL((select nickname from users where users.id = user_people.user),'') as nickname")
->where(function ($query) use ($search) {
if ($search != '') $query->where('name', 'like', '%' . $search . '%')
->orWhere('id_number', 'like', '%' . $search . '%')
->orWhere('phone', 'like', '%' . $search . '%');
})
->where('del', 2)
->orderBy('id', 'desc')
->paginate(15);
return Yo::echo($user_person_list);
}
public function count()
{
Login::user();
$user_person_count = UserPerson::where('user', Login::$info->id)
->where('del', 2)
->count();
$user_person_default_count = UserPerson::where('user', Login::$info->id)
->where('default', 1)
->where('del', 2)
->count();
return Yo::echo([
'count' => $user_person_count,
'default' => $user_person_default_count,
]);
}
}

@ -0,0 +1,10 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UserTokenController extends Controller
{
//
}

@ -0,0 +1,228 @@
<?php
namespace App\Http\Controllers;
use App\Models\WeChatPay;
use Illuminate\Http\Request;
use WeChatPay\Builder;
use WeChatPay\Crypto\AesGcm;
use WeChatPay\Crypto\Rsa;
use WeChatPay\Formatter;
use WeChatPay\Util\PemUtil;
use Yo;
class WeChatPayController extends Controller
{
public static $mp_instance = false;
public static $mp_config = false;
public function callback($input, $header, $apiv3Key, $pem)
{
$inWechatpaySignature = $header['wechatpay-signature'][0];
$inWechatpayTimestamp = $header['wechatpay-timestamp'][0];
$inWechatpaySerial = $header['wechatpay-serial'][0];
$inWechatpayNonce = $header['wechatpay-nonce'][0];
$inBody = $input;
$platformPublicKeyInstance = Rsa::from($pem, Rsa::KEY_TYPE_PUBLIC);
$timeOffsetStatus = 300 >= abs(Formatter::timestamp() - (int)$inWechatpayTimestamp);
// $verifiedStatus = Rsa::verify(
// Formatter::joinedByLineFeed($inWechatpayTimestamp, $inWechatpayNonce, $inBody),
// $inWechatpaySignature,
// $platformPublicKeyInstance
// );
// if ($timeOffsetStatus && $verifiedStatus) {
if ($timeOffsetStatus) {
$inBodyArray = (array)json_decode($inBody, true);
['resource' => [
'ciphertext' => $ciphertext,
'nonce' => $nonce,
'associated_data' => $aad
]] = $inBodyArray;
$inBodyResource = AesGcm::decrypt($ciphertext, $apiv3Key, $nonce, $aad);
return (array)json_decode($inBodyResource, true);
} else {
return false;
}
}
public function builder($config)
{
self::$mp_config = $config;
$merchantPrivateKeyFilePath = 'file://' . self::$mp_config['pem_path'];
$platformCertificateFilePath = 'file://' . self::$mp_config['cer_path'];
$merchantId = self::$mp_config['mchid'];
$merchantPrivateKeyInstance = Rsa::from($merchantPrivateKeyFilePath, Rsa::KEY_TYPE_PRIVATE);
self::$mp_config['pem_key'] = $merchantPrivateKeyInstance;
$merchantCertificateSerial = self::$mp_config['cer_num'];
$platformPublicKeyInstance = Rsa::from($platformCertificateFilePath, Rsa::KEY_TYPE_PUBLIC);
$platformCertificateSerial = self::$mp_config['v3'];
self::$mp_instance = Builder::factory([
'mchid' => $merchantId,
'serial' => $merchantCertificateSerial,
'privateKey' => $merchantPrivateKeyInstance,
'certs' => [
$platformCertificateSerial => $platformPublicKeyInstance,
],
]);
}
public function refund($config)
{
$res = false;
try {
$resp = self::$mp_instance
->v3->refund->domestic->refunds
->post([
'json' => [
'transaction_id' => $config['transaction_id'],
'out_refund_no' => $config['out_refund_no'],
'amount' => [
'refund' => $config['total'],
'total' => $config['total'],
'currency' => 'CNY',
],
],
]);
$res = json_decode($resp->getBody(), true);
} catch (\Exception $e) {
if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {
$r = $e->getResponse();
$res = json_decode($r->getBody(), true);
}
}
return $res;
}
public function create($config)
{
$res = false;
try {
$post_data = [
'appid' => self::$mp_config['appid'],
'mchid' => self::$mp_config['mchid'],
'description' => $config['description'],
'out_trade_no' => $config['out_trade_no'],
'notify_url' => $config['notify_url'],
'amount' => [
'total' => $config['total'],
],
'payer' => [
'openid' => $config['openid']
],
'settle_info' => [
'profit_sharing' => $config['profit_sharing'],
]
];
$resp = self::$mp_instance
->v3->pay->transactions->jsapi
->post([
'json' => $post_data,
]);
$res = json_decode($resp->getBody(), true);
} catch (\Exception $e) {
if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {
$r = $e->getResponse();
$res = json_decode($r->getBody(), true);
}
}
$params = [
'appId' => self::$mp_config['appid'],
'timeStamp' => (string)time(),
'nonceStr' => self::nonce(),
'package' => 'prepay_id=' . $res['prepay_id'],
];
$params += ['paySign' => Rsa::sign(
Formatter::joinedByLineFeed(...array_values($params)),
self::$mp_config['pem_key']
), 'signType' => 'RSA'];
$wc_chat_pay = new WeChatPay();
$wc_chat_pay->out_trade_no = $config['out_trade_no'];
$wc_chat_pay->post_data = json_encode($post_data, JSON_UNESCAPED_UNICODE);
$wc_chat_pay->params = json_encode($params, JSON_UNESCAPED_UNICODE);
$wc_chat_pay->save();
return [
'appid' => $params['appId'],
'timestamp' => $params['timeStamp'],
'nonce_str' => $params['nonceStr'],
'package' => $params['package'],
'pay_sign' => $params['paySign'],
'sign_type' => $params['signType'],
];
}
public function profitsharing($sharing_data)
{
$res = false;
try {
$post_data = [
'appid' => self::$mp_config['appid'],
'transaction_id' => $sharing_data['transaction_id'],
'out_order_no' => 'P' . $sharing_data['transaction_id'],
'receivers' => $sharing_data['receivers'],
'unfreeze_unsplit' => true
];
$resp = self::$mp_instance
->v3->profitsharing->orders
->post([
'json' => $post_data,
]);
$res = json_decode($resp->getBody(), true);
} catch (\Exception $e) {
if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {
$r = $e->getResponse();
$res = json_decode($r->getBody(), true);
}
}
return $res;
}
public function profitsharing_return($return_data)
{
$res = false;
try {
$resp = self::$mp_instance
->v3->profitsharing->returnOrders
->post([
'json' => $return_data,
]);
$res = json_decode($resp->getBody(), true);
} catch (\Exception $e) {
if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {
$r = $e->getResponse();
$res = json_decode($r->getBody(), true);
}
}
return $res;
}
public function check($out_trade_no)
{
$res = false;
try {
$resp = self::$mp_instance
->v3->pay->transactions->outTradeNo->_out_trade_no_
->get([
'query' => ['mchid' => self::$mp_config['mchid']],
'out_trade_no' => (string)$out_trade_no,
]);
$res = json_decode($resp->getBody(), true);
} catch (\Exception $e) {
if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {
$r = $e->getResponse();
$res = json_decode($r->getBody(), true);
}
}
return $res;
}
public static function nonce($l = 16)
{
$charts = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz0123456789";
$max = strlen($charts) - 1;
$noncestr = "";
for ($i = 0; $i < $l; $i++) {
$noncestr .= $charts[rand(0, $max)];
}
return $noncestr;
}
}

@ -0,0 +1,10 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WeChatRefundController extends Controller
{
//
}

@ -0,0 +1,16 @@
<?php
namespace App\Http\Controllers;
use Yo as Yoo;
class YoController extends Controller
{
public function __invoke()
{
return Yoo::echo([
'app_name' => env('APP_NAME'),
'data' => request()->all()
]);
}
}

@ -0,0 +1,67 @@
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array<int, class-string|string>
*/
protected $middleware = [
// \App\Http\Middleware\TrustHosts::class,
\App\Http\Middleware\TrustProxies::class,
\Fruitcake\Cors\HandleCors::class,
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
];
/**
* The application's route middleware groups.
*
* @var array<string, array<int, class-string|string>>
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
'api' => [
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
'throttle:api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array<string, class-string|string>
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
];
}

@ -0,0 +1,21 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
* @return string|null
*/
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
}
}

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
class EncryptCookies extends Middleware
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array<int, string>
*/
protected $except = [
//
];
}

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware;
class PreventRequestsDuringMaintenance extends Middleware
{
/**
* The URIs that should be reachable while maintenance mode is enabled.
*
* @var array<int, string>
*/
protected $except = [
//
];
}

@ -0,0 +1,32 @@
<?php
namespace App\Http\Middleware;
use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @param string|null ...$guards
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/
public function handle(Request $request, Closure $next, ...$guards)
{
$guards = empty($guards) ? [null] : $guards;
foreach ($guards as $guard) {
if (Auth::guard($guard)->check()) {
return redirect(RouteServiceProvider::HOME);
}
}
return $next($request);
}
}

@ -0,0 +1,19 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
class TrimStrings extends Middleware
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array<int, string>
*/
protected $except = [
'current_password',
'password',
'password_confirmation',
];
}

@ -0,0 +1,20 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustHosts as Middleware;
class TrustHosts extends Middleware
{
/**
* Get the host patterns that should be trusted.
*
* @return array<int, string|null>
*/
public function hosts()
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}

@ -0,0 +1,28 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array<int, string>|string|null
*/
protected $proxies;
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
protected $headers =
Request::HEADER_X_FORWARDED_FOR |
Request::HEADER_X_FORWARDED_HOST |
Request::HEADER_X_FORWARDED_PORT |
Request::HEADER_X_FORWARDED_PROTO |
Request::HEADER_X_FORWARDED_AWS_ELB;
}

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array<int, string>
*/
protected $except = [
'*'
];
}

@ -0,0 +1,51 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class CreateAdminInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'nickname' => ['required', 'between:1,30'],
'account' => ['required', 'between:1,50'],
'password' => ['required', 'between:6,20'],
];
}
public function messages()
{
return [
'nickname.required' => 100005,
'nickname.between' => 100006,
'account.required' => 100015,
'account.between' => 100016,
'password.required' => 100007,
'password.between' => 100008,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,47 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditAdminAuthInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'between:1,20'],
'remark' => ['between:0,100'],
];
}
public function messages()
{
return [
'name.required' => 100011,
'name.between' => 100012,
'remark.between' => 100013,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,60 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditAnalysisTypeInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'between:1,50'],
'range' => ['required', 'between:1,500'],
'desc' => ['required', 'between:1,50'],
'color' => ['required', 'between:1,8'],
'mark' => ['required', 'between:1,50'],
'content' => ['required', 'between:1,2000'],
];
}
public function messages()
{
return [
'name.required' => 100011,
'name.between' => 100024,
'range.required' => 200055,
'range.between' => 200056,
'desc.required' => 200057,
'desc.between' => 200058,
'color.required' => 200059,
'color.between' => 200060,
'mark.required' => 200061,
'mark.between' => 200062,
'content.required' => 200063,
'content.between' => 200064,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,54 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditAppointmentTemplateInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'between:1,50'],
'weeks' => ['required', 'between:1,50'],
'start_time' => ['required'],
'end_time' => ['required'],
'stop_time' => ['required'],
];
}
public function messages()
{
return [
'name.required' => 200013,
'name.between' => 200014,
'weeks.required' => 200015,
'weeks.between' => 200016,
'start_time.required' => 200017,
'end_time.required' => 200018,
'stop_time.required' => 200019,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,53 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditAuthInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'between:1,20'],
'title' => ['required', 'between:1,20'],
'icon' => ['between:0,100'],
'order' => ['min:0', 'max:999'],
];
}
public function messages()
{
return [
'name.required' => 100019,
'name.between' => 100020,
'title.required' => 100011,
'title.between' => 100012,
'icon.between' => 100021,
'order.min' => 100022,
'order.max' => 100022,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,56 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditCarouselInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'between:1,20'],
'image' => ['required', 'between:1,200'],
'desc' => ['between:0,50'],
'jump_path' => ['between:0,200'],
'start_time' => ['required'],
'end_time' => ['required'],
];
}
public function messages()
{
return [
'name.required' => 200025,
'name.between' => 200026,
'image.required' => 200027,
'image.between' => 200028,
'desc.between' => 200030,
'jump_path.between' => 200029,
'start_time.required' => 200017,
'end_time.required' => 200018,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,50 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditConfigInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'label' => ['required', 'between:1,50'],
'value' => ['required', 'between:1,1000'],
'remark' => ['between:0,100'],
];
}
public function messages()
{
return [
'label.required' => 100011,
'label.between' => 100024,
'value.required' => 100025,
'value.between' => 100026,
'remark.between' => 100013,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,45 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditHospitalActivityPackageInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'between:1,20'],
];
}
public function messages()
{
return [
'name.required' => 200042,
'name.between' => 200043,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,61 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditHospitalInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'between:1,50'],
'code' => ['required', 'between:1,50'],
'address' => ['required', 'between:1,100'],
'longitude' => ['required'],
'latitude' => ['required'],
'logo' => ['required', 'between:1,100'],
'phone' => ['required', 'between:1,20'],
];
}
public function messages()
{
return [
'name.required' => 200001,
'name.between' => 200002,
'code.required' => 200003,
'code.between' => 200004,
'address.required' => 200005,
'address.between' => 200006,
'longitude.required' => 200007,
'latitude.required' => 200008,
'logo.required' => 200009,
'logo.between' => 200010,
'phone.required' => 200011,
'phone.between' => 200012,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,50 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditHospitalPostInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'title' => ['required', 'between:1,100'],
'author' => ['required', 'between:1,20'],
'desc' => ['between:0,200'],
];
}
public function messages()
{
return [
'title.required' => 200067,
'title.between' => 200068,
'author.required' => 100025,
'author.between' => 100026,
'desc.between' => 100013,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,47 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditHospitalQuestionInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'question' => ['required', 'between:1,200'],
'mark' => ['between:0,20'],
];
}
public function messages()
{
return [
'question.required' => 200067,
'question.between' => 200068,
'mark.between' => 100026,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,53 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditProfitsharingsInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'account' => ['required', 'between:1,50'],
'name' => ['required', 'between:1,50'],
'formula' => ['required', 'between:1,2000'],
'desc' => ['between:0,80'],
];
}
public function messages()
{
return [
'account.required' => 200082,
'account.between' => 200083,
'name.required' => 200087,
'name.between' => 200088,
'formula.required' => 200084,
'formula.between' => 200085,
'desc.between' => 200086,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,47 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditUserInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'nickname' => ['required', 'between:1,100'],
'avatar' => ['between:0,200'],
];
}
public function messages()
{
return [
'nickname.required' => 200031,
'nickname.between' => 200032,
'avatar.between' => 200033,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,54 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class EditUserPersonInput extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'between:1,50'],
'id_number' => ['required', 'between:1,50'],
'phone' => ['required', 'between:1,30'],
'relationship' => ['required', 'between:1,30'],
];
}
public function messages()
{
return [
'name.required' => 200034,
'name.between' => 200035,
'id_number.required' => 200036,
'id_number.between' => 200037,
'phone.required' => 200038,
'phone.between' => 200039,
'relationship.required' => 200040,
'relationship.between' => 200041,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,45 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class UpdateAdminNickname extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'nickname' => ['required', 'between:1,30'],
];
}
public function messages()
{
return [
'nickname.required' => 100005,
'nickname.between' => 100006,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,45 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Yo;
class UpdateAdminPassword extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'password' => ['required', 'between:6,20'],
];
}
public function messages()
{
return [
'password.required' => 100007,
'password.between' => 100008,
];
}
public function failedValidation(Validator $validator)
{
Yo::error_echo($validator->errors()->first());
}
}

@ -0,0 +1,99 @@
<?php
use App\Models\Admin;
use App\Models\AdminAuth;
use App\Models\AdminToken;
use App\Models\Auth;
use App\Models\User;
use App\Models\UserToken;
class Login
{
public static $info;
public static $login_type;
public static $token_info;
public static function check_admin_auth($auth_id = 0): int
{
if (self::$info->admin_auth_id === -1) return 0;
$auth = Auth::where('id', $auth_id)->where('status', 1)->where('del', 2)->first();
if (!$auth) return 100003;
if (self::$info->admin_auth_id === 0) {
if ($auth->check_type !== 1) return 100003;
} else {
if ($auth->check_type === 1) return 0;
$admin_auth = AdminAuth::select('id')
->where('id', self::$info->admin_auth_id)
->where('auth_ids', 'like', "%\"$auth_id\"%")
->where('del', 2)
->first();
if (!$admin_auth) return 100003;
}
return 0;
}
public static function admin_check($auth_ids = [], $or_ids = []): int
{
if (!request()->header('Authorization')) return 100001;
$header_token_arr = explode('Bearer ', request()->header('Authorization'));
if (!isset($header_token_arr[1])) return 100001;
$header_token = $header_token_arr[1];
if (!$header_token) return 100001;
$admin_token_info = AdminToken::where('token', $header_token)->where('del', 2)->where('updated_at', '>', Lu::date(time() - (60 * 60 * 24 * 3)))->first();
if (!$admin_token_info) return 100001;
$admin_info = Admin::where('id', $admin_token_info->admin_id)->where('del', 2)->where('status', 1)->first();
if (!$admin_info) return 100002;
self::$info = $admin_info;
self::$login_type = $admin_token_info->type;
self::$token_info = $admin_token_info;
foreach ($auth_ids as $item) {
$auth_check_res = self::check_admin_auth($item);
if ($auth_check_res != 0) return $auth_check_res;
}
$ret = 0;
$ret_code = 0;
foreach ($or_ids as $item) {
$auth_check_res = self::check_admin_auth($item);
if ($auth_check_res == 0) $ret++;
if ($auth_check_res != 0) $ret_code = $auth_check_res;
}
if ($ret == 0 && $ret_code != 0) return $ret_code;
$admin_token_info->updated_at = Lu::date();
$admin_token_info->save();
return 0;
}
public static function admin($auth_ids = [], $or_ids = [])
{
$check_res = self::admin_check($auth_ids, $or_ids);
if ($check_res != 0) Yo::error_echo($check_res);
}
public static function user_check()
{
if (!request()->header('Authorization')) return 100001;
$header_token_arr = explode('Bearer ', request()->header('Authorization'));
if (!isset($header_token_arr[1])) return 100001;
$header_token = $header_token_arr[1];
if (!$header_token) return 100001;
$token = UserToken::where('token', $header_token)
->where('del', 2)
->where('updated_at', '>', Lu::date(time() - (60 * 60 * 24 * 3)))->first();
if (!$token) return 100001;
$user = User::find($token->user);
if (!$user) return 100002;
if ($user->status != 1) return 100002;
if ($user->del != 2) return 100002;
$token->updated_at = Lu::date();
$token->save();
self::$info = $user;
self::$token_info = $token;
return 0;
}
public static function user($exit = 1)
{
$res = self::user_check();
if ($res && $exit === 1) Yo::error_echo($res);
}
}

@ -0,0 +1,182 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class Lu
{
public static $request = null;
public static function ssl()
{
if (isset($_SERVER['HTTPS']) && ('1' == $_SERVER['HTTPS'] || 'on' == strtolower($_SERVER['HTTPS']))) {
return true;
} elseif (isset($_SERVER['SERVER_PORT']) && ('443' == $_SERVER['SERVER_PORT'])) {
return true;
}
return false;
}
public static function CheckTableName()
{
$table_name = 'zz_request_log_' . date('ym');
$table_count = DB::select('select count(1) as c from information_schema.TABLES where table_schema = ? and table_name = ?', [env('DB_DATABASE'), $table_name])[0];
if ($table_count->c === 0) {
Schema::create($table_name, function (Blueprint $table) {
$table->id();
$table->string('request_ip', 15);
$table->text('post_data');
$table->text('get_data');
$table->text('header_data');
$table->text('response_data')->nullable();
$table->string('request_url', 300);
$table->timestamps();
});
}
self::$request = new \App\Models\RequestLog;
self::$request->setTable($table_name);
}
public static function RequestLog()
{
if ($_SERVER['REQUEST_METHOD'] !== 'OPTIONS' && env('REQUEST_LOG') && !self::$request) {
self::CheckTableName();
$post_data = request()->post();
foreach ($post_data as $key => $post_datum) {
$str_len = mb_strlen(json_encode($post_datum, JSON_UNESCAPED_UNICODE));
$str_size = $str_len / 1024;
if ($str_size > 10) {
$post_data["$key"] = 'Row size too large';
}
}
$post_data = json_encode($post_data, JSON_UNESCAPED_UNICODE);
$str_len = mb_strlen($post_data);
$str_size = $str_len / 1024;
if ($str_size > 40) $post_data = '{"data":"Row size too large"}';
$get_data = $_GET;
$header_data = request()->header();
foreach ($header_data as $key => $header_datum) {
$str_len = mb_strlen(json_encode($header_datum, JSON_UNESCAPED_UNICODE));
$str_size = $str_len / 1024;
if ($str_size > 10) {
$header_data["$key"] = 'Row size too large';
}
}
$header_data = json_encode($header_data, JSON_UNESCAPED_UNICODE);
$str_len = mb_strlen($header_data);
$str_size = $str_len / 1024;
if ($str_size > 40) $header_data = '{"data":"Row size too large"}';
$get_data = json_encode($get_data, JSON_UNESCAPED_UNICODE);
self::$request->request_ip = self::ip();
self::$request->post_data = $post_data == '[]' ? '{}' : $post_data;
self::$request->get_data = $get_data == '[]' ? '{}' : $get_data;
self::$request->header_data = $header_data == '[]' ? '{}' : $header_data;
self::$request->request_url = explode('?', $_SERVER['REQUEST_URI'])[0];
self::$request->save();
}
}
// region 获取 IP
public static function ip()
{
//strcasecmp 比较两个字符不区分大小写。返回0>0<0
if (getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) {
$ip = getenv('HTTP_CLIENT_IP');
} elseif (getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')) {
$ip = getenv('HTTP_X_FORWARDED_FOR');
} elseif (getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')) {
$ip = getenv('REMOTE_ADDR');
} elseif (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')) {
$ip = $_SERVER['REMOTE_ADDR'];
}
$res = preg_match('/[\d\.]{7,15}/', $ip, $matches) ? $matches [0] : '';
return $res;
}
// endregion
// region 去除空格
public static function ge($str)
{
return preg_replace("/\s+/", ' ', $str);
}
// endregion
// region 获取完整路径
public static function fp($path)
{
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
return $http_type . $_SERVER['HTTP_HOST'] . $path;
}
// endregion
// region 10位时间戳 格式化
public static function date($time = false, $format = "Y-m-d H:i:s")
{
if (!$time) $time = time();
return date($format, $time);
}
// endregion
// region 毫秒时间戳
public static function time()
{
return floor(microtime(true) * 1000);
}
// endregion
// region exit
public static function exit($data = [])
{
$res = $data;
if ($_SERVER['REQUEST_METHOD'] !== 'OPTIONS' && env('REQUEST_LOG')) {
foreach ($data as $key => $datum) {
$str_len = mb_strlen(json_encode($datum, JSON_UNESCAPED_UNICODE));
$str_size = $str_len / 1024;
if ($str_size > 10) {
$data["$key"] = 'Row size too large';
}
}
$data_str = json_encode($data, JSON_UNESCAPED_UNICODE);
$str_len = strlen($data_str);
$str_size = $str_len / 1024;
if ($str_size > 40) $data_str = '{"data":"Row size too large"}';
self::$request->response_data = $data_str;
self::$request->save();
}
return response()->json($res)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
}
// endregion
// region echo
public static function echo($message = '', $code = 200, $data = [])
{
$return = [];
$return['code'] = intval($code);
if ($message) $return['message'] = $message;
if ($data) $return['data'] = $data;
return self::exit($return);
}
// endregion
public static function post($url, $data, $type = 'json')
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
if ($type === 'data') {
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
}
if ($type === 'json') {
$data_string = json_encode($data, JSON_UNESCAPED_UNICODE);
curl_setopt($curl, CURLOPT_HTTPHEADER, [
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen($data_string)
]);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data_string);
}
$r = curl_exec($curl);
curl_close($curl);
return $r;
}
}

@ -0,0 +1,37 @@
<?php
class WeiXin
{
/**
* 检验数据的真实性,并且获取解密后的明文.
* @param $encryptedData string 加密的用户数据
* @param $iv string 与用户数据一同返回的初始向量
* @param $data string 解密后的原文
*
* @return int 成功0失败返回对应的错误码
*/
public static function decryptData($encryptedData, $iv, $code, &$data)
{
$res = self::codeLogin($code);
if (!isset($res['session_key'])) return $res;
$sessionKey = $res['session_key'];
if (strlen($sessionKey) != 24) return 2;
$aesKey = base64_decode($sessionKey);
if (strlen($iv) != 24) return 3;
$aesIV = base64_decode($iv);
$aesCipher = base64_decode($encryptedData);
$result = openssl_decrypt($aesCipher, "AES-128-CBC", $aesKey, 1, $aesIV);
$dataObj = json_decode($result);
if ($dataObj == NULL) return 4;
if ($dataObj->watermark->appid != env('WX_APP_ID')) return 5;
$data = $result;
return true;
}
public static function codeLogin($code)
{
$url = 'https://api.weixin.qq.com/sns/jscode2session?appid=' . env('WX_APP_ID') . '&secret=' . env('WX_APP_SECRET') . '&js_code=' . $code . '&grant_type=authorization_code';
$info = file_get_contents($url);
$json = json_decode($info);
return get_object_vars($json);
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save