select a.id,a.company_id,a.type_id,a.ma_id,a.num,b.create_by,b.update_by,a.create_time
from lease_scene_regist a
LEFT JOIN lease_team_info b on a.id=b.id
select a.id,a.company_id,a.type_id,a.ma_id,a.num,b.create_by,b.update_by,a.create_time
from lease_scene_regist a
LEFT JOIN lease_team_info b on a.id=b.id
type='1'
and a.company_id = #{companyId}
and a.type_id= #{typeId}
and a.ma_id = #{maId}
and a.num = #{num}
and a.create_time = #{createTime}
select a.id,a.company_id,a.type_id,a.ma_id,a.num,b.create_by,b.update_by,a.create_time
from lease_scene_regist a
LEFT JOIN lease_team_info b on a.id=b.id
type='2'
and a.company_id = #{companyId}
and a.type_id= #{typeId}
and a.ma_id = #{maId}
and a.num = #{num}
and a.create_time = #{createTime}
where id = #{id}