|
@@ -1,11 +1,54 @@
|
|
|
-<%--
|
|
|
|
|
- Created by IntelliJ IDEA.
|
|
|
|
|
- User: drew
|
|
|
|
|
- Date: 2018/12/26
|
|
|
|
|
- Time: 9:28 AM
|
|
|
|
|
- To change this template use File | Settings | File Templates.
|
|
|
|
|
---%>
|
|
|
|
|
|
|
+<%@ page import="com.thmodel.dbconnection.DbConnection" %>
|
|
|
|
|
+<%@ page import="org.jooq.impl.DSL" %>
|
|
|
|
|
+<%@ page import="org.jooq.DSLContext" %>
|
|
|
|
|
+<%@ page import="com.thmodel.util.JspUtils" %>
|
|
|
|
|
+<%@ page import="static com.thmodel.jooq.Tables.PARTTYSIGN" %>
|
|
|
|
|
+<%@ page import="org.jooq.Result" %>
|
|
|
|
|
+<%@ page import="static com.thmodel.jooq.Tables.MEMBERINFO" %>
|
|
|
|
|
+<%@ page import="static com.thmodel.jooq.Tables.MODELINFO" %>
|
|
|
|
|
+<%@ page import="org.jooq.Field" %>
|
|
|
|
|
+<%@ page import="static com.thmodel.jooq.Tables.*" %>
|
|
|
|
|
+<%@ page import="com.thmodel.util.DBRecordsPack" %>
|
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
|
|
|
|
+<%
|
|
|
|
|
+ int activitypk = JspUtils.getInt(request, session, "activitypk");
|
|
|
|
|
+ session.setAttribute("activitypk", activitypk);
|
|
|
|
|
+
|
|
|
|
|
+ int modelpk = JspUtils.getInt(request, "modelpk");
|
|
|
|
|
+ int memberpk = JspUtils.getInt(request, "memberpk");
|
|
|
|
|
+ String operator = request.getParameter("operator");
|
|
|
|
|
+ DSLContext ctx = DSL.using(DbConnection.getPara("MySQLURL"));
|
|
|
|
|
+ if ("signList".equals(operator)) {
|
|
|
|
|
+ int pageIndex = JspUtils.getInt(request, "page");
|
|
|
|
|
+ pageIndex = pageIndex == 0 ? 1 : pageIndex;
|
|
|
|
|
+ Field<Object> gift = ctx.select(DSL.ifnull(DSL.sum(GIFT_RECORD.COIN), 0))
|
|
|
|
|
+ .from(GIFT_RECORD)
|
|
|
|
|
+ .where(GIFT_RECORD.MODELPK.equal(MODELINFO.PK))
|
|
|
|
|
+ .and(GIFT_RECORD.ACTIVITYPK.equal(activitypk))
|
|
|
|
|
+ .and(GIFT_RECORD.ACCFLAG.equal(9))
|
|
|
|
|
+ .asField("gift");
|
|
|
|
|
+ Result list = ctx.select(PARTTYSIGN.PK, PARTTYSIGN.PIC, MEMBERINFO.PET, MODELINFO.PK.as("modelpk"), gift)
|
|
|
|
|
+ .from(PARTTYSIGN)
|
|
|
|
|
+ .join(MEMBERINFO).on(PARTTYSIGN.MEMBERPK.equal(MEMBERINFO.PK))
|
|
|
|
|
+ .join(MODELINFO).on(MODELINFO.MEMBERPK.equal(PARTTYSIGN.MEMBERPK))
|
|
|
|
|
+ .where(PARTTYSIGN.PARTTYPK.equal(activitypk))
|
|
|
|
|
+ .orderBy(PARTTYSIGN.PK.desc())
|
|
|
|
|
+ .limit(20 * (pageIndex - 1), 20)
|
|
|
|
|
+ .fetch();
|
|
|
|
|
+ JspUtils.writeJson(response, DBRecordsPack.Pack(list));
|
|
|
|
|
+ ctx.close();
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ pageContext.setAttribute("viewNum", ctx.select(DSL.sum(PARTTYSIGN.VIEW))
|
|
|
|
|
+ .from(PARTTYSIGN)
|
|
|
|
|
+ .where(PARTTYSIGN.PARTTYPK.equal(activitypk))
|
|
|
|
|
+ .fetchOne(0, int.class));
|
|
|
|
|
+ pageContext.setAttribute("signNum", ctx.selectCount().from(PARTTYSIGN)
|
|
|
|
|
+ .where(PARTTYSIGN.PARTTYPK.equal(activitypk))
|
|
|
|
|
+ .fetchOne(0, int.class));
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+%>
|
|
|
<html>
|
|
<html>
|
|
|
<head>
|
|
<head>
|
|
|
<title>谁是舞王模特大赛</title>
|
|
<title>谁是舞王模特大赛</title>
|
|
@@ -86,7 +129,7 @@
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
flex-grow: 1;
|
|
flex-grow: 1;
|
|
|
- text-decoration:none;
|
|
|
|
|
|
|
+ text-decoration: none;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.searchContent .item .title {
|
|
.searchContent .item .title {
|
|
@@ -115,9 +158,11 @@
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
margin: 0 15px;
|
|
margin: 0 15px;
|
|
|
}
|
|
}
|
|
|
- .searchContent .searchBtn:active{
|
|
|
|
|
- background-color:#ebebeb;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .searchContent .searchBtn:active {
|
|
|
|
|
+ background-color: #ebebeb;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.searchContent .searchBtn img {
|
|
.searchContent .searchBtn img {
|
|
|
width: 30px;
|
|
width: 30px;
|
|
|
height: 30px;
|
|
height: 30px;
|
|
@@ -144,14 +189,14 @@
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .list{
|
|
|
|
|
|
|
+ .list {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .ranking{
|
|
|
|
|
|
|
+ .ranking {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
right: 14px;
|
|
right: 14px;
|
|
|
bottom: 5px;
|
|
bottom: 5px;
|
|
@@ -187,7 +232,7 @@
|
|
|
<div class="searchContent">
|
|
<div class="searchContent">
|
|
|
<div class="item">
|
|
<div class="item">
|
|
|
<div class="title">
|
|
<div class="title">
|
|
|
- {{join}}
|
|
|
|
|
|
|
+ ${signNum}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="sub">
|
|
<div class="sub">
|
|
|
参赛人数
|
|
参赛人数
|
|
@@ -195,13 +240,13 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="item">
|
|
<div class="item">
|
|
|
<div class="title">
|
|
<div class="title">
|
|
|
- {{watch}}
|
|
|
|
|
|
|
+ ${viewNum}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="sub">
|
|
<div class="sub">
|
|
|
浏览人数
|
|
浏览人数
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <a href="search.jsp" class="item searchBtn" >
|
|
|
|
|
|
|
+ <a href="search.jsp" class="item searchBtn">
|
|
|
<img src="${pageContext.request.contextPath}/image/dancer/icon_sousuo.png" alt="">
|
|
<img src="${pageContext.request.contextPath}/image/dancer/icon_sousuo.png" alt="">
|
|
|
<span>搜索</span>
|
|
<span>搜索</span>
|
|
|
</a>
|
|
</a>
|
|
@@ -227,7 +272,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<a href="rankingList.jsp">
|
|
<a href="rankingList.jsp">
|
|
|
- <img src="${pageContext.request.contextPath}/image/dancer/icon_paihang.png" class="ranking" alt="">
|
|
|
|
|
|
|
+ <img src="${pageContext.request.contextPath}/image/dancer/icon_paihang.png" class="ranking" alt="">
|
|
|
</a>
|
|
</a>
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -246,7 +291,7 @@
|
|
|
join: 263,
|
|
join: 263,
|
|
|
watch: 38648,
|
|
watch: 38648,
|
|
|
swiperList: [{}, {}, {}],
|
|
swiperList: [{}, {}, {}],
|
|
|
- joinList:[]
|
|
|
|
|
|
|
+ joinList: []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -255,12 +300,11 @@
|
|
|
pagination: {
|
|
pagination: {
|
|
|
el: '.swiper-pagination',
|
|
el: '.swiper-pagination',
|
|
|
clickable: true,
|
|
clickable: true,
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- components:{
|
|
|
|
|
- 'player-item':playerComponent
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ 'player-item': playerComponent
|
|
|
},
|
|
},
|
|
|
methods: {}
|
|
methods: {}
|
|
|
})
|
|
})
|