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
ce96e91b
Commit
ce96e91b
authored
Oct 10, 2020
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nyx javaapp: 功能更新
1. 添加活动时新增activityType, fairName, communityName三个字段
parent
7f1e51d9
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
20 行增加
和
11 行删除
+20
-11
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/Rockwell_keyService.java
+3
-2
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/impl/Rockwell_keyServiceImpl.java
+6
-2
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/web/controller/OssApiController.java
+8
-4
增值产品-小程序及app/nyx_app_key/api/src/main/resources/cn/com/fun/nyxkey/api/repository/Rockwell_keyMapper.xml
+3
-3
没有找到文件。
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/Rockwell_keyService.java
查看文件 @
ce96e91b
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
;
...
@@ -53,7 +53,8 @@ public interface Rockwell_keyService {
...
@@ -53,7 +53,8 @@ public interface Rockwell_keyService {
int
Rockwell_keyServiceDelT_activityLike
(
String
activityId
);
int
Rockwell_keyServiceDelT_activityLike
(
String
activityId
);
int
Rockwell_keyServiceAddT_activity
(
String
userId
,
String
memberId
,
String
addressId
,
String
noteImage
,
String
tag
,
String
title
,
String
content
,
int
Rockwell_keyServiceAddT_activity
(
String
userId
,
String
memberId
,
String
addressId
,
String
noteImage
,
String
tag
,
String
title
,
String
content
,
String
startDatetime
,
String
endDatetime
,
String
startDatetime
,
String
endDatetime
,
List
<
String
>
desc
,
List
<
Double
>
price
,
List
<
Integer
>
quantity
)
throws
UnsupportedEncodingException
;
List
<
String
>
desc
,
List
<
Double
>
price
,
List
<
Integer
>
quantity
,
String
activityType
,
String
fairName
,
String
communityName
)
throws
UnsupportedEncodingException
;
JSONResult
Rockwell_keyServiceGetT_product
(
String
productId
,
String
activityId
,
int
pageNum
,
int
pageCount
);
JSONResult
Rockwell_keyServiceGetT_product
(
String
productId
,
String
activityId
,
int
pageNum
,
int
pageCount
);
JSONResult
Rockwell_keyServiceGetV_activity_stat
(
String
activityType
,
String
cityName
);
JSONResult
Rockwell_keyServiceGetV_activity_stat
(
String
activityType
,
String
cityName
);
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/impl/Rockwell_keyServiceImpl.java
查看文件 @
ce96e91b
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
.
impl
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
.
impl
;
...
@@ -508,7 +508,8 @@ public class Rockwell_keyServiceImpl implements Rockwell_keyService {
...
@@ -508,7 +508,8 @@ public class Rockwell_keyServiceImpl implements Rockwell_keyService {
// activity api - addT_activity
// activity api - addT_activity
public
int
Rockwell_keyServiceAddT_activity
(
String
userId
,
String
memberId
,
String
addressId
,
String
noteImage
,
String
tag
,
String
title
,
String
content
,
public
int
Rockwell_keyServiceAddT_activity
(
String
userId
,
String
memberId
,
String
addressId
,
String
noteImage
,
String
tag
,
String
title
,
String
content
,
String
startDatetime
,
String
endDatetime
,
String
startDatetime
,
String
endDatetime
,
List
<
String
>
desc
,
List
<
Double
>
price
,
List
<
Integer
>
quantity
)
List
<
String
>
desc
,
List
<
Double
>
price
,
List
<
Integer
>
quantity
,
String
activityType
,
String
fairName
,
String
communityName
)
throws
UnsupportedEncodingException
throws
UnsupportedEncodingException
{
{
LOGGER
.
debug
(
"find Rockwell_keyServiceAddT_activity"
);
LOGGER
.
debug
(
"find Rockwell_keyServiceAddT_activity"
);
...
@@ -525,6 +526,9 @@ public class Rockwell_keyServiceImpl implements Rockwell_keyService {
...
@@ -525,6 +526,9 @@ public class Rockwell_keyServiceImpl implements Rockwell_keyService {
rockwell_keyT_activity
.
setNoteImage
(
noteImage
);
rockwell_keyT_activity
.
setNoteImage
(
noteImage
);
rockwell_keyT_activity
.
setTitle
(
URLDecoder
.
decode
(
title
,
"UTF-8"
));
rockwell_keyT_activity
.
setTitle
(
URLDecoder
.
decode
(
title
,
"UTF-8"
));
rockwell_keyT_activity
.
setContent
(
URLDecoder
.
decode
(
content
,
"UTF-8"
));
rockwell_keyT_activity
.
setContent
(
URLDecoder
.
decode
(
content
,
"UTF-8"
));
rockwell_keyT_activity
.
setActivityType
(
URLDecoder
.
decode
(
activityType
,
"UTF-8"
));
rockwell_keyT_activity
.
setFairName
(
URLDecoder
.
decode
(
fairName
,
"UTF-8"
));
rockwell_keyT_activity
.
setCommunityName
(
URLDecoder
.
decode
(
communityName
,
"UTF-8"
));
rockwell_keyT_activity
.
setCreateDatetime
(
new
Date
());
rockwell_keyT_activity
.
setCreateDatetime
(
new
Date
());
rockwell_keyT_activity
.
setUpdateDatetime
(
new
Date
());
rockwell_keyT_activity
.
setUpdateDatetime
(
new
Date
());
System
.
out
.
println
(
rockwell_keyT_activity
);
System
.
out
.
println
(
rockwell_keyT_activity
);
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/web/controller/OssApiController.java
查看文件 @
ce96e91b
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
web
.
controller
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
web
.
controller
;
...
@@ -106,15 +106,19 @@ public class OssApiController {
...
@@ -106,15 +106,19 @@ public class OssApiController {
@RequestParam
(
value
=
"endDatetime"
,
required
=
false
,
defaultValue
=
"0"
)
String
endDatetime
,
@RequestParam
(
value
=
"endDatetime"
,
required
=
false
,
defaultValue
=
"0"
)
String
endDatetime
,
@RequestParam
(
value
=
"productDesc"
,
required
=
false
,
defaultValue
=
"0"
)
List
<
String
>
desc
,
@RequestParam
(
value
=
"productDesc"
,
required
=
false
,
defaultValue
=
"0"
)
List
<
String
>
desc
,
@RequestParam
(
value
=
"unitPrice"
,
required
=
false
,
defaultValue
=
"0"
)
List
<
Double
>
price
,
@RequestParam
(
value
=
"unitPrice"
,
required
=
false
,
defaultValue
=
"0"
)
List
<
Double
>
price
,
@RequestParam
(
value
=
"quantity"
,
required
=
false
,
defaultValue
=
"0"
)
List
<
Integer
>
quantity
@RequestParam
(
value
=
"quantity"
,
required
=
false
,
defaultValue
=
"0"
)
List
<
Integer
>
quantity
,
@RequestParam
(
value
=
"activityType"
,
required
=
false
,
defaultValue
=
"0"
)
String
activityType
,
@RequestParam
(
value
=
"fairName"
,
required
=
false
,
defaultValue
=
"0"
)
String
fairName
,
@RequestParam
(
value
=
"communityName"
,
required
=
false
,
defaultValue
=
"0"
)
String
communityName
)
throws
UnsupportedEncodingException
{
)
throws
UnsupportedEncodingException
{
System
.
out
.
println
(
"===activity_callback_\n"
);
System
.
out
.
println
(
"===activity_callback_\n"
);
System
.
out
.
println
(
"===filename: "
+
filename
+
"&tag="
+
tag
+
"&title="
+
title
+
"&content="
+
content
+
"&image="
+
image
+
"&userId="
+
userId
+
"&memberId="
+
memberId
+
"&addressId="
+
addressId
System
.
out
.
println
(
"===filename: "
+
filename
+
"&tag="
+
tag
+
"&title="
+
title
+
"&content="
+
content
+
"&image="
+
image
+
"&userId="
+
userId
+
"&memberId="
+
memberId
+
"&addressId="
+
addressId
+
"&startDatetime="
+
startDatetime
+
"&endDatetime="
+
endDatetime
);
+
"&startDatetime="
+
startDatetime
+
"&endDatetime="
+
endDatetime
+
"&activityType="
+
activityType
+
"&fairName="
+
fairName
+
"&communityName="
+
communityName
);
System
.
out
.
println
(
"===filename: "
+
desc
.
toString
()
+
price
.
toString
()
+
quantity
.
toString
()
);
System
.
out
.
println
(
"===filename: "
+
desc
.
toString
()
+
price
.
toString
()
+
quantity
.
toString
()
);
keyService
.
Rockwell_keyServiceAddT_activity
(
userId
,
memberId
,
addressId
,
image
,
tag
,
title
,
content
,
keyService
.
Rockwell_keyServiceAddT_activity
(
userId
,
memberId
,
addressId
,
image
,
tag
,
title
,
content
,
startDatetime
,
endDatetime
,
desc
,
price
,
quantity
);
startDatetime
,
endDatetime
,
desc
,
price
,
quantity
,
activityType
,
fairName
,
communityName
);
JSONObject
result
=
new
JSONObject
();
JSONObject
result
=
new
JSONObject
();
result
.
put
(
"Status"
,
"OK"
);
result
.
put
(
"Status"
,
"OK"
);
return
result
;
return
result
;
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/resources/cn/com/fun/nyxkey/api/repository/Rockwell_keyMapper.xml
查看文件 @
ce96e91b
<?xml
version="1.0" encoding="UTF-8"?>
<?xml
version="1.0" encoding="UTF-8"?>
...
@@ -341,8 +341,8 @@ limitations under the License.
...
@@ -341,8 +341,8 @@ limitations under the License.
<!-- 添加一条activity信息 -->
<!-- 添加一条activity信息 -->
<insert
id=
"addT_activity"
parameterType=
"cn.com.fun.nyxkey.api.domain.Rockwell_keyT_activity"
>
<insert
id=
"addT_activity"
parameterType=
"cn.com.fun.nyxkey.api.domain.Rockwell_keyT_activity"
>
insert into tbl_activity(activity_id, activity_status, user_id, member_id, address_id, num_like, tag, note_image, title, content, create_datetime, update_datetime)
insert into tbl_activity(activity_id, activity_status,
activity_type, fair_name, community_name,
user_id, member_id, address_id, num_like, tag, note_image, title, content, create_datetime, update_datetime)
values (#{activityId}, #{activityStatus}, #{userId}, #{memberId}, #{addressId}, #{numLike}, #{tag} , #{noteImage}, #{title}, #{content}, #{createDatetime}, #{updateDatetime})
values (#{activityId}, #{activityStatus}, #{
activityType}, #{fairName}, #{communityName}, #{
userId}, #{memberId}, #{addressId}, #{numLike}, #{tag} , #{noteImage}, #{title}, #{content}, #{createDatetime}, #{updateDatetime})
</insert>
</insert>
<!-- match api2-7 新增多条 product 记录 update jscat 20200902 -->
<!-- match api2-7 新增多条 product 记录 update jscat 20200902 -->
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论