|
@@ -1,7 +1,18 @@
|
|
package com.huaxu.evaluation.service.impl;
|
|
package com.huaxu.evaluation.service.impl;
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
+import com.huaxu.evaluation.dao.EvaluationResultMapper;
|
|
|
|
+import com.huaxu.evaluation.dto.EvaluationResultDto;
|
|
|
|
+import com.huaxu.evaluation.dto.EvaluationResultQueryDto;
|
|
import com.huaxu.evaluation.service.EvaluationResultService;
|
|
import com.huaxu.evaluation.service.EvaluationResultService;
|
|
|
|
+import com.huaxu.evaluation.vo.EvaluationResultVo;
|
|
|
|
+import com.huaxu.model.LoginUser;
|
|
|
|
+import com.huaxu.org.OrgInfoUtil;
|
|
|
|
+import com.huaxu.util.UserUtil;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -14,4 +25,25 @@ import org.springframework.stereotype.Service;
|
|
@Slf4j
|
|
@Slf4j
|
|
@Service
|
|
@Service
|
|
public class EvaluationResultServiceImpl implements EvaluationResultService {
|
|
public class EvaluationResultServiceImpl implements EvaluationResultService {
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private EvaluationResultMapper evaluationResultMapper;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private OrgInfoUtil orgInfoUtil;
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public IPage<EvaluationResultVo> findPage(EvaluationResultDto dto) {
|
|
|
|
+ EvaluationResultQueryDto queryDto = new EvaluationResultQueryDto();
|
|
|
|
+ BeanUtils.copyProperties(dto, queryDto);
|
|
|
|
+ // 获取用户权限
|
|
|
|
+ LoginUser currentUser = UserUtil.getCurrentUser();
|
|
|
|
+ queryDto.setTenantId(currentUser.getTenantId());
|
|
|
|
+ queryDto.setProgramItems(currentUser.getProgramItemList());
|
|
|
|
+ queryDto.setUserType("3");
|
|
|
|
+ queryDto.setPermissonType(currentUser.getPermissonType());
|
|
|
|
+ System.out.println(orgInfoUtil.getOrgName(266));
|
|
|
|
+ return evaluationResultMapper.findPage(new Page<>(dto.getPageNum(), dto.getPageSize()), queryDto);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|