|
@@ -399,8 +399,8 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
return 1;
|
|
return 1;
|
|
|
} else if (o1.getId().equals( o2.getId())) {
|
|
} else if (o1.getId().equals( o2.getId())) {
|
|
|
// if (o1.getChecked_num() != 0 && o2.getChecked_num() != 0) {
|
|
// if (o1.getChecked_num() != 0 && o2.getChecked_num() != 0) {
|
|
|
- int wsc = o1.getAll_check_deptw_score();
|
|
|
|
|
- int wsc2 = o2.getAll_check_deptw_score();
|
|
|
|
|
|
|
+ double wsc = o1.getAll_check_deptw_score();
|
|
|
|
|
+ double wsc2 = o2.getAll_check_deptw_score();
|
|
|
if ((o1.getAll_check_score() - wsc +(wsc >= 20 ? 2 : wsc < 10 ? 0 : 1 ) + 0.0) > (o2.getAll_check_score()
|
|
if ((o1.getAll_check_score() - wsc +(wsc >= 20 ? 2 : wsc < 10 ? 0 : 1 ) + 0.0) > (o2.getAll_check_score()
|
|
|
-wsc2 + (wsc2 >= 20 ? 2 : wsc2 < 10 ? 0 : 1) + 0.0)) {
|
|
-wsc2 + (wsc2 >= 20 ? 2 : wsc2 < 10 ? 0 : 1) + 0.0)) {
|
|
|
return 1;
|
|
return 1;
|
|
@@ -514,28 +514,28 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
//
|
|
//
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
- private Integer getItemScore(StatisticsBo obj, String name) {
|
|
|
|
|
|
|
+ private Double getItemScore(StatisticsBo obj, String name) {
|
|
|
List<String> names = obj.getChecked_socre_name();
|
|
List<String> names = obj.getChecked_socre_name();
|
|
|
- List<Integer> scores = obj.getChecked_score();
|
|
|
|
|
|
|
+ List<Double> scores = obj.getChecked_score();
|
|
|
for (int i = 0; i < names.size(); i++) {
|
|
for (int i = 0; i < names.size(); i++) {
|
|
|
if (names.get(i).indexOf(name) > -1) {
|
|
if (names.get(i).indexOf(name) > -1) {
|
|
|
return scores.get(i);
|
|
return scores.get(i);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return 0;
|
|
|
|
|
|
|
+ return 0.00;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private Integer getItemScore2(StatisticsBean obj, String name) {
|
|
|
|
|
|
|
+ private Double getItemScore2(StatisticsBean obj, String name) {
|
|
|
|
|
|
|
|
List<String> names = obj.getChecked_socre_name();
|
|
List<String> names = obj.getChecked_socre_name();
|
|
|
- List<Integer> scores = obj.getChecked_score();
|
|
|
|
|
|
|
+ List<Double> scores = obj.getChecked_score();
|
|
|
for (int i = 0; i < names.size(); i++) {
|
|
for (int i = 0; i < names.size(); i++) {
|
|
|
if(names.get(i)==null) continue;
|
|
if(names.get(i)==null) continue;
|
|
|
if (names.get(i).indexOf(name) > -1) {
|
|
if (names.get(i).indexOf(name) > -1) {
|
|
|
return scores.get(i);
|
|
return scores.get(i);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return 0;
|
|
|
|
|
|
|
+ return 0.00;
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -679,7 +679,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}
|
|
}
|
|
|
List<StatisticsBean> list = getFeeStationCheckItemScore(obj);
|
|
List<StatisticsBean> list = getFeeStationCheckItemScore(obj);
|
|
|
int totalMan = 0, totalcheckedMan = 0, totalcheckedCount = 0, totalAll = 0;
|
|
int totalMan = 0, totalcheckedMan = 0, totalcheckedCount = 0, totalAll = 0;
|
|
|
- Map<String, Integer> scoreTypeMap = new HashMap<String, Integer>();
|
|
|
|
|
|
|
+ Map<String, Double> scoreTypeMap = new HashMap<String, Double>();
|
|
|
// 处理数据
|
|
// 处理数据
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
StatisticsBean st = list.get(i);
|
|
StatisticsBean st = list.get(i);
|
|
@@ -705,11 +705,11 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
totalcheckedCount += st.getChecked_num();
|
|
totalcheckedCount += st.getChecked_num();
|
|
|
totalAll += st.getAll_check_score();
|
|
totalAll += st.getAll_check_score();
|
|
|
List<String> names = st.getChecked_socre_name();
|
|
List<String> names = st.getChecked_socre_name();
|
|
|
- List<Integer> scores = st.getChecked_score();
|
|
|
|
|
|
|
+ List<Double> scores = st.getChecked_score();
|
|
|
for (int j = 0; j < names.size(); j++) {
|
|
for (int j = 0; j < names.size(); j++) {
|
|
|
- Integer score = scoreTypeMap.get(names.get(j));
|
|
|
|
|
|
|
+ Double score = scoreTypeMap.get(names.get(j));
|
|
|
if (score == null)
|
|
if (score == null)
|
|
|
- score = 0;
|
|
|
|
|
|
|
+ score = 0.00;
|
|
|
score += scores.get(j);
|
|
score += scores.get(j);
|
|
|
scoreTypeMap.put(names.get(j), score);
|
|
scoreTypeMap.put(names.get(j), score);
|
|
|
}
|
|
}
|
|
@@ -725,7 +725,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
if (scoreTypeMap.containsKey(c.getCode_name())) {
|
|
if (scoreTypeMap.containsKey(c.getCode_name())) {
|
|
|
scoreTypeMap.put(c.getRemark(), scoreTypeMap.get(c.getCode_name()));
|
|
scoreTypeMap.put(c.getRemark(), scoreTypeMap.get(c.getCode_name()));
|
|
|
} else {
|
|
} else {
|
|
|
- scoreTypeMap.put(c.getRemark(), 0);
|
|
|
|
|
|
|
+ scoreTypeMap.put(c.getRemark(), 0.00);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
map.putAll(scoreTypeMap);
|
|
map.putAll(scoreTypeMap);
|
|
@@ -857,7 +857,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
StatisticsBean req = obj;
|
|
StatisticsBean req = obj;
|
|
|
obj.setMth(sab.getMth());
|
|
obj.setMth(sab.getMth());
|
|
|
StatisticsBean scoreObj = statisticsDao.selectYearScoreInfoM(req);
|
|
StatisticsBean scoreObj = statisticsDao.selectYearScoreInfoM(req);
|
|
|
- int score = sab.getAll_check_score();
|
|
|
|
|
|
|
+ double score = sab.getAll_check_score();
|
|
|
if(scoreObj != null){
|
|
if(scoreObj != null){
|
|
|
score = score - sab.getAll_check_score();
|
|
score = score - sab.getAll_check_score();
|
|
|
if(scoreObj.getAll_check_score() >= 20){
|
|
if(scoreObj.getAll_check_score() >= 20){
|
|
@@ -910,8 +910,8 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
// cal.setTime(nowDate);
|
|
// cal.setTime(nowDate);
|
|
|
// String mth =
|
|
// String mth =
|
|
|
for(StatisticsBean sta: scoreList){
|
|
for(StatisticsBean sta: scoreList){
|
|
|
- int score = sta.getAll_check_score();
|
|
|
|
|
- int aScore = 0;
|
|
|
|
|
|
|
+ double score = sta.getAll_check_score();
|
|
|
|
|
+ double aScore = 0.00;
|
|
|
if(statisticsDao.selectYearScoreInfoM(obj)!= null){
|
|
if(statisticsDao.selectYearScoreInfoM(obj)!= null){
|
|
|
aScore = statisticsDao.selectYearScoreInfoM(obj).getAll_check_score();
|
|
aScore = statisticsDao.selectYearScoreInfoM(obj).getAll_check_score();
|
|
|
}
|
|
}
|
|
@@ -1487,6 +1487,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
if(bean.getPics().split("_").length > 1){
|
|
if(bean.getPics().split("_").length > 1){
|
|
|
String[] array = bean.getPics().split("\\.");
|
|
String[] array = bean.getPics().split("\\.");
|
|
|
String fileurl = bean.getPics().split("\\.")[0];
|
|
String fileurl = bean.getPics().split("\\.")[0];
|
|
|
|
|
+
|
|
|
String time = fileurl.split("_")[1];
|
|
String time = fileurl.split("_")[1];
|
|
|
//int timeCoumt = (Integer.valueOf(time)-62135596800000000)/10000000
|
|
//int timeCoumt = (Integer.valueOf(time)-62135596800000000)/10000000
|
|
|
long timetemp = (Long.valueOf(time)-621355968000000000l)/10000000-60*60*8;
|
|
long timetemp = (Long.valueOf(time)-621355968000000000l)/10000000-60*60*8;
|