select distinct version
from mom_ocean.mbom
where state = 1
and technology_id in (select id
from mom_ocean.technology
where technology.state = 1
and specifications_id = #{specificationsId})
order by version desc
select m.id mid,
m.name mname,
unit,
num,
specifications,
t.name tname,
father
from mom_ocean.mbom m
left join mom_ocean.technology t on m.technology_id = t.id
where m.state = 1
and m.version = #{version}
and specifications_id = #{specificationsId}
and m.name like concat('%',#{message},'%')
select *
from mom_ocean.mbom
where state = 1
and version = #{version}
and technology_id in (select id
from mom_ocean.technology
where technology.state = 1
and specifications_id = #{specificationsId})
update mom_ocean.mbom
set state=0
where technology_id = #{id}
update mom_ocean.mbom
set state=0
where technology_id in (${ids})
update mom_ocean.mbom
set state=0
where id in (${ids})