|
|
|
@@ -147,6 +147,16 @@ public class WxProjectConfigController extends BaseController { |
|
|
|
if(wxMall.getId() == null){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
} |
|
|
|
TenantEntity TenantEntity = new TenantEntity(){{ |
|
|
|
setTenantId(wxMall.getId().toString()); |
|
|
|
}}; |
|
|
|
WxMall parentWxMall = wxMallService.getByTenantInfo(TenantEntity); |
|
|
|
if(parentWxMall == null || parentWxMall.getSaleType() != 100 |
|
|
|
|| !parentWxMall.getGroupSupport().equals(EnumGroupSupport.SUPPORT.getCode()) |
|
|
|
|| StringUtils.isNotBlank(parentWxMall.getParentTenantId())){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
} |
|
|
|
|
|
|
|
List<WxMall> list = wxMallService.listAsSelectMall(wxMall.getId()); |
|
|
|
return new ResultData(list); |
|
|
|
}catch (Exception e){ |
|
|
|
|