@@ -7,7 +7,7 @@
values (#{userId},#{endDate})
</insert>
- <select id="selectOneByPersonId" resultType="SapEmpTermination">
+ <select id="selectOneByUserId" resultType="SapEmpTermination">
select * from sap_emp_termination where userId=#{userId}
</select>
@@ -148,6 +148,7 @@ public class SapUserService extends BaseService {
}
// EmpEmploymentTermination
sapEmpTerminationService.saveSapData();
+ // 更新离职日期
sapEmpTerminationService.updateAllUserEndDate();