Skip to content

Commit

Permalink
添加dao层的注释
Browse files Browse the repository at this point in the history
  • Loading branch information
summerzo committed Jul 22, 2017
1 parent 340d80c commit 577f387
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
*/
public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {


/**
* 通过订单id查找订单详情
* @param orderId
* @return
*/
List<OrderDetail> findByOrderId(String orderId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
*/
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {

/**
* 通过openid查找订单
* @param buyerOpenid
* @param pageable
* @return
*/
Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
public interface ProductCategoryRepository extends JpaRepository<ProductCategory, Integer> {


/**
* 通过类目id查找类目
* @param categoryTypeList
* @return
*/
List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@
*/
public interface ProductInfoRepository extends JpaRepository<ProductInfo, String> {

/**
* 通过产品状态查找产品
* @param productStatus
* @return
*/
List<ProductInfo> findByProductStatus(Integer productStatus);
}

0 comments on commit 577f387

Please sign in to comment.