투표 용어집 수정
This commit is contained in:
parent
66fbd4fdad
commit
eb17f1a14e
@ -30,7 +30,7 @@ public class VoteBoardController {
|
||||
|
||||
/**
|
||||
* 투표목록조회
|
||||
* @param page 페이지번호 , myVote 내가한투표 :1 투표안한것 :0 , 전체:0,투표마감:1,투표중:2
|
||||
* @param page 페이지번호 , myVote 내가한투표 :1 투표안한것 :0 , 전체:0, voteset 투표마감:1,투표중:2
|
||||
* @return
|
||||
*/
|
||||
@Member
|
||||
|
||||
@ -38,6 +38,11 @@ public class worddictyService {
|
||||
private final FileService fileService;
|
||||
|
||||
public List<MapDto> selectWordList(MapDto map) {
|
||||
if( map.getString("pageNum") != null) {
|
||||
String pageNumStr = map.getString("pageNum");
|
||||
int pageNum = Integer.parseInt(pageNumStr);
|
||||
map.put("pageNum", pageNum);
|
||||
}
|
||||
List<MapDto> wordList = worddictymapper.selectWordList(map);
|
||||
String keyword = map.getString("searchKeyword");
|
||||
|
||||
|
||||
@ -78,6 +78,10 @@
|
||||
AND myvoted = 'Y'
|
||||
AND LOCVOTDEL IS NULL
|
||||
</when>
|
||||
<when test='myVote == "2"' >
|
||||
AND myvoted = 'N'
|
||||
AND LOCVOTDEL IS NULL
|
||||
</when>
|
||||
</choose>
|
||||
</if>
|
||||
ORDER BY formatted_LOCVOTRDT DESC
|
||||
|
||||
@ -183,6 +183,9 @@
|
||||
and w.WRDDICEDT IS NULL
|
||||
<include refid="searchConditions"/>
|
||||
order by w.WRDDICRDT desc
|
||||
<if test="pageNum != null and pageNum != ''">
|
||||
limit #{pageNum}
|
||||
</if>
|
||||
</select>
|
||||
<select id="getTotal" parameterType="map" >
|
||||
select count(*) from worddicty w
|
||||
|
||||
Loading…
Reference in New Issue
Block a user