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

Commit 171e0c30 authored by Tice's avatar Tice

update

parent e69706d0
......@@ -86,44 +86,6 @@ public class MerchantSponsorsServiceImpl implements IMerchantSponsorsService {
return sponsorsVo;
}
// @Override
// public void editBaseInfo(String uid, MerchantSponsorEditParam parameter) {
// // 当前用户是否管理该主办
// MerchantSponsorsVo sponsorsVo = this.checkSponsorAccount(uid, parameter.getSponsorId());
//
// LocalDateTime now = LocalDateTime.now();
// BeanUtils.copyProperties(parameter, sponsorsVo);
// sponsorsVo.setUpdatedAt(now);
//
// // 主办 redis
// long s = System.currentTimeMillis();
// merchantRdmService.setSponsorsVoBySponsorId(sponsorsVo.getSponsorId(), sponsorsVo);
// log.debug("#RDS耗时:{}ms", System.currentTimeMillis() - s);
//
// // 主办 mongo
// s = System.currentTimeMillis();
// merchantMongoService.setSponsorsVoBySponsorId(sponsorsVo.getSponsorId(), sponsorsVo);
// log.debug("#MONGO耗时:{}ms", System.currentTimeMillis() - s);
//
// LinkedList<String> toMqSqls = CollectionUtil.linkedListString();
// LinkedList<Object[]> sponsorUpdateObjs = CollectionUtil.linkedListObjectArr();
// // 主办 sql
// toMqSqls.add(SqlMapping.get("merchant_sponsors.update_base_info"));
// sponsorUpdateObjs.add(new Object[]{
// sponsorsVo.getName(), sponsorsVo.getLogo(), sponsorsVo.getBackground(), sponsorsVo.getDescription(),
// sponsorsVo.getContactEmail(),
// sponsorsVo.getUpdatedAt(), sponsorsVo.getSponsorId()
// });
//
// // mq
// s = System.currentTimeMillis();
// queueUtils.sendMsgByRedis(
// MQConst.MerchantQueue.SQL_MERCHANT_SPONSOR.getKey(),
// SqlMapping.gets(toMqSqls, sponsorUpdateObjs)
// );
// log.debug("#MQ耗时:{}ms", System.currentTimeMillis() - s);
// }
private MerchantSponsorsVo checkSponsorAccount(String uid, String sponsorId) {
// 当前用户是否管理该主办
MerchantSponsorsVo sponsorsVo = merchantRdmService.getSponsorsVoBySponsorId(sponsorId);
......
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