Merge remote-tracking branch 'origin/div' into div
Conflicts:
fanli/src/main/java/com/yeshi/fanli/util/rocketmq/consumer/user/UserTeamMessageListener.java
| | |
| | | || focus.getMinFansNum() != null || focus.getMinFansNum() != null
|
| | | || focus.getMinActiveTime() != null || focus.getMaxActiveTime() != null
|
| | | || focus.getMinIncome() != null || focus.getMaxIncome() != null
|
| | | || focus.getMinJoinTime() != null || focus.getMaxJoinTime() != null |
| | | || !StringUtil.isNullOrEmpty(focus.getKey()) || !StringUtil.isNullOrEmpty(focus.getLevel()))
|
| | | return true;
|
| | |
|
| | |
| | | @Param("count") int count);
|
| | |
|
| | | long countAll(@Param("minTime") Long minTime, @Param("maxTime") Long maxTime);
|
| | | |
| | | |
| | | /**
|
| | | * 查询所有bossID
|
| | | * @return
|
| | | */
|
| | | List<Long> getAllBossId();
|
| | |
|
| | | } |
| | |
| | | and #{maxTime}>`succeedTime`
|
| | | </if>
|
| | | </select>
|
| | | |
| | | <select id="getAllBossId" resultType="java.lang.Long">
|
| | | SELECT DISTINCT `boss_id` FROM `yeshi_ec_threesale`
|
| | | </select>
|
| | |
|
| | | </mapper> |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void addFansInfo(Long workerId, Long bossId) { |
| | | public void addFansInfo(Long workerId, Long bossId, Date successTime) { |
| | | UserInfo userInfo = userInfoService.selectByPKey(workerId); |
| | | if (userInfo == null) { |
| | | return; |
| | |
| | | focusInfo.setBossId(bossId); |
| | | focusInfo.setWorkerId(workerId); |
| | | focusInfo.setBossSuperId(bossSuperId); |
| | | focusInfo.setJoinTime(successTime); |
| | | focusInfo.setNickName(userInfo.getNickName()); |
| | | focusInfo.setMemoName(memoName); |
| | | focusInfo.setWeixinIdExist(weixinBind); |
| | |
| | | focusInfo.setId(workerId.toString()); |
| | | save(focusInfo); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | |
| | | maxTime == null ? null : maxTime.getTime());
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | public List<Long> getAllBossId(){
|
| | | return threeSaleMapper.getAllBossId();
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | * @param workerId
|
| | | * @param bossId
|
| | | */
|
| | | public void addFansInfo(Long workerId, Long bossId);
|
| | | public void addFansInfo(Long workerId, Long bossId, Date successTime);
|
| | |
|
| | | }
|
| | |
| | | */
|
| | | public long countSecondTeamByDate(Long uid, int dayType);
|
| | |
|
| | | |
| | | /**
|
| | | * 查询boosID
|
| | | * @return
|
| | | */
|
| | | public List<Long> getAllBossId();
|
| | |
|
| | |
|
| | | }
|
| | |
| | | // 更新上级的粉丝数量
|
| | | teamFansInfoService.updateFansNum(mqMsg.getBossId());
|
| | | // 添加粉丝信息
|
| | | teamFansInfoService.addFansInfo(mqMsg.getWorkerId(), mqMsg.getBossId());
|
| | | |
| | | teamFansInfoService.addFansInfo(mqMsg.getWorkerId(), mqMsg.getBossId(),mqMsg.getSuccessTime());
|
| | |
|
| | | threeSaleDetailService.addByWorkerUid(mqMsg.getWorkerId());
|
| | | }
|
| | |
| | | mongo.dbname=flq
|
| | | mongo.port=27017
|
| | | mongo.port=27016
|
| | | #开发环境
|
| | | mongo.host=192.168.1.253
|
| | | mongo.username=admin
|
| | | mongo.password=123456
|
| | | #mongo.host=192.168.1.253
|
| | | #mongo.username=admin
|
| | | #mongo.password=123456
|
| | |
|
| | | #mongo.host=193.112.35.168
|
| | | #mongo.username=yeshi
|
| | | #mongo.password=Yeshi2016@
|
| | | mongo.host=193.112.35.168
|
| | | mongo.username=yeshi
|
| | | mongo.password=Yeshi2016@
|
| | |
|
| | | mongo.connectionsPerHost=8
|
| | | mongo.threadsAllowedToBlockForConnectionMultiplier=4
|