Commit 9299924e by 程裕兵

feat:apply merchant

parent b88ed7d9
......@@ -46,6 +46,11 @@ public class ApplyStudioMerchantRequest {
@Size(max = 32, message = "最多32个字")
private String merchantName;
@ApiModelProperty(value = "商户简称", required = true)
@NotBlank(message = "商户简称不能为空")
@Size(max = 20, message = "最多20个字")
private String shortName;
@ApiModelProperty(value = "营业执照", required = true)
@NotNull(message = "营业执照不能为空")
@Valid
......
......@@ -169,7 +169,7 @@ public class MerchantConvert {
.applyType(exist == null ? ApplyTypeEnum.OPEN.getCode() : ApplyTypeEnum.RE_OPEN.getCode())
.channelNo(channel)
.merchantName(encrypt.getMerchantName())
.shortName(studio.getName())
.shortName(encrypt.getShortName())
.companyType(encrypt.getCompanyType().getCode())
.openState(OpenStateEnums.INIT.getCode())
.merchantInfo(convertMerchantInfo(encrypt))
......
......@@ -48,6 +48,11 @@ public class ApplyStudioMerchantParams {
@Size(max = 32, message = "最多32个字")
private String merchantName;
@ApiModelProperty(value = "商户简称", required = true)
@NotBlank(message = "商户简称不能为空")
@Size(max = 20, message = "最多20个字")
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