#
lsh
2024-06-28 271f8ac3fc635fcf96d3226dc7d37f81c9755c2b
src/main/resources/mapper/BasJarMastMapper.xml
@@ -53,6 +53,20 @@
        order by jar_loc_digit desc
    </select>
    <select id="getJarMastByJarIdAndStatusListB" resultMap="BaseResultMap">
        select * from asr_bas_jar_mast
        where 1=1
        and
        (
        status in
        <foreach collection="statusList" item="status" index="index" open="(" close=")" separator=",">
            #{status}
        </foreach>
        )
        and burial = #{jarId}
        order by jar_loc_digit desc
    </select>
    <select id="getJarMastByJarIdMax" resultMap="BaseResultMap">
        select top 1 * from asr_bas_jar_mast
        where 1=1
@@ -67,6 +81,20 @@
        order by jar_loc_digit desc
    </select>
    <select id="getJarMastByJarIdMaxB" resultMap="BaseResultMap">
        select top 1 * from asr_bas_jar_mast
        where 1=1
        and
        (
        status in
        <foreach collection="statusList" item="status" index="index" open="(" close=")" separator=",">
            #{status}
        </foreach>
        )
        and burial = #{jarId}
        order by jar_loc_digit desc
    </select>
    <select id="getJarMastByJarIdMin" resultMap="BaseResultMap">
        select top 1 * from asr_bas_jar_mast
        where 1=1
@@ -81,6 +109,20 @@
        order by jar_loc_digit asc
    </select>
    <select id="getJarMastByJarIdMinB" resultMap="BaseResultMap">
        select top 1 * from asr_bas_jar_mast
        where 1=1
        and
        (
        status in
        <foreach collection="statusList" item="status" index="index" open="(" close=")" separator=",">
            #{status}
        </foreach>
        )
        and burial = #{jarId}
        order by jar_loc_digit asc
    </select>
    <select id="getJarMastByJarIdCount" resultType="Integer">
        select count(1) from asr_bas_jar_mast
        where 1=1