| | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.text.ParseException; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.List; |
| | |
| | | DataDictionaryEnum.TIME_INTERVAL.getCode() |
| | | ); |
| | | apiKjInfoVo.setDjs(Integer.parseInt(timeIntervalDic.getValue())); |
| | | |
| | | // 获取当前时间 |
| | | LocalDateTime currentTime = LocalDateTime.now(); |
| | | // 定义时间格式 |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | apiKjInfoVo.setSystemTime(currentTime.format(formatter)); |
| | | return new FebsResponse().success().data(apiKjInfoVo); |
| | | } |
| | | |
| | |
| | | DataDictionaryEnum.NO_TIME.getType(), |
| | | DataDictionaryEnum.NO_TIME.getCode() |
| | | ); |
| | | if(noTimeDic.getValue().equals(2)){ |
| | | throw new FebsException("请等待下一期"); |
| | | if("2".equals(noTimeDic.getValue())){ |
| | | throw new FebsException("已停止投注"); |
| | | } |
| | | |
| | | List<ApiCreateItemDto> items = apiCreateDto.getItems(); |