mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 12:05:05 +08:00
add 新增根据订单号查询保险信息方法
This commit is contained in:
@@ -3,6 +3,7 @@ package com.jsowell.pile.mapper;
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.OrderInsuranceInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
@@ -60,4 +61,11 @@ public interface OrderInsuranceInfoMapper {
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderInsuranceInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 通过订单号查询订单保险信息
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
OrderInsuranceInfo getInfoByOrderCode(@Param("orderCode") String orderCode);
|
||||
}
|
||||
|
||||
@@ -58,4 +58,11 @@ public interface IOrderInsuranceInfoService {
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderInsuranceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 通过订单号查询订单保险信息
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
OrderInsuranceInfo getInsuranceInfoByOrderCode(String orderCode);
|
||||
}
|
||||
|
||||
@@ -87,4 +87,14 @@ public class OrderInsuranceInfoServiceImpl implements IOrderInsuranceInfoService
|
||||
public int deleteOrderInsuranceInfoById(Long id) {
|
||||
return orderInsuranceInfoMapper.deleteOrderInsuranceInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过订单号查询订单保险信息
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public OrderInsuranceInfo getInsuranceInfoByOrderCode(String orderCode) {
|
||||
return orderInsuranceInfoMapper.getInfoByOrderCode(orderCode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user