#
lsh
2024-06-22 5a0f4ce17e31d84068bdb2f62d5bb7ef27f87d0f
src/main/resources/mapper/BasJarMastMapper.xml
@@ -21,14 +21,22 @@
        <result column="modi_time" property="modiTime" />
        <result column="appe_time" property="appeTime" />
        <result column="jar_loc_digit" property="jarLocDigit" />
        <result column="burial" property="burial" />
    </resultMap>
    <select id="getJarMastByWrkNo" resultMap="BaseResultMap">
        select top 1 * from asr_bas_jar_mast
        where 1=1
          and wrk_no = #{wrkNo}
        order by jar_loc_digit desc
    </select>
    <select id="getJarMastByJarId" resultMap="BaseResultMap">
        select * from asr_bas_jar_mast
        where 1=1
        and jar_id = #{jarId}
        order by jar_loc_digit
        order by jar_loc_digit desc
    </select>
    <select id="getJarMastByJarIdMax" resultMap="BaseResultMap">
@@ -54,29 +62,29 @@
    <select id="selectJarMastOperation1" resultType="Integer">
        select count(1) from asr_bas_jar_mast
        where 1=1
        and jar_id = #{jarId}
        and wrk_sts
          and jar_id = #{jarId}
          and wrk_sts in (0,1,2,3)
    </select>
    <select id="selectJarMastOperation2" resultType="Integer">
        select count(1) from asr_bas_jar_mast
        where 1=1
          and jar_id = #{jarId}
          and wrk_sts
          and wrk_sts in (4,5,6,7)
    </select>
    <select id="selectJarMastOperation3" resultType="Integer">
        select count(1) from asr_bas_jar_mast
        where 1=1
          and jar_id = #{jarId}
          and wrk_sts
          and wrk_sts in (0,1,2,3)
    </select>
    <select id="selectJarMastOperation4" resultType="Integer">
        select count(1) from asr_bas_jar_mast
        where 1=1
          and jar_id = #{jarId}
          and wrk_sts
          and wrk_sts in (0,1,2,3)
    </select>
</mapper>