| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.yuanchu.mom.mapper.TechniqueMapper"> |
| | | <!--根据技术指标id删除--> |
| | | <update id="delByProId"> |
| | | update mom_ocean.technique |
| | | set state=0 |
| | | where technology_id = (select technology_id from mom_ocean.product where product.id = #{id}) |
| | | and product_father = (select father from mom_ocean.product where product.id = #{id}) |
| | | and product = (select name from mom_ocean.product where product.id = #{id}) |
| | | </update> |
| | | <!--根据技术指标id批量删除--> |
| | | <update id="delAll"> |
| | | update mom_ocean.technique |
| | | set state=0 |
| | | where technology_id in (select technology_id from mom_ocean.product where product.id in (${ids})) |
| | | and product_father in (select father from mom_ocean.product where product.id in (${ids})) |
| | | and product in (select name from mom_ocean.product where product.id in (${ids})) |
| | | </update> |
| | | <!--根据型号id查询所有版本--> |
| | | <select id="selectVerByTeq" resultType="java.lang.Integer"> |
| | | select distinct version |