提交修改
This commit is contained in:
parent
d2c061ef2d
commit
eee779c158
@ -10,7 +10,6 @@ import java.util.List;
|
|||||||
@Data
|
@Data
|
||||||
public class VvSkuDTO extends VvSkuEntity {
|
public class VvSkuDTO extends VvSkuEntity {
|
||||||
|
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -22,4 +21,13 @@ public class VvSkuDTO extends VvSkuEntity {
|
|||||||
*/
|
*/
|
||||||
private BigDecimal discountAmount = BigDecimal.ZERO;
|
private BigDecimal discountAmount = BigDecimal.ZERO;
|
||||||
|
|
||||||
|
|
||||||
|
/***
|
||||||
|
* 是否是默认
|
||||||
|
*/
|
||||||
|
private Integer isDefault = 0 ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -259,6 +259,8 @@ public class AdminProductController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Long productSkuId = null;
|
||||||
|
|
||||||
for (VvSkuDTO vvSkuDTO : vvSkuDTOS) {
|
for (VvSkuDTO vvSkuDTO : vvSkuDTOS) {
|
||||||
Long skuId = vvSkuDTO.getId();
|
Long skuId = vvSkuDTO.getId();
|
||||||
vvSkuDTO.setProductId(productId);
|
vvSkuDTO.setProductId(productId);
|
||||||
@ -268,6 +270,11 @@ public class AdminProductController {
|
|||||||
vvProductDTO.setShowPromotionPrice(vvSkuDTO.getPromotionPrice());
|
vvProductDTO.setShowPromotionPrice(vvSkuDTO.getPromotionPrice());
|
||||||
vvProductDao.insertOrUpdateVvProduct(vvProductDTO);
|
vvProductDao.insertOrUpdateVvProduct(vvProductDTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (NumberUtil.equals(vvSkuDTO.getIsFront(), 1)) {
|
||||||
|
productSkuId = vvSkuDTO.getId();
|
||||||
|
}
|
||||||
/***
|
/***
|
||||||
* 更新
|
* 更新
|
||||||
*/
|
*/
|
||||||
@ -291,6 +298,13 @@ public class AdminProductController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (productSkuId == null) {
|
||||||
|
productSkuId = vvSkuDTOS.get(0).getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
vvProductDTO.setSkuId(productSkuId);
|
||||||
|
vvProductDao.updateVvProductById(vvProductDTO);
|
||||||
|
|
||||||
List<VvProductPropertyDTO> vvProductPropertyDTOS = vvProductDTO.getVvProductPropertyList();
|
List<VvProductPropertyDTO> vvProductPropertyDTOS = vvProductDTO.getVvProductPropertyList();
|
||||||
List<VvProductPropertyEntity> vvProductPropertyEntities = vvProductPropertyDao.selectVvProductPropertyByProductId(productId);
|
List<VvProductPropertyEntity> vvProductPropertyEntities = vvProductPropertyDao.selectVvProductPropertyByProductId(productId);
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,6 @@ public class AppReverseController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private VvSellerWarehouseDao vvSellerWarehouseDao;
|
private VvSellerWarehouseDao vvSellerWarehouseDao;
|
||||||
|
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*
|
*
|
||||||
* https://api.1024api.com/api-interface/app/reverse/add
|
* https://api.1024api.com/api-interface/app/reverse/add
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user