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'
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}