zss
2023-09-25 a3f47b5e065878e5f41699ac1c597fd9ac9c4a21
inspect-server/src/main/resources/mapper/ProcessInspectMapper.xml
@@ -2,10 +2,6 @@
<!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"/>
@@ -19,7 +15,7 @@
        <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">
@@ -27,7 +23,7 @@
               code,
               specifications,
               unit,
               technology_id technologyId,
               mt.id  mtId,
               techfather,
               techname
        from mom_ocean.manual_technology mt
@@ -124,4 +120,4 @@
            and result =#{result}
        </if>
    </select>
</mapper>
</mapper>