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 b9495268
authored
Jul 10, 2024
by
yelq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Merge all from rop-merchant dj_v4.41.0_20240708
1 parent
6833523c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
3 deletions
pom.xml
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
src/main/java/cn/com/glsx/merchants/request/merchant/MerchantNoRopRequest.java
src/main/java/cn/com/glsx/merchants/request/serviceCenter/SearchStaffPageRopRequest.java
src/main/java/cn/com/glsx/merchants/response/serviceCenter/ServiceStaffRopResponse.java
src/main/java/cn/com/glsx/merchants/service/OpenService.java
pom.xml
View file @
b949526
...
...
@@ -15,7 +15,7 @@
<dependency>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
4.39
.0-SNAPSHOT
</version>
<version>
DJ-4.41
.0-SNAPSHOT
</version>
</dependency>
<!--引用GSON,用于打印-->
<dependency>
...
...
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
View file @
b949526
...
...
@@ -3,6 +3,8 @@ package cn.com.glsx.merchants.controller;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.dto.MerchantBrandDTO
;
import
cn.com.glsx.merchants.model.request.MerchantRequest
;
import
cn.com.glsx.merchants.model.response.MerchantStaffResponse
;
import
cn.com.glsx.merchants.model.response.MerchantSubListResponse
;
import
cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse
;
...
...
@@ -692,6 +694,17 @@ public class OpenController {
}
}
@ApiOperation
(
"查询商户品牌数据"
)
@ServiceMethod
(
method
=
"merchants.api.open.merchant.brand.info"
,
needInSession
=
NeedInSessionType
.
NO
)
public
RopResponse
<
List
<
MerchantBrandDTO
>>
getCarBrandList
(
MerchantNoRopRequest
request
){
try
{
return
RopResponse
.
success
(
openService
.
getCarBrandList
(
request
));
}
catch
(
Exception
e
)
{
log
.
info
(
"查询商户品牌数据:{}"
,
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
}
src/main/java/cn/com/glsx/merchants/request/merchant/MerchantNoRopRequest.java
View file @
b949526
...
...
@@ -4,10 +4,15 @@ import com.rop.AbstractRopRequest;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
MerchantNoRopRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"商户号"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"商户号"
)
private
Integer
merchantNo
;
@ApiModelProperty
(
notes
=
"商户号集合"
)
private
List
<
Integer
>
merchantNoList
;
}
src/main/java/cn/com/glsx/merchants/request/serviceCenter/SearchStaffPageRopRequest.java
View file @
b949526
...
...
@@ -36,7 +36,7 @@ public class SearchStaffPageRopRequest extends DefaultRequest {
@NotNull
private
Integer
pageNum
;
@ApiModelProperty
(
notes
=
"员工状态 0:正常 -1:已删除 2:禁用 3
:全部状态
"
)
@ApiModelProperty
(
notes
=
"员工状态 0:正常 -1:已删除 2:禁用 3
:全部状态 4:未删除的员工
"
)
private
Integer
delFlag
=
0
;
@ApiModelProperty
(
notes
=
"员工uuid集合"
)
...
...
src/main/java/cn/com/glsx/merchants/response/serviceCenter/ServiceStaffRopResponse.java
View file @
b949526
...
...
@@ -21,6 +21,12 @@ public class ServiceStaffRopResponse implements Serializable {
@ApiModelProperty
(
example
=
"员工名"
)
private
String
staffName
;
@ApiModelProperty
(
notes
=
"角色名"
)
private
String
roleName
;
@ApiModelProperty
(
notes
=
"角色id"
)
private
Integer
roleId
;
@ApiModelProperty
(
example
=
"员工手机号"
)
private
String
staffPhone
;
...
...
src/main/java/cn/com/glsx/merchants/service/OpenService.java
View file @
b949526
...
...
@@ -6,6 +6,8 @@ import cn.com.glsx.framework.core.exception.RpcServiceException;
import
cn.com.glsx.merchants.contants.Contants
;
import
cn.com.glsx.merchants.convert.ConvertRequest
;
import
cn.com.glsx.merchants.convert.ConvertResponse
;
import
cn.com.glsx.merchants.dto.MerchantBrandDTO
;
import
cn.com.glsx.merchants.dto.merchant.CarbrandResponse
;
import
cn.com.glsx.merchants.model.request.*
;
import
cn.com.glsx.merchants.model.request.MerchantBrandRequest
;
import
cn.com.glsx.merchants.model.request.merchant.FindBySupMerchantNoRpcRequest
;
...
...
@@ -536,4 +538,13 @@ public class OpenService {
}
throw
new
RpcServiceException
(
rpcResponse
.
getError
(),
rpcResponse
.
getException
().
getErrId
(),
rpcResponse
.
getMessage
());
}
public
List
<
MerchantBrandDTO
>
getCarBrandList
(
MerchantNoRopRequest
request
)
{
MerchantRequest
rpcRequest
=
ConvertRequest
.
convertRequest
(
request
,
new
MerchantRequest
());
RpcResponse
<
List
<
CarbrandResponse
>>
rpcResponse
=
merchantRemote
.
getCarBrandList
(
rpcRequest
);
if
(
rpcResponse
.
isSuccess
())
{
return
ConvertResponse
.
convertList
(
rpcResponse
.
getResult
(),
MerchantBrandDTO
.
class
);
}
throw
new
RpcServiceException
(
rpcResponse
.
getError
(),
rpcResponse
.
getException
().
getErrId
(),
rpcResponse
.
getMessage
());
}
}
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