Commit cdf2e799 by 程裕兵

feat:merchant

parent be967e0b
...@@ -531,11 +531,14 @@ public class MerchantConvert { ...@@ -531,11 +531,14 @@ public class MerchantConvert {
.shortName(merchant.getShortName()) .shortName(merchant.getShortName())
.companyType(merchant.getCompanyType()) .companyType(merchant.getCompanyType())
.aliOpenState(Optional.ofNullable(ali.getState()).map(Enum::name).orElse(null)) .aliOpenState(Optional.ofNullable(ali.getState()).map(Enum::name).orElse(null))
.aliAuthState(aliAuthState) .aliAuthState(aliAuthState).aliMerchantNo(
.aliMerchantNo(JSON.toJSONString(ali.getMerchantNos())) Optional.ofNullable(ali.getMerchantNos()).orElse(new ArrayList<>()).stream().findFirst()
.orElse(null))
.aliOpenFailMessage(ali.getFailMessage()) .aliOpenFailMessage(ali.getFailMessage())
.wxOfflineOpenState(Optional.ofNullable(wxOfflineState).map(Enum::name).orElse(null)) .wxOfflineOpenState(Optional.ofNullable(wxOfflineState).map(Enum::name).orElse(null))
.wxOfflineMerchantNo(JSON.toJSONString(wxGzhOffline.getMerchantNos())) .wxOfflineMerchantNo(
Optional.ofNullable(wxGzhOffline.getMerchantNos()).orElse(new ArrayList<>()).stream().findFirst()
.orElse(null))
.wxOfflineAuthState(wxOfflineAuthState) .wxOfflineAuthState(wxOfflineAuthState)
.wxOfflineOpenFailMessage(wxOfflineFailMessage) .wxOfflineOpenFailMessage(wxOfflineFailMessage)
.license(JsonUtil.convertObject(merchant.getLicense(), BrandLicenseVO.class)) .license(JsonUtil.convertObject(merchant.getLicense(), BrandLicenseVO.class))
......
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