Browse Source

设置删除是用枚举

gaodm 6 years ago
parent
commit
d599f06752

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

@@ -151,7 +151,7 @@ public class ProductServiceFacade extends ProductServiceServiceImpl {
         serviceTokenFacade.deleteByProductServiceId(productService.getId());
         serviceTokenFacade.deleteByProductServiceId(productService.getId());
         //删除产品服务端
         //删除产品服务端
         UpdateWrapper<ProductService> uwps = new UpdateWrapper<>();
         UpdateWrapper<ProductService> uwps = new UpdateWrapper<>();
-        productService.setIsDeleted("Y");
+        productService.setIsDeleted(IsDeleteEnum.Y.getKey());
         this.updateById(productService);
         this.updateById(productService);
         //this.delById(productService.getId());
         //this.delById(productService.getId());
         return true;
         return true;