Commit ba7e3154 by 程裕兵

feat:studioName

parent 283a9c1f
...@@ -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;
......
...@@ -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;
......
...@@ -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;
......
...@@ -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";
......
...@@ -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"
......
...@@ -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;
......
...@@ -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()));
} }
......
...@@ -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;
......
...@@ -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);
} }
} }
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment