wujianwei
2026-01-13 95d3a42006beb2b9e0856f0899003e075d1988f8
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
package com.ruoyi.cwgl.service.impl;
 
import java.util.List;
 
import com.ruoyi.common.utils.DateUtils;
import javax.annotation.Resource;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import org.springframework.scheduling.annotation.Async;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.common.core.service.BaseService;
 
import com.ruoyi.cwgl.mapper.PayableFeeManagementLogMapper;
import com.ruoyi.cwgl.domain.PayableFeeManagementLog;
import com.ruoyi.cwgl.service.IPayableFeeManagementLogService;
import com.ruoyi.common.core.text.Convert;
 
/**
 * 应付费用管理操作日志Service业务层处理
 *
 * @author ruoyi
 * @date 2025-12-22
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class PayableFeeManagementLogServiceImpl  extends BaseService<PayableFeeManagementLogMapper, PayableFeeManagementLog> implements IPayableFeeManagementLogService
{
    protected final Logger logger = LoggerFactory.getLogger(getClass());
    @Resource
    private PayableFeeManagementLogMapper payableFeeManagementLogMapper;
 
 
    /**
     * 查询应付费用管理操作日志
     *
     * @param id 应付费用管理操作日志ID
     * @return 应付费用管理操作日志
     */
    @DataSource(DataSourceType.SLAVE)
    @Override
    public PayableFeeManagementLog selectPayableFeeManagementLogById(Integer id)
    {
        return payableFeeManagementLogMapper.selectPayableFeeManagementLogById(id);
    }
 
    /**
     * 查询应付费用管理操作日志 记录数
     *
     * @param payableFeeManagementLog 应付费用管理操作日志
     * @return 应付费用管理操作日志集合
     */
    @DataSource(DataSourceType.SLAVE)
    @Override
    public int selectPayableFeeManagementLogCount(PayableFeeManagementLog payableFeeManagementLog)
    {
        return payableFeeManagementLogMapper.selectPayableFeeManagementLogCount(payableFeeManagementLog);
    }
 
    /**
     * 查询应付费用管理操作日志列表
     *
     * @param payableFeeManagementLog 应付费用管理操作日志
     * @return 应付费用管理操作日志
     */
    @DataSource(DataSourceType.SLAVE)
    @Override
    public List<PayableFeeManagementLog> selectPayableFeeManagementLogList(PayableFeeManagementLog payableFeeManagementLog)
    {
        return payableFeeManagementLogMapper.selectPayableFeeManagementLogList(payableFeeManagementLog);
    }
 
    /**
     * 查询应付费用管理操作日志列表 异步 导出
     *
     * @param payableFeeManagementLog 应付费用管理操作日志
     * @param exportKey 导出功能的唯一标识
     * @return 应付费用管理操作日志集合
     */
    @DataSource(DataSourceType.SLAVE)
    @Async
    @Override
    public void export(PayableFeeManagementLog payableFeeManagementLog,String exportKey) {
 
        super.export(PayableFeeManagementLog.class,exportKey,"payableFeeManagementLogData",(pageNum)->{
            PageUtils.startPage(pageNum, Constants.EXPORT_PATE_SIZE);
            return selectPayableFeeManagementLogList(payableFeeManagementLog);
        });
    }
 
 
    /**
     * 新增应付费用管理操作日志
     *
     * @param payableFeeManagementLog 应付费用管理操作日志
     * @return 结果
     */
    @Override
    public int insertPayableFeeManagementLog(PayableFeeManagementLog payableFeeManagementLog)
    {
        payableFeeManagementLog.setCreateTime(DateUtils.getNowDate());
        return payableFeeManagementLogMapper.insertPayableFeeManagementLog(payableFeeManagementLog);
    }
 
    /**
     * 新增应付费用管理操作日志[批量]
     *
     * @param payableFeeManagementLogs 应付费用管理操作日志
     * @return 结果
     */
    @Override
    public int insertPayableFeeManagementLogBatch(List<PayableFeeManagementLog> payableFeeManagementLogs)
    {
        int rows = payableFeeManagementLogMapper.insertPayableFeeManagementLogBatch(payableFeeManagementLogs);
        return rows;
    }
 
    /**
     * 修改应付费用管理操作日志
     *
     * @param payableFeeManagementLog 应付费用管理操作日志
     * @return 结果
     */
    @Override
    public int updatePayableFeeManagementLog(PayableFeeManagementLog payableFeeManagementLog)
    {
        return payableFeeManagementLogMapper.updatePayableFeeManagementLog(payableFeeManagementLog);
    }
 
    /**
     * 修改应付费用管理操作日志[批量]
     *
     * @param payableFeeManagementLogs 应付费用管理操作日志
     * @return 结果
     */
    @Override
    public int updatePayableFeeManagementLogBatch(List<PayableFeeManagementLog> payableFeeManagementLogs){
        return payableFeeManagementLogMapper.updatePayableFeeManagementLogBatch(payableFeeManagementLogs);
    }
 
    /**
     * 删除应付费用管理操作日志对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePayableFeeManagementLogByIds(String ids)
    {
        return deletePayableFeeManagementLogByIds(Convert.toIntArray(ids));
    }
 
    /**
     * 删除应付费用管理操作日志对象
     *
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePayableFeeManagementLogByIds(Integer[] ids)
    {
        return payableFeeManagementLogMapper.deletePayableFeeManagementLogByIds(ids);
    }
 
    /**
     * 删除应付费用管理操作日志信息
     *
     * @param id 应付费用管理操作日志ID
     * @return 结果
     */
    @Override
    public int deletePayableFeeManagementLogById(Integer id)
    {
        return payableFeeManagementLogMapper.deletePayableFeeManagementLogById(id);
    }
}