yxh
3 天以前 88d0598e43a959375187485891a6cf13712ac768
ruoyi-project/src/main/resources/mapper/project/SpStatBonusMapper.xml
@@ -4,11 +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=VARCHAR
            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>
</mapper>