Commit 753b47cd by 程裕兵

feat:list merchant

parent d2c4e707
......@@ -42,11 +42,6 @@ public class ApplyStudioMerchantRequest {
@Size(max = 32, message = "最多32个字")
private String merchantName;
@ApiModelProperty(value = "商户简称", required = true)
@NotBlank(message = "商户简称不能为空")
@Size(max = 32, message = "最多32个字")
private String shortName;
@ApiModelProperty(value = "营业执照", required = true)
@NotNull(message = "营业执照不能为空")
@Valid
......
......@@ -62,7 +62,7 @@ import java.util.stream.Collectors;
public class MerchantConvert {
public static ApplyMerchantRequest convertRequest(String channelNo, String applyNo,
ApplyStudioMerchantParams params, Map<ResourceTypeEnums, ResourceInfo> resourceMap,
ApplyStudioMerchantParams params, StudioVO studio, Map<ResourceTypeEnums, ResourceInfo> resourceMap,
SubChannelInfoDTO subChannelInfo) {
return ApplyMerchantRequest.builder()
.bizCode(PartyTypeEnums.STUDIO.getCode())
......@@ -70,7 +70,7 @@ public class MerchantConvert {
.channelNo(channelNo)
.companyType(params.getCompanyType())
.merchantName(params.getMerchantName())
.shortName(params.getShortName())
.shortName(studio.getName())
.legal(convertLegal(params))
.bankCard(convertBankCard(params))
.license(convertLicense(params))
......@@ -184,7 +184,7 @@ public class MerchantConvert {
.applyType(exist == null ? ApplyTypeEnums.OPEN : ApplyTypeEnums.RE_OPEN)
.channelNo(channel)
.merchantName(encrypt.getMerchantName())
.shortName(encrypt.getShortName())
.shortName(studio.getName())
.companyType(encrypt.getCompanyType())
.openState(OpenStateEnums.INIT)
.merchantInfo(convertMerchantInfo(encrypt))
......
......@@ -105,7 +105,7 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
Map<ResourceTypeEnums, ResourceInfo> resourceMap = this.upload(params);
ApplyMerchantRequest request = MerchantConvert.convertRequest(channel, apply.getApplyNo(), params,
resourceMap, configService.getDefaultBrandSubChannelInfo());
studio, resourceMap, configService.getDefaultBrandSubChannelInfo());
merchantRpcService.apply(request);
} catch (Exception e) {
......
......@@ -44,11 +44,6 @@ public class ApplyStudioMerchantParams {
@Size(max = 32, message = "最多32个字")
private String merchantName;
@ApiModelProperty(value = "商户简称", required = true)
@NotBlank(message = "商户简称不能为空")
@Size(max = 32, message = "最多32个字")
private String shortName;
@ApiModelProperty(value = "营业执照", required = true)
@NotNull(message = "营业执照不能为空")
@Valid
......
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