zss
2023-09-24 68f6642d4d1fff10c6bd898d69dd7bff27adbc16
inspect-server/src/main/resources/mapper/ProcessInspectMapper.xml
@@ -1,6 +1,11 @@
<?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"/>
@@ -14,7 +19,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">
@@ -22,7 +27,7 @@
               code,
               specifications,
               unit,
               technology_id technologyId,
               mt.id  mtId,
               techfather,
               techname
        from mom_ocean.manual_technology mt