diff --git a/jasamedika-business/src/main/java/com/jasamedika/medifirst2000/service/impl/PegawaiServiceImpl.java b/jasamedika-business/src/main/java/com/jasamedika/medifirst2000/service/impl/PegawaiServiceImpl.java index 5a74104d..08b69015 100644 --- a/jasamedika-business/src/main/java/com/jasamedika/medifirst2000/service/impl/PegawaiServiceImpl.java +++ b/jasamedika-business/src/main/java/com/jasamedika/medifirst2000/service/impl/PegawaiServiceImpl.java @@ -17,8 +17,6 @@ import org.joda.time.Chronology; import org.joda.time.LocalDate; import org.joda.time.chrono.ISOChronology; import org.joda.time.chrono.IslamicChronology; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.data.domain.Page; @@ -90,9 +88,6 @@ import com.jasamedika.medifirst2000.vo.RekamDataPegawaiVO; */ @Service("pegawaiService") public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiService { - - private static final Logger LOGGER = LoggerFactory.getLogger(PegawaiServiceImpl.class); - @Value("${systemDirectory}") String systemDirectory; @@ -1836,9 +1831,6 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ String path = systemDirectory + dirname + "/"; if (osName.contains("win")) path = systemDirectory.replace("/", "\\") + dirname + "\\"; - - LOGGER.info("Path foto profil {}", path); - return path; } @@ -1849,9 +1841,6 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ String imageURLData = ""; File file = new File(getDirPathFotoProfil("foto-profil") + idPegawai + ".jpg"); - - LOGGER.info("Path foto profil {}", file.getAbsolutePath()); - String encodeRs = ImageUtil.encodeFileToBase64Binary(file); if (CommonUtil.isNotNullOrEmpty(encodeRs)) { imageURLData = "data:image/jpg;base64," + encodeRs; @@ -2435,9 +2424,6 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ for (Map map : result) { String imageURLData = ""; File file = new File(getDirPathFotoProfil("foto-profil") + map.get("id").toString() + ".jpg"); - - LOGGER.info("Path foto profil {}", file.getAbsolutePath()); - String encodeRs = ImageUtil.encodeFileToBase64Binary(file); if (CommonUtil.isNotNullOrEmpty(encodeRs)) { imageURLData = "data:image/jpg;base64," + encodeRs; @@ -2452,9 +2438,6 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ public String findAvatar(Integer idPegawai) { String result = ""; File file = new File(getDirPathFotoProfil("foto-profil") + idPegawai.toString() + ".jpg"); - - LOGGER.info("Path foto profil {}", file.getAbsolutePath()); - String encodeRs = ImageUtil.encodeFileToBase64Binary(file); if (CommonUtil.isNotNullOrEmpty(encodeRs)) { result = "data:image/jpg;base64," + encodeRs; diff --git a/jasamedika-domain/src/main/java/com/jasamedika/medifirst2000/entities/GolonganProduk.java b/jasamedika-domain/src/main/java/com/jasamedika/medifirst2000/entities/GolonganProduk.java index bef1438f..44a76ce3 100644 --- a/jasamedika-domain/src/main/java/com/jasamedika/medifirst2000/entities/GolonganProduk.java +++ b/jasamedika-domain/src/main/java/com/jasamedika/medifirst2000/entities/GolonganProduk.java @@ -1,24 +1,18 @@ package com.jasamedika.medifirst2000.entities; -import java.io.Serializable; -import org.hibernate.envers.Audited; -import javax.persistence.*; - -import org.hibernate.validator.constraints.NotEmpty; - -import com.jasamedika.medifirst2000.base.BaseMaster; -import javax.validation.constraints.NotNull; -import org.hibernate.validator.constraints.Length; -import org.hibernate.validator.internal.util.logging.Messages; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonManagedReference; -import com.jasamedika.medifirst2000.base.BaseMaster; -import com.jasamedika.medifirst2000.helper.Caption; -import org.hibernate.envers.Audited; +import javax.persistence.Column; +import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; +import javax.persistence.Table; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.jasamedika.medifirst2000.base.BaseMaster; +import com.jasamedika.medifirst2000.helper.Caption; /** * class GolonganProduk