|
|
|
|
@ -13,6 +13,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
import java.time.ZoneId; |
|
|
|
|
import java.util.Date; |
|
|
|
|
@ -44,7 +45,7 @@ public class ScoreController {
|
|
|
|
|
List<Object> result = negativeScoreService.calculatePoliceScore(beginTime, endTime, item.getIdCode()); |
|
|
|
|
PoliceScore score = new PoliceScore(); |
|
|
|
|
score.setIdCode(item.getIdCode()); |
|
|
|
|
score.setScore((Double) result.get(0)); |
|
|
|
|
score.setScore((BigDecimal) result.get(0)); |
|
|
|
|
score.setExpression((String) result.get(1)); |
|
|
|
|
score.setBeginTime(beginTime); |
|
|
|
|
score.setEndTime(endTime); |
|
|
|
|
@ -64,7 +65,7 @@ public class ScoreController {
|
|
|
|
|
List<Object> result = negativeScoreService.calculateDepartScore(beginTime, endTime, item.getId()); |
|
|
|
|
DepartScore score = new DepartScore(); |
|
|
|
|
score.setDepartId(item.getId()); |
|
|
|
|
score.setScore((Double) result.get(0)); |
|
|
|
|
score.setScore((BigDecimal) result.get(0)); |
|
|
|
|
score.setExpression((String) result.get(1)); |
|
|
|
|
score.setBeginTime(beginTime); |
|
|
|
|
score.setEndTime(endTime); |
|
|
|
|
|