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
8fb78561
Commit
8fb78561
authored
Sep 16, 2020
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nyx javaapp: 功能&页面更新
1. 活动发布: 多商户时添加商户选择功能
parent
e3fd803d
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
8 行删除
+14
-8
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/impl/Rockwell_keyServiceImpl.java
+3
-3
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/web/controller/NyxApiController.java
+4
-3
增值产品-小程序及app/nyx_app_key/api/src/main/resources/cn/com/fun/nyxkey/api/repository/Rockwell_keyMapper.xml
+7
-2
没有找到文件。
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/service/impl/Rockwell_keyServiceImpl.java
查看文件 @
8fb78561
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
.
impl
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
service
.
impl
;
...
@@ -760,8 +760,8 @@ public class Rockwell_keyServiceImpl implements Rockwell_keyService {
...
@@ -760,8 +760,8 @@ public class Rockwell_keyServiceImpl implements Rockwell_keyService {
Rockwell_keyV_member_userQuery
rockwell_keyV_member_userQuery
=
new
Rockwell_keyV_member_userQuery
();
Rockwell_keyV_member_userQuery
rockwell_keyV_member_userQuery
=
new
Rockwell_keyV_member_userQuery
();
//判断某字符串是否为空,为空的标准是 str==null 或 str.length()==0
//判断某字符串是否为空,为空的标准是 str==null 或 str.length()==0
//默认设置 member_userStatus == "01"
//默认设置 member_user
Status == "01"
//
默认设置 end_datetime >= NOW()
//
userId 和 memberId必须有一个
if
((
StringUtils
.
isEmpty
(
userId
)
||
userId
.
equals
(
"0"
))
&&
(
StringUtils
.
isEmpty
(
memberId
)
||
memberId
.
equals
(
"0"
)))
if
((
StringUtils
.
isEmpty
(
userId
)
||
userId
.
equals
(
"0"
))
&&
(
StringUtils
.
isEmpty
(
memberId
)
||
memberId
.
equals
(
"0"
)))
{
{
return
new
JSONResult
(
ExceptionMsg
.
ParamError
);
return
new
JSONResult
(
ExceptionMsg
.
ParamError
);
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/web/controller/NyxApiController.java
查看文件 @
8fb78561
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
web
.
controller
;
packa
ge
cn
.
com
.
fun
.
nyxkey
.
api
.
web
.
controller
;
...
@@ -548,7 +548,8 @@ public class NyxApiController {
...
@@ -548,7 +548,8 @@ public class NyxApiController {
// 7.1 user/member 的相关查询
// 7.1 user/member 的相关查询
// 1. 按照 user_id
// 1. 按照 user_id
// 2. 按照 member_id
// 2. 按照 member_id
// collect_status == '01' && end_datetime >= NOW()
// status == '01' && member_status == '01'
// order by default_member desc, create_datetime asc
// 返回 Rockwell_keyV_member_user
// 返回 Rockwell_keyV_member_user
@ApiOperation
(
value
=
"获取商家用户视图的信息"
,
notes
=
"获取商家用户视图的信息"
)
@ApiOperation
(
value
=
"获取商家用户视图的信息"
,
notes
=
"获取商家用户视图的信息"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
...
@@ -557,7 +558,7 @@ public class NyxApiController {
...
@@ -557,7 +558,7 @@ public class NyxApiController {
@ApiImplicitParam
(
name
=
"pageNum"
,
value
=
"页码,从1开始"
,
required
=
false
,
dataType
=
"String"
,
defaultValue
=
"1"
),
@ApiImplicitParam
(
name
=
"pageNum"
,
value
=
"页码,从1开始"
,
required
=
false
,
dataType
=
"String"
,
defaultValue
=
"1"
),
@ApiImplicitParam
(
name
=
"pageCount"
,
value
=
"每页的数据个数,默认是4个"
,
required
=
false
,
dataType
=
"String"
,
defaultValue
=
"4"
)
@ApiImplicitParam
(
name
=
"pageCount"
,
value
=
"每页的数据个数,默认是4个"
,
required
=
false
,
dataType
=
"String"
,
defaultValue
=
"4"
)
})
})
@RequestMapping
(
value
=
"/nyx/member/query"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/nyx/
user/
member/query"
,
method
=
RequestMethod
.
GET
)
public
JSONResult
RockwellQueryMember
(
public
JSONResult
RockwellQueryMember
(
@RequestParam
(
value
=
"userId"
,
required
=
false
,
defaultValue
=
"0"
)
String
userId
,
@RequestParam
(
value
=
"userId"
,
required
=
false
,
defaultValue
=
"0"
)
String
userId
,
@RequestParam
(
value
=
"memberId"
,
required
=
false
,
defaultValue
=
"0"
)
String
memberId
,
@RequestParam
(
value
=
"memberId"
,
required
=
false
,
defaultValue
=
"0"
)
String
memberId
,
...
...
增值产品-小程序及app/nyx_app_key/api/src/main/resources/cn/com/fun/nyxkey/api/repository/Rockwell_keyMapper.xml
查看文件 @
8fb78561
<?xml
version="1.0" encoding="UTF-8"?>
<?xml
version="1.0" encoding="UTF-8"?>
...
@@ -550,12 +550,17 @@ limitations under the License.
...
@@ -550,12 +550,17 @@ limitations under the License.
AND member_status="01"
AND member_status="01"
AND status="01"
AND status="01"
<if
test=
"userId != null and userId != '' "
>
<if
test=
"userId != null and userId != '' "
>
AND openid=
(
SELECT openid FROM view_member_user
WHERE 1=1
AND user_id=#{userId}
AND user_id=#{userId}
)
</if>
</if>
<if
test=
"memberId != null and memberId != '' "
>
<if
test=
"memberId != null and memberId != '' "
>
AND member_id=#{memberId}
AND member_id=#{memberId}
</if>
</if>
order by default_member desc
order by default_member desc
, create_datetime desc
<if
test=
"pagination != null "
>
<if
test=
"pagination != null "
>
<include
refid=
"pagination"
/>
<include
refid=
"pagination"
/>
</if>
</if>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论