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());