Commit 90315e8b by 程裕兵

feat:page cashier record

parent 3b439080
......@@ -51,6 +51,10 @@ public class StudioMerchantVO {
private String companyType;
@EnumMapping(enumClass = OpenStateEnums.class)
@ApiModelProperty("开通状态")
private String openState;
@EnumMapping(enumClass = OpenStateEnums.class)
@ApiModelProperty("支付宝开通状态")
private String aliOpenState;
......
......@@ -392,7 +392,7 @@ public class MerchantConvert {
}
public static StudioMerchantVO convertStudioMerchant(PartyToMerchant relation, MerchantVO merchant,
SubChannelInfoDTO dto, Map<Long, String> urlMap) {
SubChannelInfoDTO dto, Map<Long, String> urlMap, StudioMerchantApply apply) {
Map<SubChannelOpenTypeEnums, SubChannelInfo> channelMap = convertSubChannelMap(
JsonUtil.convertList(merchant.getSubChannels(), SubChannelInfo.class), dto.getSubChannels());
SubChannelInfo ali = channelMap.get(SubChannelOpenTypeEnums.ALI_OFFLINE);
......@@ -410,6 +410,7 @@ public class MerchantConvert {
.merchantNo(merchant.getMerchantNo())
.merchantName(merchant.getMerchantName())
.shortName(merchant.getShortName())
.openState(apply.getOpenState())
.companyType(merchant.getCompanyType())
.aliOpenState(Optional.ofNullable(ali.getState()).map(Enum::name).orElse(null))
.aliAuthState(aliAuthState)
......
......@@ -185,7 +185,7 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
relation.getMerchantId());
Map<Long, String> urlMap = resourceRpcService.getResourceUrlMap(apply.getBrandId(), resourceIds);
return MerchantConvert.convertStudioMerchant(relation, merchant,
configService.getDefaultBrandSubChannelInfo(), urlMap);
configService.getDefaultBrandSubChannelInfo(), urlMap, apply);
}
@Override
......
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