xing
2023-02-23 c75e6f4696634d626c5569794c6349593853223a
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.yssh.service.impl;
 
 
import com.yssh.dao.DictRecordMapper;
import com.yssh.entity.DictRecord;
import com.yssh.service.IDictRecordService;
import lombok.Synchronized;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
 
/**
 * 字典记录Service业务层处理
 *
 * @author xingjinshuang@smartearth.cn
 * @date 2023-02-06
 */
@Service
public class DictRecordServiceImpl implements IDictRecordService
{
    @Autowired
    private DictRecordMapper dictRecordMapper;
 
    /**
     * 查询字典记录
     *
     * @param id 字典记录ID
     * @return 字典记录
     */
    /*@Override
    public DictRecord selectDictRecordById(Long id)
    {
        return dictRecordMapper.selectDictRecordById(id);
    }*/
 
    /**
     * 查询字典记录列表
     *
     * @param dictRecord 字典记录
     * @return 字典记录
     */
    @Override
    public List<DictRecord> selectDictRecordList(DictRecord dictRecord)
    {
        return dictRecordMapper.selectDictRecordList(dictRecord);
    }
 
    /**
     * 新增字典记录
     *
     * @param dictRecord 字典记录
     * @return 结果
     */
    @Override
    public int insertDictRecord(DictRecord dictRecord)
    {
        return dictRecordMapper.insertDictRecord(dictRecord);
    }
 
    /**
     * 修改字典记录
     *
     * @param dictRecord 字典记录
     * @return 结果
     */
    /*@Override
    public int updateDictRecord(DictRecord dictRecord)
    {
        dictRecord.setUpdateTime(DateUtils.getNowDate());
        return dictRecordMapper.updateDictRecord(dictRecord);
    }*/
 
    /**
     * 删除字典记录对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    /*@Override
    public int deleteDictRecordByIds(String ids)
    {
        return dictRecordMapper.deleteDictRecordByIds(Convert.toStrArray(ids));
    }*/
 
    /**
     * 删除字典记录信息
     *
     * @param id 字典记录ID
     * @return 结果
     */
    /*@Override
    public int deleteDictRecordById(Long id)
    {
        return dictRecordMapper.deleteDictRecordById(id);
    }*/
 
    /**
     * 创建字典记录信息表接口
     */
    @Transactional(rollbackFor = Exception.class)
    @Synchronized
    @Override
    public int createDictRecoTable() {
        String tableName = "yssh_dict_record";
        return dictRecordMapper.createDictRecoTable(tableName);
    }
 
}