t . id , t.comp_no , t.comp_name , t.comp_name_short , t.parent_company , t.org_code , t.industry , t.comp_principal , t.description , t.forbidden_tag , t.creator , t.delete_type , t.create_time , t.update_time and ifnull(parent_company,'0')='0' and isnull(parent_company,'0')='0' and NVL(parent_company,'0')='0' INSERT INTO jcl_org_comp creator, delete_type, create_time, update_time, comp_no, comp_name, comp_name_short, parent_company, org_code, industry, comp_principal, description, forbidden_tag, #{creator}, #{deleteType}, #{createTime}, #{updateTime}, #{compNo}, #{compName}, #{compNameShort}, #{parentCompany}, #{orgCode}, #{industry}, #{compPrincipal}, #{description}, 0, update jcl_org_comp forbidden_tag=#{forbiddenTag}, WHERE id = #{id} AND delete_type = 0 UPDATE jcl_org_comp SET delete_type = 1 WHERE delete_type = 0 AND id IN #{id} update jcl_org_comp creator=#{creator}, update_time=#{updateTime}, comp_name=#{compName}, comp_name_short=#{compNameShort}, parent_company=#{parentCompany}, org_code=#{orgCode}, industry=#{industry}, comp_principal=#{compPrincipal}, description=#{description}, WHERE id = #{id} AND delete_type = 0