penambahan terbaru

This commit is contained in:
2025-08-04 09:51:31 +07:00
parent bbf73e12b8
commit 44a91b54e0
4 changed files with 8 additions and 4 deletions

No files matched your search

+5 -1
View File
@@ -1,12 +1,16 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="GoDfaErrorMayBeNotNil" enabled="true" level="WARNING" enabled_by_default="true">
<inspection_tool class="GoDfaConstantCondition" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="GoDfaErrorMayBeNotNil" enabled="false" level="WARNING" enabled_by_default="false">
<functions>
<function importPath="bridging-rssa/handlers/bpjs/surat_kontrol" name="ResponseUpdateSuratKontrol" />
<function importPath="bridging-rssa/handlers/bpjs/surat_kontrol" name="PostData" />
<function importPath="bridging-rssa/handlers/bpjs/surat_kontrol" name="ResponseDeleteSuratKontrol" />
</functions>
</inspection_tool>
<inspection_tool class="GoDfaNilDereference" enabled="false" level="WARNING" enabled_by_default="false">
<scope name="Project Files" level="WARNING" enabled="false" />
</inspection_tool>
</profile>
</component>
@@ -411,7 +411,7 @@ func GetDataSuratKontrolByID(idxdaftar string) (*suratkontrol.GetDataSuratKontro
left join data_pegawai dp on dsk."DPJP_surat_kontrol" = dp."id"
left join data_ktp dk on dp."KTP" = dk. "id"
left join daftar_subspesialis ds on dp."Subspesialis" = ds."id"
where dsk."Status_surat_kontrol" = '1' and dkp2."IDXDAFTAR" = ? and dsk."Tipe_rawat" is null`, idxdaftar).First(&dataSurKon).Error
where dsk."Status_surat_kontrol" = '1' and dkp2."IDXDAFTAR" = ? `, idxdaftar).First(&dataSurKon).Error
if err != nil {
if errors.Is(err, gorm.ErrRecordNotFound) {
errMsg := errors.New("Data tidak ada")
+1 -1
View File
@@ -160,7 +160,7 @@ func PostData(url string, header *config.Header, headers map[string]string, requ
}
if response.StatusCode == http.StatusInternalServerError { // 500
errMsg := errors.New("Koneksi BPJS Down")
errMsg := errors.New("Server BPJS Down")
log.Printf("error : %v", errMsg)
responses.MetaData.Code = "500"
responses.MetaData.Message = errMsg.Error()
+1 -1
View File
@@ -62,7 +62,7 @@ func main() {
})
//SCHEDULE TIAP 3 BULAN
scheduler.AddFunc("10 2 * * 5", func() {
scheduler.AddFunc("30 2 * * 1", func() {
log.Println("=== RUNNING SCHEDULE GET JADWAL DOKTER MONTHLY===")
for {
success := jadwal_dokter.GetDataJadwalDokter()