20 lines
620 B
Java
20 lines
620 B
Java
package net.gepafin.tendermanagement.config;
|
|
|
|
import jakarta.annotation.PostConstruct;
|
|
import net.gepafin.tendermanagement.constants.GepafinConstant;
|
|
import net.gepafin.tendermanagement.repositories.ApplicationRepository;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Component
|
|
public class NdgStatusResetHandler {
|
|
|
|
@Autowired
|
|
private ApplicationRepository applicationRepository;
|
|
|
|
@PostConstruct
|
|
public void resetNdgStatusOnStartup() {
|
|
applicationRepository.resetNdgStatusForInProgress(GepafinConstant.NDG_IN_PROGRESS);
|
|
}
|
|
}
|