|
|
|
@ -2,6 +2,7 @@ package com.hyp.web.controller.manager;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.hyp.common.core.domain.entity.SysUser;
|
|
|
|
|
import com.hyp.common.core.domain.model.LoginUser;
|
|
|
|
|
import com.hyp.common.enums.ApplyStatusEnum;
|
|
|
|
|
import com.hyp.common.utils.SecurityUtils;
|
|
|
|
@ -65,13 +66,14 @@ public class ScoreInfoManager {
|
|
|
|
|
*
|
|
|
|
|
* 查询评分
|
|
|
|
|
* @param applyId
|
|
|
|
|
* @param createId
|
|
|
|
|
* @return java.util.List<com.hyp.system.domain.RewScoreInfo>
|
|
|
|
|
*/
|
|
|
|
|
public List<RewScoreInfo> getScoreInfo(String applyId,Long createId){
|
|
|
|
|
public List<RewScoreInfo> getScoreInfo(String applyId){
|
|
|
|
|
LambdaQueryWrapper<RewScoreInfo> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
queryWrapper.eq(RewScoreInfo::getApplyId,applyId);
|
|
|
|
|
queryWrapper.eq(Objects.nonNull(createId), RewScoreInfo::getCreateId, createId);
|
|
|
|
|
if (!SysUser.isAdmin(SecurityUtils.getUserId())){
|
|
|
|
|
queryWrapper.eq(RewScoreInfo::getCreateId, SecurityUtils.getUserId());
|
|
|
|
|
}
|
|
|
|
|
return scoreInfoService.list(queryWrapper);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|