修正部分sql拼接错误问题

master
lyf666 2017-09-27 18:10:11 +08:00
parent eefd03b841
commit fdb56b58d1
1 changed files with 2 additions and 2 deletions

View File

@ -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())}')
""" """
} }