Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
oms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
oms-ci-test
Commits
b3da4c4c
提交
b3da4c4c
authored
6月 25, 2023
作者:
zhenjie
提交者:
余乾开
7月 01, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增小程序用户查询接口
上级
ab7e2808
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
87 行增加
和
1 行删除
+87
-1
UserClient.java
src/main/java/com/mmc/oms/client/UserClient.java
+21
-1
UserAccountQO.java
src/main/java/com/mmc/oms/model/qo/UserAccountQO.java
+66
-0
没有找到文件。
src/main/java/com/mmc/oms/client/UserClient.java
浏览文件 @
b3da4c4c
...
...
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import
com.mmc.oms.model.dto.mall.CooperationTagVO
;
import
com.mmc.oms.model.dto.mall.OrderGoodsProdDTO
;
import
com.mmc.oms.model.dto.user.UserAccountSimpleDTO
;
import
com.mmc.oms.model.qo.UserAccountQO
;
import
com.mmc.oms.model.qo.mall.BUserAccountQO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -72,7 +73,7 @@ public class UserClient {
}
/**
* 获取用户集合列表页面
* 获取
后台
用户集合列表页面
*
* @param bUserAccountQO 问:b用户帐户
* @return {@link List}<{@link UserAccountSimpleDTO}>
...
...
@@ -167,4 +168,23 @@ public class UserClient {
return
cooperationTagVOS
;
}
/**
* 获取小程序用户集合列表
*
* @param userAccountQO 问:b用户帐户
* @return {@link List}<{@link UserAccountSimpleDTO}>
*/
public
List
<
UserAccountSimpleDTO
>
feignListAppUserAccount
(
UserAccountQO
userAccountQO
,
String
token
){
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
headers
.
add
(
"token"
,
token
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
JSONObject
.
toJSONString
(
userAccountQO
),
headers
);
ResponseEntity
<
List
>
responseEntity
=
restTemplate
.
exchange
(
userAppUri
+
"user-account/feignListAppUserAccount"
,
HttpMethod
.
POST
,
entity
,
List
.
class
);
if
(
CollectionUtils
.
isEmpty
(
responseEntity
.
getBody
()))
{
return
null
;
}
List
<
UserAccountSimpleDTO
>
users
=
(
List
<
UserAccountSimpleDTO
>)
responseEntity
.
getBody
().
stream
().
map
(
it
->
new
ObjectMapper
().
convertValue
(
it
,
UserAccountSimpleDTO
.
class
)).
collect
(
Collectors
.
toList
());
return
users
;
}
}
src/main/java/com/mmc/oms/model/qo/UserAccountQO.java
0 → 100644
浏览文件 @
b3da4c4c
package
com
.
mmc
.
oms
.
model
.
qo
;
import
com.mmc.oms.common.publicinterface.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @author: zj
* @Date: 2023/6/6 20:41
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
UserAccountQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
6821428525057467450L
;
@ApiModelProperty
(
value
=
"关键字"
,
required
=
false
,
example
=
"lux"
)
private
String
keyword
;
@ApiModelProperty
(
value
=
"电话号码"
,
required
=
false
)
private
String
phoneNum
;
@ApiModelProperty
(
value
=
"用户名"
,
required
=
false
,
hidden
=
true
)
private
String
userName
;
@ApiModelProperty
(
value
=
"开始时间"
,
example
=
"2023-05-18 00:00:00"
)
private
String
startTime
;
@ApiModelProperty
(
value
=
"结束时间"
,
example
=
"2023-10-18 23:59:59"
)
private
String
endTime
;
@ApiModelProperty
(
value
=
"实名认证状态(0未通过,1通过)"
,
hidden
=
true
)
private
Integer
realAuthStatus
;
@ApiModelProperty
(
value
=
"企业认证状态(0未通过,1通过)"
,
example
=
"1"
)
private
Integer
companyAuthStatus
;
@ApiModelProperty
(
value
=
"电子签章认证状态(0未通过,1通过)"
,
hidden
=
true
)
private
Integer
entVerifyStatus
;
@ApiModelProperty
(
value
=
"用户来源:0自然流,1海报,2抖音,3公众号,4社群,5招投标,默认0"
,
hidden
=
true
)
private
Integer
source
;
@ApiModelProperty
(
value
=
"用户id集合"
)
private
List
<
Integer
>
userIds
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
,
example
=
"10"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
Page
.
class
)
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
public
void
buildCurrentPage
()
{
this
.
pageNo
=
(
pageNo
-
1
)
*
pageSize
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论