Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
a4b3751e
提交
a4b3751e
authored
6月 25, 2023
作者:
zhenjie
提交者:
余乾开
7月 01, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增小程序用户查询
上级
612550d8
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
84 行增加
和
1 行删除
+84
-1
UserAppApi.java
src/main/java/com/mmc/pms/feign/UserAppApi.java
+11
-1
UserAppApiHystrix.java
...ain/java/com/mmc/pms/feign/hystrix/UserAppApiHystrix.java
+7
-0
UserAccountQO.java
src/main/java/com/mmc/pms/model/qo/UserAccountQO.java
+66
-0
没有找到文件。
src/main/java/com/mmc/pms/feign/UserAppApi.java
浏览文件 @
a4b3751e
...
...
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import
com.mmc.pms.auth.dto.BUserAccountQO
;
import
com.mmc.pms.auth.dto.UserAccountSimpleDTO
;
import
com.mmc.pms.feign.hystrix.UserAppApiHystrix
;
import
com.mmc.pms.model.qo.UserAccountQO
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -50,11 +51,20 @@ public interface UserAppApi {
/**
* 获取用户集合列表页面
* 获取
后台
用户集合列表页面
*
* @param bUserAccountQO 问:b用户帐户
* @return {@link List}<{@link UserAccountSimpleDTO}>
*/
@PostMapping
(
"/userapp/back-user/feignListBAccountPage"
)
List
<
UserAccountSimpleDTO
>
feignListBAccountPage
(
@ApiParam
(
value
=
"账号查询QO"
,
required
=
true
)
@RequestBody
BUserAccountQO
bUserAccountQO
,
@RequestHeader
(
"token"
)
String
token
);
/**
* 获取小程序用户集合列表页面
* @param userAccountQO
* @param token
* @return
*/
@PostMapping
(
"/userapp/user-account/feignListAppUserAccount"
)
List
<
UserAccountSimpleDTO
>
feignListAppUserAccount
(
@ApiParam
(
value
=
"账号查询QO"
,
required
=
true
)
@RequestBody
UserAccountQO
userAccountQO
,
@RequestHeader
(
"token"
)
String
token
);
}
src/main/java/com/mmc/pms/feign/hystrix/UserAppApiHystrix.java
浏览文件 @
a4b3751e
...
...
@@ -3,6 +3,7 @@ package com.mmc.pms.feign.hystrix;
import
com.mmc.pms.auth.dto.BUserAccountQO
;
import
com.mmc.pms.auth.dto.UserAccountSimpleDTO
;
import
com.mmc.pms.feign.UserAppApi
;
import
com.mmc.pms.model.qo.UserAccountQO
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.List
;
...
...
@@ -30,4 +31,10 @@ public class UserAppApiHystrix implements UserAppApi {
log
.
error
(
"熔断:feignListBAccountPage:{}"
,
bUserAccountQO
);
return
null
;
}
@Override
public
List
<
UserAccountSimpleDTO
>
feignListAppUserAccount
(
UserAccountQO
userAccountQO
,
String
token
)
{
log
.
error
(
"熔断:feignListAppUserAccount:{}"
,
userAccountQO
);
return
null
;
}
}
src/main/java/com/mmc/pms/model/qo/UserAccountQO.java
0 → 100644
浏览文件 @
a4b3751e
package
com
.
mmc
.
pms
.
model
.
qo
;
import
com.mmc.pms.common.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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论