Update async service target skor
Disabled karena perubahan aturan bisnis dalam menhitung target skor dokter
This commit is contained in:
parent
41fa16d98d
commit
63b8a7d519
@ -9,7 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.scheduling.annotation.Async;
|
import org.springframework.scheduling.annotation.Async;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.jasamedika.medifirst2000.asynctask.timer.TargetLayananTimer;
|
//import com.jasamedika.medifirst2000.asynctask.timer.TargetLayananTimer;
|
||||||
import com.jasamedika.medifirst2000.controller.base.LocaleController;
|
import com.jasamedika.medifirst2000.controller.base.LocaleController;
|
||||||
import com.jasamedika.medifirst2000.service.IkiDanRemunerasiService;
|
import com.jasamedika.medifirst2000.service.IkiDanRemunerasiService;
|
||||||
import com.jasamedika.medifirst2000.util.CommonUtil;
|
import com.jasamedika.medifirst2000.util.CommonUtil;
|
||||||
@ -22,24 +22,28 @@ public class TargetLayananGenerating extends LocaleController<TargetLayananVO> {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IkiDanRemunerasiService remunerasiService;
|
private IkiDanRemunerasiService remunerasiService;
|
||||||
|
|
||||||
public TargetLayananGenerating() {
|
/**
|
||||||
int day = 4;
|
* Disabled following update business rules
|
||||||
int hour = 0;
|
* @since 2022/08/28
|
||||||
int minute = 00;
|
*/
|
||||||
TargetLayananTimer.schedule(new Runnable() {
|
// public TargetLayananGenerating() {
|
||||||
@Override
|
// int day = 4;
|
||||||
public void run() {
|
// int hour = 0;
|
||||||
try {
|
// int minute = 00;
|
||||||
LOGGER.info("Task Target Layanan : Running Task Target Layanan");
|
// TargetLayananTimer.schedule(new Runnable() {
|
||||||
genTargetLayanan();
|
// @Override
|
||||||
} catch (Exception ex) {
|
// public void run() {
|
||||||
LOGGER.error("Task Target Layanan : Task Target Layanan " + ex.getMessage());
|
// try {
|
||||||
} finally {
|
// LOGGER.info("Task Target Layanan : Running Task Target Layanan");
|
||||||
LOGGER.info("Task Target Layanan : Finishing Task Target Layanan");
|
// genTargetLayanan();
|
||||||
}
|
// } catch (Exception ex) {
|
||||||
}
|
// LOGGER.error("Task Target Layanan : Task Target Layanan " + ex.getMessage());
|
||||||
}, day, hour, minute);
|
// } finally {
|
||||||
}
|
// LOGGER.info("Task Target Layanan : Finishing Task Target Layanan");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }, day, hour, minute);
|
||||||
|
// }
|
||||||
|
|
||||||
@Async
|
@Async
|
||||||
public void genTargetLayanan() {
|
public void genTargetLayanan() {
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.scheduling.annotation.Async;
|
import org.springframework.scheduling.annotation.Async;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.jasamedika.medifirst2000.asynctask.timer.TargetSkorDokterTimer;
|
//import com.jasamedika.medifirst2000.asynctask.timer.TargetSkorDokterTimer;
|
||||||
import com.jasamedika.medifirst2000.controller.base.LocaleController;
|
import com.jasamedika.medifirst2000.controller.base.LocaleController;
|
||||||
import com.jasamedika.medifirst2000.service.IkiDanRemunerasiService;
|
import com.jasamedika.medifirst2000.service.IkiDanRemunerasiService;
|
||||||
import com.jasamedika.medifirst2000.util.CommonUtil;
|
import com.jasamedika.medifirst2000.util.CommonUtil;
|
||||||
@ -24,23 +24,27 @@ public class TargetSkorDokterGenerating extends LocaleController<TargetSkorDokte
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IkiDanRemunerasiService remunerasiService;
|
private IkiDanRemunerasiService remunerasiService;
|
||||||
|
|
||||||
public TargetSkorDokterGenerating() {
|
/**
|
||||||
int the1st = 1;
|
* Disabled following update business rules
|
||||||
int at0hrs = 0;
|
* @since 2022/08/28
|
||||||
TargetSkorDokterTimer.schedule(new Runnable() {
|
*/
|
||||||
@Override
|
// public TargetSkorDokterGenerating() {
|
||||||
public void run() {
|
// int the1st = 1;
|
||||||
try {
|
// int at0hrs = 0;
|
||||||
LOGGER.info("Task Target Skor Dokter : Running Task Target Skor Dokter");
|
// TargetSkorDokterTimer.schedule(new Runnable() {
|
||||||
generateTargetSkorDokter();
|
// @Override
|
||||||
} catch (Exception ex) {
|
// public void run() {
|
||||||
LOGGER.error("Task Target Skor Dokter : Task Target Skor Dokter " + ex.getMessage());
|
// try {
|
||||||
} finally {
|
// LOGGER.info("Task Target Skor Dokter : Running Task Target Skor Dokter");
|
||||||
LOGGER.info("Task Target Skor Dokter : Finishing Target Skor Dokter");
|
// generateTargetSkorDokter();
|
||||||
}
|
// } catch (Exception ex) {
|
||||||
}
|
// LOGGER.error("Task Target Skor Dokter : Task Target Skor Dokter " + ex.getMessage());
|
||||||
}, the1st, at0hrs);
|
// } finally {
|
||||||
}
|
// LOGGER.info("Task Target Skor Dokter : Finishing Target Skor Dokter");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }, the1st, at0hrs);
|
||||||
|
// }
|
||||||
|
|
||||||
@Async
|
@Async
|
||||||
public void generateTargetSkorDokter() {
|
public void generateTargetSkorDokter() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user