瀏覽代碼

代码优化

wangyu 6 年之前
父節點
當前提交
d43444d50e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      diagbotman-service/src/main/java/com/diagbot/facade/LantoneProductFacade.java

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

@@ -127,7 +127,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
         BeanUtil.copyProperties(updateProductVO, lantoneProduct);
         lantoneProduct.setModifier(UserUtils.getCurrentPrincipleID());
         lantoneProduct.setGmtModified(DateUtil.now());
-        if(updateProductVO.getServiceStatus()==StatusEnum.Disable.getKey()){
+        if(updateProductVO.getServiceStatus().intValue() == StatusEnum.Disable.getKey()){
             Page page =new Page();
             OpenedProductsIndex openedProductsIndex =new OpenedProductsIndex();
             openedProductsIndex.setProductId(updateProductVO.getId());