| package com.xzx.gc.order.service;  | 
|   | 
|   | 
| import cn.hutool.core.date.DateUtil;  | 
| import com.xzx.gc.entity.OrderSettle;  | 
| import com.xzx.gc.entity.OrderSettleDeduct;  | 
| import com.xzx.gc.order.mapper.OrderSettleDeductMapper;  | 
| import com.xzx.gc.order.mapper.OrderSettleMapper;  | 
| import org.springframework.beans.factory.annotation.Autowired;  | 
| import org.springframework.stereotype.Service;  | 
| import org.springframework.transaction.annotation.Transactional;  | 
|   | 
| @Service  | 
| @Transactional  | 
| public class OrderSettleDeductService {  | 
|   | 
|     @Autowired  | 
|     private OrderSettleDeductMapper orderSettleDeductMapper;  | 
|   | 
|     public void add(OrderSettleDeduct orderSettleDeduct){  | 
|         orderSettleDeductMapper.insertSelective(orderSettleDeduct);  | 
|     }  | 
|   | 
|     public OrderSettleDeduct findBySettleId(String settleId){  | 
|         OrderSettleDeduct orderSettleDeduct=new OrderSettleDeduct();  | 
|         orderSettleDeduct.setSettleId(settleId);  | 
|         return orderSettleDeductMapper.selectOne(orderSettleDeduct);  | 
|     }  | 
| }  |