薪资计算逻辑完善

This commit is contained in:
2025-06-24 14:25:19 +08:00
parent 3d6fe57c50
commit 9995425f28
11 changed files with 70 additions and 13 deletions

View File

@@ -21,6 +21,11 @@
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<insert id="insertBinding">
INSERT INTO oa_employee_template_binding
(employee_id, insurance_template_id, salary_template_id, pay_year, pay_month, net_salary, total_company_cost, status)
VALUES (#{employeeId}, #{insuranceTemplateId}, #{salaryTemplateId}, #{payYear}, #{payMonth}, #{netSalary}, #{totalCompanyCost}, #{status})
</insert>
<select id="findByEmployeeAndMonth" resultType="com.ruoyi.oa.domain.OaEmployeeTemplateBinding">
SELECT * FROM oa_employee_template_binding
WHERE employee_id = #{employeeId}