HashMap<String, String> infoBySortUp(@Param("orgnCode") String orgnCode, @Param("sectionCode") String sectionCode, @Param("sortId") String sortId);
<select id="infoBySortUp" resultType="java.util.HashMap">
SELECT top 1 ID id, SORT_ID sortId
from NEMR_SET_SHIFT
WHERE ORGN_CODE = #{orgnCode}
AND SECTION_CODE = #{sectionCode}
AND SORT_ID < #{sortId}
ORDER BY SORT_ID DESC
</select>
java复制代码
HashMap<String, String> infoBySortDown(@Param("orgnCode") String orgnCode, @Param("sectionCode") String sectionCode, @Param("sortId") String sortId);
<select id="infoBySortDown" resultType="java.util.HashMap">
SELECT top 1 ID id, SORT_ID sortId
from NEMR_SET_SHIFT
WHERE ORGN_CODE = #{orgnCode}
AND SECTION_CODE = #{sectionCode}
AND SORT_ID > #{sortId}
ORDER BY SORT_ID asc
</select>
java复制代码
HashMap<String, String> infoBySortTop(@Param("orgnCode") String orgnCode, @Param("sectionCode") String sectionCode);
<select id="infoBySortTop" resultType="java.util.HashMap">
SELECT top 1 ID id, SORT_ID sortId
FROM NEMR_SET_SHIFT(nolock)
WHERE ORGN_CODE = #{orgnCode}
AND SECTION_CODE = #{sectionCode}
order by SORT_ID asc
</select>
java复制代码
HashMap<String, String> infoBySortTop(@Param("orgnCode") String orgnCode, @Param("sectionCode") String sectionCode);
<select id="infoBySortTop" resultType="java.util.HashMap">
SELECT top 1 ID id, SORT_ID sortId
FROM NEMR_SET_SHIFT(nolock)
WHERE ORGN_CODE = #{orgnCode}
AND SECTION_CODE = #{sectionCode}
order by SORT_ID asc
</select>