t_table
id,
table_name,
class_name,
show_name,
show_style,
project_id
table_name=#{tableName},
class_name=#{className},
show_name=#{showName},
show_style=#{showStyle},
project_id=#{projectId},
where 1=1
and id=#{id}
and table_name=#{tableName}
and class_name=#{className}
and show_name=#{showName}
and show_style=#{showStyle}
and project_id=#{projectId}
SELECT LAST_INSERT_ID() AS id
insert into
(
table_name,
class_name,
show_name,
show_style,
project_id
)
values
(
#{tableName},
#{className},
#{showName},
#{showStyle},
#{projectId}
)
insert into
(
table_name,
class_name,
show_name,
show_style,
project_id
)
values
(
#{t.tableName},
#{t.className},
#{t.showName},
#{t.showStyle},
#{t.projectId}
)
update
set
where id = #{id}
update
set
where id = #{id}
delete from
where id = #{id}
delete
tt
from
t_table as tt, t_project as tp
where
tt.project_id = tp.id
and tp.id = #{projectId}