|
@@ -1,13 +1,11 @@
|
|
|
package com.ims.eval.service.impl;
|
|
|
|
|
|
-import com.ims.common.utils.Constant;
|
|
|
import com.ims.common.utils.FormulaUtils;
|
|
|
import com.ims.common.utils.StringUtils;
|
|
|
import com.ims.eval.config.CustomException;
|
|
|
import com.ims.eval.dao.CalculateIndicatorItemInfoMapper;
|
|
|
import com.ims.eval.entity.*;
|
|
|
import com.ims.eval.dao.OrganizationEvaluationInfoMapper;
|
|
|
-import com.ims.eval.entity.dto.response.MyuserResDTO;
|
|
|
import com.ims.eval.entity.dto.response.OrganizationEvaluationInfoResDTO;
|
|
|
import com.ims.eval.service.*;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -55,28 +53,7 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
@Override
|
|
|
public Map finishValueList(String organizationEvaluationId, String dept, HttpServletRequest request) {
|
|
|
|
|
|
- MyuserResDTO myuser = userService.getSysUser(request);
|
|
|
- if(null == myuser){
|
|
|
- throw new CustomException("暂无权限");
|
|
|
- }
|
|
|
- String organizationId = "";
|
|
|
- boolean updateMark = false;
|
|
|
- if (null != myuser.getUnitOrg() && null != myuser.getUnitOrg().getParentIds()) {
|
|
|
- String type = myuser.getUnitOrg().getType();
|
|
|
- if (Constant.THREE.contains(type) || Constant.FOUR.contains(type)) {
|
|
|
-// dept = myuser.getDeptName();
|
|
|
- organizationId = myuser.getUnitId();
|
|
|
- } else if (Constant.SUB_BRANCH.contains(type)) {
|
|
|
- dept = "";
|
|
|
- } else if (myuser.getLoginName().equals("admin")) {
|
|
|
- dept = "";
|
|
|
- updateMark= true;
|
|
|
- } else {
|
|
|
- throw new CustomException("暂无权限");
|
|
|
- }
|
|
|
- }
|
|
|
- List<OrganizationEvaluationInfoResDTO> list = baseMapper.selectListEvaluationInfoId(organizationEvaluationId,dept,"",organizationId);//默认获取指定的怎目标
|
|
|
- boolean finalUpdateMark = updateMark;
|
|
|
+ List<OrganizationEvaluationInfoResDTO> list = baseMapper.selectListEvaluationInfoId(organizationEvaluationId,dept,"","");//默认获取指定的怎目标
|
|
|
list.stream().forEach(i->{
|
|
|
i.setUpdateMark(true);
|
|
|
});
|
|
@@ -171,27 +148,7 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
|
|
|
@Override
|
|
|
public List<OrganizationEvaluationInfoResDTO> finishValueList(String organizationEvaluationId, String dept, String organizationShortName, String indicatorName, String binSection,String isQuantified, HttpServletRequest request) {
|
|
|
- MyuserResDTO myuser = userService.getSysUser(request);
|
|
|
- if(null == myuser){
|
|
|
- throw new CustomException("暂无权限");
|
|
|
- }
|
|
|
- String organizationId = "";
|
|
|
- boolean updateMark = false;
|
|
|
- if (null != myuser.getUnitOrg() && null != myuser.getUnitOrg().getParentIds()) {
|
|
|
- String type = myuser.getUnitOrg().getType();
|
|
|
- if (Constant.THREE.contains(type) || Constant.FOUR.contains(type)) {
|
|
|
-// dept = myuser.getDeptName();
|
|
|
- organizationId = myuser.getUnitId();
|
|
|
- } else if (Constant.SUB_BRANCH.contains(type)) {
|
|
|
- dept = "";
|
|
|
- } else if (myuser.getLoginName().equals("admin")) {
|
|
|
- dept = "";
|
|
|
- updateMark= true;
|
|
|
- } else {
|
|
|
- throw new CustomException("暂无权限");
|
|
|
- }
|
|
|
- }
|
|
|
- List<OrganizationEvaluationInfoResDTO> list = baseMapper.selectListEvaluationInfoId2(organizationEvaluationId,dept,organizationShortName,indicatorName,binSection,isQuantified,"",organizationId);//默认获取指定的怎目标
|
|
|
+ List<OrganizationEvaluationInfoResDTO> list = baseMapper.selectListEvaluationInfoId2(organizationEvaluationId,dept,organizationShortName,indicatorName,binSection,isQuantified,"","");//默认获取指定的怎目标
|
|
|
list.stream().forEach(i->{
|
|
|
i.setUpdateMark(true);
|
|
|
});
|