Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fit-finance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fitness-server
fit-finance
Commits
753b47cd
Commit
753b47cd
authored
Apr 01, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:list merchant
parent
d2c4e707
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
14 deletions
+4
-14
api/src/main/java/com/jiejing/fitness/finance/api/merchant/request/ApplyStudioMerchantRequest.java
+0
-5
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/MerchantConvert.java
+3
-3
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
+1
-1
service/src/main/java/com/jiejing/fitness/finance/service/merchant/params/ApplyStudioMerchantParams.java
+0
-5
No files found.
api/src/main/java/com/jiejing/fitness/finance/api/merchant/request/ApplyStudioMerchantRequest.java
View file @
753b47cd
...
@@ -42,11 +42,6 @@ public class ApplyStudioMerchantRequest {
...
@@ -42,11 +42,6 @@ public class ApplyStudioMerchantRequest {
@Size
(
max
=
32
,
message
=
"最多32个字"
)
@Size
(
max
=
32
,
message
=
"最多32个字"
)
private
String
merchantName
;
private
String
merchantName
;
@ApiModelProperty
(
value
=
"商户简称"
,
required
=
true
)
@NotBlank
(
message
=
"商户简称不能为空"
)
@Size
(
max
=
32
,
message
=
"最多32个字"
)
private
String
shortName
;
@ApiModelProperty
(
value
=
"营业执照"
,
required
=
true
)
@ApiModelProperty
(
value
=
"营业执照"
,
required
=
true
)
@NotNull
(
message
=
"营业执照不能为空"
)
@NotNull
(
message
=
"营业执照不能为空"
)
@Valid
@Valid
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/MerchantConvert.java
View file @
753b47cd
...
@@ -62,7 +62,7 @@ import java.util.stream.Collectors;
...
@@ -62,7 +62,7 @@ import java.util.stream.Collectors;
public
class
MerchantConvert
{
public
class
MerchantConvert
{
public
static
ApplyMerchantRequest
convertRequest
(
String
channelNo
,
String
applyNo
,
public
static
ApplyMerchantRequest
convertRequest
(
String
channelNo
,
String
applyNo
,
ApplyStudioMerchantParams
params
,
Map
<
ResourceTypeEnums
,
ResourceInfo
>
resourceMap
,
ApplyStudioMerchantParams
params
,
StudioVO
studio
,
Map
<
ResourceTypeEnums
,
ResourceInfo
>
resourceMap
,
SubChannelInfoDTO
subChannelInfo
)
{
SubChannelInfoDTO
subChannelInfo
)
{
return
ApplyMerchantRequest
.
builder
()
return
ApplyMerchantRequest
.
builder
()
.
bizCode
(
PartyTypeEnums
.
STUDIO
.
getCode
())
.
bizCode
(
PartyTypeEnums
.
STUDIO
.
getCode
())
...
@@ -70,7 +70,7 @@ public class MerchantConvert {
...
@@ -70,7 +70,7 @@ public class MerchantConvert {
.
channelNo
(
channelNo
)
.
channelNo
(
channelNo
)
.
companyType
(
params
.
getCompanyType
())
.
companyType
(
params
.
getCompanyType
())
.
merchantName
(
params
.
getMerchantName
())
.
merchantName
(
params
.
getMerchantName
())
.
shortName
(
params
.
getShor
tName
())
.
shortName
(
studio
.
ge
tName
())
.
legal
(
convertLegal
(
params
))
.
legal
(
convertLegal
(
params
))
.
bankCard
(
convertBankCard
(
params
))
.
bankCard
(
convertBankCard
(
params
))
.
license
(
convertLicense
(
params
))
.
license
(
convertLicense
(
params
))
...
@@ -184,7 +184,7 @@ public class MerchantConvert {
...
@@ -184,7 +184,7 @@ public class MerchantConvert {
.
applyType
(
exist
==
null
?
ApplyTypeEnums
.
OPEN
:
ApplyTypeEnums
.
RE_OPEN
)
.
applyType
(
exist
==
null
?
ApplyTypeEnums
.
OPEN
:
ApplyTypeEnums
.
RE_OPEN
)
.
channelNo
(
channel
)
.
channelNo
(
channel
)
.
merchantName
(
encrypt
.
getMerchantName
())
.
merchantName
(
encrypt
.
getMerchantName
())
.
shortName
(
encrypt
.
getShor
tName
())
.
shortName
(
studio
.
ge
tName
())
.
companyType
(
encrypt
.
getCompanyType
())
.
companyType
(
encrypt
.
getCompanyType
())
.
openState
(
OpenStateEnums
.
INIT
)
.
openState
(
OpenStateEnums
.
INIT
)
.
merchantInfo
(
convertMerchantInfo
(
encrypt
))
.
merchantInfo
(
convertMerchantInfo
(
encrypt
))
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
View file @
753b47cd
...
@@ -105,7 +105,7 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
...
@@ -105,7 +105,7 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
Map
<
ResourceTypeEnums
,
ResourceInfo
>
resourceMap
=
this
.
upload
(
params
);
Map
<
ResourceTypeEnums
,
ResourceInfo
>
resourceMap
=
this
.
upload
(
params
);
ApplyMerchantRequest
request
=
MerchantConvert
.
convertRequest
(
channel
,
apply
.
getApplyNo
(),
params
,
ApplyMerchantRequest
request
=
MerchantConvert
.
convertRequest
(
channel
,
apply
.
getApplyNo
(),
params
,
resourceMap
,
configService
.
getDefaultBrandSubChannelInfo
());
studio
,
resourceMap
,
configService
.
getDefaultBrandSubChannelInfo
());
merchantRpcService
.
apply
(
request
);
merchantRpcService
.
apply
(
request
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/params/ApplyStudioMerchantParams.java
View file @
753b47cd
...
@@ -44,11 +44,6 @@ public class ApplyStudioMerchantParams {
...
@@ -44,11 +44,6 @@ public class ApplyStudioMerchantParams {
@Size
(
max
=
32
,
message
=
"最多32个字"
)
@Size
(
max
=
32
,
message
=
"最多32个字"
)
private
String
merchantName
;
private
String
merchantName
;
@ApiModelProperty
(
value
=
"商户简称"
,
required
=
true
)
@NotBlank
(
message
=
"商户简称不能为空"
)
@Size
(
max
=
32
,
message
=
"最多32个字"
)
private
String
shortName
;
@ApiModelProperty
(
value
=
"营业执照"
,
required
=
true
)
@ApiModelProperty
(
value
=
"营业执照"
,
required
=
true
)
@NotNull
(
message
=
"营业执照不能为空"
)
@NotNull
(
message
=
"营业执照不能为空"
)
@Valid
@Valid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment