Skip to content
切换导航面板
项目
群组
代码片段
帮助
zhangtai
/
zzhnc
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
文件
提交
分支
标签
贡献者
图像
比较
图表
Commit f9155964
由
沈姿.前端(已离职)
编写于
Jan 24, 2018
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge branch 'master' of
http://120.76.158.63:18080/zhangtai/zzhnc
2 个父辈
16de2d8e
e4708b0f
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
3 行删除
WebContent/WEB-INF/classes/mapper/LotteryDao.xml
src/com/w1hd/zzhnc/dao/LotteryLogDao.java
src/com/w1hd/zzhnc/service/ActivityService.java
WebContent/WEB-INF/classes/mapper/LotteryDao.xml
查看文件 @
f915596
...
...
@@ -27,12 +27,18 @@
</select>
<select
id=
"getLotteryLogCount"
resultType=
"java.lang.Integer"
>
select count(*) from lotterylog
select count(*) from lotterylog a
left join fans b on a.fansid=b.id
<where>
<if
test=
"status != null"
>
and status=#{status}
</if>
<if
test=
"keyword !=null and keyword!='' "
>
and (b.nickname like CONCAT(CONCAT('%',#{keyword}),'%') or a.prize_name
like CONCAT(CONCAT('%',#{keyword}),'%') )
</if>
<if
test=
"turn != null and turn>0"
>
and turn=#{turn}
</if>
...
...
src/com/w1hd/zzhnc/dao/LotteryLogDao.java
查看文件 @
f915596
...
...
@@ -15,7 +15,7 @@ public interface LotteryLogDao extends MyMapper<Lotterylog> {
List
<
Lotterylog_Vo
>
getLotteryLogList
(
Integer
page
,
Integer
pagesize
,
@Param
(
"turn"
)
Integer
turn
,
@Param
(
"keyword"
)
String
keyword
,
@Param
(
"status"
)
Integer
status
,
@Param
(
"type"
)
Integer
type
);
int
getLotteryLogCount
(
@Param
(
"turn"
)
Integer
turn
,
@Param
(
"status"
)
Integer
status
,
@Param
(
"type"
)
Integer
type
);
int
getLotteryLogCount
(
@Param
(
"turn"
)
Integer
turn
,
@Param
(
"keyword"
)
String
keyword
,
@Param
(
"status"
)
Integer
status
,
@Param
(
"type"
)
Integer
type
);
BigDecimal
getSumMny
(
@Param
(
"turn"
)
Integer
turn
,
@Param
(
"status"
)
Integer
status
);
}
src/com/w1hd/zzhnc/service/ActivityService.java
查看文件 @
f915596
...
...
@@ -91,7 +91,7 @@ public class ActivityService {
PageResults
<
Lotterylog_Vo
>
pageResults
=
new
PageResults
<>();
List
<
Lotterylog_Vo
>
list
=
logDao
.
getLotteryLogList
((
page
-
1
)
*
pagesize
,
pagesize
,
turn
,
keyword
,
status
,
type
);
int
total
=
logDao
.
getLotteryLogCount
(
turn
,
status
,
type
);
int
total
=
logDao
.
getLotteryLogCount
(
turn
,
keyword
,
status
,
type
);
BigDecimal
bMny
=
logDao
.
getSumMny
(
turn
,
status
);
double
mny
=
bMny
==
null
?
0
:
bMny
.
doubleValue
();
if
(
status
!=
null
&&
status
==
2
)
{
...
...
编写
预览
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论