hlf 1 年間 前
コミット
42cd896067

+ 0 - 25
ims-service/ims-eval/src/main/java/com/ims/eval/controller/NoticeManagementController.java

@@ -2,15 +2,12 @@ package com.ims.eval.controller;
 
 import cn.hutool.core.convert.Convert;
 import cn.hutool.core.util.IdUtil;
-import cn.hutool.core.util.ObjectUtil;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.ims.common.utils.StringUtils;
 import com.ims.eval.config.CustomException;
 import com.ims.eval.entity.EvaluationNotice;
-import com.ims.eval.entity.OrganizationStructure;
 import com.ims.eval.entity.dto.result.R;
 import com.ims.eval.service.IEvaluationNoticeService;
-import com.ims.eval.service.IOrganizationStructureService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
@@ -36,9 +33,6 @@ public class NoticeManagementController {
 	private IEvaluationNoticeService evaluationNoticeService;
 
 	@Autowired
-	private IOrganizationStructureService organizationStructureService;
-
-	@Autowired
 	HttpServletRequest request;
 
 	/**
@@ -55,25 +49,6 @@ public class NoticeManagementController {
 		@RequestParam(value = "pageSize") Integer pageSize,
 		@RequestParam(value = "noticeTitle", required = false) String noticeTitle) {
 		IPage<EvaluationNotice> list = evaluationNoticeService.listPage(pageNum, pageSize, noticeTitle);
-		List<EvaluationNotice> evaluationNoticeList = list.getRecords();
-		for (EvaluationNotice obj : evaluationNoticeList) {
-			if (!"".equals(obj.getSendToContent()) && null != obj.getSendToContent()) {
-				StringBuilder names = new StringBuilder();
-				String[] strings = obj.getSendToContent().split(",");
-				for (String str : strings) {
-					List<OrganizationStructure> deptList = organizationStructureService.getTree("23031001", 1, "140");
-					if (deptList.size() > 0) {
-						OrganizationStructure organizationStructure = deptList.stream().filter(item -> item.getId().equals(str)).findFirst().orElse(null);
-						if (ObjectUtil.isNotNull(organizationStructure)) {
-							names.append(organizationStructure.getName()).append(",");
-						}
-					}
-				}
-				if (names.toString().length() > 0){
-					obj.setDeptNames(names.toString().substring(0, names.toString().length() - 1));
-				}
-			}
-		}
 		return R.ok().data(list);
 	}
 

+ 0 - 4
ims-service/ims-eval/src/main/java/com/ims/eval/entity/EvaluationNotice.java

@@ -1,6 +1,5 @@
 package com.ims.eval.entity;
 
-import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.extension.activerecord.Model;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
@@ -62,7 +61,4 @@ public class EvaluationNotice extends Model {
 	private String memo3;
 	//预留字段
 	private String memo4;
-	//列表回显部门名称
-	@TableField(exist = false)
-	private String deptNames;
 }