XiaoRuby
2023-09-01 86adbb1544142dcfb48333dade822f81640607a6
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,13 +24,13 @@
    <!--查询技术指标维护列表 右边展示该工艺下的检验项目-->
    <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">
        <id property="id" column="id"/>
        <result property="name" column="name"/>
        <result property="unit" column="unit"/>
        <result property="name" column="unit"/>
    </resultMap>
    <select id="selectAllTechNam" resultMap="selectAllTechNamMap">
        select id,
@@ -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