zss
2023-07-26 f330903e12d38af89d61f16c96856924d241a0f2
standard-server/src/main/resources/mapper/SpecificationsMapper.xml
@@ -11,4 +11,14 @@
            AND s.`name` = #{specificationsName}
        </if>
    </select>
    <select id="selectSNameSNName" resultType="Map">
        select m.num,m.supplier,m.name m_name,m.location,m.batch,m.reel_number,concat(s.name,'/',sn.name) ss_name,s.voltage_level,s.cross_section,s.number_of_cores,s.instruct
        from material m,specifications s,serial_number sn
        where m.specifications_id = s.id
        and s.serial_id = sn.id
        and m.id = #{materialId}
        order by s.create_time desc
        limit 1
    </select>
</mapper>