|
@@ -327,9 +327,11 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
* @return 当条产品线下所有订单信息
|
|
|
*/
|
|
|
public IPage<OpendProductDTO> opendedProduct(OppendedProductVO oppendedProductVO) {
|
|
|
- LantoneProduct lantoneProduct = this.getById(oppendedProductVO.getProductId());
|
|
|
- if(lantoneProduct.getIsDeleted().equals(IsDeleteEnum.Y.getKey())){
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
+ LantoneProduct lantoneProduct = new LantoneProduct();
|
|
|
+ lantoneProduct.setId(oppendedProductVO.getProductId());
|
|
|
+ LantoneProduct lantoneProducts = this.getById(lantoneProduct.getId());
|
|
|
+ if(lantoneProducts.getIsDeleted().equals(IsDeleteEnum.Y.getKey())){
|
|
|
+ throw new CommonException(CommonErrorCode.NOT_EXISTS,
|
|
|
"该产品已删除");
|
|
|
}
|
|
|
Page page =new Page();
|