paging 추가

master
mjkhan21 6 months ago
parent cfaf49154f
commit 4ebeedb6a3

@ -103,6 +103,7 @@ public class ActionGroupBean extends AbstractComponent {
* @return * @return
*/ */
public List<DataObject> getActionList(ActionQuery req) { public List<DataObject> getActionList(ActionQuery req) {
req.setOrderBy("GRP_ID, ACTION");
return actionGroupMapper.getActionList(req); return actionGroupMapper.getActionList(req);
} }

@ -48,11 +48,12 @@ DELETE FROM TB_ACTION_GRP
WHERE GRP_ID IN (<foreach collection="groupIDs" item="groupID" separator=",">#{groupID}</foreach>)</delete> WHERE GRP_ID IN (<foreach collection="groupIDs" item="groupID" separator=",">#{groupID}</foreach>)</delete>
<select id="getActionList" parameterType="map" resultType="dataobject">/* 그룹별 기능 가져오기(actionGroupMapper.getActionList) */ <select id="getActionList" parameterType="map" resultType="dataobject">/* 그룹별 기능 가져오기(actionGroupMapper.getActionList) */
<include refid="utility.paging-prefix" />
SELECT * SELECT *
FROM TB_GRP_ACTION FROM TB_GRP_ACTION
<if test="groupIDs != null">WHERE GRP_ID IN (<foreach collection="groupIDs" item="groupID" separator=",">#{groupID}</foreach>)</if> <if test="groupIDs != null">WHERE GRP_ID IN (<foreach collection="groupIDs" item="groupID" separator=",">#{groupID}</foreach>)</if>
ORDER BY GRP_ID, ACTION <include refid="utility.orderBy" />
</select> <include refid="utility.paging-suffix" /></select>
<insert id="addActions" parameterType="map">/* 그룹별 기능 추가(actionGroupMapper.addActions) */ <insert id="addActions" parameterType="map">/* 그룹별 기능 추가(actionGroupMapper.addActions) */
INSERT INTO TB_GRP_ACTION (GRP_ID, ACTION, REG_DT, RGTR) INSERT INTO TB_GRP_ACTION (GRP_ID, ACTION, REG_DT, RGTR)

Loading…
Cancel
Save