XiaoRuby
2023-08-11 8936f5f9af4c6e0221b5a49f2c905efd4df58496
standard-server/src/main/resources/mapper/RawInsProductMapper.xml
@@ -15,4 +15,20 @@
    <select id="selectPageDevice" resultType="map">
    </select>
    <select id="inspectIdSelect" resultType="map">
        SELECT r.`name`, r.`specifications`, r.`user_name`
        FROM raw_inspect r, raw_ins_product p
        WHERE p.`id` = #{inspectId}
          AND p.`state` = 1
          AND r.`state` = 1
          AND r.`id` = p.`raw_inspect_id`
    </select>
    <select id="parentClassification" resultType="map">
        SELECT DISTINCT d.`father`
        FROM device d
        WHERE d.`state` = 1
          AND d.`father` IS NOT NULL
    </select>
</mapper>