| | |
| | | private String accectType; |
| | | private String userId; |
| | | private String symbol; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Kolkata") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "America/New_York") |
| | | private Date createTime; |
| | | |
| | | |
| | |
| | | |
| | | private String returnOfRate; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Kolkata") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "America/New_York") |
| | | private Date buyTime; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Kolkata") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "America/New_York") |
| | | private Date endTime; |
| | | |
| | | |
| | |
| | | private String orderDesc; |
| | | |
| | | @Excel(name = "申请时间", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "Asia/Kolkata") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "America/New_York") |
| | | private Date addTime; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "Asia/Kolkata") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "America/New_York") |
| | | @Excel(name = "支付时间", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd HH:mm:ss") |
| | | private Date payTime; |
| | | /*支付通道主键id*/ |
| | |
| | | private Integer agentId; |
| | | @Excel(name = "出金金额") |
| | | private BigDecimal withAmt; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Kolkata") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "America/New_York") |
| | | @Excel(name = "申请时间", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd HH:mm:ss") |
| | | private Date applyTime; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Kolkata") |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "America/New_York") |
| | | @Excel(name = "出金时间", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd HH:mm:ss") |
| | | private Date transTime; |
| | | |
| | |
| | | */ |
| | | public static boolean isInTimeRange(String timeRange) { |
| | | try { |
| | | // 分割开始时间和结束时间 |
| | | String[] times = timeRange.split("-"); |
| | | if (times.length != 2) { |
| | | throw new IllegalArgumentException("时间格式不正确,应为:HH:mm-HH:mm"); |
| | | } |
| | | |
| | | // 解析时间 |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("H:mm"); |
| | | LocalTime startTime = LocalTime.parse(times[0].trim(), formatter); |
| | | LocalTime endTime = LocalTime.parse(times[1].trim(), formatter); |
| | | LocalTime currentTime = LocalTime.now(); |
| | | |
| | | // 判断是否在时间区间内 |
| | | return !currentTime.isBefore(startTime) && !currentTime.isAfter(endTime); |
| | | boolean isInRange; |
| | | if (endTime.isBefore(startTime)) { |
| | | // 跨天情况,将结束时间视为次日 |
| | | isInRange = !currentTime.isBefore(startTime) || !currentTime.isAfter(endTime); |
| | | } else { |
| | | // 不跨天情况 |
| | | isInRange = !currentTime.isBefore(startTime) && !currentTime.isAfter(endTime); |
| | | } |
| | | |
| | | return isInRange; |
| | | |
| | | } catch (Exception e) { |
| | | throw new IllegalArgumentException("时间解析错误,请检查格式是否正确", e); |
| | |
| | | <include refid="Base_Column_List"/> |
| | | FROM user |
| | | <where> |
| | | (agent_id = #{searchId} or |
| | | agent_id in (select a.id FROM agent_user a left join agent_distribution_user d on a.id = d.agent_id WHERE d.parent_id = #{searchId}) |
| | | ) |
| | | 1=1 |
| | | <if test="searchId != null and searchId != '' "> |
| | | and agent_id = #{searchId} |
| | | </if> |
| | | <if test="realName != null and realName != '' "> |
| | | and real_name like CONCAT('%','${realName}','%') |
| | | </if> |