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