SELECT sps.id, sps.project_id, sps.dept_id, sd.dept_name, sps.image_file, sps.standard_desc, sps.ord, sps.standard_type,
sp.projectName remark,
sps.is_del, sps.create_by, sps.create_time, sps.update_by, sps.update_time
FROM sur_project_standard sps
LEFT JOIN sys_dept sd ON sd.dept_id = sps.dept_id
LEFT JOIN sur_project sp ON sp.id = sps.project_id
insert into sur_project_standard
project_id,
dept_id,
image_file,
standard_desc,
ord,
standard_type,
is_del,
create_by,
create_time,
update_by,
update_time,
#{projectId},
#{deptId},
#{imageFile},
#{standardDesc},
#{ord},
#{standardType},
#{isDel},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update sur_project_standard
project_id = #{projectId},
dept_id = #{deptId},
image_file = #{imageFile},
standard_desc = #{standardDesc},
ord = #{ord},
standard_type = #{standardType},
is_del = #{isDel},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
delete from sur_project_standard where id = #{id}
delete from sur_project_standard where id in
#{id}