package com.smartor.service.impl; 
 | 
  
 | 
import com.ruoyi.common.utils.DateUtils; 
 | 
import com.ruoyi.smartor.domain.SchemeAutofinshrule; 
 | 
import com.smartor.service.ISchemeAutofinshruleService; 
 | 
import com.smartor.mapper.SchemeAutofinshruleMapper; 
 | 
import org.springframework.beans.factory.annotation.Autowired; 
 | 
import org.springframework.stereotype.Service; 
 | 
  
 | 
import java.util.List; 
 | 
  
 | 
/** 
 | 
 * 方案结案规则Service业务层处理 
 | 
 * 
 | 
 * @author smartor 
 | 
 * @date 2023-03-04 
 | 
 */ 
 | 
@Service 
 | 
public class SchemeAutofinshruleServiceImpl implements ISchemeAutofinshruleService 
 | 
{ 
 | 
    @Autowired 
 | 
    private SchemeAutofinshruleMapper schemeAutofinshruleMapper; 
 | 
  
 | 
    /** 
 | 
     * 查询方案结案规则 
 | 
     * 
 | 
     * @param id 方案结案规则主键 
 | 
     * @return 方案结案规则 
 | 
     */ 
 | 
    @Override 
 | 
    public SchemeAutofinshrule selectSchemeAutofinshruleById(Long id) 
 | 
    { 
 | 
        return schemeAutofinshruleMapper.selectSchemeAutofinshruleById(id); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 查询方案结案规则列表 
 | 
     * 
 | 
     * @param schemeAutofinshrule 方案结案规则 
 | 
     * @return 方案结案规则 
 | 
     */ 
 | 
    @Override 
 | 
    public List<SchemeAutofinshrule> selectSchemeAutofinshruleList(SchemeAutofinshrule schemeAutofinshrule) 
 | 
    { 
 | 
        return schemeAutofinshruleMapper.selectSchemeAutofinshruleList(schemeAutofinshrule); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 新增方案结案规则 
 | 
     * 
 | 
     * @param schemeAutofinshrule 方案结案规则 
 | 
     * @return 结果 
 | 
     */ 
 | 
    @Override 
 | 
    public int insertSchemeAutofinshrule(SchemeAutofinshrule schemeAutofinshrule) 
 | 
    { 
 | 
        schemeAutofinshrule.setCreateTime(DateUtils.getNowDate()); 
 | 
        return schemeAutofinshruleMapper.insertSchemeAutofinshrule(schemeAutofinshrule); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 修改方案结案规则 
 | 
     * 
 | 
     * @param schemeAutofinshrule 方案结案规则 
 | 
     * @return 结果 
 | 
     */ 
 | 
    @Override 
 | 
    public int updateSchemeAutofinshrule(SchemeAutofinshrule schemeAutofinshrule) 
 | 
    { 
 | 
        schemeAutofinshrule.setUpdateTime(DateUtils.getNowDate()); 
 | 
        return schemeAutofinshruleMapper.updateSchemeAutofinshrule(schemeAutofinshrule); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 批量删除方案结案规则 
 | 
     * 
 | 
     * @param ids 需要删除的方案结案规则主键 
 | 
     * @return 结果 
 | 
     */ 
 | 
    @Override 
 | 
    public int deleteSchemeAutofinshruleByIds(Long[] ids) 
 | 
    { 
 | 
        return schemeAutofinshruleMapper.deleteSchemeAutofinshruleByIds(ids); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 删除方案结案规则信息 
 | 
     * 
 | 
     * @param id 方案结案规则主键 
 | 
     * @return 结果 
 | 
     */ 
 | 
    @Override 
 | 
    public int deleteSchemeAutofinshruleById(Long id) 
 | 
    { 
 | 
        return schemeAutofinshruleMapper.deleteSchemeAutofinshruleById(id); 
 | 
    } 
 | 
} 
 |