设置状态

This commit is contained in:
2026-08-27 16:53:43 +08:00
parent 929fe71be4
commit c83a4d78f0
2 changed files with 2 additions and 2 deletions
@@ -82,7 +82,7 @@ public interface SchTeacherGroupRepository extends JpaRepository<SchTeacherGroup
* 适用场景:批量转出/转入
*/
@Modifying
@Query("UPDATE SchTeacherGroup g SET g.transferStatus = :status WHERE g.id IN :teaIds AND g.schId = :schId")
@Query("UPDATE SchTeacherGroup g SET g.transferStatus = :status WHERE g.teaId IN :teaIds AND g.schId = :schId")
int batchUpdateTransferStatus(@Param("teaIds") List<Integer> teaIds,
@Param("schId") Integer schId,
@Param("status") Integer status);
@@ -103,7 +103,7 @@ public class SchTeacherRelationService {
// 4. 更新状态为转出
int updated = schTeacherGroupRepository.batchUpdateTransferStatus(
idList,
teacherTeaIds,
schId,
TransferStatus.OUT.getId()
);