Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-merchant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 341fa6c3
authored
Mar 27, 2023
by
xiongzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Merge all from rop-merchant V3.7.1三月底版本紧急需求
1 parent
238b332c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
1 deletions
pom.xml
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
src/main/java/cn/com/glsx/merchants/request/staff/StaffListRequest.java
src/main/java/cn/com/glsx/merchants/response/StaffResponse.java
pom.xml
View file @
341fa6c
...
...
@@ -15,7 +15,7 @@
<dependency>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
1.0
-SNAPSHOT
</version>
<version>
3.7.1
-SNAPSHOT
</version>
</dependency>
<!--引用GSON,用于打印-->
<dependency>
...
...
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
View file @
341fa6c
...
...
@@ -8,8 +8,10 @@ import cn.com.glsx.merchants.request.accounttype.MerchantListByConditionRopReque
import
cn.com.glsx.merchants.request.merchant.*
;
import
cn.com.glsx.merchants.request.open.*
;
import
cn.com.glsx.merchants.request.staff.MerchantNoListByStaffPhone
;
import
cn.com.glsx.merchants.request.staff.StaffListRequest
;
import
cn.com.glsx.merchants.response.*
;
import
cn.com.glsx.merchants.service.OpenService
;
import
cn.com.glsx.merchants.service.StaffService
;
import
cn.com.glsx.merchants.util.Pagination
;
import
com.rop.AbstractRopRequest
;
import
com.rop.annotation.NeedInSessionType
;
...
...
@@ -37,6 +39,9 @@ public class OpenController {
@Autowired
private
OpenService
openService
;
@Autowired
private
StaffService
staffService
;
@ServiceMethod
(
method
=
"merchants.api.open.findMerchantDetailByMerchantNo"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据商户号查询商户详情"
)
public
RopResponse
<
MerchantRopResponse
>
findMerchantDetailByMerchantNo
(
OpenMerchantDetailRequest
openMerchantRequest
)
{
...
...
@@ -514,4 +519,22 @@ public class OpenController {
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
}
}
/**
* 查询员工列表
*
* @param staffListRequest 入参
* @return
*/
@ServiceMethod
(
method
=
"merchants.api.open.findMerchantStaffList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询员工列表"
)
public
RopResponse
<
List
<
StaffResponse
>>
findMerchantStaffList
(
StaffListRequest
staffListRequest
)
{
try
{
List
<
StaffResponse
>
staffResponse
=
staffService
.
findMerchantStaffList
(
staffListRequest
);
return
RopResponse
.
success
(
staffResponse
);
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======StaffController__invoke__findMerchantStaffList__exception:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
}
}
}
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/staff/StaffListRequest.java
View file @
341fa6c
...
...
@@ -25,4 +25,14 @@ public class StaffListRequest extends DefaultRequest {
*/
@ApiModelProperty
(
notes
=
"关键字"
)
private
String
keyword
;
@ApiModelProperty
(
value
=
"商户号"
)
private
Integer
merchantNo
;
@ApiModelProperty
(
notes
=
"员工标签:0-「1.0新车权益销售」,1-「1.1次新车精品升级」,2-「1.2次新车线上转化」,3-「1.3存量用户众筹」"
)
private
String
staffLabel
;
}
src/main/java/cn/com/glsx/merchants/response/StaffResponse.java
View file @
341fa6c
...
...
@@ -163,6 +163,12 @@ public class StaffResponse implements Serializable {
private
String
uuid
;
/**
* 商户号
*/
@ApiModelProperty
(
example
=
"商户号"
)
private
Integer
merchantNo
;
/**
* 微信
*/
//微信小程序openId
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment