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.show_order
, t.creator
, t.delete_type
, t.create_time
, t.update_time
, t.uuid
and ifnull(parent_company,'0')='0'
and isnull(parent_company,'0')='0'
and NVL(parent_company,'0')='0'
and ifnull(parent_company,0) =
#{parentCompany}
and isnull(parent_company,0) =
#{parentCompany}
and NVL(parent_company,0) =
#{parentCompany}
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,
show_order,
#{creator},
#{deleteType},
#{createTime},
#{updateTime},
#{compNo},
#{compName},
#{compNameShort},
#{parentCompany},
#{orgCode},
#{industry},
#{compPrincipal},
#{description},
0,
#{showOrder},
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},
show_order=#{showOrder},
WHERE id = #{id} AND delete_type = 0
and t.comp_no like CONCAT('%',#{compPO.compNo},'%')
and t.comp_name like CONCAT('%',#{compPO.compName},'%')
and t.comp_name_short like CONCAT('%',#{compPO.compNameShort},'%')
and t.org_code like CONCAT('%',#{compPO.orgCode},'%')
and t.comp_no like '%'||#{compPO.compNo}||'%'
and t.comp_name like '%'||#{compPO.compName}||'%'
and t.comp_name_short like '%'||#{compPO.compNameShort}||'%'
and t.org_code like '%'||#{compPO.orgCode}||'%'
and t.comp_no like '%'+#{compPO.compNo}+'%'
and t.comp_name like '%'+#{compPO.compName}+'%'
and t.comp_name_short like '%'+#{compPO.compNameShort}+'%'
and t.org_code like '%'+#{compPO.orgCode}+'%'