select
a.id,
b.parent_id as first_type,
c.name as first_type_str,
a.new_type,
b.name as new_type_str,
a.type,
a.title,
a.source_author,
a.abstracts,
a.image_path,
a.publish_time,
a.content,
a.link_url,
a.sort,
a.click_rate,
a.del_flag,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.remark,
a.file_path
from nd_new a
inner join nd_new_type b on a.new_type = b.id
inner join nd_new_type c on b.parent_id = c.id
select GROUP_CONCAT(b.name) as new_type_str,a.* from nd_new a
left join nd_new_type b on FIND_IN_SET(b.id,a.new_type)
insert into nd_new
new_type,type,title,source_author,abstracts,image_path,publish_time,content,link_url,sort,click_rate,del_flag,create_by,create_time,update_by,update_time,remark,file_path,#{newType},#{type},#{title},#{sourceAuthor},#{abstracts},#{imagePath},#{publishTime},#{content},#{linkUrl},#{sort},#{clickRate},#{delFlag},#{createBy},#{createTime},#{updateBy},#{updateTime},#{remark},#{filePath},
update nd_new
new_type = #{newType},type = #{type},title = #{title},source_author = #{sourceAuthor},abstracts = #{abstracts},image_path = #{imagePath},publish_time = #{publishTime},content = #{content},link_url = #{linkUrl},sort = #{sort},click_rate = #{clickRate},del_flag = #{delFlag},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},remark = #{remark},file_path = #{filePath},
where id = #{id}
delete from nd_new where id = #{id}
delete from nd_new where id in
#{id}