Update TargetSkorDokterService
Pencabutan fungsi formatting number untuk separator ribuan di menu skoring tindakan medis
This commit is contained in:
parent
fcc1e63c29
commit
357c6b4c22
@ -1,13 +1,11 @@
|
||||
package com.jasamedika.medifirst2000.service.impl;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.NumberFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -213,14 +211,11 @@ public class TargetSkorDokterServiceImpl extends BaseVoServiceImpl implements Ta
|
||||
public List<Map<String, Object>> findAll(Long tahun) throws JpaSystemException {
|
||||
DateFormat tf = new SimpleDateFormat("yyyy");
|
||||
|
||||
NumberFormat nf = NumberFormat.getInstance(new Locale("in", "ID"));
|
||||
nf.setMinimumFractionDigits(2);
|
||||
|
||||
List<Map<String, Object>> result = targetSkorDao.findAll(tf.format(new Date(tahun)));
|
||||
for (Map<String, Object> rs : result) {
|
||||
double totalTargetSkor = Double.parseDouble(rs.get("totalTargetSkor").toString());
|
||||
|
||||
rs.put("totalTargetSkor", nf.format(MathUtil.round(totalTargetSkor, 2)));
|
||||
rs.put("totalTargetSkor", MathUtil.round(totalTargetSkor, 2));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user