select id,
name,
father
from mom_ocean.technology_template
where state=1
and type=#{type}
and name like concat('%',#{message},'%')
select id,
father,
name,
unit
from mom_ocean.technical_model
where state = 1
and tech_tem_id = #{id}
select id,
name techName,
father techFather
from mom_ocean.technology_template
where state = 1
and type = #{type}
select distinct father
from mom_ocean.technical_model
where state = 1
and tech_tem_id = #{id}
select technical_model.father,
technical_model.name,
unit,
technology_template.name techName,
technology_template.father techFather,
type
from mom_ocean.technical_model,
mom_ocean.technology_template
where technical_model.state = 1
and technology_template.id = tech_tem_id
and technical_model.id = #{id}
update mom_ocean.technical_model
set state=0
where id in (${ids})
update mom_ocean.technical_model
set state=0
where tech_tem_id=#{id}
update mom_ocean.technical_model
set state=0
where tech_tem_id in (${ids})