fis kesimpulan

This commit is contained in:
Hanan Askarim
2024-06-13 19:11:14 +07:00
committed by adibwp
parent 1bfeb97a57
commit 8dd071a924
10 changed files with 17 additions and 501 deletions

View File

@@ -58,7 +58,7 @@ func (k *KesimpulanServices) GetListKesimpulanLab(id string) ([]models.ModelKesi
zap.Any("id", id),
zap.Any("cek total", totalLab),
)
query := `SELECT ROW_NUMBER() OVER () AS nomor,
query := `SELECT ROW_NUMBER() OVER (ORDER BY count(Mgm_HeaderT_OrderHeaderID) DESC) AS nomor,
ifnull(Nat_TestName ,Mcu_KelainanGroupName) as Test,
cast(count(Mgm_HeaderT_OrderHeaderID)/?*100 as decimal(2,0)) as total
@@ -130,7 +130,7 @@ func (k *KesimpulanServices) GetListKesimpulanNonLab(id string) ([]models.ModelK
zap.Any("id", id),
zap.Any("cek total", totalLab),
)
query := `SELECT ROW_NUMBER() OVER () AS nomor,
query := `SELECT ROW_NUMBER() OVER (ORDER BY count(Mgm_HeaderT_OrderHeaderID) DESC) AS nomor,
ifnull(Nat_TestName ,Mcu_KelainanGroupName) as Test,
cast(count(Mgm_HeaderT_OrderHeaderID)/?*100 as decimal(2,0)) as total
@@ -202,7 +202,7 @@ func (k *KesimpulanServices) GetListKesimpulanFisik(id string) ([]models.ModelKe
zap.Any("id", id),
zap.Any("cek total", totalFisik),
)
query := `SELECT ROW_NUMBER() OVER () AS nomor,
query := `SELECT ROW_NUMBER() OVER (ORDER BY count(Mgm_HeaderT_OrderHeaderID) DESC) AS nomor,
ifnull(Nat_TestName ,Mcu_KelainanGroupName) as Test,
cast(count(Mgm_HeaderT_OrderHeaderID)/?*100 as decimal(2,0)) as total