| | |
| | | <?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.ProcessInspectMapper"> |
| | | |
| | | <!--将检验状态修改为null--> |
| | | <update id="updById"> |
| | | update mom_ocean.process_inspect set result=null where id=#{rawInspectId} |
| | | </update> |
| | | <!--新增过程检验单-根据订单号选择产品信息和工艺--> |
| | | <resultMap id="oneMap" type="map"> |
| | | <id property="name" column="material"/> |
| | |
| | | <collection property="children" resultMap="threeMap" javaType="List"/> |
| | | </resultMap> |
| | | <resultMap id="threeMap" type="map"> |
| | | <id property="id" column="technologyId"/> |
| | | <id property="id" column="mtId"/> |
| | | <result property="name" column="techname"/> |
| | | </resultMap> |
| | | <select id="chooseMater" resultMap="oneMap"> |
| | |
| | | code, |
| | | specifications, |
| | | unit, |
| | | technology_id technologyId, |
| | | mt.id mtId, |
| | | techfather, |
| | | techname |
| | | from mom_ocean.manual_technology mt |