支付根据状态查询
This commit is contained in:
@@ -70,6 +70,6 @@ public interface TbShopPayTypeRepository extends JpaRepository<TbShopPayType, In
|
||||
@Query("select t from TbShopPayType t where t.payType=:payType and t.shopId=:shopId")
|
||||
TbShopPayType findByPayType(@Param("payType")String payType,@Param("shopId") String shopId);
|
||||
|
||||
@Query("select t from TbShopPayType t where t.shopId=:s")
|
||||
@Query("select t from TbShopPayType t where t.shopId=:s and is_display=1")
|
||||
List<TbShopPayType> findByShopId(String s);
|
||||
}
|
||||
|
||||
@@ -1488,7 +1488,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
throw new BadRequestException("订单不存在");
|
||||
}
|
||||
|
||||
if (!"unpaid".equals(orderInfo.getStatus()) && !"pending".equals(orderInfo.getStatus())) {
|
||||
if (!"paying".equals(orderInfo.getStatus()) &&
|
||||
!"unpaid".equals(orderInfo.getStatus()) && !"pending".equals(orderInfo.getStatus())) {
|
||||
throw new BadRequestException("订单非未支付状态");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user