zss
2023-09-13 a376a001494a12c04b6a2a04bf797cbd7198d1f7
base-server/src/main/resources/mapper/TechnicalModelMapper.xml
@@ -3,7 +3,7 @@
<mapper namespace="com.yuanchu.mom.mapper.TechnicalModelMapper">
    <!--查询技术指标维护列表 左边二级展示工序和工艺  -->
    <resultMap id="selectAllTechTemMap" type="map">
        <id property="father" column="father"/>
        <id property="name" column="father"/>
        <collection property="children" resultMap="selectAllTechTemTowMap" javaType="List"/>
    </resultMap>
    <resultMap id="selectAllTechTemTowMap" type="map">
@@ -24,7 +24,7 @@
    <!--查询技术指标维护列表 右边展示该工艺下的检验项目-->
    <resultMap id="selectAllTechNamMap" type="map">
        <id property="father" column="father"/>
        <id property="name" column="father"/>
        <collection property="children" resultMap="selectAllTechNamTowMap" javaType="List"/>
    </resultMap>
    <resultMap id="selectAllTechNamTowMap" type="map">
@@ -44,15 +44,15 @@
    <!--新增技术指标维护 选择工序和工艺-->
    <resultMap id="chooseTechFathMap" type="map">
        <id property="techFather" column="techFather"/>
        <id property="name" column="techFather"/>
        <collection property="children" resultMap="chooseTechFathTowMap" javaType="List"/>
    </resultMap>
    <resultMap id="chooseTechFathTowMap" type="map">
        <id property="id" column="id"/>
        <result property="techName" column="techName"/>
        <id property="id" column="techTemId"/>
        <result property="name" column="techName"/>
    </resultMap>
    <select id="chooseTechFath" resultMap="chooseTechFathMap">
        select id,
        select id     techTemId,
               name   techName,
               father techFather
        from mom_ocean.technology_template
@@ -73,6 +73,7 @@
        select technical_model.father,
               technical_model.name,
               unit,
               technology_template.id,
               technology_template.name   techName,
               technology_template.father techFather,
               type
@@ -93,8 +94,8 @@
    <!--删除根据工艺路线id-->
    <update id="delTeMoByTechId">
        update mom_ocean.technical_model
            set state=0
        where tech_tem_id=#{id}
        set state=0
        where tech_tem_id = #{id}
    </update>
    <!--批量删除根据工艺路线id-->