Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nyx
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
发现
nyx
Commits
5edfff64
Commit
5edfff64
authored
Aug 25, 2020
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nyx javaapp: 功能更新
1. 添加点赞和删除点赞功能
parent
e5e97393
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
67 行增加
和
8 行删除
+67
-8
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/repository/Rockwell_keyMapper.java
+3
-1
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/Rockwell_keyService.java
+3
-3
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/impl/Rockwell_keyServiceImpl.java
+22
-1
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/web/controller/NyxApiController.java
+26
-2
增值产品-小程序及app/nyx_app_key/api/src/main/resources/cn/com/fun/nyxkey/api/repository/Rockwell_keyMapper.xml
+13
-1
没有找到文件。
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/repository/Rockwell_keyMapper.java
查看文件 @
5edfff64
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
repository
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
repository
;
...
@@ -37,6 +37,8 @@ public interface Rockwell_keyMapper {
...
@@ -37,6 +37,8 @@ public interface Rockwell_keyMapper {
List
<
Rockwell_keyV_activity_info
>
getV_activity_info_by_page
(
Rockwell_keyT_activityQuery
rockwell_keyT_activityQuery
);
List
<
Rockwell_keyV_activity_info
>
getV_activity_info_by_page
(
Rockwell_keyT_activityQuery
rockwell_keyT_activityQuery
);
List
<
Rockwell_keyV_activity_info
>
getV_activity_info_by_period
(
Rockwell_keyT_activityQuery
rockwell_keyT_activityQuery
);
List
<
Rockwell_keyV_activity_info
>
getV_activity_info_by_period
(
Rockwell_keyT_activityQuery
rockwell_keyT_activityQuery
);
List
<
Rockwell_keyV_activity_info
>
getV_activity_detail_by_id
(
Rockwell_keyT_activityQuery
rockwell_keyT_activityQuery
);
List
<
Rockwell_keyV_activity_info
>
getV_activity_detail_by_id
(
Rockwell_keyT_activityQuery
rockwell_keyT_activityQuery
);
void
addT_activityLike
(
Rockwell_keyT_activity
rockwell_keyT_activity
);
void
delT_activityLike
(
Rockwell_keyT_activity
rockwell_keyT_activity
);
/* post api */
/* post api */
List
<
Rockwell_keyV_post_info
>
getV_post_info
(
Rockwell_keyT_postQuery
rockwell_keyT_postQuery
);
List
<
Rockwell_keyV_post_info
>
getV_post_info
(
Rockwell_keyT_postQuery
rockwell_keyT_postQuery
);
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/Rockwell_keyService.java
查看文件 @
5edfff64
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
;
...
@@ -48,9 +48,9 @@ public interface Rockwell_keyService {
...
@@ -48,9 +48,9 @@ public interface Rockwell_keyService {
int
pageNum
,
int
pageCount
);
int
pageNum
,
int
pageCount
);
JSONResult
Rockwell_keyServiceGetV_activity_info_by_period
(
String
tag
,
String
title
,
String
memberId
,
String
memberName
,
String
city
,
String
memberStatus
,
JSONResult
Rockwell_keyServiceGetV_activity_info_by_period
(
String
tag
,
String
title
,
String
memberId
,
String
memberName
,
String
city
,
String
memberStatus
,
String
beginDate
,
String
endDate
,
int
pageNum
,
int
pageCount
);
String
beginDate
,
String
endDate
,
int
pageNum
,
int
pageCount
);
JSONResult
Rockwell_keyServiceGetV_activity_detail_by_id
(
String
activityId
);
JSONResult
Rockwell_keyServiceGetV_activity_detail_by_id
(
String
activityId
);
int
Rockwell_keyServiceAddT_activityLike
(
String
activityId
);
int
Rockwell_keyServiceDelT_activityLike
(
String
activityId
);
/* post api */
/* post api */
JSONResult
Rockwell_keyServiceGetV_post_info
(
String
tag
,
String
title
,
String
top
,
int
pageNum
,
int
pageCount
);
JSONResult
Rockwell_keyServiceGetV_post_info
(
String
tag
,
String
title
,
String
top
,
int
pageNum
,
int
pageCount
);
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/impl/Rockwell_keyServiceImpl.java
查看文件 @
5edfff64
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
.
impl
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
.
impl
;
...
@@ -393,6 +393,27 @@ public class Rockwell_keyServiceImpl implements Rockwell_keyService {
...
@@ -393,6 +393,27 @@ public class Rockwell_keyServiceImpl implements Rockwell_keyService {
return
jsonResult
;
return
jsonResult
;
}
}
/*
activity api 为activity添加点赞
*/
public
int
Rockwell_keyServiceAddT_activityLike
(
String
activityId
){
LOGGER
.
debug
(
"find Rockwell_keyServiceAddT_activityLike"
);
Rockwell_keyT_activity
rockwell_keyT_activity
=
new
Rockwell_keyT_activity
();
rockwell_keyT_activity
.
setActivityId
(
activityId
);
rockwell_keyMapper
.
addT_activityLike
(
rockwell_keyT_activity
);
return
0
;
}
public
int
Rockwell_keyServiceDelT_activityLike
(
String
activityId
){
LOGGER
.
debug
(
"find Rockwell_keyServiceDelT_activityLike"
);
Rockwell_keyT_activity
rockwell_keyT_activity
=
new
Rockwell_keyT_activity
();
rockwell_keyT_activity
.
setActivityId
(
activityId
);
rockwell_keyMapper
.
delT_activityLike
(
rockwell_keyT_activity
);
return
0
;
}
/* post api */
/* post api */
// getV_post_info
// getV_post_info
public
JSONResult
Rockwell_keyServiceGetV_post_info
(
String
tag
,
String
title
,
String
top
,
int
pageNum
,
int
pageCount
)
public
JSONResult
Rockwell_keyServiceGetV_post_info
(
String
tag
,
String
title
,
String
top
,
int
pageNum
,
int
pageCount
)
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/web/controller/NyxApiController.java
查看文件 @
5edfff64
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
web
.
controller
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
web
.
controller
;
...
@@ -303,7 +303,7 @@ public class NyxApiController {
...
@@ -303,7 +303,7 @@ public class NyxApiController {
}
}
// APi3 tbl_activity接口 jscat 20200824
// APi3 tbl_activity接口 jscat 20200824
// 3.
2
获取 view_activity_info 的数据 by period, not by activityId
// 3.
3
获取 view_activity_info 的数据 by period, not by activityId
// 返回 Rockwell_keyV_activity_info
// 返回 Rockwell_keyV_activity_info
@ApiOperation
(
value
=
"获取商家的activity info by period"
,
notes
=
"获取商家的activity info by period"
)
@ApiOperation
(
value
=
"获取商家的activity info by period"
,
notes
=
"获取商家的activity info by period"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
...
@@ -333,6 +333,30 @@ public class NyxApiController {
...
@@ -333,6 +333,30 @@ public class NyxApiController {
return
keyService
.
Rockwell_keyServiceGetV_activity_info_by_period
(
tag
,
title
,
memberId
,
memberName
,
city
,
memberStatus
,
beginDate
,
endDate
,
pageNum
,
pageCount
);
return
keyService
.
Rockwell_keyServiceGetV_activity_info_by_period
(
tag
,
title
,
memberId
,
memberName
,
city
,
memberStatus
,
beginDate
,
endDate
,
pageNum
,
pageCount
);
}
}
// 3.4 为activity添加点赞 jscat 2020-08-25
@ApiOperation
(
value
=
"为activity添加点赞"
,
notes
=
"为activity添加点赞"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"activityId"
,
value
=
"activityId"
,
required
=
false
,
dataType
=
"String"
,
defaultValue
=
"aid_123"
),
})
@RequestMapping
(
value
=
"/nyx/activity/like"
,
method
=
RequestMethod
.
GET
)
public
void
RockwellAddKeyActivityLike
(
@RequestParam
(
value
=
"activityId"
,
required
=
false
,
defaultValue
=
"aid_123"
)
String
activityId
)
{
keyService
.
Rockwell_keyServiceAddT_activityLike
(
activityId
);
}
// 3.5 为activity去除点赞 jscat 2020-08-25
@ApiOperation
(
value
=
"为activity去除点赞"
,
notes
=
"为activity去除点赞"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"activityId"
,
value
=
"activityId"
,
required
=
false
,
dataType
=
"String"
,
defaultValue
=
"aid_123"
),
})
@RequestMapping
(
value
=
"/nyx/activity/like/del"
,
method
=
RequestMethod
.
GET
)
public
void
RockwellDelKeyActivityLike
(
@RequestParam
(
value
=
"activityId"
,
required
=
false
,
defaultValue
=
"aid_123"
)
String
activityId
)
{
keyService
.
Rockwell_keyServiceDelT_activityLike
(
activityId
);
}
// 4.0 post info api
// 4.0 post info api
@ApiOperation
(
value
=
"获取用户的post info"
,
notes
=
"获取用户的post info"
)
@ApiOperation
(
value
=
"获取用户的post info"
,
notes
=
"获取用户的post info"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/resources/cn/com/fun/nyxkey/api/repository/Rockwell_keyMapper.xml
查看文件 @
5edfff64
<?xml
version="1.0" encoding="UTF-8"?>
<?xml
version="1.0" encoding="UTF-8"?>
...
@@ -306,6 +306,18 @@ limitations under the License.
...
@@ -306,6 +306,18 @@ limitations under the License.
</if>
</if>
</select>
</select>
<select
id=
"addT_activityLike"
parameterType=
"cn.com.fun.nyxkey.api.domain.Rockwell_keyT_activity"
>
UPDATE tbl_activity
SET num_like=num_like+1
WHERE activity_id=#{activityId}
</select>
<select
id=
"delT_activityLike"
parameterType=
"cn.com.fun.nyxkey.api.domain.Rockwell_keyT_activity"
>
UPDATE tbl_activity
SET num_like=num_like-1
WHERE activity_id=#{activityId}
</select>
<!-- post api 4.1 从 view_post_info 获取 post信息
<!-- post api 4.1 从 view_post_info 获取 post信息
-->
-->
<select
id=
"getV_post_info"
parameterType=
"cn.com.fun.nyxkey.api.domain.query.Rockwell_keyT_postQuery"
resultType=
"cn.com.fun.nyxkey.api.domain.Rockwell_keyV_post_info"
>
<select
id=
"getV_post_info"
parameterType=
"cn.com.fun.nyxkey.api.domain.query.Rockwell_keyT_postQuery"
resultType=
"cn.com.fun.nyxkey.api.domain.Rockwell_keyV_post_info"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论