修正部分sql拼接错误问题
parent
eefd03b841
commit
fdb56b58d1
|
|
@ -85,7 +85,7 @@ fun rsToPerm(rs: ResultSet): ModelPerm {
|
||||||
|
|
||||||
fun permToInsertSQL(perm: ModelPerm): String {
|
fun permToInsertSQL(perm: ModelPerm): String {
|
||||||
return """
|
return """
|
||||||
insert into `role`(description,perm,createTime)
|
insert into `perm`(description,perm,createTime)
|
||||||
values('${perm.description}','${perm.perm}','${Timestamp.from(Instant.now())}')
|
values('${perm.description}','${perm.perm}','${Timestamp.from(Instant.now())}')
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
@ -102,7 +102,7 @@ fun rsToMenu(rs: ResultSet): ModelMenu {
|
||||||
|
|
||||||
fun menuToInsertSQL(menu: ModelMenu): String {
|
fun menuToInsertSQL(menu: ModelMenu): String {
|
||||||
return """
|
return """
|
||||||
insert into `role`(description,url,permId,createTime)
|
insert into `menu`(description,url,permId,createTime)
|
||||||
values('${menu.description}','${menu.description}','${menu.permId}','${Timestamp.from(Instant.now())}')
|
values('${menu.description}','${menu.description}','${menu.permId}','${Timestamp.from(Instant.now())}')
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue