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
e73fa677
Commit
e73fa677
authored
Nov 07, 2024
by
吴一龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StudioAxfApply add brandId
parent
c3e51e16
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
api/src/main/java/com/jiejing/fitness/finance/api/axf/request/StudioAxfApplyRequest.java
+4
-0
repository/src/main/java/com/jiejing/fitness/finance/repository/entity/StudioAxfApply.java
+7
-0
repository/src/main/java/com/jiejing/fitness/finance/repository/mapper/StudioAxfApplyMapper.xml
+1
-1
service/src/main/java/com/jiejing/fitness/finance/service/axf/impl/AxfServiceImpl.java
+4
-4
No files found.
api/src/main/java/com/jiejing/fitness/finance/api/axf/request/StudioAxfApplyRequest.java
View file @
e73fa677
...
@@ -25,6 +25,10 @@ public class StudioAxfApplyRequest {
...
@@ -25,6 +25,10 @@ public class StudioAxfApplyRequest {
@NotNull
(
message
=
"场馆ID不能为空"
)
@NotNull
(
message
=
"场馆ID不能为空"
)
private
Long
studioId
;
private
Long
studioId
;
@ApiModelProperty
(
value
=
"品牌ID"
,
required
=
true
)
@NotNull
(
message
=
"品牌ID不能为空"
)
private
Long
brandId
;
@ApiModelProperty
(
value
=
"商户名称"
)
@ApiModelProperty
(
value
=
"商户名称"
)
private
String
merchantName
;
private
String
merchantName
;
...
...
repository/src/main/java/com/jiejing/fitness/finance/repository/entity/StudioAxfApply.java
View file @
e73fa677
...
@@ -67,6 +67,11 @@ public class StudioAxfApply implements Serializable {
...
@@ -67,6 +67,11 @@ public class StudioAxfApply implements Serializable {
private
Long
studioId
;
private
Long
studioId
;
/**
/**
* 备注: 品牌ID 是否允许为null: NO
*/
private
Long
brandId
;
/**
* 备注: 操作类型 默认值: OPEN 是否允许为null: YES
* 备注: 操作类型 默认值: OPEN 是否允许为null: YES
*/
*/
private
String
applyType
;
private
String
applyType
;
...
@@ -233,6 +238,8 @@ public class StudioAxfApply implements Serializable {
...
@@ -233,6 +238,8 @@ public class StudioAxfApply implements Serializable {
public
static
final
String
STUDIO_ID
=
"studio_id"
;
public
static
final
String
STUDIO_ID
=
"studio_id"
;
public
static
final
String
BRAND_ID
=
"brand_id"
;
public
static
final
String
APPLY_TYPE
=
"apply_type"
;
public
static
final
String
APPLY_TYPE
=
"apply_type"
;
public
static
final
String
STUDIO_NAME
=
"studio_name"
;
public
static
final
String
STUDIO_NAME
=
"studio_name"
;
...
...
repository/src/main/java/com/jiejing/fitness/finance/repository/mapper/StudioAxfApplyMapper.xml
View file @
e73fa677
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!-- 通用查询结果列 -->
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, channel_no, merchant_no, merchant_id, studio_id, apply_type, studio_name, merchant_name, short_name, company_type, state, card_no, license_code, license_name, license_type, license_expire_type, license_start_time, license_end_time, legal_name, legal_cert_no, phone, business_province_code, business_province_name, business_city_code, business_city_name, business_district_code, business_district_name, business_address, license_resource_id, store_head_resource_id, fail_message, op_id, op_name, salt, create_time, update_time
id, channel_no, merchant_no, merchant_id, studio_id,
brand_id,
apply_type, studio_name, merchant_name, short_name, company_type, state, card_no, license_code, license_name, license_type, license_expire_type, license_start_time, license_end_time, legal_name, legal_cert_no, phone, business_province_code, business_province_name, business_city_code, business_city_name, business_district_code, business_district_name, business_address, license_resource_id, store_head_resource_id, fail_message, op_id, op_name, salt, create_time, update_time
</sql>
</sql>
<select
id=
"countDistinctStudioId"
resultType=
"java.lang.Integer"
>
<select
id=
"countDistinctStudioId"
resultType=
"java.lang.Integer"
>
select count(distinct studio_id)
select count(distinct studio_id)
...
...
service/src/main/java/com/jiejing/fitness/finance/service/axf/impl/AxfServiceImpl.java
View file @
e73fa677
...
@@ -954,11 +954,11 @@ public class AxfServiceImpl implements AxfService {
...
@@ -954,11 +954,11 @@ public class AxfServiceImpl implements AxfService {
private
Map
<
ResourceTypeEnums
,
ResourceInfo
>
upload
(
StudioAxfApplyRequest
request
,
StudioAxfApply
apply
)
{
private
Map
<
ResourceTypeEnums
,
ResourceInfo
>
upload
(
StudioAxfApplyRequest
request
,
StudioAxfApply
apply
)
{
return
AxfConvert
.
toResourceMap
(
request
,
resourceIds
->
{
return
AxfConvert
.
toResourceMap
(
request
,
resourceIds
->
{
Map
<
Long
,
com
.
jiejing
.
filecenter
.
api
.
resource
.
vo
.
ResourceInfoVO
>
urlMap
=
resourceRpcService
.
getResourceMap
(
Map
<
Long
,
ResourceInfoVO
>
urlMap
=
resourceRpcService
.
getResourceMap
(
request
.
get
Studio
Id
(),
resourceIds
);
request
.
get
Brand
Id
(),
resourceIds
);
Map
<
Long
,
String
>
thirdMap
=
new
HashMap
<>(
2
);
Map
<
Long
,
String
>
thirdMap
=
new
HashMap
<>(
2
);
urlMap
.
keySet
().
forEach
(
resourceId
->
{
urlMap
.
keySet
().
forEach
(
resourceId
->
{
com
.
jiejing
.
filecenter
.
api
.
resource
.
vo
.
ResourceInfoVO
info
=
urlMap
.
get
(
resourceId
);
ResourceInfoVO
info
=
urlMap
.
get
(
resourceId
);
JsonResult
<
UploadVO
>
result
=
merchantApi
.
upload
(
JsonResult
<
UploadVO
>
result
=
merchantApi
.
upload
(
UploadRequest
.
builder
().
channelNo
(
AxfConst
.
CHANNEL_NO
).
url
(
info
.
getUrl
())
UploadRequest
.
builder
().
channelNo
(
AxfConst
.
CHANNEL_NO
).
url
(
info
.
getUrl
())
.
resourceType
(
ResourceTypeEnums
.
LICENSE
).
suffix
(
info
.
getSuffix
())
.
resourceType
(
ResourceTypeEnums
.
LICENSE
).
suffix
(
info
.
getSuffix
())
...
@@ -1030,7 +1030,7 @@ public class AxfServiceImpl implements AxfService {
...
@@ -1030,7 +1030,7 @@ public class AxfServiceImpl implements AxfService {
private
StudioAxfApplyVO
toVO
(
StudioAxfApply
apply
)
{
private
StudioAxfApplyVO
toVO
(
StudioAxfApply
apply
)
{
return
AxfConvert
.
toVO
(
apply
,
vo
->
{
return
AxfConvert
.
toVO
(
apply
,
vo
->
{
Map
<
Long
,
ResourceInfoVO
>
map
=
resourceRpcService
.
getResourceMap
(
vo
.
getStudio
Id
(),
Map
<
Long
,
ResourceInfoVO
>
map
=
resourceRpcService
.
getResourceMap
(
apply
.
getBrand
Id
(),
Lists
.
newArrayList
(
vo
.
getLicenseResourceId
(),
vo
.
getStoreHeadResourceId
()));
Lists
.
newArrayList
(
vo
.
getLicenseResourceId
(),
vo
.
getStoreHeadResourceId
()));
vo
.
setLicenseResourceUrl
(
map
.
get
(
vo
.
getLicenseResourceId
()).
getUrl
());
vo
.
setLicenseResourceUrl
(
map
.
get
(
vo
.
getLicenseResourceId
()).
getUrl
());
vo
.
setStoreHeadResourceUrl
(
map
.
get
(
vo
.
getStoreHeadResourceId
()).
getUrl
());
vo
.
setStoreHeadResourceUrl
(
map
.
get
(
vo
.
getStoreHeadResourceId
()).
getUrl
());
...
...
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