Update LogbookKinerjaDetailService
Penerapan mekanisme setting data fix untuk pengaturan tgl batas akhir verifikasi catatan kegiatan harian
This commit is contained in:
parent
dafe41cce8
commit
52ca40d1a9
@ -22,6 +22,7 @@ import com.jasamedika.medifirst2000.constants.Master;
|
||||
import com.jasamedika.medifirst2000.converter.BaseConverterImpl;
|
||||
import com.jasamedika.medifirst2000.dao.LogbookKinerjaDao;
|
||||
import com.jasamedika.medifirst2000.dao.LogbookKinerjaDetailDao;
|
||||
import com.jasamedika.medifirst2000.dao.SettingDataFixedDao;
|
||||
import com.jasamedika.medifirst2000.entities.LogbookKinerja;
|
||||
import com.jasamedika.medifirst2000.entities.LogbookKinerjaDetail;
|
||||
import com.jasamedika.medifirst2000.exception.ServiceVOException;
|
||||
@ -35,6 +36,9 @@ public class LogbookKinerjaDetailServiceImpl extends BaseVoServiceImpl implement
|
||||
@Autowired
|
||||
private BaseConverterImpl<LogbookKinerjaDetailVO, LogbookKinerjaDetail> logbookKinerjaDetailConverter;
|
||||
|
||||
@Autowired
|
||||
private SettingDataFixedDao settingDataFixedDao;
|
||||
|
||||
@Autowired
|
||||
private LogbookKinerjaDao logbookKinerjaDao;
|
||||
|
||||
@ -48,12 +52,11 @@ public class LogbookKinerjaDetailServiceImpl extends BaseVoServiceImpl implement
|
||||
LogbookKinerjaDetail logbookKinerjaDetail = logbookKinerjaDetailConverter.transferVOToModel(vo,
|
||||
new LogbookKinerjaDetail());
|
||||
|
||||
|
||||
logbookKinerjaDetail.setLogbookKinerja(logbookKinerja);
|
||||
logbookKinerjaDetail.setTanggalKegiatan(new Date());
|
||||
|
||||
logbookKinerjaDao.save(logbookKinerja);
|
||||
|
||||
|
||||
LogbookKinerjaDetail resultModel = logbookKinerjaDetailDao.save(logbookKinerjaDetail);
|
||||
if (CommonUtil.isNotNullOrEmpty(resultModel)) {
|
||||
/**
|
||||
@ -71,7 +74,7 @@ public class LogbookKinerjaDetailServiceImpl extends BaseVoServiceImpl implement
|
||||
}
|
||||
logbookKinerjaDao.save(models);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* menghitung capaian indikator satuan yang harus dihitung secara
|
||||
* rata-rata
|
||||
@ -188,8 +191,10 @@ public class LogbookKinerjaDetailServiceImpl extends BaseVoServiceImpl implement
|
||||
public List<Map<String, Object>> findWorkingRecord(Integer idPegawai, Integer idJabatan, Long bulan,
|
||||
Boolean statusVerif) throws JpaSystemException {
|
||||
DateFormat df = new SimpleDateFormat("yyyy-MM");
|
||||
|
||||
String strTglLimitVerif = settingDataFixedDao.getSettingDataFixed("tglLimitVerifWorkingRecord");
|
||||
LocalDateTime tglLimitVerif = LocalDateTime
|
||||
.of(LocalDate.parse(df.format(new Date(bulan)) + "-04").plusMonths(1), LocalTime.MAX);
|
||||
.of(LocalDate.parse(df.format(new Date(bulan)) + strTglLimitVerif).plusMonths(1), LocalTime.MAX);
|
||||
|
||||
List<Map<String, Object>> result = logbookKinerjaDetailDao.findWorkingRecord(idPegawai, idJabatan,
|
||||
df.format(new Date(bulan)), statusVerif);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user