|
|
@ -49,12 +49,11 @@ public class ThirdProductConfig { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 产品折扣比例
|
|
|
|
// 产品折扣比例
|
|
|
|
public BsProductConfig getProductConfig(Integer productType , Long companyId , Long productId) { |
|
|
|
public BsProductConfig getProductConfig(Integer productType , Long companyId) { |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> listMap = new HashMap<>(); |
|
|
|
Map<String, Object> listMap = new HashMap<>(); |
|
|
|
listMap.put("productType", productType); |
|
|
|
listMap.put("productType", productType); |
|
|
|
listMap.put("companyId", companyId); |
|
|
|
listMap.put("companyId", companyId); |
|
|
|
listMap.put("productId", productId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<BsProductConfig> productConfigs = apiProductService.getProductConfig(listMap); |
|
|
|
List<BsProductConfig> productConfigs = apiProductService.getProductConfig(listMap); |
|
|
|
|
|
|
|
|
|
|
@ -64,8 +63,8 @@ public class ThirdProductConfig { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public JSONObject getThirdPartyByDetail(Integer platformId , Integer productType , Long companyId , Long productId) { |
|
|
|
public JSONObject getThirdPartyByDetail(Integer platformId , Integer productType , Long companyId) { |
|
|
|
BsProductConfig productConfig = getProductConfig(productType, companyId , productId); |
|
|
|
BsProductConfig productConfig = getProductConfig(productType, companyId); |
|
|
|
|
|
|
|
|
|
|
|
if (productConfig == null) { |
|
|
|
if (productConfig == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂未配置当前内容"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂未配置当前内容"); |
|
|
|