Browse Source

多人操作判断

wangyu 6 years ago
parent
commit
ea55baef13

+ 2 - 2
diagbotman-service/src/main/java/com/diagbot/facade/LantoneProductFacade.java

@@ -197,7 +197,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
      * @return Boolean true
      */
     public Boolean deleteProduct(UpdateProductVO updateProductVO) {
-        LantoneProduct lantoneProduct = getById(updateProductVO.getId());
+        LantoneProduct lantoneProduct = this.getById(updateProductVO.getId());
         if(lantoneProduct.getIsDeleted().equals(IsDeleteEnum.Y.getKey())){
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
                     "该产品已删除");
@@ -327,7 +327,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
      * @return 当条产品线下所有订单信息
      */
     public IPage<OpendProductDTO> opendedProduct(OppendedProductVO oppendedProductVO) {
-        LantoneProduct lantoneProduct = getById(oppendedProductVO.getProductId());
+        LantoneProduct lantoneProduct = this.getById(oppendedProductVO.getProductId());
         if(lantoneProduct.getIsDeleted().equals(IsDeleteEnum.Y.getKey())){
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
                     "该产品已删除");