wangyu преди 6 години
родител
ревизия
f64ed2a8cd
променени са 1 файла, в които са добавени 0 реда и са изтрити 79 реда
  1. 0 79
      diagbotman-service/src/main/java/com/diagbot/facade/DiagLantoneProductFacade.java

+ 0 - 79
diagbotman-service/src/main/java/com/diagbot/facade/DiagLantoneProductFacade.java

@@ -1,79 +0,0 @@
-package com.diagbot.facade;
-
-
-import com.diagbot.entity.LantoneProduct;
-import com.diagbot.exception.CommonErrorCode;
-import com.diagbot.service.impl.LantoneProductServiceImpl;
-import org.springframework.stereotype.Component;
-
-/**
- * @Description:
- * @author: wangyu
- * @time: 2018/9/17 16:34
- */
-@Component
-public class DiagLantoneProductFacade extends LantoneProductServiceImpl {
-    /**
-     * @Description: 添加产品业务逻辑
-     * @Author: wangyu
-     * @Date: 19:59 2018/9/18
-     */
-    public CommonErrorCode addProducts(LantoneProduct lantoneProduct) {
-        LantoneProduct diagLantoneProduct1 =new LantoneProduct();
-
-        if(!save(lantoneProduct)){
-            return CommonErrorCode.FAIL;
-        }
-        return CommonErrorCode.OK;
-    }
-
-    /**
-     * @Description: 修改产品业务逻辑
-     * @Author: wangyu
-     * @Date: 19:59 2018/9/18
-     */
-    public CommonErrorCode updateProduct(LantoneProduct lantoneProduct) {
-        if(!updateById(lantoneProduct)){
-            return CommonErrorCode.FAIL;
-        }
-        return CommonErrorCode.OK;
-    }
-
-    /**
-     * @Description: 删除产品业务逻辑
-     * @Author: wangyu
-     * @Date: 19:59 2018/9/18
-     */
-    public CommonErrorCode deleteProduct(LantoneProduct lantoneProduct) {
-        lantoneProduct.setIsDeleted("Y");
-        if(!updateById(lantoneProduct)){
-            return CommonErrorCode.FAIL;
-        }
-        return CommonErrorCode.OK;
-    }
-
-    /**
-     * @Description: 更改产品状态业务逻辑
-     * @Author: wangyu
-     * @Date: 19:59 2018/9/18
-     */
-    public CommonErrorCode productStatus(LantoneProduct lantoneProduct) {
-        if(!updateById(lantoneProduct)){
-            return CommonErrorCode.FAIL;
-        }
-        return CommonErrorCode.OK;
-    }
-
-    /**
-     * @Description: 查询当条产品线所有已开通用户
-     * @Author: wangyu
-     * @Date: 19:59 2018/9/18
-
-    public CommonErrorCode opendedProduct(DiagLantoneProduct diagLantoneProduct) {
-        if(!updateById(diagLantoneProduct)){
-            return CommonErrorCode.FAIL;
-        }
-        return CommonErrorCode.OK;
-    }
-     */
-}