|
@@ -216,6 +216,12 @@ public class WebsitGoodsLogic {
|
|
private void handlePartsInfo(HttpServletRequest request, WebsitGoods goods, WebsitGoodsBean bean) {
|
|
private void handlePartsInfo(HttpServletRequest request, WebsitGoods goods, WebsitGoodsBean bean) {
|
|
if (goods.getGoodsType().equals(WebsitGoodsTypeEnum.P.getKey())) {
|
|
if (goods.getGoodsType().equals(WebsitGoodsTypeEnum.P.getKey())) {
|
|
if (goods.getNormType().equals(NormTypeEnum.M.getKey())) {
|
|
if (goods.getNormType().equals(NormTypeEnum.M.getKey())) {
|
|
|
|
+ if (Objects.isNull(goods.getFirstPrice())) {
|
|
|
|
+ throw new RemoteServiceException("优惠价1不能为空");
|
|
|
|
+ }
|
|
|
|
+ if (Objects.isNull(goods.getSecondPrice())) {
|
|
|
|
+ throw new RemoteServiceException("优惠价2不能为空");
|
|
|
|
+ }
|
|
if (CollectionUtil.isNotEmpty(bean.getBrandList())) {
|
|
if (CollectionUtil.isNotEmpty(bean.getBrandList())) {
|
|
List<Brand> brandList = brandService.lambdaQuery()
|
|
List<Brand> brandList = brandService.lambdaQuery()
|
|
.eq(Brand::getCompanyWechatId, bean.getCompanyWechatId())
|
|
.eq(Brand::getCompanyWechatId, bean.getCompanyWechatId())
|