提交 982c726c 编写于 作者: rushui.chen's avatar rushui.chen

20191029 注释掉发送mq消息的代码

上级 9a83c9d8
流水线 #16466 已失败 于阶段
in 0 second
...@@ -17,7 +17,7 @@ import org.springframework.stereotype.Component; ...@@ -17,7 +17,7 @@ import org.springframework.stereotype.Component;
*/ */
@Component @Component
public class DoctorRepeatDataJob { public class DoctorRepeatDataJob {
private static final String key = "cache_process_doctor_repeat"; private final String KEY = "cache_process_doctor_repeat";
private Logger logger = LoggerFactory.getLogger(this.getClass()); private Logger logger = LoggerFactory.getLogger(this.getClass());
...@@ -34,11 +34,11 @@ public class DoctorRepeatDataJob { ...@@ -34,11 +34,11 @@ public class DoctorRepeatDataJob {
*/ */
@Scheduled(cron = "0 0 0 1/1 * ?") @Scheduled(cron = "0 0 0 1/1 * ?")
public void processDoctorRepeatData() { public void processDoctorRepeatData() {
Long result = cacheClient.setnx(key, "1"); Long result = cacheClient.setnx(KEY, "1");
//如果为1说明获取到分布式锁 //如果为1说明获取到分布式锁
if (result == 1) { if (result == 1) {
//10分钟后锁过期 //10分钟后锁过期
cacheClient.expire(key, 60 * 10); cacheClient.expire(KEY, 60 * 10);
logger.info("开始执行刷新doctor表中重复的记录"); logger.info("开始执行刷新doctor表中重复的记录");
int row = doctorMapper.processDoctorRepeatData(); int row = doctorMapper.processDoctorRepeatData();
logger.info("此次数据刷新影响的行数:{}", row); logger.info("此次数据刷新影响的行数:{}", row);
...@@ -49,7 +49,7 @@ public class DoctorRepeatDataJob { ...@@ -49,7 +49,7 @@ public class DoctorRepeatDataJob {
logger.error(ex.getMessage(), ex); logger.error(ex.getMessage(), ex);
} }
//释放锁 //释放锁
cacheClient.del(key); cacheClient.del(KEY);
} }
} }
} }
...@@ -146,14 +146,14 @@ public class RegisterServiceImpl implements RegisterService { ...@@ -146,14 +146,14 @@ public class RegisterServiceImpl implements RegisterService {
result.setToken(newToken); result.setToken(newToken);
result.setUserId(userId); result.setUserId(userId);
result.setEntireFlag(1); result.setEntireFlag(1);
ByteArrayOutputStream bos = new ByteArrayOutputStream(); /* ByteArrayOutputStream bos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(bos); DataOutputStream dos = new DataOutputStream(bos);
try { try {
dos.writeLong(userId); dos.writeLong(userId);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
queueProducer.send(bos.toByteArray()); queueProducer.send(bos.toByteArray());*/
LogLoginEntity entity = AccountLogEntityUtils.getLogLoginEntity(acctId, productType, baseRequest.getSourceType(), LogLoginEntity entity = AccountLogEntityUtils.getLogLoginEntity(acctId, productType, baseRequest.getSourceType(),
AccountTypeEnum.LOGIN_REGISTER.getCode(), baseRequest.getLoginIp(), AccountTypeEnum.LOGIN_STATUS_SUCCESS.getCode(), AccountTypeEnum.LOGIN_REGISTER.getCode(), baseRequest.getLoginIp(), AccountTypeEnum.LOGIN_STATUS_SUCCESS.getCode(),
AccountTypeEnum.LOG_TYPE_LOGIN.getCode()); AccountTypeEnum.LOG_TYPE_LOGIN.getCode());
......
...@@ -168,7 +168,7 @@ public class AESUtil { ...@@ -168,7 +168,7 @@ public class AESUtil {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
String KEY="zJJ$c5md3$yuuhWW"; String KEY="zJJ$c5md3$yuuhWW";
System.out.println("-------------加密---------"); System.out.println("-------------加密---------");
String content = "13916000007"; String content = "13024112588";
System.out.println("加密前:" + content); System.out.println("加密前:" + content);
System.out.println("加密密钥和解密密钥:" + KEY); System.out.println("加密密钥和解密密钥:" + KEY);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册