排行fix
This commit is contained in:
@@ -45,12 +45,22 @@ public interface IPlayClerkRankingInfoService extends IService<PlayClerkRankingI
|
||||
IPage<PlayClerkRankingInfoEntity> selectPlayClerkRankingInfoByPage(PlayClerkRankingInfoEntity playClerkRankingInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 根据统计批次更新排名数据
|
||||
*
|
||||
* @param weeklyRanking 日排名还是周排名(0:每日排名;1:每周排名)
|
||||
* @param serialNumber 统计批次
|
||||
* @author admin
|
||||
* @since 2024/6/12 15:47
|
||||
**/
|
||||
void updateClerkRankingInfo(String weeklyRanking, Integer serialNumber);
|
||||
|
||||
/**
|
||||
* 查询当前排行榜最后一个批次值
|
||||
*
|
||||
* @param weeklyRanking 日排名还是周排名(0:每日排名;1:每周排名)
|
||||
* @return Integer 当前排行榜最后一个批次值
|
||||
* @author 杭州世平信息科技有限公司-xuhq
|
||||
* @author admin
|
||||
* @since 2024/6/7 11:53
|
||||
**/
|
||||
Integer selectSerialNumber(String weeklyRanking);
|
||||
@@ -61,7 +71,7 @@ public interface IPlayClerkRankingInfoService extends IService<PlayClerkRankingI
|
||||
*
|
||||
* @param weeklyRanking 日排名还是周排名(0:每日排名;1:每周排名)
|
||||
* @return List<com.starry.admin.modules.clerk.module.entity.PlayClerkRankingInfoEntity>
|
||||
* @author 杭州世平信息科技有限公司-xuhq
|
||||
* @author admin
|
||||
* @since 2024/6/7 11:55
|
||||
**/
|
||||
List<PlayClerkRankingInfoEntity> selectMaxSerialNumber(String weeklyRanking);
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.starry.admin.modules.clerk.service.impl;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
@@ -37,7 +38,7 @@ public class PlayClerkRankingInfoServiceImpl extends ServiceImpl<PlayClerkRankin
|
||||
MPJLambdaWrapper<PlayClerkRankingInfoEntity> lambdaQueryWrapper = new MPJLambdaWrapper<>();
|
||||
lambdaQueryWrapper.selectAll(PlayClerkRankingInfoEntity.class);
|
||||
// 拼接店员表
|
||||
lambdaQueryWrapper.selectAs(PlayClerkUserInfoEntity::getNickname, "clerkNickname").selectAs(PlayClerkUserInfoEntity::getSex,"clerkSex");
|
||||
lambdaQueryWrapper.selectAs(PlayClerkUserInfoEntity::getNickname, "clerkNickname").selectAs(PlayClerkUserInfoEntity::getSex, "clerkSex");
|
||||
lambdaQueryWrapper.leftJoin(PlayClerkUserInfoEntity.class, PlayClerkUserInfoEntity::getId, PlayClerkRankingInfoEntity::getClerkId);
|
||||
if (StrUtil.isNotBlank(vo.getClerkId())) {
|
||||
lambdaQueryWrapper.eq(PlayClerkRankingInfoEntity::getClerkId, vo.getClerkId());
|
||||
@@ -110,6 +111,16 @@ public class PlayClerkRankingInfoServiceImpl extends ServiceImpl<PlayClerkRankin
|
||||
return this.baseMapper.selectList(lambdaQueryWrapper);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void updateClerkRankingInfo(String weeklyRanking, Integer serialNumber) {
|
||||
LambdaUpdateWrapper<PlayClerkRankingInfoEntity> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
||||
lambdaUpdateWrapper.eq(PlayClerkRankingInfoEntity::getWeeklyRanking, weeklyRanking);
|
||||
lambdaUpdateWrapper.eq(PlayClerkRankingInfoEntity::getSerialNumber, serialNumber);
|
||||
lambdaUpdateWrapper.set(PlayClerkRankingInfoEntity::getHistoricalStatistics, "1");
|
||||
this.baseMapper.update(null, lambdaUpdateWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前期排名序号
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user