Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
medical-server
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
aiming-medical
medical-server
Commits
e9910fea
提交
e9910fea
authored
10月 08, 2023
作者:
zhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.订单相关接口丰富
2.修改部分数据库字段
上级
83379a5e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
130 行增加
和
95 行删除
+130
-95
OrderServiceImpl.java
...om/xwd/hospital/server/service/impl/OrderServiceImpl.java
+31
-1
V1.0.0__schema.sql
src/main/resources/db/migration/V1.0.0__schema.sql
+44
-39
V1.0.1__auth.sql
src/main/resources/db/migration/V1.0.1__auth.sql
+55
-55
没有找到文件。
src/main/java/com/xwd/hospital/server/service/impl/OrderServiceImpl.java
浏览文件 @
e9910fea
...
...
@@ -53,6 +53,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
private
PrescriptionOrderRecordService
prescriptionOrderRecordService
;
@Resource
private
OrderOperationService
orderOperationService
;
@Resource
private
OrderPictureService
orderPictureService
;
@Override
public
int
updateAllFieldsById
(
Order
entity
)
{
...
...
@@ -154,13 +156,35 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
order
.
setPatientName
(
patientInfo
.
getPatientName
());
order
.
setPatientSex
(
patientInfo
.
getSex
());
order
.
setPatientIdNo
(
patientInfo
.
getIdNo
());
order
.
setPatientPhoneNumber
(
patientInfo
.
getPhoneNumber
());
//如果存在监护人,则手机号码填写监护人的手机号码
if
(
patientInfo
.
getGuardianState
()
==
YesNoEnum
.
YES
){
order
.
setPatientPhoneNumber
(
patientInfo
.
getGuardianPhoneNumber
());
}
else
{
order
.
setPatientPhoneNumber
(
patientInfo
.
getPhoneNumber
());
}
order
.
setPatientBornDate
(
patientInfo
.
getBornDate
());
order
.
setPatientSelfIntroduce
(
createOrderDto
.
getPatientSelfIntroduce
());
order
.
setEditorId
(
sysUser
.
getId
());
order
.
setEditorName
(
sysUser
.
getUsername
());
this
.
save
(
order
);
//写入患者自述相关图片
if
(
null
!=
createOrderDto
.
getPictureList
()
&&
createOrderDto
.
getPictureList
().
size
()>
0
){
ArrayList
<
OrderPicture
>
orderPictures
=
new
ArrayList
<>();
for
(
String
picUrl:
createOrderDto
.
getPictureList
())
{
OrderPicture
orderPicture
=
new
OrderPicture
();
orderPicture
.
setOrderId
(
order
.
getId
());
orderPicture
.
setOrderNo
(
order
.
getOrderNo
());
orderPicture
.
setPatientSelfImage
(
picUrl
);
orderPicture
.
setEditorId
(
sysUser
.
getId
());
orderPicture
.
setEditorName
(
sysUser
.
getUsername
());
orderPictures
.
add
(
orderPicture
);
}
orderPictureService
.
saveBatch
(
orderPictures
);
}
//写入订单操作记录
OrderOperation
orderOperation
=
new
OrderOperation
();
orderOperation
.
setOrderId
(
order
.
getId
());
...
...
@@ -288,6 +312,11 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
order
.
setConfirmTime
(
new
Date
());
this
.
save
(
order
);
}
//todo 根据订单类型,写入相关记录表
//电话订单
if
(
order
.
getOrderType
()
==
OrderTypeEnum
.
TELEPHONE
){
}
return
order
;
}
...
...
@@ -311,6 +340,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
@Override
public
Order
callPhone
(
String
orderNo
)
{
//todo sdk接入
return
null
;
}
...
...
src/main/resources/db/migration/V1.0.0__schema.sql
浏览文件 @
e9910fea
...
...
@@ -433,7 +433,7 @@ create table `pms_prescription_order_record`
order_id
int
(
11
)
not
null
comment
'订单id'
,
order_no
varchar
(
255
)
not
null
comment
'订单号'
,
prescription_introduce
varchar
(
255
)
not
null
comment
'处方说明'
,
r
varchar
(
255
)
not
null
comment
'处方图片'
,
prescription_image
varchar
(
255
)
not
null
comment
'处方图片'
,
editor_id
int
(
11
)
not
null
default
1
comment
'操作人Id'
,
editor_name
varchar
(
255
)
not
null
default
'admin'
comment
'操作人'
,
create_time
datetime
not
null
default
CURRENT_TIMESTAMP
comment
'创建时间'
,
...
...
@@ -447,7 +447,12 @@ create table `pms_phone_order_record`
id
int
(
11
)
auto_increment
not
null
comment
'Id'
,
order_id
int
(
11
)
not
null
comment
'订单id'
,
order_no
varchar
(
255
)
not
null
comment
'订单号'
,
phone_contact_time
varchar
(
255
)
not
null
comment
'电话咨询开始时间'
,
patient_phone_no
varchar
(
32
)
null
comment
'患者被叫号码'
,
proxy_phone_no
varchar
(
64
)
null
comment
'匿名小号号码'
,
mapping_id
varchar
(
255
)
null
comment
'唯一绑定id'
,
mapping_state
varchar
(
50
)
not
null
default
'NO'
comment
'是否解绑状态 [YES.是 NO.否]'
,
phone_contact_time
varchar
(
255
)
null
comment
'电话咨询开始时间'
,
phone_release_time
varchar
(
255
)
null
comment
'电话咨询结束时间'
,
editor_id
int
(
11
)
not
null
default
1
comment
'操作人Id'
,
editor_name
varchar
(
255
)
not
null
default
'admin'
comment
'操作人'
,
create_time
datetime
not
null
default
CURRENT_TIMESTAMP
comment
'创建时间'
,
...
...
@@ -615,89 +620,89 @@ create table `sys_role_authority`
create
unique
index
ix_id_no
on
`pms_doctor_info`
(
id_no
);
create
unique
index
ix_phone_number
on
`pms_doctor_info`
(
phone_number
);
create
unique
index
ix_
doctor_info_
id_no
on
`pms_doctor_info`
(
id_no
);
create
unique
index
ix_
doctor_info_
phone_number
on
`pms_doctor_info`
(
phone_number
);
create
index
ix_phone_number
on
`pms_doctor_family_address_info`
(
phone_number
);
create
index
ix_
doctor_family_address_info_
phone_number
on
`pms_doctor_family_address_info`
(
phone_number
);
create
unique
index
ix_id_no
on
`pms_user_info`
(
id_no
);
create
unique
index
ix_phone_number
on
`pms_user_info`
(
phone_number
);
create
unique
index
ix_
user_info_
id_no
on
`pms_user_info`
(
id_no
);
create
unique
index
ix_
user_info_
phone_number
on
`pms_user_info`
(
phone_number
);
create
index
ix_patient_id_no
on
`pms_medical_report`
(
patient_id_no
);
create
index
ix_
medical_report_
patient_id_no
on
`pms_medical_report`
(
patient_id_no
);
create
index
ix_coupon_type
on
`pms_coupon_info`
(
coupon_type
);
create
index
ix_coupon_
info_coupon_
type
on
`pms_coupon_info`
(
coupon_type
);
create
index
ix_coupon_id
on
`pms_user_coupon_info`
(
coupon_id
);
create
index
ix_coupon_type
on
`pms_user_coupon_info`
(
coupon_type
);
create
index
ix_
user_coupon_info_
coupon_id
on
`pms_user_coupon_info`
(
coupon_id
);
create
index
ix_
user_coupon_info_
coupon_type
on
`pms_user_coupon_info`
(
coupon_type
);
create
index
ix_user_info_id
on
`pms_user_attention_info`
(
user_info_id
);
create
index
ix_doctor_id
on
`pms_user_attention_info`
(
doctor_id
);
create
index
ix_user_
attention_info_user_
info_id
on
`pms_user_attention_info`
(
user_info_id
);
create
index
ix_
user_attention_info_
doctor_id
on
`pms_user_attention_info`
(
doctor_id
);
create
index
ix_patient_id
on
`pms_patient_prescription_info`
(
patient_id
);
create
index
ix_patient_
prescription_info_patient_
id
on
`pms_patient_prescription_info`
(
patient_id
);
create
index
ix_user_info_id
on
`pms_family_doctor`
(
user_info_id
);
create
index
ix_
family_doctor_
user_info_id
on
`pms_family_doctor`
(
user_info_id
);
create
unique
index
ix_order_no
on
`pms_order`
(
order_no
);
create
index
ix_order_state
on
`pms_order`
(
order_state
);
create
index
ix_order_type
on
`pms_order`
(
order_type
);
create
unique
index
ix_order_
order_
no
on
`pms_order`
(
order_no
);
create
index
ix_order_
order_
state
on
`pms_order`
(
order_state
);
create
index
ix_order_
order_
type
on
`pms_order`
(
order_type
);
create
index
ix_order_no
on
`pms_order_picture`
(
order_no
);
create
index
ix_order_
picture_order_
no
on
`pms_order_picture`
(
order_no
);
create
index
ix_order_no
on
`pms_order_operation`
(
order_no
);
create
index
ix_order_
operation_order_
no
on
`pms_order_operation`
(
order_no
);
create
index
ix_order_no
on
`pms_order_appraise`
(
order_no
);
create
index
ix_order_
appraise_order_
no
on
`pms_order_appraise`
(
order_no
);
create
index
ix_order_no
on
`pms_online_inquiry_order_record`
(
order_no
);
create
index
ix_o
nline_inquiry_order_record_o
rder_no
on
`pms_online_inquiry_order_record`
(
order_no
);
create
index
ix_order_no
on
`pms_prescription_order_record`
(
order_no
);
create
index
ix_
prescription_order_record_
order_no
on
`pms_prescription_order_record`
(
order_no
);
create
index
ix_order_no
on
`pms_phone_order_record`
(
order_no
);
create
index
ix_
phone_order_record_
order_no
on
`pms_phone_order_record`
(
order_no
);
create
unique
index
ix_order_no
on
`pms_order_pay`
(
order_no
);
create
unique
index
ix_pay_no
on
`pms_order_pay`
(
pay_no
);
create
unique
index
ix_order_
pay_order_
no
on
`pms_order_pay`
(
order_no
);
create
unique
index
ix_
order_pay_
pay_no
on
`pms_order_pay`
(
pay_no
);
create
unique
index
ix_order_no
on
`pms_order_refund`
(
order_no
);
create
unique
index
ix_refund_no
on
`pms_order_refund`
(
refund_no
);
create
unique
index
ix_order_
refund_order_
no
on
`pms_order_refund`
(
order_no
);
create
unique
index
ix_
order_refund_
refund_no
on
`pms_order_refund`
(
refund_no
);
create
index
ix_msg_type
on
`sys_message`
(
msg_type
);
create
index
ix_editor_id_create_time
on
`sys_message`
(
editor_id
,
create_time
);
create
index
ix_m
essage_m
sg_type
on
`sys_message`
(
msg_type
);
create
index
ix_
message_
editor_id_create_time
on
`sys_message`
(
editor_id
,
create_time
);
create
unique
index
ix_code
on
`sys_setting`
(
code
);
create
unique
index
ix_
setting_
code
on
`sys_setting`
(
code
);
create
index
ix_create_time
on
`sys_operation_log`
(
create_time
);
create
index
ix_
operation_log_
create_time
on
`sys_operation_log`
(
create_time
);
create
unique
index
ix_name
on
`sys_role`
(
name
);
create
unique
index
ix_
role_
name
on
`sys_role`
(
name
);
create
unique
index
ix_username
on
`sys_user`
(
username
);
create
unique
index
ix_phone
on
`sys_user`
(
phone
);
create
unique
index
ix_user
_user
name
on
`sys_user`
(
username
);
create
unique
index
ix_
user_
phone
on
`sys_user`
(
phone
);
create
unique
index
ix_name
on
`sys_authority`
(
name
);
create
index
ix_authority_id
on
`sys_authority`
(
authority_id
);
create
unique
index
ix_
authority_
name
on
`sys_authority`
(
name
);
create
index
ix_authority_
authority_
id
on
`sys_authority`
(
authority_id
);
create
index
ix_role_id
on
`sys_role_authority`
(
role_id
);
create
index
ix_authority_id
on
`sys_role_authority`
(
authority_id
);
create
index
ix_role_
authority_role_
id
on
`sys_role_authority`
(
role_id
);
create
index
ix_
role_authority_
authority_id
on
`sys_role_authority`
(
authority_id
);
src/main/resources/db/migration/V1.0.1__auth.sql
浏览文件 @
e9910fea
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_DASHBOARD'
,
'工作台'
,
1
,
'ant-design:aim-outlined'
,
'/dashboard/analysis/index'
,
'/dashboard'
,
null
,
true
,
false
);
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_DASHBOARD'
,
'工作台'
,
1
,
'ant-design:aim-outlined'
,
'/dashboard/analysis/index'
,
'/dashboard'
,
null
,
true
,
false
);
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_STATS'
,
'数据统计'
,
5
,
'ant-design:setting-outlined'
,
'LAYOUT'
,
'/stats'
,
null
,
true
,
false
);
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_STATS'
,
'数据统计'
,
5
,
'ant-design:setting-outlined'
,
'LAYOUT'
,
'/stats'
,
null
,
true
,
false
);
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_STATS_LIST'
,
'测试统计'
,
1
,
''
,
'/stats/test'
,
'/stats/test'
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_STATS_LIST'
and
b
.
name
=
'AUTH_STATS
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_STATS_DETAIL'
,
'人员统计'
,
2
,
''
,
'/stats/user'
,
'/stats/user'
,
null
,
true
,
true
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_STATS_DETAIL'
and
b
.
name
=
'AUTH_STATS
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_STATS_PHONE_DETAIL'
,
'设备统计'
,
3
,
''
,
'/stats/device'
,
'/stats/device'
,
null
,
true
,
true
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_STATS_PHONE_DETAIL'
and
b
.
name
=
'AUTH_STATS
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_STATS_LIST'
,
'测试统计'
,
1
,
''
,
'/stats/test'
,
'/stats/test'
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_STATS'
)
where
a
.
name
=
'AUTH_STATS_LIST
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_STATS_DETAIL'
,
'人员统计'
,
2
,
''
,
'/stats/user'
,
'/stats/user'
,
null
,
true
,
true
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_STATS'
)
where
a
.
name
=
'AUTH_STATS_DETAIL
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_STATS_PHONE_DETAIL'
,
'设备统计'
,
3
,
''
,
'/stats/device'
,
'/stats/device'
,
null
,
true
,
true
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_STATS'
)
where
a
.
name
=
'AUTH_STATS_PHONE_DETAIL
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM'
,
'系统设置'
,
9
,
'ant-design:setting-outlined'
,
'LAYOUT'
,
'/system'
,
null
,
true
,
false
);
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM'
,
'系统设置'
,
9
,
'ant-design:setting-outlined'
,
'LAYOUT'
,
'/system'
,
null
,
true
,
false
);
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_LOG'
,
'操作日志'
,
1
,
''
,
'/system/log/index'
,
'/system/log'
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_LOG'
and
b
.
name
=
'AUTH_SYSTEM
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_LOG:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_LOG:QUERY'
and
b
.
name
=
'AUTH_SYSTEM_LOG
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_LOG'
,
'操作日志'
,
1
,
''
,
'/system/log/index'
,
'/system/log'
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM'
)
where
a
.
name
=
'AUTH_SYSTEM_LOG
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_LOG:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_LOG'
)
where
a
.
name
=
'AUTH_SYSTEM_LOG:QUERY
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_SETTING'
,
'配置管理'
,
1
,
''
,
'/system/setting/index'
,
'/system/setting'
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_SETTING'
and
b
.
name
=
'AUTH_SYSTEM
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_SETTING:ADD'
,
'新增'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_SETTING:ADD'
and
b
.
name
=
'AUTH_SYSTEM_SETTING
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_SETTING:EDIT'
,
'修改'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_SETTING:EDIT'
and
b
.
name
=
'AUTH_SYSTEM_SETTING
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_SETTING:DELETE'
,
'删除'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_SETTING:DELETE'
and
b
.
name
=
'AUTH_SYSTEM_SETTING
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_SETTING:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_SETTING:QUERY'
and
b
.
name
=
'AUTH_SYSTEM_SETTING
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_SETTING'
,
'配置管理'
,
1
,
''
,
'/system/setting/index'
,
'/system/setting'
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM'
)
where
a
.
name
=
'AUTH_SYSTEM_SETTING
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_SETTING:ADD'
,
'新增'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_SETTING'
)
where
a
.
name
=
'AUTH_SYSTEM_SETTING:ADD
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_SETTING:EDIT'
,
'修改'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_SETTING'
)
where
a
.
name
=
'AUTH_SYSTEM_SETTING:EDIT
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_SETTING:DELETE'
,
'删除'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_SETTING'
)
where
a
.
name
=
'AUTH_SYSTEM_SETTING:DELETE
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_SETTING:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_SETTING'
)
where
a
.
name
=
'AUTH_SYSTEM_SETTING:QUERY
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_USER'
,
'用户管理'
,
1
,
''
,
'/system/user/index'
,
'/system/user'
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_USER'
and
b
.
name
=
'AUTH_SYSTEM
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_USER:ADD'
,
'新增'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_USER:ADD'
and
b
.
name
=
'AUTH_SYSTEM_USER
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_USER:EDIT'
,
'修改'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_USER:EDIT'
and
b
.
name
=
'AUTH_SYSTEM_USER
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_USER:DELETE'
,
'删除'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_USER:DELETE'
and
b
.
name
=
'AUTH_SYSTEM_USER
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_USER:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_USER:QUERY'
and
b
.
name
=
'AUTH_SYSTEM_USER
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_USER'
,
'用户管理'
,
1
,
''
,
'/system/user/index'
,
'/system/user'
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM'
)
where
a
.
name
=
'AUTH_SYSTEM_USER
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_USER:ADD'
,
'新增'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_USER'
)
where
a
.
name
=
'AUTH_SYSTEM_USER:ADD
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_USER:EDIT'
,
'修改'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_USER'
)
where
a
.
name
=
'AUTH_SYSTEM_USER:EDIT
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_USER:DELETE'
,
'删除'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_USER'
)
where
a
.
name
=
'AUTH_SYSTEM_USER:DELETE
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_USER:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_USER'
)
where
a
.
name
=
'AUTH_SYSTEM_USER:QUERY
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_USER_DETAIL'
,
'用户详情'
,
1
,
''
,
'/system/user/detail'
,
'/system/user/:id'
,
null
,
true
,
true
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_USER_DETAIL'
and
b
.
name
=
'AUTH_SYSTEM
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_ROLE'
,
'角色管理'
,
2
,
''
,
'/system/role/index'
,
'/system/role'
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_ROLE'
and
b
.
name
=
'AUTH_SYSTEM
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_ROLE:ADD'
,
'新增'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_ROLE:ADD'
and
b
.
name
=
'AUTH_SYSTEM_ROLE
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_ROLE:EDIT'
,
'修改'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_ROLE:EDIT'
and
b
.
name
=
'AUTH_SYSTEM_ROLE
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_ROLE:DELETE'
,
'删除'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_ROLE:DELETE'
and
b
.
name
=
'AUTH_SYSTEM_ROL
E'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_ROLE:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_ROLE:QUERY'
and
b
.
name
=
'AUTH_SYSTEM_ROLE
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_USER_DETAIL'
,
'用户详情'
,
1
,
''
,
'/system/user/detail'
,
'/system/user/:id'
,
null
,
true
,
true
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM'
)
where
a
.
name
=
'AUTH_SYSTEM_USER_DETAIL
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_ROLE'
,
'角色管理'
,
2
,
''
,
'/system/role/index'
,
'/system/role'
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM'
)
where
a
.
name
=
'AUTH_SYSTEM_ROLE
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_ROLE:ADD'
,
'新增'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_ROLE'
)
where
a
.
name
=
'AUTH_SYSTEM_ROLE:ADD
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_ROLE:EDIT'
,
'修改'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_ROLE'
)
where
a
.
name
=
'AUTH_SYSTEM_ROLE:EDIT
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_ROLE:DELETE'
,
'删除'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_ROLE'
)
where
a
.
name
=
'AUTH_SYSTEM_ROLE:DELET
E'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_ROLE:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_ROLE'
)
where
a
.
name
=
'AUTH_SYSTEM_ROLE:QUERY
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_AUTHORITY'
,
'权限管理'
,
3
,
''
,
'/system/authority/index'
,
'/system/authority'
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY'
and
b
.
name
=
'AUTH_SYSTEM
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_AUTHORITY:ADD'
,
'新增'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY:ADD'
and
b
.
name
=
'AUTH_SYSTEM_AUTHORITY
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_AUTHORITY:EDIT'
,
'修改'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY:EDIT'
and
b
.
name
=
'AUTH_SYSTEM_AUTHORITY
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_AUTHORITY:DELETE'
,
'删除'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY:DELETE'
and
b
.
name
=
'AUTH_SYSTEM_AUTHORITY
'
;
insert
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_AUTHORITY:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
,
sys_authority
b
set
a
.
authority_id
=
b
.
id
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY:QUERY'
and
b
.
name
=
'AUTH_SYSTEM_AUTHORIT
Y'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'MENU'
,
'AUTH_SYSTEM_AUTHORITY'
,
'权限管理'
,
3
,
''
,
'/system/authority/index'
,
'/system/authority'
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM'
)
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_AUTHORITY:ADD'
,
'新增'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_AUTHORITY'
)
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY:ADD
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_AUTHORITY:EDIT'
,
'修改'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_AUTHORITY'
)
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY:EDIT
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_AUTHORITY:DELETE'
,
'删除'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_AUTHORITY'
)
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY:DELETE
'
;
insert
into
sys_authority
(
type
,
name
,
title
,
sort_order
,
icon
,
component
,
path
,
redirect
,
keep_alive
,
hidden
)
values
(
'BUTTON'
,
'AUTH_SYSTEM_AUTHORITY:QUERY'
,
'查询'
,
0
,
null
,
null
,
null
,
null
,
true
,
false
);
update
sys_authority
a
set
a
.
authority_id
=
(
select
b
.
id
from
sys_authority
b
where
b
.
name
=
'AUTH_SYSTEM_AUTHORITY'
)
where
a
.
name
=
'AUTH_SYSTEM_AUTHORITY:QUER
Y'
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论