package com.clx.performance.dao.impl.breakcontract;


import com.clx.performance.dao.breakcontract.BreakContractDriverRuleDao;
import com.clx.performance.mapper.breakcontract.BreakContractDriverRuleMapper;
import com.clx.performance.model.breakcontract.BreakContractDriverRule;
import com.msl.common.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Repository;

/**
 * @author liruixin
 * Date 2023-10-24
 * Time 16:02
 */
@Repository
public class BreakContractDriverRuleDaoImpl extends BaseDaoImpl<BreakContractDriverRuleMapper, BreakContractDriverRule, Integer> implements BreakContractDriverRuleDao {
    @Override
    public boolean updateRule(BreakContractDriverRule item) {
        return update(lUdWrapper()
                .eq(BreakContractDriverRule::getId, item.getId())
                .set(BreakContractDriverRule::getRuleJson, item.getRuleJson())
        );
    }
}
