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
ba7e3154
Commit
ba7e3154
authored
Apr 24, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:studioName
parent
283a9c1f
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
36 additions
and
4 deletions
+36
-4
api/src/main/java/com/jiejing/fitness/finance/api/merchant/request/PageStudioMerchantApplyRequest.java
+3
-0
api/src/main/java/com/jiejing/fitness/finance/api/merchant/vo/StudioMerchantApplyVO.java
+3
-0
api/src/main/java/com/jiejing/fitness/finance/api/merchant/vo/StudioMerchantVO.java
+3
-0
repository/src/main/java/com/jiejing/fitness/finance/repository/entity/StudioMerchantApply.java
+7
-0
repository/src/main/java/com/jiejing/fitness/finance/repository/mapper/StudioMerchantApplyMapper.xml
+1
-1
repository/src/main/java/com/jiejing/fitness/finance/repository/query/PageStudioMerchantApplyQuery.java
+5
-0
repository/src/main/java/com/jiejing/fitness/finance/repository/service/StudioMerchantApplyRpService.java
+3
-0
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/MerchantConvert.java
+6
-2
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
+2
-1
service/src/main/java/com/jiejing/fitness/finance/service/merchant/params/PageStudioMerchantApplyParams.java
+3
-0
No files found.
api/src/main/java/com/jiejing/fitness/finance/api/merchant/request/PageStudioMerchantApplyRequest.java
View file @
ba7e3154
...
@@ -27,6 +27,9 @@ public class PageStudioMerchantApplyRequest {
...
@@ -27,6 +27,9 @@ public class PageStudioMerchantApplyRequest {
@ApiModelProperty
(
value
=
"商户简称"
)
@ApiModelProperty
(
value
=
"商户简称"
)
private
String
shortName
;
private
String
shortName
;
@ApiModelProperty
(
value
=
"场馆名称"
)
private
String
studioName
;
@ApiModelProperty
(
value
=
"操作类型列表"
)
@ApiModelProperty
(
value
=
"操作类型列表"
)
private
List
<
ApplyTypeEnum
>
applyTypeList
;
private
List
<
ApplyTypeEnum
>
applyTypeList
;
...
...
api/src/main/java/com/jiejing/fitness/finance/api/merchant/vo/StudioMerchantApplyVO.java
View file @
ba7e3154
...
@@ -60,6 +60,9 @@ public class StudioMerchantApplyVO {
...
@@ -60,6 +60,9 @@ public class StudioMerchantApplyVO {
@ApiModelProperty
(
"商户简称"
)
@ApiModelProperty
(
"商户简称"
)
private
String
shortName
;
private
String
shortName
;
@ApiModelProperty
(
"场馆名称"
)
private
String
studioName
;
@EnumMapping
(
enumClass
=
CompanyTypeEnums
.
class
)
@EnumMapping
(
enumClass
=
CompanyTypeEnums
.
class
)
@ApiModelProperty
(
"企业类型"
)
@ApiModelProperty
(
"企业类型"
)
private
String
companyType
;
private
String
companyType
;
...
...
api/src/main/java/com/jiejing/fitness/finance/api/merchant/vo/StudioMerchantVO.java
View file @
ba7e3154
...
@@ -49,6 +49,9 @@ public class StudioMerchantVO {
...
@@ -49,6 +49,9 @@ public class StudioMerchantVO {
@ApiModelProperty
(
"商户简称"
)
@ApiModelProperty
(
"商户简称"
)
private
String
shortName
;
private
String
shortName
;
@ApiModelProperty
(
"场馆名称"
)
private
String
studioName
;
@EnumMapping
(
enumClass
=
CompanyTypeEnums
.
class
)
@EnumMapping
(
enumClass
=
CompanyTypeEnums
.
class
)
@ApiModelProperty
(
"企业类型"
)
@ApiModelProperty
(
"企业类型"
)
private
String
companyType
;
private
String
companyType
;
...
...
repository/src/main/java/com/jiejing/fitness/finance/repository/entity/StudioMerchantApply.java
View file @
ba7e3154
...
@@ -97,6 +97,11 @@ public class StudioMerchantApply implements Serializable {
...
@@ -97,6 +97,11 @@ public class StudioMerchantApply implements Serializable {
private
String
shortName
;
private
String
shortName
;
/**
/**
* 场馆名称
*/
private
String
studioName
;
/**
* 企业类型
* 企业类型
*
*
* @see CompanyTypeEnums
* @see CompanyTypeEnums
...
@@ -233,6 +238,8 @@ public class StudioMerchantApply implements Serializable {
...
@@ -233,6 +238,8 @@ public class StudioMerchantApply implements Serializable {
public
static
final
String
SHORT_NAME
=
"short_name"
;
public
static
final
String
SHORT_NAME
=
"short_name"
;
public
static
final
String
STUDIO_NAME
=
"studio_name"
;
public
static
final
String
COMPANY_TYPE
=
"company_type"
;
public
static
final
String
COMPANY_TYPE
=
"company_type"
;
public
static
final
String
OPEN_STATE
=
"open_state"
;
public
static
final
String
OPEN_STATE
=
"open_state"
;
...
...
repository/src/main/java/com/jiejing/fitness/finance/repository/mapper/StudioMerchantApplyMapper.xml
View file @
ba7e3154
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!-- 通用查询结果列 -->
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, brand_id, studio_id, apply_no, apply_type, channel_no, merchant_id, merchant_no, merchant_name, short_name, company_type, open_state, open_fail_message, ali_open_state, ali_auth_state, ali_merchant_no, ali_open_fail_message, wx_offline_open_state, wx_offline_auth_state, wx_offline_merchant_no, wx_offline_open_fail_message, wx_online_open_state, wx_online_auth_state, wx_online_merchant_no, wx_online_open_fail_message, merchant_info, salt, finish_time, create_time, update_time
id, brand_id, studio_id, apply_no, apply_type, channel_no, merchant_id, merchant_no, merchant_name, short_name,
studio_name,
company_type, open_state, open_fail_message, ali_open_state, ali_auth_state, ali_merchant_no, ali_open_fail_message, wx_offline_open_state, wx_offline_auth_state, wx_offline_merchant_no, wx_offline_open_fail_message, wx_online_open_state, wx_online_auth_state, wx_online_merchant_no, wx_online_open_fail_message, merchant_info, salt, finish_time, create_time, update_time
</sql>
</sql>
<select
id=
"getLatestOneSuccessByMerchantId"
<select
id=
"getLatestOneSuccessByMerchantId"
...
...
repository/src/main/java/com/jiejing/fitness/finance/repository/query/PageStudioMerchantApplyQuery.java
View file @
ba7e3154
...
@@ -45,6 +45,11 @@ public class PageStudioMerchantApplyQuery {
...
@@ -45,6 +45,11 @@ public class PageStudioMerchantApplyQuery {
private
String
merchantName
;
private
String
merchantName
;
/**
/**
* 场馆名称
*/
private
String
studioName
;
/**
* 申请状态
* 申请状态
*/
*/
private
OpenStateEnums
openState
;
private
OpenStateEnums
openState
;
...
...
repository/src/main/java/com/jiejing/fitness/finance/repository/service/StudioMerchantApplyRpService.java
View file @
ba7e3154
...
@@ -57,6 +57,9 @@ public class StudioMerchantApplyRpService extends
...
@@ -57,6 +57,9 @@ public class StudioMerchantApplyRpService extends
if
(
StringUtil
.
isNotBlank
(
params
.
getShortName
()))
{
if
(
StringUtil
.
isNotBlank
(
params
.
getShortName
()))
{
wrapper
.
like
(
StudioMerchantApply
.
SHORT_NAME
,
params
.
getShortName
());
wrapper
.
like
(
StudioMerchantApply
.
SHORT_NAME
,
params
.
getShortName
());
}
}
if
(
StringUtil
.
isNotBlank
(
params
.
getStudioName
()))
{
wrapper
.
like
(
StudioMerchantApply
.
STUDIO_NAME
,
params
.
getStudioName
());
}
if
(
CollectionUtil
.
isNotEmpty
(
params
.
getApplyTypeList
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
params
.
getApplyTypeList
()))
{
wrapper
.
in
(
StudioMerchantApply
.
APPLY_TYPE
,
convertApplyTypeList
(
params
.
getApplyTypeList
()));
wrapper
.
in
(
StudioMerchantApply
.
APPLY_TYPE
,
convertApplyTypeList
(
params
.
getApplyTypeList
()));
}
}
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/MerchantConvert.java
View file @
ba7e3154
...
@@ -166,6 +166,7 @@ public class MerchantConvert {
...
@@ -166,6 +166,7 @@ public class MerchantConvert {
.
applyNo
(
Long
.
toString
(
id
))
.
applyNo
(
Long
.
toString
(
id
))
.
brandId
(
studio
.
getBrandId
())
.
brandId
(
studio
.
getBrandId
())
.
studioId
(
encrypt
.
getStudioId
())
.
studioId
(
encrypt
.
getStudioId
())
.
studioName
(
studio
.
getName
())
.
applyType
(
exist
==
null
?
ApplyTypeEnum
.
OPEN
.
getCode
()
:
ApplyTypeEnum
.
RE_OPEN
.
getCode
())
.
applyType
(
exist
==
null
?
ApplyTypeEnum
.
OPEN
.
getCode
()
:
ApplyTypeEnum
.
RE_OPEN
.
getCode
())
.
channelNo
(
channel
)
.
channelNo
(
channel
)
.
merchantName
(
encrypt
.
getMerchantName
())
.
merchantName
(
encrypt
.
getMerchantName
())
...
@@ -416,6 +417,7 @@ public class MerchantConvert {
...
@@ -416,6 +417,7 @@ public class MerchantConvert {
.
merchantId
(
merchant
.
getId
())
.
merchantId
(
merchant
.
getId
())
.
merchantNo
(
merchant
.
getMerchantNo
())
.
merchantNo
(
merchant
.
getMerchantNo
())
.
merchantName
(
merchant
.
getMerchantName
())
.
merchantName
(
merchant
.
getMerchantName
())
.
studioName
(
apply
.
getStudioName
())
.
shortName
(
merchant
.
getShortName
())
.
shortName
(
merchant
.
getShortName
())
.
openState
(
apply
.
getOpenState
())
.
openState
(
apply
.
getOpenState
())
.
companyType
(
merchant
.
getCompanyType
())
.
companyType
(
merchant
.
getCompanyType
())
...
@@ -449,6 +451,7 @@ public class MerchantConvert {
...
@@ -449,6 +451,7 @@ public class MerchantConvert {
.
id
(
apply
.
getId
())
.
id
(
apply
.
getId
())
.
brandId
(
apply
.
getBrandId
())
.
brandId
(
apply
.
getBrandId
())
.
studioId
(
apply
.
getStudioId
())
.
studioId
(
apply
.
getStudioId
())
.
studioName
(
apply
.
getStudioName
())
.
applyNo
(
apply
.
getApplyNo
())
.
applyNo
(
apply
.
getApplyNo
())
.
applyType
(
apply
.
getApplyType
())
.
applyType
(
apply
.
getApplyType
())
.
channelNo
(
apply
.
getChannelNo
())
.
channelNo
(
apply
.
getChannelNo
())
...
@@ -567,12 +570,13 @@ public class MerchantConvert {
...
@@ -567,12 +570,13 @@ public class MerchantConvert {
}).
sorted
((
o1
,
o2
)
->
o2
.
getFinishTime
().
compareTo
(
o1
.
getFinishTime
())).
collect
(
Collectors
.
toList
());
}).
sorted
((
o1
,
o2
)
->
o2
.
getFinishTime
().
compareTo
(
o1
.
getFinishTime
())).
collect
(
Collectors
.
toList
());
}
}
public
static
StudioMerchantApply
convertBindApply
(
Long
studioId
,
StudioMerchantApply
apply
)
{
public
static
StudioMerchantApply
convertBindApply
(
StudioVO
studio
,
StudioMerchantApply
apply
)
{
StudioMerchantApply
toSave
=
BeanUtil
.
map
(
apply
,
StudioMerchantApply
.
class
);
StudioMerchantApply
toSave
=
BeanUtil
.
map
(
apply
,
StudioMerchantApply
.
class
);
toSave
.
setId
(
IdWorker
.
getId
());
toSave
.
setId
(
IdWorker
.
getId
());
toSave
.
setApplyNo
(
"-1"
);
toSave
.
setApplyNo
(
"-1"
);
toSave
.
setApplyType
(
ApplyTypeEnum
.
BIND
.
getCode
());
toSave
.
setApplyType
(
ApplyTypeEnum
.
BIND
.
getCode
());
toSave
.
setStudioId
(
studioId
);
toSave
.
setStudioId
(
studio
.
getId
());
toSave
.
setStudioName
(
studio
.
getName
());
toSave
.
setCreateTime
(
new
Date
());
toSave
.
setCreateTime
(
new
Date
());
toSave
.
setUpdateTime
(
new
Date
());
toSave
.
setUpdateTime
(
new
Date
());
return
toSave
;
return
toSave
;
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
View file @
ba7e3154
...
@@ -141,7 +141,8 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
...
@@ -141,7 +141,8 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
}
}
// 新增绑定记录
// 新增绑定记录
if
(
flag
)
{
if
(
flag
)
{
StudioMerchantApply
bindApply
=
MerchantConvert
.
convertBindApply
(
studioId
,
apply
);
StudioVO
studio
=
studioRpcService
.
getStudio
(
studioId
);
StudioMerchantApply
bindApply
=
MerchantConvert
.
convertBindApply
(
studio
,
apply
);
studioMerchantApplyRpService
.
insert
(
bindApply
);
studioMerchantApplyRpService
.
insert
(
bindApply
);
}
}
}
}
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/params/PageStudioMerchantApplyParams.java
View file @
ba7e3154
...
@@ -39,6 +39,9 @@ public class PageStudioMerchantApplyParams {
...
@@ -39,6 +39,9 @@ public class PageStudioMerchantApplyParams {
@ApiModelProperty
(
value
=
"商户名称"
)
@ApiModelProperty
(
value
=
"商户名称"
)
private
String
merchantName
;
private
String
merchantName
;
@ApiModelProperty
(
value
=
"场馆名称"
)
private
String
studioName
;
@ApiModelProperty
(
value
=
"申请状态"
)
@ApiModelProperty
(
value
=
"申请状态"
)
private
OpenStateEnums
openState
;
private
OpenStateEnums
openState
;
...
...
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