增加分账

增加分账
main
boy_yan 2 years ago
parent 9def7726e2
commit 473921b438

@ -18,8 +18,8 @@ create index admin_accounts_account_index
create index admin_accounts_admin_id_index
on admin_accounts (admin_id);
INSERT INTO sixin_tj.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 sixin_tj.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');
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
(
@ -34,7 +34,7 @@ create table admin_auths
)
collate = utf8mb4_unicode_ci;
INSERT INTO sixin_tj.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');
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
(
@ -71,8 +71,8 @@ create table admins
create index admins_hospital_index
on admins (hospital);
INSERT INTO sixin_tj.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 sixin_tj.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);
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
(
@ -95,15 +95,15 @@ create table analysis_types
create index analysis_types_hospital_index
on analysis_types (hospital);
INSERT INTO sixin_tj.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', '空腹血糖分析
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 sixin_tj.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', '甘油三酯分析
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 sixin_tj.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', '总胆固醇分析
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 sixin_tj.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', '高密度总胆固醇
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
尿
@ -112,20 +112,20 @@ INSERT INTO sixin_tj.analysis_types (id, hospital, name, `range`, `desc`, color,
尿', 1, 1, '2023-03-20 14:42:43', '2023-03-27 15:33:45');
INSERT INTO sixin_tj.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', '低密度总胆固醇
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 sixin_tj.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
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 sixin_tj.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', '丙氨酸氨基转移酶
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 sixin_tj.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', '天门冬氨酸氨基转移酶
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 sixin_tj.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', '尿酸
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尿尿
@ -133,22 +133,22 @@ INSERT INTO sixin_tj.analysis_types (id, hospital, name, `range`, `desc`, color,
4仿尿
尿
尿', 1, 1, '2023-03-20 14:42:43', '2023-03-29 12:36:19');
INSERT INTO sixin_tj.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', '甲胎蛋白
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 sixin_tj.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', '体重分析
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 sixin_tj.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', '血压
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 sixin_tj.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', '癌胚抗原
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 sixin_tj.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', '血压
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');
@ -172,18 +172,18 @@ create index appointment_holidays_date_index
create index appointment_holidays_year_index
on appointment_holidays (year);
INSERT INTO sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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');
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
@ -207,10 +207,10 @@ create table appointment_templates
create index appointment_templates_hospital_index
on appointment_templates (hospital);
INSERT INTO sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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);
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
@ -254,35 +254,35 @@ create table auths
)
collate = utf8mb4_unicode_ci;
INSERT INTO sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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');
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
(
@ -310,20 +310,20 @@ create index carousels_hospital_index
create index carousels_type_index
on carousels (type);
INSERT INTO sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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');
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
@ -342,13 +342,13 @@ create table configs
create index configs_type_index
on configs (type);
INSERT INTO sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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');
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
@ -367,8 +367,8 @@ create table hospital_activity_packages
create index hospital_activity_packages_hospital_index
on hospital_activity_packages (hospital);
INSERT INTO sixin_tj.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 sixin_tj.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');
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
@ -386,9 +386,9 @@ create table hospital_additionals
create index hospital_additionals_hospital_index
on hospital_additionals (hospital);
INSERT INTO sixin_tj.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 sixin_tj.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 sixin_tj.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');
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
@ -406,18 +406,18 @@ create table hospital_extras
create index hospital_extras_hospital_index
on hospital_extras (hospital);
INSERT INTO sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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');
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
@ -442,7 +442,7 @@ create table hospital_posts
create index hospital_posts_type_index
on hospital_posts (type);
INSERT INTO sixin_tj.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>
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>
@ -490,7 +490,7 @@ INSERT INTO sixin_tj.hospital_posts (id, hospital, title, author, date, `desc`,
<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 sixin_tj.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>
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>
@ -501,35 +501,35 @@ INSERT INTO sixin_tj.hospital_posts (id, hospital, title, author, date, `desc`,
<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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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>
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 sixin_tj.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 sixin_tj.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');
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
@ -547,8 +547,8 @@ create table hospital_question_logs
create index hospital_question_logs_user_index
on hospital_question_logs (user);
INSERT INTO sixin_tj.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 sixin_tj.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');
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
@ -571,10 +571,10 @@ create table hospital_questions
create index hospital_questions_type_index
on hospital_questions (type);
INSERT INTO sixin_tj.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 sixin_tj.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 sixin_tj.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 sixin_tj.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');
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
@ -596,8 +596,8 @@ create table hospitals
)
collate = utf8mb4_unicode_ci;
INSERT INTO sixin_tj.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 sixin_tj.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');
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
(

3364
admin/package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -15,6 +15,24 @@ export const UserOrderListAction = async (data) => await $post({
export const UserOrderCancelAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/UserOrder/cancel`, data
}, true)
export const ProfitsharingLogListAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/ProfitsharingLog/list`, data
}, true)
export const ProfitsharingRecoverAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/Profitsharing/recover`, data
}, true)
export const ProfitsharingCreateAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/Profitsharing/create`, data
}, true)
export const ProfitsharingUpdateAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/Profitsharing/update`, data
}, true)
export const ProfitsharingDeleteAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/Profitsharing/delete`, data
}, true)
export const ProfitsharingListAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/Profitsharing/list`, data
}, true)
export const UserOrderRefundAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/UserOrder/refund`, data
}, true)
@ -83,6 +101,9 @@ export const HospitalAdditionalUpdateAction = async (data) => await $post({
export const HospitalExtraUpdateAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/HospitalExtra/update`, data
}, true)
export const HospitalProfitsharingStatusAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/HospitalExtra/profitsharing_status`, data
}, true)
export const HospitalExtraInfoAction = async (data) => await $post({
url: `${$config.value.api.url}/api/${admin_api}/HospitalExtra/info`, data
}, true)

@ -0,0 +1,323 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2023年3月24日 11:52:52
*/
import {
ProfitsharingCreateAction,
ProfitsharingUpdateAction,
ProfitsharingDeleteAction,
ProfitsharingListAction,
HospitalProfitsharingStatusAction,
$response
} from '~/api'
import {h} from "vue";
import {NTag} from "naive-ui";
const $props = defineProps({
hospital: {
type: Number,
default: 0
}
})
const profitsharing_status = ref(false)
const HospitalProfitsharingStatus = async () => {
const response = await HospitalProfitsharingStatusAction()
$response(response, () => {
profitsharing_status.value = response.data.info.open === 1
})
}
const profitsharing_list = ref([])
const ProfitsharingList = async () => {
const response = await ProfitsharingListAction({
hospital: $props.hospital
})
$response(response, () => {
profitsharing_list.value = response.data.list
})
}
const profitsharing_active = ref([])
const profitsharing_columns = [{
type: 'selection'
}, {
title: '名称',
key: 'name'
}, {
title: '类型',
key: 'status',
render(row) {
return h(
NTag,
{
type: row.type === 1 ? 'success' : 'error'
},
{
default: () => {
return row.type === 1 ? '商户' : '个人'
}
}
)
}
}, {
title: '账号',
key: 'account'
}, {
title: '计算公式',
key: 'formula'
}, {
title: '最大分账',
key: 'max'
}, {
title: '描述',
key: 'desc'
}, {
title: '状态',
key: 'status',
render(row) {
return h(
NTag,
{
type: row.status === 1 ? 'success' : 'error'
},
{
default: () => {
return row.status === 1 ? '可用' : '停用'
}
}
)
}
}]
const create_show = ref(false)
const create_data_default = {
type: 1,
name: '',
account: '',
formula: '',
max: 0,
desc: '',
status: 1,
}
const create_data = ref(JSON.parse(JSON.stringify(create_data_default)))
const ProfitsharingCreate = async () => {
let data = {
...create_data.value,
hospital: $props.hospital
}
const response = await ProfitsharingCreateAction(data)
$response(response, () => {
window.$message().success(response.message)
create_show.value = false
create_data.value = JSON.parse(JSON.stringify(create_data_default))
ProfitsharingList()
})
}
const createShowClick = () => {
create_data.value = JSON.parse(JSON.stringify(create_data_default))
create_show.value = true
}
const update_show = ref(false)
const update_data_default = {
id: 0,
type: 1,
name: '',
account: '',
formula: '',
max: 0,
desc: '',
status: 1,
}
const update_data = ref(JSON.parse(JSON.stringify(update_data_default)))
const updateShowClick = () => {
if (profitsharing_active.value.length !== 1) return window.$message().error('请选择一个分账设置')
update_data.value = JSON.parse(JSON.stringify(update_data_default))
for (let i = 0; i < profitsharing_list.value.length; i++) {
if (profitsharing_active.value[0] === profitsharing_list.value[i].id) {
update_data.value = JSON.parse(JSON.stringify(profitsharing_list.value[i]))
update_show.value = true
return
}
}
}
const ProfitsharingUpdate = async () => {
let data = {
...update_data.value,
hospital: $props.hospital
}
const response = await ProfitsharingUpdateAction(data)
$response(response, () => {
window.$message().success(response.message)
update_show.value = false
update_data.value = JSON.parse(JSON.stringify(update_data_default))
ProfitsharingList()
})
}
const delete_show = ref(false)
const deleteShowClick = () => {
if (profitsharing_active.value.length <= 0) return window.$message().error('请选择一个分账设置')
delete_show.value = true
}
const ProfitsharingDelete = async () => {
const response = await ProfitsharingDeleteAction(profitsharing_active.value)
$response(response, () => {
window.$message().success(response.message)
delete_show.value = false
profitsharing_active.value = []
ProfitsharingList()
})
}
onMounted(() => {
HospitalProfitsharingStatus()
ProfitsharingList()
})
</script>
<template>
<div>
<n-modal v-model:show="delete_show" preset="card" :style="{width: '400px'}" title="删除确认" :auto-focus="false"
:bordered="false">
<div>
<n-space justify="center">
<n-button @click="ProfitsharingDelete()" type="info">确定</n-button>
<n-button @click="delete_show = false">取消</n-button>
</n-space>
</div>
</n-modal>
<n-modal v-model:show="update_show" preset="card" :style="{width: '700px'}" title="修改信息" :auto-focus="false"
:bordered="false">
<div>
<n-space align="center">
<n-tag>
<div class="form_tag_wrapper">名称</div>
</n-tag>
<n-input class="form_input_wrapper" v-model:value="update_data.name"></n-input>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">类型</div>
</n-tag>
<n-radio-group v-model:value="update_data.type" name="update_type_radio">
<n-space>
<n-radio :value="1">商户</n-radio>
<n-radio :value="2">个人</n-radio>
</n-space>
</n-radio-group>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">账号</div>
</n-tag>
<n-input class="form_input_wrapper" v-model:value="update_data.account"></n-input>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">分账公式</div>
</n-tag>
<n-input class="form_input_wrapper" v-model:value="update_data.formula"></n-input>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">最大分账</div>
</n-tag>
<n-input-number :mix="0" class="form_input_wrapper" v-model:value="update_data.max"></n-input-number>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">分账描述</div>
</n-tag>
<n-input class="form_input_wrapper" v-model:value="update_data.desc"></n-input>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">状态</div>
</n-tag>
<n-radio-group v-model:value="update_data.status" name="update_status_radio">
<n-space>
<n-radio :value="1">可用</n-radio>
<n-radio :value="2">停用</n-radio>
</n-space>
</n-radio-group>
</n-space>
<n-button @click="ProfitsharingUpdate()" type="info" mt-2>确定</n-button>
</div>
</n-modal>
<n-modal v-model:show="create_show" preset="card" :style="{width: '700px'}" title="新建" :auto-focus="false"
:bordered="false">
<div>
<n-space align="center">
<n-tag>
<div class="form_tag_wrapper">名称</div>
</n-tag>
<n-input class="form_input_wrapper" v-model:value="create_data.name"></n-input>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">类型</div>
</n-tag>
<n-radio-group v-model:value="create_data.type" name="update_type_radio">
<n-space>
<n-radio :value="1">商户</n-radio>
<n-radio :value="2">个人</n-radio>
</n-space>
</n-radio-group>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">账号</div>
</n-tag>
<n-input class="form_input_wrapper" v-model:value="create_data.account"></n-input>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">分账公式</div>
</n-tag>
<n-input class="form_input_wrapper" v-model:value="create_data.formula"></n-input>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">最大分账</div>
</n-tag>
<n-input-number :mix="0" class="form_input_wrapper" v-model:value="create_data.max"></n-input-number>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">分账备注</div>
</n-tag>
<n-input class="form_input_wrapper" v-model:value="create_data.desc"></n-input>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">状态</div>
</n-tag>
<n-radio-group v-model:value="create_data.status" name="update_status_radio">
<n-space>
<n-radio :value="1">可用</n-radio>
<n-radio :value="2">停用</n-radio>
</n-space>
</n-radio-group>
</n-space>
<n-button @click="ProfitsharingCreate()" type="info" mt-2>确定</n-button>
</div>
</n-modal>
<n-card mt-2 title="分账管理">
<div>
<n-alert title="使 - - 退
需保持开启状态" type="warning"></n-alert>
<n-alert mt-2 v-if="!profitsharing_status" title="请先前往「额外配置」标签开启分账功能" type="error"></n-alert>
<div v-else mt-2>
<n-space>
<n-button @click="createShowClick()" type="success">新建</n-button>
<n-button @click="deleteShowClick()" type="error">删除</n-button>
<n-button @click="updateShowClick()" type="info">修改信息</n-button>
</n-space>
</div>
<n-data-table mt-2 v-model:checked-row-keys="profitsharing_active" :columns="profitsharing_columns"
:row-key="row=>row.id" :data="profitsharing_list"/>
</div>
</n-card>
</div>
</template>
<style scoped>
</style>

@ -25,6 +25,7 @@ onMounted(() => {
HospitalExtraInfo('readme');
HospitalExtraInfo('h5txt');
HospitalExtraInfo('report');
HospitalExtraInfo('profitsharing');
})
const uploadFinish = (e, pay_type, type = '') => {
const response = JSON.parse(e.event.target.response)
@ -77,7 +78,10 @@ const h5txt_default = {
path: '',
}
const report_default = {
open: 2,
open: 0,
}
const profitsharing_default = {
open: 0,
}
const card_pay_info = ref({
id: 0,
@ -101,7 +105,13 @@ const report_info = ref({
id: 0,
hospital: 0,
mark: 'report',
content: JSON.parse(JSON.stringify(h5txt_default)),
content: JSON.parse(JSON.stringify(report_default)),
})
const profitsharing_info = ref({
id: 0,
hospital: 0,
mark: 'profitsharing',
content: JSON.parse(JSON.stringify(profitsharing_default)),
})
const HospitalExtraInfo = async (mark) => {
const response = await HospitalExtraInfoAction({
@ -156,6 +166,13 @@ const HospitalExtraInfo = async (mark) => {
}
report_info.value = info
break;
case 'profitsharing':
info.content = {
...profitsharing_default,
...info.content
}
profitsharing_info.value = info
break;
}
})
@ -182,6 +199,9 @@ const HospitalExtraUpdate = async (mark) => {
case 'report':
content = report_info.value.content
break;
case 'profitsharing':
content = profitsharing_info.value.content
break;
}
const response = await HospitalExtraUpdateAction({
hospital: $props.hospital,
@ -367,6 +387,21 @@ const HospitalExtraUpdate = async (mark) => {
</n-space>
<n-button mt-2 @click="HospitalExtraUpdate('report')" type="primary">保存</n-button>
</div>
<div mt-5>
<n-h4>分账</n-h4>
<n-space align="center">
<n-tag>
<div class="form_tag_wrapper">开启分账</div>
</n-tag>
<n-select class="form_input_wrapper" v-model:value="profitsharing_info.content.open" :options="[
{value:2,label:'关闭'},
{value:1,label:'开启'},
{value:0,label:'通用',disabled:$props.hospital === 0},
]"/>
</n-space>
<n-button mt-2 @click="HospitalExtraUpdate('profitsharing')" type="primary">保存</n-button>
</div>
</n-space>
</n-card>
</div>

@ -70,6 +70,7 @@ const tab_arr = ref([
'报告对比',
'新闻管理',
'问答管理',
'分账管理',
])
const tabChange = (e) => {
page_options.value.type = e
@ -106,6 +107,7 @@ const hospital_id = ref(0)
<Additional8 :hospital="hospital_id" v-if="page_options.type === 8"></Additional8>
<Additional9 :hospital="hospital_id" v-if="page_options.type === 9"></Additional9>
<Additional10 :hospital="hospital_id" v-if="page_options.type === 10"></Additional10>
<Additional11 :hospital="hospital_id" v-if="page_options.type === 11"></Additional11>
</div>
</n-card>
</div>

@ -52,6 +52,7 @@ const tab_arr = ref([
'报告对比',
'新闻管理',
'问答管理',
'分账管理',
])
const tabChange = (e) => {
page_options.value.type = e
@ -70,6 +71,7 @@ const hospital_id = ref(0)
<Additional8 :hospital="hospital_info.id" v-if="page_options.type === 1"></Additional8>
<Additional9 :hospital="hospital_info.id" v-if="page_options.type === 2"></Additional9>
<Additional10 :hospital="hospital_info.id" v-if="page_options.type === 3"></Additional10>
<Additional11 :hospital="hospital_info.id" v-if="page_options.type === 4"></Additional11>
</div>
</n-card>
</div>

@ -0,0 +1,291 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022年12月25日 20:50:25
*/
import {
ProfitsharingLogListAction,
$response, HospitalInfoAction, ProfitsharingRecoverAction,
} from '~/api'
import $router from '~/router'
import {h} from "vue";
import {NTag, NSpace} from 'naive-ui'
import {onBeforeRouteUpdate} from "vue-router";
const hospital_info = ref(false)
const HospitalInfo = async () => {
const response = await HospitalInfoAction()
$response(response, () => {
hospital_info.value = response.data.info
ProfitsharingLogList()
})
}
const default_page_options = {
page: 1,
start_time: null,
end_time: null,
status: 0,
}
const page_options = ref(JSON.parse(JSON.stringify(default_page_options)))
onBeforeRouteUpdate((to) => {
routerChange(to.query)
})
const routerChange = (query) => {
page_options.value = {
start_time: query.start_time || default_page_options.start_time,
end_time: query.end_time || default_page_options.end_time,
status: Number(query.status || default_page_options.status),
page: Number(query.page || default_page_options.page),
}
profitsharing_log_active.value = []
if (!hospital_info.value) {
HospitalInfo()
} else {
ProfitsharingLogList()
}
}
onMounted(() => {
routerChange($router.currentRoute.value.query)
})
const profitsharing_log_active = ref([])
const profitsharing_log_list = ref([])
const profitsharing_log_list_last_page = ref(0)
const ProfitsharingLogList = async () => {
const response = await ProfitsharingLogListAction({
...page_options.value,
hospital: hospital_info.value.id
})
$response(response, () => {
profitsharing_log_list.value = response.data.data
profitsharing_log_list_last_page.value = response.data.last_page
})
}
const status_arr = ['已分账', '已追回']
const profitsharing_log_columns = [{
type: 'selection',
multiple: false
}, {
title: '订单编号',
key: 'order',
render(row) {
const response = JSON.parse(row.response)
return response.order_id
}
}, {
title: '收账信息',
key: 'order',
render(row) {
const builder = JSON.parse(row.builder)
let children = [
h('div', null, [
h('b', 'APPID: '),
h('span', builder.appid),
]),
h('div', null, [
h('b', '商户ID: '),
h('span', builder.mchid),
])
]
return children
}
}, {
title: '分账信息',
key: 'order',
render(row) {
let children = []
const receivers = JSON.parse(row.receivers)
for (let i in receivers) {
children.push(h(
NSpace,
{align: 'center', justify: 'space-between'},
{
default: () => {
return [
h('div', null, [
h('b', '类型: '),
receivers[i].type,
]),
h('div', null, [
h('b', '金额: '),
(receivers[i].amount / 100).toFixed(2),
]),
h('div', null, [
h('b', '备注: '),
receivers[i].description,
])
]
}
}
))
}
return children
}
}, {
title: '状态',
key: 'status',
render(row) {
return h(
NTag,
{
type: row.status === 1 ? 'success' : 'error'
},
{
default: () => {
return row.status === 1 ? '已分账' : '已追回'
}
}
)
}
}, {
title: '创建时间',
key: 'created_at',
}, {
title: '更新时间',
key: 'updated_at',
}]
const pagePush = () => {
$router.push({
query: page_options.value
})
}
const searchClick = () => {
updatePage(1)
}
const updatePage = (page) => {
page_options.value.page = page
pagePush()
}
const clearSearchClick = () => {
$router.push({
query: JSON.parse(JSON.stringify({
...default_page_options
}))
})
}
const return_show = ref(false)
const ReturnShow = () => {
if (profitsharing_log_active.value.length !== 1) return window.$message().error('请选择一个分账')
return_show.value = true
}
const ProfitsharingRecover = async () => {
const response = await ProfitsharingRecoverAction({
id: profitsharing_log_active.value,
hospital: hospital_info.value.id
})
$response(response, () => {
return_show.value = false
window.$message().success('操作成功')
ProfitsharingLogList()
})
}
</script>
<template>
<div>
<n-modal v-model:show="return_show" preset="card" :style="{width: '400px'}"
title="追回确认" :auto-focus="false" :bordered="false">
<div>
<n-space justify="center">
<n-button @click="ProfitsharingRecover()" type="info">确定</n-button>
<n-button @click="return_show = false">取消</n-button>
</n-space>
</div>
</n-modal>
<n-card title="分账管理">
<div>
<n-space align="center">
<n-tag>
<div class="form_tag_wrapper">开始时间</div>
</n-tag>
<n-date-picker v-model:formatted-value="page_options.start_time" type="datetime"/>
<n-tag>
<div class="form_tag_wrapper">结束时间</div>
</n-tag>
<n-date-picker v-model:formatted-value="page_options.end_time" type="datetime"/>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">状态</div>
</n-tag>
<n-radio-group v-model:value="page_options.status" name="status_radio">
<n-space>
<n-radio :value="0">全部</n-radio>
<n-radio v-for="(i,k) in status_arr" :key="k" :value="k+1">{{ i }}</n-radio>
</n-space>
</n-radio-group>
<n-button @click="searchClick()" type="info">搜索</n-button>
<n-button @click="clearSearchClick()" type="warning">清空</n-button>
</n-space>
<n-space mt-2>
<n-button @click="ReturnShow()" type="error">追回</n-button>
</n-space>
<n-data-table mt-2 striped v-model:checked-row-keys="profitsharing_log_active"
:columns="profitsharing_log_columns"
:row-key="row=>row.id" :data="profitsharing_log_list"/>
<n-pagination v-if="profitsharing_log_list_last_page > 1" @update:page="updatePage" mt-2
v-model:page="page_options.page"
:page-count="profitsharing_log_list_last_page"/>
</div>
</n-card>
</div>
</template>
<style>
.line_wrapper {
display: flex;
}
.items_content_wrapper {
width: 200px;
}
</style>
<style scoped>
.op0 {
opacity: 0;
}
.date_box_wrapper {
background: #ffffff;
margin-top: 2px;
cursor: pointer;
border-radius: 6px;
}
.month_wrapper {
display: flex;
}
.month_box_title_wrapper {
height: 40px;
line-height: 40px;
font-size: 20px;
background: #00000005;
}
.month_box_wrapper {
background: #00000010;
border: 1px #00000010 solid;
text-align: center;
border-radius: 6px;
overflow: hidden;
}
.form_checkbox_wrapper {
width: 300px;
}
.create {
background: #4b9d5f60;
}
</style>
<route>
{"meta":{"title":"订单管理"}}
</route>

@ -0,0 +1,307 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022年12月25日 20:50:25
*/
import {
ProfitsharingRecoverAction,
ProfitsharingLogListAction,
HospitalSelectListAction,
$response,
} from '~/api'
import $router from '~/router'
import {h} from "vue";
import {NTag, NSpace} from 'naive-ui'
import {onBeforeRouteUpdate} from "vue-router";
const default_page_options = {
page: 1,
hospital: 0,
start_time: null,
end_time: null,
status: 0,
}
const page_options = ref(JSON.parse(JSON.stringify(default_page_options)))
onBeforeRouteUpdate((to) => {
routerChange(to.query)
})
const hospital_id = ref(0)
const routerChange = (query) => {
page_options.value = {
hospital: Number(query.hospital || default_page_options.hospital),
start_time: query.start_time || default_page_options.start_time,
end_time: query.end_time || default_page_options.end_time,
status: Number(query.status || default_page_options.status),
page: Number(query.page || default_page_options.page),
}
if (hospital_select_list.value.length === 0) {
HospitalSelectList()
} else {
profitsharing_log_active.value = []
ProfitsharingLogList()
}
}
onMounted(() => {
routerChange($router.currentRoute.value.query)
})
const profitsharing_log_active = ref([])
const profitsharing_log_list = ref([])
const profitsharing_log_list_last_page = ref(0)
const ProfitsharingLogList = async () => {
const response = await ProfitsharingLogListAction({...page_options.value})
$response(response, () => {
profitsharing_log_list.value = response.data.data
profitsharing_log_list_last_page.value = response.data.last_page
})
}
const status_arr = ['已分账', '已追回']
const profitsharing_log_columns = [{
type: 'selection',
multiple: false
}, {
title: '订单编号',
key: 'order',
render(row) {
const response = JSON.parse(row.response)
return response.order_id
}
}, {
title: '收账信息',
key: 'order',
render(row) {
const builder = JSON.parse(row.builder)
let children = [
h('div', null, [
h('b', 'APPID: '),
h('span', builder.appid),
]),
h('div', null, [
h('b', '商户ID: '),
h('span', builder.mchid),
])
]
return children
}
}, {
title: '分账信息',
key: 'order',
render(row) {
let children = []
const receivers = JSON.parse(row.receivers)
for (let i in receivers) {
children.push(h(
NSpace,
{align: 'center', justify: 'space-between'},
{
default: () => {
return [
h('div', null, [
h('b', '类型: '),
receivers[i].type,
]),
h('div', null, [
h('b', '金额: '),
(receivers[i].amount / 100).toFixed(2),
]),
h('div', null, [
h('b', '备注: '),
receivers[i].description,
])
]
}
}
))
}
return children
}
}, {
title: '状态',
key: 'status',
render(row) {
return h(
NTag,
{
type: row.status === 1 ? 'success' : 'error'
},
{
default: () => {
return row.status === 1 ? '已分账' : '已追回'
}
}
)
}
}, {
title: '创建时间',
key: 'created_at',
}, {
title: '更新时间',
key: 'updated_at',
}]
const hospital_select_list = ref([])
const HospitalSelectList = async () => {
const response = await HospitalSelectListAction(page_options.value)
$response(response, () => {
hospital_select_list.value = response.data.list.map((item) => {
return {
label: item.name,
value: item.id
}
})
if (!page_options.value.hospital && hospital_select_list.value.length > 0) {
page_options.value.hospital = hospital_select_list.value[0].value
}
ProfitsharingLogList()
})
}
const pagePush = () => {
$router.push({
query: page_options.value
})
}
const searchClick = () => {
updatePage(1)
}
const updatePage = (page) => {
page_options.value.page = page
pagePush()
}
const clearSearchClick = () => {
$router.push({
query: JSON.parse(JSON.stringify({
...default_page_options,
hospital: page_options.value.hospital,
}))
})
}
const return_show = ref(false)
const ReturnShow = () => {
if (profitsharing_log_active.value.length !== 1) return window.$message().error('请选择一个分账')
return_show.value = true
}
const ProfitsharingRecover = async () => {
const response = await ProfitsharingRecoverAction({
id: profitsharing_log_active.value,
hospital: page_options.value.hospital,
})
$response(response, () => {
return_show.value = false
window.$message().success('操作成功')
ProfitsharingLogList()
})
}
</script>
<template>
<div>
<n-modal v-model:show="return_show" preset="card" :style="{width: '400px'}"
title="追回确认" :auto-focus="false" :bordered="false">
<div>
<n-space justify="center">
<n-button @click="ProfitsharingRecover()" type="info">确定</n-button>
<n-button @click="return_show = false">取消</n-button>
</n-space>
</div>
</n-modal>
<n-card title="超级分账管理">
<div>
<n-space align="center">
<n-tag>
<div class="form_tag_wrapper">医院</div>
</n-tag>
<n-select class="form_input_wrapper" v-model:value="page_options.hospital"
:options="hospital_select_list"/>
<n-tag>
<div class="form_tag_wrapper">开始时间</div>
</n-tag>
<n-date-picker v-model:formatted-value="page_options.start_time" type="datetime"/>
<n-tag>
<div class="form_tag_wrapper">结束时间</div>
</n-tag>
<n-date-picker v-model:formatted-value="page_options.end_time" type="datetime"/>
</n-space>
<n-space mt-2 align="center">
<n-tag>
<div class="form_tag_wrapper">状态</div>
</n-tag>
<n-radio-group v-model:value="page_options.status" name="status_radio">
<n-space>
<n-radio :value="0">全部</n-radio>
<n-radio v-for="(i,k) in status_arr" :key="k" :value="k+1">{{ i }}</n-radio>
</n-space>
</n-radio-group>
<n-button @click="searchClick()" type="info">搜索</n-button>
<n-button @click="clearSearchClick()" type="warning">清空</n-button>
</n-space>
<n-space mt-2>
<n-button @click="ReturnShow()" type="error">追回</n-button>
</n-space>
<n-data-table mt-2 striped v-model:checked-row-keys="profitsharing_log_active"
:columns="profitsharing_log_columns"
:row-key="row=>row.id" :data="profitsharing_log_list"/>
<n-pagination v-if="profitsharing_log_list_last_page > 1" @update:page="updatePage" mt-2
v-model:page="page_options.page"
:page-count="profitsharing_log_list_last_page"/>
</div>
</n-card>
</div>
</template>
<style>
.line_wrapper {
display: flex;
}
.items_content_wrapper {
width: 200px;
}
</style>
<style scoped>
.op0 {
opacity: 0;
}
.date_box_wrapper {
background: #ffffff;
margin-top: 2px;
cursor: pointer;
border-radius: 6px;
}
.month_wrapper {
display: flex;
}
.month_box_title_wrapper {
height: 40px;
line-height: 40px;
font-size: 20px;
background: #00000005;
}
.month_box_wrapper {
background: #00000010;
border: 1px #00000010 solid;
text-align: center;
border-radius: 6px;
overflow: hidden;
}
.form_checkbox_wrapper {
width: 300px;
}
.create {
background: #4b9d5f60;
}
</style>
<route>
{"meta":{"title":"超级订单管理"}}
</route>

@ -33,7 +33,10 @@ class HospitalExtraController extends Controller
$hospital_extra->content = '{"path":""}';
break;
case 'report':
$hospital_extra->content = '{"open":2}';
$hospital_extra->content = '{"open":0}';
break;
case 'profitsharing':
$hospital_extra->content = '{"open":0}';
break;
}
$hospital_extra->save();
@ -94,6 +97,25 @@ class HospitalExtraController extends Controller
]);
}
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();
@ -114,6 +136,7 @@ class HospitalExtraController extends Controller
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':
@ -137,6 +160,7 @@ class HospitalExtraController extends Controller
case 'card_pay':
case 'readme':
case 'report':
case 'profitsharing':
if ($hospital_extra_content['open'] == 0) $hospital_extra_content['open'] = 2;
break;
}

@ -0,0 +1,159 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\EditProfitsharingsInput;
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, ['分账记录']);
$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');
$max = $request->post('max');
$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->max = $max;
$p->desc = $desc;
$p->status = $status;
$p->save();
return Yo::create_echo($p->id);
}
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');
$max = $request->post('max');
$desc = $request->post('desc');
$status = $request->post('status');
$p->name = $name;
$p->type = $type;
$p->account = $account;
$p->formula = $formula;
$p->max = $max;
$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));
}
}

@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use App\Models\Appointment;
use App\Models\Hospital;
use App\Models\HospitalExtra;
use App\Models\ProfitsharingLog;
use App\Models\UserAccount;
use App\Models\UserOrder;
use App\Models\UserPerson;
@ -14,6 +15,7 @@ use Illuminate\Http\Request;
use Yo;
use Login;
use Lu;
use Illuminate\Support\Str;
class UserOrderController extends Controller
{
@ -36,6 +38,65 @@ class UserOrderController extends Controller
$user_order->check_status = 2;
$user_order->check_time = date('Y-m-d H:i:s');
$user_order->save();
$hospital_sharing_content = self::sharing_config($user_order->hospital, false);
if ($hospital_sharing_content['open'] == 1) {
$slc = ProfitsharingLog::where('order', $user_order->id)->first();
if (!$slc) {
$p = new ProfitsharingController();
$sharing = $p->sharing($user_order->id, $hospital_sharing_content['hospital']);
$receivers = [];
$sharing_map = [];
$price = $user_order->true_price;
foreach ($sharing as $item) {
$formula = $item->formula;
$item->formula = Str::replaceArray('$p', [$price], $item->formula);
foreach ($sharing_map as $k => $i) {
$item->formula = Str::replaceArray('$r' . ($k + 1), [$i['surplus']], $item->formula);
}
$amount = number_format($p->calculateExpression($item->formula), 2);
$receivers[] = [
'type' => $item->type == 1 ? 'MERCHANT_ID' : 'PERSONAL_OPENID',
'account' => $item->account,
'amount' => $amount * 100,
'description' => $item->desc
];
$sharing_map[] = [
'surplus' => $price - $amount,
'formula' => $formula,
];
}
if (count($receivers) != 0) {
$sharing_data = [
'transaction_id' => $user_order->transaction,
'receivers' => $receivers
];
$hospital_extra_content = self::pay_config($user_order->hospital);
$wcp = new WeChatPayController();
$builder_config = [
'appid' => env('WX_APP_ID'),
'pem_path' => base_path() . $hospital_extra_content['wxp']['key'],
'cer_path' => base_path() . $hospital_extra_content['wxp']['crt'],
'cer_num' => $hospital_extra_content['wxp']['number'],
'mchid' => $hospital_extra_content['wxp']['id'],
'v3' => $hospital_extra_content['wxp']['v3'],
];
$wcp->builder($builder_config);
$res = $wcp->profitsharing($sharing_data);
$sl = new ProfitsharingLog();
$sl->hospital = $user_order->hospital;
$sl->order = $user_order->id;
$sl->builder = json_encode($builder_config, JSON_UNESCAPED_UNICODE);
$sl->receivers = json_encode($receivers, JSON_UNESCAPED_UNICODE);
$sl->sharing = json_encode($sharing_map, JSON_UNESCAPED_UNICODE);
$sl->response = json_encode($res, JSON_UNESCAPED_UNICODE);
$sl->recover = '{}';
$sl->status = 1;
$sl->save();
}
}
}
} else {
// 删除
$user_order->status = 3;
@ -46,7 +107,7 @@ class UserOrderController extends Controller
$appointment->save();
}
}
Yo::update_echo($appointment_number);
return Yo::update_echo($appointment_number);
}
public function create_appointment($hospital, $data)
@ -492,6 +553,35 @@ class UserOrderController extends Controller
return $hospital_extra_content;
}
public function sharing_config($hospital, $error = true)
{
$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);
if ($hospital_extra_content['open'] == 0) {
$hospital_extra_content = [
'open' => $hospital_extra_public_content['open'],
'hospital' => 0
];
} else {
$hospital_extra_content = [
'open' => $hospital_extra_content['open'],
'hospital' => $hospital
];
}
} else {
$hospital_extra_content = [
'open' => $hospital_extra_public_content['open'],
'hospital' => 0
];;
}
if ($hospital_extra_content['open'] == 0) $hospital_extra_content['open'] = 2;
return $hospital_extra_content;
}
public function admin_list(Request $request)
{
Login::admin([], [26, 30]);
@ -622,6 +712,7 @@ class UserOrderController extends Controller
if ($order_info->true_price == 0) $pay_type = 3;
if ($order_info->true_price > 0 && $pay_type == 3) $pay_type = 1;
$hospital_extra_content = self::pay_config($order_info->hospital, false);
$hospital_sharing_content = self::sharing_config($order_info->hospital, false);
if ($pay_type == 1 && $hospital_extra_content['wxp']['open'] == 2) $pay_type = 3;
switch ($pay_type) {
case 1:
@ -654,6 +745,7 @@ class UserOrderController extends Controller
'notify_url' => env('APP_URL') . '/api/Pay/Wxp/callback/' . $order_info->hospital,
'total' => $order_info->true_price * 100,
'openid' => $user_account_info->account,
'profit_sharing' => $hospital_sharing_content['open'] == 1,
]);
$order_info->pay_type = 1;
$order_info->save();

@ -109,7 +109,7 @@ class WeChatPayController extends Controller
'openid' => $config['openid']
],
'settle_info' => [
'profit_sharing' => true
'profit_sharing' => $config['profit_sharing'],
]
];
$resp = self::$mp_instance
@ -118,7 +118,6 @@ class WeChatPayController extends Controller
'json' => $post_data,
]);
$res = json_decode($resp->getBody(), true);
} catch (\Exception $e) {
if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {
$r = $e->getResponse();
@ -150,6 +149,51 @@ class WeChatPayController extends Controller
];
}
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;

@ -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,200'],
'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,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Profitsharing extends Model
{
use HasFactory;
}

@ -0,0 +1,17 @@
<?php
namespace App\Models;
use DateTimeInterface;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProfitsharingLog extends Model
{
use HasFactory;
public function serializeDate(DateTimeInterface $date)
{
return $date->format('Y-m-d H:i:s');
}
}

@ -11,6 +11,7 @@
"laravel/framework": "^8.75",
"laravel/sanctum": "^2.11",
"laravel/tinker": "^2.5",
"symfony/expression-language": "^5.4",
"wechatpay/wechatpay": "^1.4"
},
"require-dev": {

@ -128,4 +128,12 @@ return [
200080 => '订单未付款',
200081 => '此项无数据',
200082 => '请输入分账账号',
200083 => '分账账号长度在1-50位字符之间',
200084 => '请输入分账公式',
200085 => '分账账号长度在1-200位字符之间',
200086 => '描述长度在80位字符以内',
200087 => '请输入分账名称',
200088 => '分账名称长度在1-50位字符之间',
];

@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProfitsharingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('profitsharings', function (Blueprint $table) {
$table->id();
$table->bigInteger('hospital')->default(0)->index();
$table->tinyInteger('type')->comment('1-商户 MERCHANT_ID 2-个人 PERSONAL_OPENID');
$table->string('account', 50);
$table->string('formula', 200);
$table->decimal('max')->comment('最大金额 0-不限制');
$table->string('desc', 80);
$table->tinyInteger('status');
$table->tinyInteger('del')->default(2);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('profitsharings');
}
}

@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProfitsharingLogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('profitsharing_logs', function (Blueprint $table) {
$table->id();
$table->bigInteger('hospital')->index();
$table->bigInteger('order')->index();
$table->string('builder', 1000);
$table->string('receivers', 1000);
$table->string('sharing', 1000);
$table->longText('response');
$table->longText('recover');
$table->tinyInteger('status')->comment('1-已分账 2-已追回');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('profitsharing_logs');
}
}

@ -21,11 +21,21 @@ Route::get('/', function () {
Route::any('api/yo', \App\Http\Controllers\YoController::class);
Route::post("api/In/Order/update", [\App\Http\Controllers\UserOrderController::class, 'check_order']);
Route::post("api/Pay/Wxp/callback/{id}", [\App\Http\Controllers\UserOrderController::class, 'callback']);
Route::post("api/$admin_api/ProfitsharingLog/list", [\App\Http\Controllers\ProfitsharingLogController::class, 'list']);
Route::post("api/$admin_api/UserOrder/cancel", [\App\Http\Controllers\UserOrderController::class, 'admin_cancel']);
Route::post("api/$admin_api/UserOrder/refund", [\App\Http\Controllers\UserOrderController::class, 'admin_refund']);
Route::post("api/$admin_api/UserOrder/list", [\App\Http\Controllers\UserOrderController::class, 'admin_list']);
Route::post("api/$admin_api/Hospital/edit", [\App\Http\Controllers\HospitalController::class, 'hospital_update']);
Route::post("api/$admin_api/Hospital/info", [\App\Http\Controllers\HospitalController::class, 'hospital_info']);
Route::post("api/$admin_api/HospitalExtra/profitsharing_status", [\App\Http\Controllers\HospitalExtraController::class, 'profitsharing_status']);
Route::post("api/$admin_api/Profitsharing/recover", [\App\Http\Controllers\ProfitsharingController::class, 'recover']);
Route::post("api/$admin_api/Profitsharing/create", [\App\Http\Controllers\ProfitsharingController::class, 'create']);
Route::post("api/$admin_api/Profitsharing/update", [\App\Http\Controllers\ProfitsharingController::class, 'update']);
Route::post("api/$admin_api/Profitsharing/delete", [\App\Http\Controllers\ProfitsharingController::class, 'delete']);
Route::post("api/$admin_api/Profitsharing/list", [\App\Http\Controllers\ProfitsharingController::class, 'list']);
Route::post("api/$mp_api/Question/push", [\App\Http\Controllers\HospitalQuestionController::class, 'push']);
Route::post("api/$mp_api/Question/save", [\App\Http\Controllers\HospitalQuestionLogController::class, 'save']);

Loading…
Cancel
Save