薪资计算逻辑

This commit is contained in:
2025-06-23 18:04:49 +08:00
parent 3b0d223da5
commit 3d6fe57c50
58 changed files with 3522 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.oa.mapper.OaEmployeeTemplateBindingMapper">
<resultMap type="com.ruoyi.oa.domain.OaEmployeeTemplateBinding" id="OaEmployeeTemplateBindingResult">
<result property="bindingId" column="binding_id"/>
<result property="employeeId" column="employee_id"/>
<result property="insuranceTemplateId" column="insurance_template_id"/>
<result property="salaryTemplateId" column="salary_template_id"/>
<result property="payYear" column="pay_year"/>
<result property="payMonth" column="pay_month"/>
<result property="netSalary" column="net_salary"/>
<result property="totalCompanyCost" column="total_company_cost"/>
<result property="status" column="status"/>
<result property="delFlag" column="del_flag"/>
<result property="remark" column="remark"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<select id="findByEmployeeAndMonth" resultType="com.ruoyi.oa.domain.OaEmployeeTemplateBinding">
SELECT * FROM oa_employee_template_binding
WHERE employee_id = #{employeeId}
AND pay_year = #{payYear}
AND pay_month = #{payMonth}
LIMIT 1
</select>
</mapper>