From 77f08eeab173fd944367f1cd735323896ec36e38 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期一, 12 一月 2026 15:39:12 +0800
Subject: [PATCH] 修改发票新增

---
 service/src/main/java/com/ruoyi/cwgl/service/impl/ReceivableFeeDetailServiceImpl.java |  390 +++++++++++++++++++++++++++++--------------------------
 1 files changed, 208 insertions(+), 182 deletions(-)

diff --git a/service/src/main/java/com/ruoyi/cwgl/service/impl/ReceivableFeeDetailServiceImpl.java b/service/src/main/java/com/ruoyi/cwgl/service/impl/ReceivableFeeDetailServiceImpl.java
index 808dfb8..115320a 100644
--- a/service/src/main/java/com/ruoyi/cwgl/service/impl/ReceivableFeeDetailServiceImpl.java
+++ b/service/src/main/java/com/ruoyi/cwgl/service/impl/ReceivableFeeDetailServiceImpl.java
@@ -1,182 +1,208 @@
-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.ReceivableFeeDetailMapper;
-import com.ruoyi.cwgl.domain.ReceivableFeeDetail;
-import com.ruoyi.cwgl.service.IReceivableFeeDetailService;
-import com.ruoyi.common.core.text.Convert;
-
-/**
- * 搴旀敹璐圭敤鏄庣粏Service涓氬姟灞傚鐞�
- *
- * @author ruoyi
- * @date 2025-12-17
- */
-@Service
-@Transactional(rollbackFor = Exception.class)
-public class ReceivableFeeDetailServiceImpl  extends BaseService<ReceivableFeeDetailMapper, ReceivableFeeDetail> implements IReceivableFeeDetailService
-{
-    protected final Logger logger = LoggerFactory.getLogger(getClass());
-    @Resource
-    private ReceivableFeeDetailMapper receivableFeeDetailMapper;
-
-
-    /**
-     * 鏌ヨ搴旀敹璐圭敤鏄庣粏
-     *
-     * @param id 搴旀敹璐圭敤鏄庣粏ID
-     * @return 搴旀敹璐圭敤鏄庣粏
-     */
-    @DataSource(DataSourceType.SLAVE)
-    @Override
-    public ReceivableFeeDetail selectReceivableFeeDetailById(Integer id)
-    {
-        return receivableFeeDetailMapper.selectReceivableFeeDetailById(id);
-    }
-
-    /**
-     * 鏌ヨ搴旀敹璐圭敤鏄庣粏 璁板綍鏁�
-     *
-     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
-     * @return 搴旀敹璐圭敤鏄庣粏闆嗗悎
-     */
-    @DataSource(DataSourceType.SLAVE)
-    @Override
-    public int selectReceivableFeeDetailCount(ReceivableFeeDetail receivableFeeDetail)
-    {
-        return receivableFeeDetailMapper.selectReceivableFeeDetailCount(receivableFeeDetail);
-    }
-
-    /**
-     * 鏌ヨ搴旀敹璐圭敤鏄庣粏鍒楄〃
-     *
-     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
-     * @return 搴旀敹璐圭敤鏄庣粏
-     */
-    @DataSource(DataSourceType.SLAVE)
-    @Override
-    public List<ReceivableFeeDetail> selectReceivableFeeDetailList(ReceivableFeeDetail receivableFeeDetail)
-    {
-        return receivableFeeDetailMapper.selectReceivableFeeDetailList(receivableFeeDetail);
-    }
-
-    /**
-     * 鏌ヨ搴旀敹璐圭敤鏄庣粏鍒楄〃 寮傛 瀵煎嚭
-     *
-     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
-     * @param exportKey 瀵煎嚭鍔熻兘鐨勫敮涓�鏍囪瘑
-     * @return 搴旀敹璐圭敤鏄庣粏闆嗗悎
-     */
-    @DataSource(DataSourceType.SLAVE)
-    @Async
-    @Override
-    public void export(ReceivableFeeDetail receivableFeeDetail,String exportKey) {
-
-        super.export(ReceivableFeeDetail.class,exportKey,"receivableFeeDetailData",(pageNum)->{
-            PageUtils.startPage(pageNum, Constants.EXPORT_PATE_SIZE);
-            return selectReceivableFeeDetailList(receivableFeeDetail);
-        });
-    }
-
-
-    /**
-     * 鏂板搴旀敹璐圭敤鏄庣粏
-     *
-     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
-     * @return 缁撴灉
-     */
-    @Override
-    public int insertReceivableFeeDetail(ReceivableFeeDetail receivableFeeDetail)
-    {
-        receivableFeeDetail.setCreateTime(DateUtils.getNowDate());
-        return receivableFeeDetailMapper.insertReceivableFeeDetail(receivableFeeDetail);
-    }
-
-    /**
-     * 鏂板搴旀敹璐圭敤鏄庣粏[鎵归噺]
-     *
-     * @param receivableFeeDetails 搴旀敹璐圭敤鏄庣粏
-     * @return 缁撴灉
-     */
-    @Override
-    public int insertReceivableFeeDetailBatch(List<ReceivableFeeDetail> receivableFeeDetails)
-    {
-        int rows = receivableFeeDetailMapper.insertReceivableFeeDetailBatch(receivableFeeDetails);
-        return rows;
-    }
-
-    /**
-     * 淇敼搴旀敹璐圭敤鏄庣粏
-     *
-     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
-     * @return 缁撴灉
-     */
-    @Override
-    public int updateReceivableFeeDetail(ReceivableFeeDetail receivableFeeDetail)
-    {
-        receivableFeeDetail.setUpdateTime(DateUtils.getNowDate());
-        return receivableFeeDetailMapper.updateReceivableFeeDetail(receivableFeeDetail);
-    }
-
-    /**
-     * 淇敼搴旀敹璐圭敤鏄庣粏[鎵归噺]
-     *
-     * @param receivableFeeDetails 搴旀敹璐圭敤鏄庣粏
-     * @return 缁撴灉
-     */
-    @Override
-    public int updateReceivableFeeDetailBatch(List<ReceivableFeeDetail> receivableFeeDetails){
-        return receivableFeeDetailMapper.updateReceivableFeeDetailBatch(receivableFeeDetails);
-    }
-
-    /**
-     * 鍒犻櫎搴旀敹璐圭敤鏄庣粏瀵硅薄
-     *
-     * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID
-     * @return 缁撴灉
-     */
-    @Override
-    public int deleteReceivableFeeDetailByIds(String ids)
-    {
-        return deleteReceivableFeeDetailByIds(Convert.toIntArray(ids));
-    }
-
-    /**
-     * 鍒犻櫎搴旀敹璐圭敤鏄庣粏瀵硅薄
-     *
-     *
-     * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID
-     * @return 缁撴灉
-     */
-    @Override
-    public int deleteReceivableFeeDetailByIds(Integer[] ids)
-    {
-        return receivableFeeDetailMapper.deleteReceivableFeeDetailByIds(ids);
-    }
-
-    /**
-     * 鍒犻櫎搴旀敹璐圭敤鏄庣粏淇℃伅
-     *
-     * @param id 搴旀敹璐圭敤鏄庣粏ID
-     * @return 缁撴灉
-     */
-    @Override
-    public int deleteReceivableFeeDetailById(Integer id)
-    {
-        return receivableFeeDetailMapper.deleteReceivableFeeDetailById(id);
-    }
-}
+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.ReceivableFeeDetailMapper;
+import com.ruoyi.cwgl.domain.ReceivableFeeDetail;
+import com.ruoyi.cwgl.service.IReceivableFeeDetailService;
+import com.ruoyi.common.core.text.Convert;
+
+/**
+ * 搴旀敹璐圭敤鏄庣粏Service涓氬姟灞傚鐞�
+ *
+ * @author ruoyi
+ * @date 2025-12-17
+ */
+@Service
+@Transactional(rollbackFor = Exception.class)
+public class ReceivableFeeDetailServiceImpl  extends BaseService<ReceivableFeeDetailMapper, ReceivableFeeDetail> implements IReceivableFeeDetailService
+{
+    protected final Logger logger = LoggerFactory.getLogger(getClass());
+    @Resource
+    private ReceivableFeeDetailMapper receivableFeeDetailMapper;
+
+
+    /**
+     * 鏌ヨ搴旀敹璐圭敤鏄庣粏
+     *
+     * @param id 搴旀敹璐圭敤鏄庣粏ID
+     * @return 搴旀敹璐圭敤鏄庣粏
+     */
+    @DataSource(DataSourceType.SLAVE)
+    @Override
+    public ReceivableFeeDetail selectReceivableFeeDetailById(Integer id)
+    {
+        return receivableFeeDetailMapper.selectReceivableFeeDetailById(id);
+    }
+
+    /**
+     * 鏌ヨ搴旀敹璐圭敤鏄庣粏 璁板綍鏁�
+     *
+     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
+     * @return 搴旀敹璐圭敤鏄庣粏闆嗗悎
+     */
+    @DataSource(DataSourceType.SLAVE)
+    @Override
+    public int selectReceivableFeeDetailCount(ReceivableFeeDetail receivableFeeDetail)
+    {
+        return receivableFeeDetailMapper.selectReceivableFeeDetailCount(receivableFeeDetail);
+    }
+
+    /**
+     * 鏌ヨ搴旀敹璐圭敤鏄庣粏鍒楄〃
+     *
+     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
+     * @return 搴旀敹璐圭敤鏄庣粏
+     */
+    @DataSource(DataSourceType.SLAVE)
+    @Override
+    public List<ReceivableFeeDetail> selectReceivableFeeDetailList(ReceivableFeeDetail receivableFeeDetail)
+    {
+        return receivableFeeDetailMapper.selectReceivableFeeDetailList(receivableFeeDetail);
+    }
+
+    /**
+     * 鏌ヨ搴旀敹璐圭敤鏄庣粏鍒楄〃 寮傛 瀵煎嚭
+     *
+     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
+     * @param exportKey 瀵煎嚭鍔熻兘鐨勫敮涓�鏍囪瘑
+     * @return 搴旀敹璐圭敤鏄庣粏闆嗗悎
+     */
+    @DataSource(DataSourceType.SLAVE)
+    @Async
+    @Override
+    public void export(ReceivableFeeDetail receivableFeeDetail,String exportKey) {
+
+        super.export(ReceivableFeeDetail.class,exportKey,"receivableFeeDetailData",(pageNum)->{
+            PageUtils.startPage(pageNum, Constants.EXPORT_PATE_SIZE);
+            return selectReceivableFeeDetailList(receivableFeeDetail);
+        });
+    }
+
+
+    /**
+     * 鏂板搴旀敹璐圭敤鏄庣粏
+     *
+     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
+     * @return 缁撴灉
+     */
+    @Override
+    public int insertReceivableFeeDetail(ReceivableFeeDetail receivableFeeDetail)
+    {
+        receivableFeeDetail.setCreateTime(DateUtils.getNowDate());
+        return receivableFeeDetailMapper.insertReceivableFeeDetail(receivableFeeDetail);
+    }
+
+    /**
+     * 鏂板搴旀敹璐圭敤鏄庣粏[鎵归噺]
+     *
+     * @param receivableFeeDetails 搴旀敹璐圭敤鏄庣粏
+     * @return 缁撴灉
+     */
+    @Override
+    public int insertReceivableFeeDetailBatch(List<ReceivableFeeDetail> receivableFeeDetails)
+    {
+        int rows = receivableFeeDetailMapper.insertReceivableFeeDetailBatch(receivableFeeDetails);
+        return rows;
+    }
+
+    /**
+     * 淇敼搴旀敹璐圭敤鏄庣粏
+     *
+     * @param receivableFeeDetail 搴旀敹璐圭敤鏄庣粏
+     * @return 缁撴灉
+     */
+    @Override
+    public int updateReceivableFeeDetail(ReceivableFeeDetail receivableFeeDetail)
+    {
+        receivableFeeDetail.setUpdateTime(DateUtils.getNowDate());
+        return receivableFeeDetailMapper.updateReceivableFeeDetail(receivableFeeDetail);
+    }
+
+    /**
+     * 淇敼搴旀敹璐圭敤鏄庣粏[鎵归噺]
+     *
+     * @param receivableFeeDetails 搴旀敹璐圭敤鏄庣粏
+     * @return 缁撴灉
+     */
+    @Override
+    public int updateReceivableFeeDetailBatch(List<ReceivableFeeDetail> receivableFeeDetails){
+        return receivableFeeDetailMapper.updateReceivableFeeDetailBatch(receivableFeeDetails);
+    }
+
+    /**
+     * 鍒犻櫎搴旀敹璐圭敤鏄庣粏瀵硅薄
+     *
+     * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID
+     * @return 缁撴灉
+     */
+    @Override
+    public int deleteReceivableFeeDetailByIds(String ids)
+    {
+        return deleteReceivableFeeDetailByIds(Convert.toIntArray(ids));
+    }
+
+    /**
+     * 鍒犻櫎搴旀敹璐圭敤鏄庣粏瀵硅薄
+     *
+     *
+     * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁ID
+     * @return 缁撴灉
+     */
+    @Override
+    public int deleteReceivableFeeDetailByIds(Integer[] ids)
+    {
+        return receivableFeeDetailMapper.deleteReceivableFeeDetailByIds(ids);
+    }
+
+    /**
+     * 鍒犻櫎搴旀敹璐圭敤鏄庣粏淇℃伅
+     *
+     * @param id 搴旀敹璐圭敤鏄庣粏ID
+     * @return 缁撴灉
+     */
+    @Override
+    public int deleteReceivableFeeDetailById(Integer id)
+    {
+        return receivableFeeDetailMapper.deleteReceivableFeeDetailById(id);
+    }
+
+    /**
+     * 鏍规嵁搴旀敹璐圭敤ID鍒犻櫎搴旀敹璐圭敤鏄庣粏
+     *
+     * @param receivableFeeId 搴旀敹璐圭敤ID
+     * @return 缁撴灉
+     */
+    @Override
+    public int deleteReceivableFeeDetailByReceivableFeeId(Integer receivableFeeId)
+    {
+        return receivableFeeDetailMapper.deleteReceivableFeeDetailByReceivableFeeId(receivableFeeId);
+    }
+
+    /**
+     * 鏍规嵁搴旀敹璐圭敤ID鏁扮粍鏌ヨ搴旀敹璐圭敤鏄庣粏鍒楄〃
+     *
+     * @param receivableFeeIds 搴旀敹璐圭敤ID鏁扮粍
+     * @return 搴旀敹璐圭敤鏄庣粏闆嗗悎
+     */
+    @DataSource(DataSourceType.SLAVE)
+    @Override
+    public List<ReceivableFeeDetail> selectReceivableFeeDetailByReceivableFeeIds(Integer[] receivableFeeIds)
+    {
+        return receivableFeeDetailMapper.selectReceivableFeeDetailByReceivableFeeIds(receivableFeeIds);
+    }
+}
+
\ No newline at end of file

--
Gitblit v1.8.0