package cn.huge.module.mediate.service;
|
|
|
import cn.huge.module.mediate.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 案号前缀
|
* @return
|
*/
|
public String getNewCaseNo(String caseNoPrefix){
|
return mapper.getNewCaseNo(caseNoPrefix);
|
}
|
|
|
|
/**
|
* 获取最新的事项编号
|
* @param caseRefPrefix 事项编号前缀
|
* @return
|
*/
|
public String getNewCaseRef(String caseRefPrefix){
|
return mapper.getNewCaseRef(caseRefPrefix);
|
}
|
}
|