记得上下班打卡 | git大法好,push需谨慎

Commit fbad7776 authored by 胡佳晨's avatar 胡佳晨

修改 热卖改回老逻辑,修改 dragon消费

parent b2bdcea3
...@@ -85,8 +85,8 @@ public class KylinPerformancesController { ...@@ -85,8 +85,8 @@ public class KylinPerformancesController {
@ApiImplicitParam(type = "query", dataType = "Integer", name = "type", value = "type为1的时候合并巡演") @ApiImplicitParam(type = "query", dataType = "Integer", name = "type", value = "type为1的时候合并巡演")
}) })
public ResponseDto<HashMap<String, Object>> noticeList(@RequestParam(defaultValue = "") Integer type) { public ResponseDto<HashMap<String, Object>> noticeList(@RequestParam(defaultValue = "") Integer type) {
HashMap<String, Object> result = kylinPerformancesService.noticeList(type); // HashMap<String, Object> result = kylinPerformancesService.noticeList(type);
// HashMap<String, Object> result = kylinPerformancesService.noticeListOld(type); HashMap<String, Object> result = kylinPerformancesService.noticeListOld(type);
return ResponseDto.success(result); return ResponseDto.success(result);
} }
......
package com.liquidnet.service.dragon.utils; package com.liquidnet.service.dragon.utils;
import com.liquidnet.common.cache.redis.util.RedisDataSourceUtil;
import com.liquidnet.service.base.SqlMapping; import com.liquidnet.service.base.SqlMapping;
import com.liquidnet.service.dragon.bo.PayNotifyReqBo; import com.liquidnet.service.dragon.bo.PayNotifyReqBo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -23,7 +24,7 @@ import java.util.LinkedList; ...@@ -23,7 +24,7 @@ import java.util.LinkedList;
@Component @Component
public class MqHandleUtil { public class MqHandleUtil {
@Autowired @Autowired
StringRedisTemplate stringRedisTemplate; RedisDataSourceUtil redisDataSourceUtil;
/** /**
* REDIS 队列发送消息 通知商户相关 * REDIS 队列发送消息 通知商户相关
...@@ -35,7 +36,7 @@ public class MqHandleUtil { ...@@ -35,7 +36,7 @@ public class MqHandleUtil {
HashMap<String, String> map = ObjectUtilDragon.cloneHashMapStringAndString(); HashMap<String, String> map = ObjectUtilDragon.cloneHashMapStringAndString();
map.put("message", payNotifyReqBo.toString()); map.put("message", payNotifyReqBo.toString());
MapRecord<String, String, String> record = StreamRecords.mapBacked(map).withStreamKey(queueKey); MapRecord<String, String, String> record = StreamRecords.mapBacked(map).withStreamKey(queueKey);
stringRedisTemplate.opsForStream().add(record); redisDataSourceUtil.getRedisQueueUtil().getStringRedisTemplate().opsForStream().add(record);
return true; return true;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
...@@ -61,7 +62,7 @@ public class MqHandleUtil { ...@@ -61,7 +62,7 @@ public class MqHandleUtil {
HashMap<String, String> map = ObjectUtilDragon.cloneHashMapStringAndString(); HashMap<String, String> map = ObjectUtilDragon.cloneHashMapStringAndString();
map.put("message", sqlData); map.put("message", sqlData);
MapRecord<String, String, String> record = StreamRecords.mapBacked(map).withStreamKey(redisKey); MapRecord<String, String, String> record = StreamRecords.mapBacked(map).withStreamKey(redisKey);
stringRedisTemplate.opsForStream().add(record); redisDataSourceUtil.getRedisQueueUtil().getStringRedisTemplate().opsForStream().add(record);
return true; return true;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment