Update service slip gaji
Clean code
This commit is contained in:
parent
8684e1eae2
commit
9e1138801c
@ -1,12 +1,11 @@
|
|||||||
package com.jasamedika.medifirst2000.service;
|
package com.jasamedika.medifirst2000.service;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import com.jasamedika.medifirst2000.dto.KomponenGajiDto;
|
import com.jasamedika.medifirst2000.dto.KomponenGajiDto;
|
||||||
import com.jasamedika.medifirst2000.dto.SlipGajiDto;
|
import com.jasamedika.medifirst2000.dto.SlipGajiDto;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author salmanoe
|
* @author salmanoe
|
||||||
* @since Jan 20, 2023
|
* @since Jan 20, 2023
|
||||||
@ -24,7 +23,5 @@ public interface SlipGajiService {
|
|||||||
|
|
||||||
String writeExcel(Long bulan) throws IOException;
|
String writeExcel(Long bulan) throws IOException;
|
||||||
|
|
||||||
Map<String, Object> previewPdf(Integer pegawaiId, Long bulan);
|
|
||||||
|
|
||||||
List<KomponenGajiDto> listKomponen();
|
List<KomponenGajiDto> listKomponen();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -542,18 +542,6 @@ public class SlipGajiServiceImpl implements SlipGajiService {
|
|||||||
return absoluteFilePath;
|
return absoluteFilePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Map<String, Object> previewPdf(Integer pegawaiId, Long bulan) {
|
|
||||||
SlipGajiDto dto = this.get(pegawaiId, bulan);
|
|
||||||
Map<String, Object> result = new HashMap<>();
|
|
||||||
result.put("namaPegawai", dto.getNamaPegawai());
|
|
||||||
result.put("nip", dto.getNip());
|
|
||||||
result.put("jabatan", dto.getJabatan());
|
|
||||||
result.put("unitKerja", dto.getUnitKerja());
|
|
||||||
result.put("subUnitKerja", dto.getSubUnitKerja());
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<KomponenGajiDto> listKomponen() {
|
public List<KomponenGajiDto> listKomponen() {
|
||||||
List<KomponenGajiDto> result = new ArrayList<>();
|
List<KomponenGajiDto> result = new ArrayList<>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user