liupeng 4 years ago
parent
commit
77786f59cb

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapEmpTerminationMapper.xml

@@ -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>
 	

+ 1 - 0
code/sapparent/sapservice/src/main/java/org/fouram/service/SapUserService.java

@@ -148,6 +148,7 @@ public class SapUserService extends BaseService {
 		}
 		// EmpEmploymentTermination
 		sapEmpTerminationService.saveSapData();
+		// 更新离职日期
 		sapEmpTerminationService.updateAllUserEndDate();
 	}