彩票猪手精推版
This commit is contained in:
@@ -25,6 +25,6 @@ public class GlobalExceptionHandler {
|
||||
@ExceptionHandler(RuntimeException.class)
|
||||
public ApiResponse<?> runtimeExceptionHandler(RuntimeException e) {
|
||||
log.error("runtimeException", e);
|
||||
return ResultUtils.error(ErrorCode.SYSTEM_ERROR, e.getMessage());
|
||||
return ResultUtils.error(ErrorCode.SYSTEM_ERROR);
|
||||
}
|
||||
}
|
||||
@@ -5611,7 +5611,7 @@ public class BallAnalysisService {
|
||||
Map<String, BigDecimal> totalBonusByPrizeLevel = new HashMap<>();
|
||||
|
||||
// 初始化所有等级
|
||||
String[] prizeLevels = {"一等奖", "二等奖", "三等奖", "四等奖", "五等奖", "六等奖", "未中奖"};
|
||||
String[] prizeLevels = {"一等奖", "二等奖", "三等奖", "四等奖", "五等奖", "六等奖", "福运奖", "未中奖"};
|
||||
for (String level : prizeLevels) {
|
||||
countByPrizeLevel.put(level, 0);
|
||||
totalBonusByPrizeLevel.put(level, BigDecimal.ZERO);
|
||||
|
||||
@@ -233,7 +233,7 @@ public class DltCombinationAnalysisServiceImpl implements DltCombinationAnalysis
|
||||
*/
|
||||
private Long getLatestDrawId() {
|
||||
String latestDrawId = dltDrawRecordService.lambdaQuery()
|
||||
.orderByDesc(DltDrawRecord::getDrawId)
|
||||
.orderByDesc(DltDrawRecord::getDrawDate)
|
||||
.last("LIMIT 1")
|
||||
.oneOpt()
|
||||
.map(DltDrawRecord::getDrawId)
|
||||
|
||||
@@ -687,7 +687,7 @@ public class ExcelDataImporter {
|
||||
|
||||
try {
|
||||
BigDecimal bd = new BigDecimal(Double.toString(value));
|
||||
return bd.setScale(2, RoundingMode.HALF_UP).doubleValue();
|
||||
return bd.setScale(3, RoundingMode.HALF_UP).doubleValue();
|
||||
} catch (Exception e) {
|
||||
log.warn("数值格式化失败:{}", value);
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user