select sps.id, sps.project_id, sps.dept_id, sd.dept_name, sps.image_file, sps.standard_desc, sps.ord, sps.standard_type, sdd.dict_label as standard_type_name, sdd.remark as standard_type_remark, sps.is_del, sps.create_by, sps.create_time, sps.update_by, sps.update_time from sur_project_standard sps
left join sys_dict_data sdd on sps.standard_type = sdd.dict_value and sdd.dict_type='prj_standard_type'
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}