Clean code
This commit is contained in:
parent
3c39935942
commit
ef2fd5ea12
@ -1,11 +1,7 @@
|
||||
package com.jasamedika.medifirst2000.dao;
|
||||
|
||||
import org.springframework.data.repository.PagingAndSortingRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.jasamedika.medifirst2000.entities.LogbookDokter;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
@Repository("LogbookDokterDao")
|
||||
public interface LogbookDokterDao extends PagingAndSortingRepository<LogbookDokter, String> {
|
||||
|
||||
public interface LogbookDokterDao extends JpaRepository<LogbookDokter, String> {
|
||||
}
|
||||
|
||||
@ -1,16 +1,11 @@
|
||||
package com.jasamedika.medifirst2000.service;
|
||||
|
||||
import com.jasamedika.medifirst2000.entities.Pegawai;
|
||||
import com.jasamedika.medifirst2000.vo.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.jasamedika.medifirst2000.entities.Pegawai;
|
||||
import com.jasamedika.medifirst2000.vo.IndekKinerjaVO;
|
||||
import com.jasamedika.medifirst2000.vo.IndeksKinerjaIndividuCustomVO;
|
||||
import com.jasamedika.medifirst2000.vo.IndeksKinerjaIndividuVO;
|
||||
import com.jasamedika.medifirst2000.vo.MapKalenderToHariLiburVO;
|
||||
import com.jasamedika.medifirst2000.vo.NilaiIndexKinerjaIndividuVO;
|
||||
import com.jasamedika.medifirst2000.vo.TabelAcuanIndeksIKIVO;
|
||||
|
||||
public interface IndekKinerjaService {
|
||||
|
||||
Map<String, Object> saveIndekKinerja(List<IndekKinerjaVO> vo);
|
||||
@ -58,7 +53,7 @@ public interface IndekKinerjaService {
|
||||
|
||||
Map<String, Object> rekapIKI(Integer ruanganId, String periode);
|
||||
|
||||
public List<Integer> splitIdProdukAdministrasi();
|
||||
List<Integer> splitIdProdukAdministrasi();
|
||||
|
||||
Map<String, Object> rekapPoin(String periode, int idPegawai);
|
||||
|
||||
@ -84,7 +79,8 @@ public interface IndekKinerjaService {
|
||||
|
||||
List<Map<String, Object>> getAllTindakanByDokterReport(String periode, Integer idPegawai);
|
||||
|
||||
List<Map<String, Object>> getAllTindakanByDokterReportReview(String periode, Integer idPegawai, Integer idAlternatif);
|
||||
List<Map<String, Object>> getAllTindakanByDokterReportReview(String periode, Integer idPegawai,
|
||||
Integer idAlternatif);
|
||||
|
||||
List<Map<String, Object>> getAllTindakanDokter(String periode, Integer idPegawai);
|
||||
|
||||
@ -93,8 +89,8 @@ public interface IndekKinerjaService {
|
||||
List<Map<String, Object>> findPatientDetailForEveryTindakan(Integer idProduk, Integer idKelas, Integer idPegawai,
|
||||
String tgl, Boolean ffs);
|
||||
|
||||
List<Map<String, Object>> findPatientDetailForEveryTindakanReview(Integer idProduk, Integer idKelompokPasien, Integer idKelas,
|
||||
Integer idPegawai, String tgl, Boolean ffs, Double diskon, Integer statusDiskon);
|
||||
List<Map<String, Object>> findPatientDetailForEveryTindakanReview(Integer idProduk, Integer idKelompokPasien,
|
||||
Integer idKelas, Integer idPegawai, String tgl, Boolean ffs, Double diskon, Integer statusDiskon);
|
||||
|
||||
List<Map<String, Object>> findPatientDetailForEveryTindakanReview(Integer idPegawai, String tgl, Boolean ffs);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,74 +1,35 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "DetailLogbookDokter_T")
|
||||
public class DetailLogbookDokter extends BaseTransaction {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 8003361970314967209L;
|
||||
|
||||
@Column(name = "count", nullable = true)
|
||||
|
||||
@Column(name = "count")
|
||||
@Caption(value = "Count")
|
||||
private Long count;
|
||||
|
||||
@Column(name = "harga", nullable = true)
|
||||
|
||||
@Column(name = "harga")
|
||||
@Caption(value = "Harga")
|
||||
private Double harga;
|
||||
|
||||
@Column(name = "tanggal", nullable = true)
|
||||
|
||||
@Column(name = "tanggal")
|
||||
@Caption(value = "Tanggal")
|
||||
private Date tanggal;
|
||||
|
||||
@ManyToOne(fetch=FetchType.LAZY)
|
||||
@Caption(value="Object Logbook Dokter")
|
||||
@JoinColumn(name="ObjectLogbookDokterFK")
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@Caption(value = "Object Logbook Dokter")
|
||||
@JoinColumn(name = "ObjectLogbookDokterFK")
|
||||
private LogbookDokter logbookDokter;
|
||||
|
||||
public Long getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(Long count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public Double getHarga() {
|
||||
return harga;
|
||||
}
|
||||
|
||||
public void setHarga(Double harga) {
|
||||
this.harga = harga;
|
||||
}
|
||||
|
||||
public Date getTanggal() {
|
||||
return tanggal;
|
||||
}
|
||||
|
||||
public void setTanggal(Date tanggal) {
|
||||
this.tanggal = tanggal;
|
||||
}
|
||||
|
||||
public LogbookDokter getLogbookDokter() {
|
||||
return logbookDokter;
|
||||
}
|
||||
|
||||
public void setLogbookDokter(LogbookDokter logbookDokter) {
|
||||
this.logbookDokter = logbookDokter;
|
||||
}
|
||||
|
||||
public static long getSerialversionuid() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,192 +1,73 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Set;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "LogbookDokter_T")
|
||||
public class LogbookDokter extends BaseTransaction {
|
||||
|
||||
|
||||
private static final long serialVersionUID = -3993902298828376060L;
|
||||
|
||||
@Column(name = "objectProdukFk", nullable = true)
|
||||
|
||||
@Column(name = "objectProdukFk")
|
||||
@Caption(value = "Id Produk")
|
||||
private Integer idProduk;
|
||||
|
||||
@Column(name = "objectPegawaiFk", nullable = true)
|
||||
|
||||
@Column(name = "objectPegawaiFk")
|
||||
@Caption(value = "Id Pegawai")
|
||||
private Integer idPegawai;
|
||||
|
||||
@Column(name = "objectDetailJenisProdukFk", nullable = true)
|
||||
|
||||
@Column(name = "objectDetailJenisProdukFk")
|
||||
@Caption(value = "Id Detail Jenis Produk")
|
||||
private Integer detailId;
|
||||
|
||||
@Column(name = "detailJenisProduk", nullable = true)
|
||||
|
||||
@Column(name = "detailJenisProduk")
|
||||
@Caption(value = "Detail Jenis Produk")
|
||||
private String detailJenisProduk;
|
||||
|
||||
@Column(name = "harga", nullable = true)
|
||||
|
||||
@Column(name = "harga")
|
||||
@Caption(value = "Harga")
|
||||
private Double harga;
|
||||
|
||||
@Column(name = "hargaKelasSatu", nullable = true)
|
||||
|
||||
@Column(name = "hargaKelasSatu")
|
||||
@Caption(value = "Harga Kelas 1")
|
||||
private Double hargaKelas1;
|
||||
|
||||
@Column(name = "objectJenisPelaksanaFk", nullable = true)
|
||||
|
||||
@Column(name = "objectJenisPelaksanaFk")
|
||||
@Caption(value = "Id Jenis Pelaksana")
|
||||
private Integer idJenisPelaksana;
|
||||
|
||||
@Column(name = "objectKelasFk", nullable = true)
|
||||
|
||||
@Column(name = "objectKelasFk")
|
||||
@Caption(value = "Id Kelas")
|
||||
private Integer idKelas;
|
||||
|
||||
@Column(name = "namaKelas", nullable = true)
|
||||
|
||||
@Column(name = "namaKelas")
|
||||
@Caption(value = "Nama Kelas")
|
||||
private String namaKelas;
|
||||
|
||||
@Column(name = "namaProduk", nullable = true)
|
||||
|
||||
@Column(name = "namaProduk")
|
||||
@Caption(value = "Nama Produk")
|
||||
private String namaProduk;
|
||||
|
||||
@Column(name = "poin", nullable = true)
|
||||
|
||||
@Column(name = "poin")
|
||||
@Caption(value = "Poin")
|
||||
private Double poin;
|
||||
|
||||
@Column(name = "poinQty", nullable = true)
|
||||
|
||||
@Column(name = "poinQty")
|
||||
@Caption(value = "Jumlah Poin")
|
||||
private Double poinQty;
|
||||
|
||||
@Column(name = "totalTindakan", nullable = true)
|
||||
|
||||
@Column(name = "totalTindakan")
|
||||
@Caption(value = "Total Tindakan")
|
||||
private Long totalTindakan;
|
||||
|
||||
@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "logbookDokter")
|
||||
private Long totalTindakan;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "logbookDokter")
|
||||
private Set<DetailLogbookDokter> detailLogbookDokter;
|
||||
|
||||
public Integer getIdProduk() {
|
||||
return idProduk;
|
||||
}
|
||||
|
||||
public void setIdProduk(Integer idProduk) {
|
||||
this.idProduk = idProduk;
|
||||
}
|
||||
|
||||
public Integer getIdPegawai() {
|
||||
return idPegawai;
|
||||
}
|
||||
|
||||
public void setIdPegawai(Integer idPegawai) {
|
||||
this.idPegawai = idPegawai;
|
||||
}
|
||||
|
||||
public Integer getDetailId() {
|
||||
return detailId;
|
||||
}
|
||||
|
||||
public void setDetailId(Integer detailId) {
|
||||
this.detailId = detailId;
|
||||
}
|
||||
|
||||
public String getDetailJenisProduk() {
|
||||
return detailJenisProduk;
|
||||
}
|
||||
|
||||
public void setDetailJenisProduk(String detailJenisProduk) {
|
||||
this.detailJenisProduk = detailJenisProduk;
|
||||
}
|
||||
|
||||
public Double getHarga() {
|
||||
return harga;
|
||||
}
|
||||
|
||||
public void setHarga(Double harga) {
|
||||
this.harga = harga;
|
||||
}
|
||||
|
||||
public Double getHargaKelas1() {
|
||||
return hargaKelas1;
|
||||
}
|
||||
|
||||
public void setHargaKelas1(Double hargaKelas1) {
|
||||
this.hargaKelas1 = hargaKelas1;
|
||||
}
|
||||
|
||||
public Integer getIdJenisPelaksana() {
|
||||
return idJenisPelaksana;
|
||||
}
|
||||
|
||||
public void setIdJenisPelaksana(Integer idJenisPelaksana) {
|
||||
this.idJenisPelaksana = idJenisPelaksana;
|
||||
}
|
||||
|
||||
public Integer getIdKelas() {
|
||||
return idKelas;
|
||||
}
|
||||
|
||||
public void setIdKelas(Integer idKelas) {
|
||||
this.idKelas = idKelas;
|
||||
}
|
||||
|
||||
public String getNamaKelas() {
|
||||
return namaKelas;
|
||||
}
|
||||
|
||||
public void setNamaKelas(String namaKelas) {
|
||||
this.namaKelas = namaKelas;
|
||||
}
|
||||
|
||||
public String getNamaProduk() {
|
||||
return namaProduk;
|
||||
}
|
||||
|
||||
public void setNamaProduk(String namaProduk) {
|
||||
this.namaProduk = namaProduk;
|
||||
}
|
||||
|
||||
public Double getPoin() {
|
||||
return poin;
|
||||
}
|
||||
|
||||
public void setPoin(Double poin) {
|
||||
this.poin = poin;
|
||||
}
|
||||
|
||||
public Double getPoinQty() {
|
||||
return poinQty;
|
||||
}
|
||||
|
||||
public void setPoinQty(Double poinQty) {
|
||||
this.poinQty = poinQty;
|
||||
}
|
||||
|
||||
public Long getTotalTindakan() {
|
||||
return totalTindakan;
|
||||
}
|
||||
|
||||
public void setTotalTindakan(Long totalTindakan) {
|
||||
this.totalTindakan = totalTindakan;
|
||||
}
|
||||
|
||||
public Set<DetailLogbookDokter> getDetailLogbookDokter() {
|
||||
return detailLogbookDokter;
|
||||
}
|
||||
|
||||
public void setDetailLogbookDokter(Set<DetailLogbookDokter> detailLogbookDokter) {
|
||||
this.detailLogbookDokter = detailLogbookDokter;
|
||||
}
|
||||
|
||||
public static long getSerialversionuid() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user