package com.jwipc.contract.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.contract.entity.ContractSubSeq;
import com.jwipc.contract.mapper.ContractSubSeqMapper;
import com.jwipc.contract.service.IContractSubSeqService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Chen Tianshi
 * @since 2026/1/15 10:42
 */
@Service
public class ContractSubSeqServiceImpl extends ServiceImpl<ContractSubSeqMapper, ContractSubSeq> implements IContractSubSeqService {
    @Override
    public Integer selectByParentCodeForUpdate(String parentCode) {
        return baseMapper.selectByParentCodeForUpdate(parentCode);
    }

    @Override
    public Integer selectMaxSubSeq(String parentCode) {
        return baseMapper.selectMaxSubSeq(parentCode);
    }

    @Override
    public int incrSeq(String parentCode) {
        return baseMapper.incrSeq(parentCode);
    }
}
