forked from gzzfw/backEnd/gz-dyh

liyj
2024-08-28 c1c140874bd375e36f4efa0b45e819e7cd22aaa6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 Integer getNewCaseRef(String caseRefPrefix){
        return mapper.getNewCaseRef(caseRefPrefix);
    }
 
    /**
     * 获取各区调解案号标识
     * @param area 区
     * @return
     */
    public String getCaseNoLogo(String area){
        return mapper.getCaseNoLogo(area);
    }
}