| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |