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