| | |
| | | Map<String, String> map = payMoneyUtil.alipayCallback(request); |
| | | if (null != map) { |
| | | String out_trade_no = map.get("out_trade_no"); |
| | | String transaction_id = map.get("transaction_id"); |
| | | String transaction_id = map.get("trade_no"); |
| | | TPayHuimin one = payHuiminService.getOne(new LambdaQueryWrapper<TPayHuimin>().eq(TPayHuimin::getCode, out_trade_no)); |
| | | if (one!=null){ |
| | | if (one.getStatus()==2){ |
| | |
| | | case 2: |
| | | // 年内卡 |
| | | Date date1 = new Date(); |
| | | |
| | | date1.setMonth(11); |
| | | date1.setDate(31); |
| | | date1.setHours(23); |
| | |
| | | } |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查看惠民卡详情 |
| | |
| | | return ResultUtil.success(new ArrayList<>()); |
| | | } |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | LocalDateTime localDateTime = LocalDateTime.now().plusDays(365); |
| | | // 将LocalDateTime转换为Date类型 |
| | | Date date = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant()); |
| | | String format = simpleDateFormat.format(date); |
| | | System.err.println(format); |
| | | } |
| | | /** |
| | | * 个人中心-我的惠民卡-查看详情 |
| | | */ |
| | |
| | | select t1.* from t_huimin_card t1 |
| | | where |
| | | find_in_set(#{storeId},t1.storeIds) |
| | | |
| | | and t1.startTime <= now() |
| | | and t1.endTime >= now() |
| | | |
| | | and t1.status = 1 |
| | | order by t1.sort desc |
| | |
| | | select t1.* from t_huimin_card t1 |
| | | where |
| | | find_in_set(#{storeId},t1.storeIds) |
| | | |
| | | and t1.startTime <= now() |
| | | and t1.endTime >= now() |
| | | |
| | | and t1.status = 1 |
| | | order by t1.sort desc |