Skip to content
切换导航面板
项目
群组
代码片段
帮助
zhangtai
/
zzhnc
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
文件
提交
分支
标签
贡献者
图像
比较
图表
Commit 14468891
由
zxt@theyeasy.com
编写于
Dec 28, 2017
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge branch 'zxt'
2 个父辈
1f996f9e
cb0f2165
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
63 行增加
和
65 行删除
src/com/w1hd/zzhnc/controller/pc/ActivityController.java
src/com/w1hd/zzhnc/controller/pc/FansController.java
src/com/w1hd/zzhnc/controller/pc/PrizeController.java
src/com/w1hd/zzhnc/controller/pc/ReportController.java
src/com/w1hd/zzhnc/model/Goods.java
src/com/w1hd/zzhnc/service/FansService.java
src/com/w1hd/zzhnc/controller/pc/ActivityController.java
查看文件 @
1446889
...
...
@@ -95,20 +95,14 @@ public class ActivityController extends BaseController {
}
// 中奖记录
@RequestMapping
(
value
=
"/getLotteryLogList"
,
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
public
@ResponseBody
Object
getLotteryLogList
(
Integer
page
,
Integer
pagesize
,
Integer
turn
,
String
keyword
,
Integer
status
)
{
return
new
Vo_msg
(
0
,
activityService
.
getLotteryLogList
(
page
,
pagesize
,
turn
,
keyword
,
status
));
}
// 中奖记录
@RequestMapping
(
value
=
"/lotterys"
,
method
=
{
RequestMethod
.
POST
,
RequestMethod
.
GET
})
@ResponseBody
public
Object
lotterys
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
,
required
=
false
)
Integer
page
,
public
Object
lotterys
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
,
required
=
false
)
Integer
page
,
@RequestParam
(
value
=
"pagesize"
,
defaultValue
=
"10"
,
required
=
false
)
Integer
pagesize
,
@RequestParam
(
value
=
"turn"
,
defaultValue
=
"
0
"
,
required
=
false
)
Integer
turn
,
@RequestParam
(
value
=
"turn"
,
defaultValue
=
"
1
"
,
required
=
false
)
Integer
turn
,
@RequestParam
(
value
=
"keyword"
,
defaultValue
=
""
,
required
=
false
)
String
keyword
,
@RequestParam
(
value
=
"status"
,
defaultValue
=
""
,
required
=
false
)
Integer
status
)
{
@RequestParam
(
value
=
"status"
,
defaultValue
=
"
1
"
,
required
=
false
)
Integer
status
)
{
return
new
Vo_msg
(
0
,
activityService
.
getLotteryLogList
(
page
,
pagesize
,
turn
,
keyword
,
status
));
}
}
src/com/w1hd/zzhnc/controller/pc/FansController.java
0 → 100644
查看文件 @
1446889
package
com
.
w1hd
.
zzhnc
.
controller
.
pc
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.w1hd.zzhnc.service.FansService
;
@RestController
@RequestMapping
(
"/fans"
)
public
class
FansController
{
@Autowired
FansService
fansService
;
@RequestMapping
(
value
=
"/search"
,
method
=
RequestMethod
.
GET
)
public
Object
search
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
int
page
,
@RequestParam
(
value
=
"keyword"
)
String
keyword
)
{
return
fansService
.
getFansList
(
page
,
keyword
);
}
}
src/com/w1hd/zzhnc/controller/pc/PrizeController.java
查看文件 @
1446889
...
...
@@ -16,7 +16,7 @@ import com.w1hd.zzhnc.model.Prize;
import
com.w1hd.zzhnc.service.PrizeService
;
import
com.w1hd.zzhnc.vo.Vo_msg
;
@Deprecated
@Controller
@RequestMapping
(
"/prize"
)
public
class
PrizeController
{
...
...
src/com/w1hd/zzhnc/controller/pc/ReportController.java
查看文件 @
1446889
...
...
@@ -15,12 +15,6 @@ import com.w1hd.zzhnc.vo.Vo_msg;
@RequestMapping
(
"/report"
)
public
class
ReportController
extends
BaseController
{
@Autowired
ChatLogService
chatlogService
;
@Autowired
FansService
fansService
;
@RequestMapping
(
value
=
"/goods"
,
method
=
RequestMethod
.
GET
)
public
ModelAndView
goods
()
{
ModelAndView
mv
=
new
ModelAndView
(
"/pc/report/goods"
);
...
...
@@ -88,12 +82,4 @@ public class ReportController extends BaseController {
return
mv
;
}
// 聊天记录列表
@RequestMapping
(
value
=
"/getChatLogList"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
Object
getChatLogList
(
Integer
page
,
Integer
replytype
,
String
date1
,
String
date2
,
String
keyword
)
{
return
new
Vo_msg
(
0
,
chatlogService
.
getChatLogList
(
page
,
replytype
,
date1
,
date2
,
keyword
));
}
}
\ No newline at end of file
src/com/w1hd/zzhnc/model/Goods.java
查看文件 @
1446889
...
...
@@ -20,6 +20,8 @@ public class Goods {
private
String
bannerUrl
;
private
Boolean
isHot
;
private
Boolean
isHome
;
private
Integer
shareCount
;
private
Integer
pageViews
;
private
Date
createtime
;
private
Date
updateTime
;
private
Boolean
deleted
;
...
...
@@ -287,6 +289,22 @@ public class Goods {
public
void
setSellerPhone
(
String
sellerPhone
)
{
this
.
sellerPhone
=
sellerPhone
;
}
public
Integer
getShareCount
()
{
return
shareCount
;
}
public
void
setShareCount
(
Integer
shareCount
)
{
this
.
shareCount
=
shareCount
;
}
public
Integer
getPageViews
()
{
return
pageViews
;
}
public
void
setPageViews
(
Integer
pageViews
)
{
this
.
pageViews
=
pageViews
;
}
}
\ No newline at end of file
src/com/w1hd/zzhnc/service/FansService.java
查看文件 @
1446889
/******************************************************************
*
* Java Lib For JavaWeb, Powered By Shenzhen WEI YI KE JI .
*
* Copyright (c) 2017-2027 Digital Telemedia Co.,Ltd
* http://www.d-telemedia.com/
*
* Package: com.w1hd.zzhnc.service.impl
*
* Filename: ProjectServiceImpl.java
*
* Description: TODO(用一句话描述该文件做什么)
*
* Copyright: Copyright (c) 2017-2027
*
* Company: Theyeasy Telemedia Co.,Ltd
*
* @author: hm
*
* @version: 1.0.0
*
* Create at: 2017年10月22日 下午5:53:36
*
* Revision:
*
* 2017年10月22日 下午5:53:36
* - first revision
*
*****************************************************************/
package
com
.
w1hd
.
zzhnc
.
service
;
import
java.util.List
;
import
org.apache.ibatis.session.RowBounds
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.theyeasy.weixin.model.WxMiniSessionInfo
;
...
...
@@ -42,10 +14,9 @@ import com.w1hd.zzhnc.dao.FansDao;
import
com.w1hd.zzhnc.model.Fans
;
import
com.w1hd.zzhnc.util.CommonUtil
;
import
com.w1hd.zzhnc.util.PageResults
;
import
com.w1hd.zzhnc.util.StringUtil
;
import
com.w1hd.zzhnc.vo.Fans_Vo
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.entity.Example.Criteria
;
/**
* @ClassName ProjectServiceImpl
...
...
@@ -60,15 +31,21 @@ public class FansService {
@Autowired
FansDao
fansDao
;
public
PageResults
<
Fans_Vo
>
getFansList
(
Integer
page
,
String
keyword
)
{
List
<
Fans_Vo
>
list
=
fansDao
.
getFansList
((
page
-
1
)
*
10
,
10
,
keyword
);
int
total
=
fansDao
.
getFansCount
(
keyword
);
PageResults
<
Fans_Vo
>
pageResults
=
new
PageResults
<>();
pageResults
.
setPage
(
page
);
pageResults
.
setPageSize
(
10
);
pageResults
.
setRows
(
list
);
pageResults
.
setTotal
(
total
);
return
pageResults
;
public
PageResults
<
Fans
>
getFansList
(
Integer
page
,
String
keyword
)
{
Example
ex
=
new
Example
(
Fans
.
class
);
Criteria
criteria
=
ex
.
createCriteria
();
if
(
Strings
.
isNullOrEmpty
(
keyword
))
{
criteria
.
andCondition
(
" ( nickname like \"%"
+
keyword
+
"%\")"
);
}
RowBounds
row
=
new
RowBounds
((
page
-
1
)
*
10
,
10
);
List
<
Fans
>
list
=
fansDao
.
selectByExampleAndRowBounds
(
ex
,
row
);
int
total
=
fansDao
.
selectCountByExample
(
ex
);
PageResults
<
Fans
>
pageresult
=
new
PageResults
<>();
pageresult
.
setPage
(
page
);
pageresult
.
setPageSize
(
10
);
pageresult
.
setRows
(
list
);
pageresult
.
setTotal
(
total
);
return
pageresult
;
}
public
Fans
getFansByMiniOpenid
(
String
miniOpenid
)
{
...
...
编写
预览
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论