From e38b54037fb3e2a7e2014c0f1931d026ac6f6972 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期二, 07 四月 2026 17:59:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/yagwly_fa_master' into yagwly_fa_master
---
tms/src/main/java/com/ruoyi/tms/service/impl/ReceivableAuditLogServiceImpl.java | 181 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 181 insertions(+), 0 deletions(-)
diff --git a/tms/src/main/java/com/ruoyi/tms/service/impl/ReceivableAuditLogServiceImpl.java b/tms/src/main/java/com/ruoyi/tms/service/impl/ReceivableAuditLogServiceImpl.java
new file mode 100644
index 0000000..8a41018
--- /dev/null
+++ b/tms/src/main/java/com/ruoyi/tms/service/impl/ReceivableAuditLogServiceImpl.java
@@ -0,0 +1,181 @@
+package com.ruoyi.tms.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.tms.mapper.ReceivableAuditLogMapper;
+import com.ruoyi.tms.domain.ReceivableAuditLog;
+import com.ruoyi.tms.service.IReceivableAuditLogService;
+import com.ruoyi.common.core.text.Convert;
+
+/**
+ * 搴旀敹璐﹀崟瀹℃牳鏃ュ織Service涓氬姟灞傚鐞�
+ *
+ * @author ruoyi
+ * @date 2026-04-07
+ */
+@Service
+@Transactional(rollbackFor = Exception.class)
+public class ReceivableAuditLogServiceImpl extends BaseService<ReceivableAuditLogMapper, ReceivableAuditLog> implements IReceivableAuditLogService
+{
+ protected final Logger logger = LoggerFactory.getLogger(getClass());
+ @Resource
+ private ReceivableAuditLogMapper receivableAuditLogMapper;
+
+
+ /**
+ * 鏌ヨ搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ *
+ * @param id 搴旀敹璐﹀崟瀹℃牳鏃ュ織ID
+ * @return 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ */
+ @DataSource(DataSourceType.SLAVE)
+ @Override
+ public ReceivableAuditLog selectReceivableAuditLogById(Integer id)
+ {
+ return receivableAuditLogMapper.selectReceivableAuditLogById(id);
+ }
+
+ /**
+ * 鏌ヨ搴旀敹璐﹀崟瀹℃牳鏃ュ織 璁板綍鏁�
+ *
+ * @param receivableAuditLog 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ * @return 搴旀敹璐﹀崟瀹℃牳鏃ュ織闆嗗悎
+ */
+ @DataSource(DataSourceType.SLAVE)
+ @Override
+ public int selectReceivableAuditLogCount(ReceivableAuditLog receivableAuditLog)
+ {
+ return receivableAuditLogMapper.selectReceivableAuditLogCount(receivableAuditLog);
+ }
+
+ /**
+ * 鏌ヨ搴旀敹璐﹀崟瀹℃牳鏃ュ織鍒楄〃
+ *
+ * @param receivableAuditLog 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ * @return 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ */
+ @DataSource(DataSourceType.SLAVE)
+ @Override
+ public List<ReceivableAuditLog> selectReceivableAuditLogList(ReceivableAuditLog receivableAuditLog)
+ {
+ return receivableAuditLogMapper.selectReceivableAuditLogList(receivableAuditLog);
+ }
+
+ /**
+ * 鏌ヨ搴旀敹璐﹀崟瀹℃牳鏃ュ織鍒楄〃 寮傛 瀵煎嚭
+ *
+ * @param receivableAuditLog 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ * @param exportKey 瀵煎嚭鍔熻兘鐨勫敮涓�鏍囪瘑
+ * @return 搴旀敹璐﹀崟瀹℃牳鏃ュ織闆嗗悎
+ */
+ @DataSource(DataSourceType.SLAVE)
+ @Async
+ @Override
+ public void export(ReceivableAuditLog receivableAuditLog,String exportKey) {
+
+ super.export(ReceivableAuditLog.class,exportKey,"receivableAuditLogData",(pageNum)->{
+ PageUtils.startPage(pageNum, Constants.EXPORT_PATE_SIZE);
+ return selectReceivableAuditLogList(receivableAuditLog);
+ });
+ }
+
+
+ /**
+ * 鏂板搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ *
+ * @param receivableAuditLog 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ * @return 缁撴灉
+ */
+ @Override
+ public int insertReceivableAuditLog(ReceivableAuditLog receivableAuditLog)
+ {
+ receivableAuditLog.setCreateTime(DateUtils.getNowDate());
+ return receivableAuditLogMapper.insertReceivableAuditLog(receivableAuditLog);
+ }
+
+ /**
+ * 鏂板搴旀敹璐﹀崟瀹℃牳鏃ュ織[鎵归噺]
+ *
+ * @param receivableAuditLogs 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ * @return 缁撴灉
+ */
+ @Override
+ public int insertReceivableAuditLogBatch(List<ReceivableAuditLog> receivableAuditLogs)
+ {
+ int rows = receivableAuditLogMapper.insertReceivableAuditLogBatch(receivableAuditLogs);
+ return rows;
+ }
+
+ /**
+ * 淇敼搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ *
+ * @param receivableAuditLog 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ * @return 缁撴灉
+ */
+ @Override
+ public int updateReceivableAuditLog(ReceivableAuditLog receivableAuditLog)
+ {
+ return receivableAuditLogMapper.updateReceivableAuditLog(receivableAuditLog);
+ }
+
+ /**
+ * 淇敼搴旀敹璐﹀崟瀹℃牳鏃ュ織[鎵归噺]
+ *
+ * @param receivableAuditLogs 搴旀敹璐﹀崟瀹℃牳鏃ュ織
+ * @return 缁撴灉
+ */
+ @Override
+ public int updateReceivableAuditLogBatch(List<ReceivableAuditLog> receivableAuditLogs){
+ return receivableAuditLogMapper.updateReceivableAuditLogBatch(receivableAuditLogs);
+ }
+
+ /**
+ * 鍒犻櫎搴旀敹璐﹀崟瀹℃牳鏃ュ織瀵硅薄
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID
+ * @return 缁撴灉
+ */
+ @Override
+ public int deleteReceivableAuditLogByIds(String ids)
+ {
+ return deleteReceivableAuditLogByIds(Convert.toIntArray(ids));
+ }
+
+ /**
+ * 鍒犻櫎搴旀敹璐﹀崟瀹℃牳鏃ュ織瀵硅薄
+ *
+ *
+ * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID
+ * @return 缁撴灉
+ */
+ @Override
+ public int deleteReceivableAuditLogByIds(Integer[] ids)
+ {
+ return receivableAuditLogMapper.deleteReceivableAuditLogByIds(ids);
+ }
+
+ /**
+ * 鍒犻櫎搴旀敹璐﹀崟瀹℃牳鏃ュ織淇℃伅
+ *
+ * @param id 搴旀敹璐﹀崟瀹℃牳鏃ュ織ID
+ * @return 缁撴灉
+ */
+ @Override
+ public int deleteReceivableAuditLogById(Integer id)
+ {
+ return receivableAuditLogMapper.deleteReceivableAuditLogById(id);
+ }
+}
--
Gitblit v1.8.0