From 88d0598e43a959375187485891a6cf13712ac768 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 27 十月 2026 01:12:49 +0800
Subject: [PATCH] 修改了统计

---
 ruoyi-project/src/main/resources/mapper/project/SpStatBonusMapper.xml |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/ruoyi-project/src/main/resources/mapper/project/SpStatBonusMapper.xml b/ruoyi-project/src/main/resources/mapper/project/SpStatBonusMapper.xml
index 5f292bb..c960411 100644
--- a/ruoyi-project/src/main/resources/mapper/project/SpStatBonusMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/SpStatBonusMapper.xml
@@ -4,10 +4,20 @@
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.ruoyi.project.mapper.SpStatBonusMapper">
 
+    <!-- 鏂� SP 杩斿洖 dept_id / dept_name 涓嬪垝绾垮垪锛岄」鐩湭寮�鍚� mapUnderscoreToCamelCase锛岄渶鏄惧紡鏄犲皠 -->
+    <resultMap id="SpStatBonusResult" type="com.ruoyi.project.domain.SpStatBonus">
+        <result property="bonusmonth" column="bonusmonth"/>
+        <result property="deptId" column="dept_id"/>
+        <result property="deptName" column="dept_name"/>
+        <result property="beneficiaryno" column="BeneficiaryNo"/>
+        <result property="beneficiaryname" column="BeneficiaryName"/>
+        <result property="amount" column="amount"/>
+    </resultMap>
 
     <select id="getListBySpStatBonus" statementType="CALLABLE"
-            resultType="com.ruoyi.project.domain.SpStatBonus">
-        call `SP_STAT_BONUS`(#{PABEGTIME,mode=IN,jdbcType=VARCHAR},#{PAENDTIME,mode=IN,jdbcType=VARCHAR},#{PADEPTNO,mode=IN,jdbcType=VARCHAR},#{PAUSERNO,mode=IN,jdbcType=VARCHAR},#{PABONUSTYPE,mode=IN,jdbcType=INTEGER})
+            resultMap="SpStatBonusResult">
+        call `SP_STAT_BONUS`(#{PABEGTIME,mode=IN,jdbcType=VARCHAR},#{PAENDTIME,mode=IN,jdbcType=VARCHAR},#{PADEPTNO,mode=IN,jdbcType=VARCHAR},#{PAUSERNAME,mode=IN,jdbcType=VARCHAR},#{PABONUSTYPE,mode=IN,jdbcType=VARCHAR
+        })
     </select>
 
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3