#
lsh
2024-06-21 3fd78eacff528f59e625be99ebadfb7609c8f265
src/main/resources/mapper/BasJarMastMapper.xml
@@ -20,7 +20,35 @@
        <result column="io_time" property="ioTime" />
        <result column="modi_time" property="modiTime" />
        <result column="appe_time" property="appeTime" />
        <result column="jar_loc_digit" property="jarLocDigit" />
    </resultMap>
    <select id="getJarMastByJarId" resultMap="BaseResultMap">
        select * from asr_bas_jar_mast
        where 1=1
        and jar_id = #{jarId}
        order by jar_loc_digit
    </select>
    <select id="getJarMastByJarIdMax" resultMap="BaseResultMap">
        select top 1 * from asr_bas_jar_mast
        where 1=1
          and jar_id = #{jarId}
        order by jar_loc_digit desc
    </select>
    <select id="getJarMastByJarIdMin" resultMap="BaseResultMap">
        select top 1 * from asr_bas_jar_mast
        where 1=1
          and jar_id = #{jarId}
        order by jar_loc_digit asc
    </select>
    <select id="getJarMastByJarIdCount" resultType="Integer">
        select count(1) from asr_bas_jar_mast
        where 1=1
        and jar_id = #{jarId}
    </select>
</mapper>