|
|
@@ -5,13 +5,18 @@ import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
+import org.springframework.data.jpa.repository.Modifying;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
/**
|
|
|
* @author reghao
|
|
|
* @date 2025-12-17 15:47:12
|
|
|
*/
|
|
|
public interface MachineProcRepository extends JpaRepository<MachineProc, Integer>, JpaSpecificationExecutor<MachineProc> {
|
|
|
+ @Transactional
|
|
|
+ @Modifying
|
|
|
void deleteByMachineId(String machineId);
|
|
|
+
|
|
|
Page<MachineProc> findByMachineId(String machineId, Pageable pageable);
|
|
|
MachineProc findByMachineIdAndBindAddress(String machineId, String bindAddress);
|
|
|
}
|