| | |
| | | <collection property="children" resultMap="threeMap" javaType="List"/> |
| | | </resultMap> |
| | | <resultMap id="threeMap" type="map"> |
| | | <id property="tqid" column="tqid"/> |
| | | <result property="device" column="device"/> |
| | | <collection property="children" resultMap="fourMap" javaType="List"/> |
| | | </resultMap> |
| | | <resultMap id="fourMap" type="map"> |
| | | <result property="productFather" column="product_father"/> |
| | | <collection property="children" resultMap="fiveMap" javaType="List"/> |
| | | </resultMap> |
| | | <resultMap id="fiveMap" type="map"> |
| | | <id property="tqid" column="tqid"/> |
| | | <result property="product" column="product"/> |
| | | <result property="unit" column="unit"/> |
| | | </resultMap> |
| | |
| | | and version = #{ver} |
| | | </select> |
| | | |
| | | <!--根据id查看详情--> |
| | | <select id="selTeqById" resultType="java.util.Map"> |
| | | select m.father, |
| | | type, |
| | | m.name, |
| | | st.name, |
| | | sp.name, |
| | | t.father, |
| | | t.name, |
| | | technology_id, |
| | | device, |
| | | product_father, |
| | | product, |
| | | unit |
| | | from mom_ocean.technique tq |
| | | left join mom_ocean.technology t on tq.technology_id = t.id |
| | | left join mom_ocean.specifications sp on t.specifications_id = sp.id |
| | | left join mom_ocean.standard st on sp.standard_id = st.id |
| | | left join mom_ocean.material m on st.material_id = m.id |
| | | where tq.state = 1 |
| | | and tq.id = #{id} |
| | | </select> |
| | | |
| | | <!--根据工艺路线id删除生产工艺--> |
| | | <update id="delTeqByTecId"> |
| | | update mom_ocean.technique |