Ver código fonte

注释规范化

wangyu 6 anos atrás
pai
commit
9bbf3547c2

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

@@ -43,7 +43,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
      * @Description: 产品线管理添加产品
      * @Author: wangyu
      * @param addProductsVO 需要提供的参数(产品名称,产品介绍,产品url,产品计费方式)
-     * @return
+     * @return Boolean true
      */
     public Boolean addProducts(AddProductsVO addProductsVO) {
         LantoneProduct lantoneProduct =new LantoneProduct();
@@ -60,7 +60,8 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
     /**
      * @Description: 朗通产品线管理修改产品
      * @Author: wangyu
-     * @Date: 19:59 2018/9/18
+     * @param updateProductVO 所需参数(产品名称,url,产品描述,接入模式,收费模式,是否试用)
+     * @return Boolean true
      */
     public Boolean updateProduct(UpdateProductVO updateProductVO) {
         LantoneProduct lantoneProduct =this.getById(updateProductVO.getId());
@@ -73,10 +74,12 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
         }
         return true;
     }
+
     /**
      * @Description: 删除产品业务逻辑
      * @Author: wangyu
-     * @Date: 19:59 2018/9/18
+     * @param updateProductVO 所需参数(产品id)
+     * @return
      */
     public Boolean deleteProduct(UpdateProductVO updateProductVO) {
         LantoneProduct lantoneProduct = getById(updateProductVO.getId());
@@ -100,11 +103,12 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
         return true;
     }
 
-    /**
+   /* *//**
      * @Description: 更改产品状态业务逻辑
      * @Author: wangyu
-     * @Date: 19:59 2018/9/18
-     */
+     * @param lantoneProduct
+     * @return
+     *//*
     public Boolean productStatus(LantoneProduct lantoneProduct) {
         lantoneProduct.setModifier(UserUtils.getCurrentPrincipleID());
         lantoneProduct.setGmtModified(DateUtil.now());
@@ -112,7 +116,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
             throw new CommonException(CommonErrorCode.FAIL);
         }
         return true;
-    }
+    }*/
 
     /**
      * @Description: 查询当前用户已开通产品
@@ -127,7 +131,8 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
     /**
      * @Description: 根据用户id查询是否有开通产品
      * @Author: wangyu
-     * @Date: 19:59 2018/9/18
+     * @param page 页数和每页显示的条数默认显示10条
+     * @return
      */
     public IPage<LantoneProduct> productLine(Page page){
         Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
@@ -140,6 +145,12 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
      * @Author: wangyu
      * @Date: 17:31 2018/9/20
      */
+    /**
+     * @Description: 根据产品id查询产品
+     * @Author: wangyu
+     * @param id 产品id
+     * @return 产品信息
+     */
     public LantoneProduct selectLanProduct(Long id){
         return getById(id);
     }
@@ -147,7 +158,8 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
     /**
      * @Description: 根据产品id查询当条产品线下所有订单信息
      * @Author: wangyu
-     * @Date: 10:15 2018/9/21
+     * @param oppendedProductVO 所需参数(产品id,页数,和每页条数,默认显示10条)
+     * @return 当条产品线下所有订单信息
      */
     public List<OpendProductWrapper> opendedProduct(OppendedProductVO oppendedProductVO){
         OpenedProductsIndex openedProductsIndex =new OpenedProductsIndex();