浏览代码

多人操作判断

wangyu 6 年之前
父节点
当前提交
ea55baef13
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      diagbotman-service/src/main/java/com/diagbot/facade/LantoneProductFacade.java

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

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