package cn.huge.module.cases.service; import cn.huge.module.cases.dao.mapper.CaseInfoMapper; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; /** * @title: 纠纷信息表业务逻辑处理 * @Description JPA的单表数据查询以由BaseService完成 * @company hugeinfo * @author liyj * @Time 2022-03-11 11:43:25 * @version 1.0.0 */ @Slf4j @Service @Transactional(rollbackFor = Exception.class) public class CaseInfoService { @Autowired private CaseInfoMapper mapper; /** * 查询最新的调解案号 * @param caseNoPrefix 案号前缀 * @param custId 客户编号 * @return */ public String getNewCaseNo(String caseNoPrefix, String custId){ return mapper.getNewCaseNo(caseNoPrefix, custId); } }