消息通知-局端,统计功能,部门上传成功后,部门名称消失bug修复

main
15036302109 11 months ago
parent c27bea784a
commit 9401041312

@ -145,9 +145,15 @@ public class EhsNoticeMessageFileController extends BaseController
j++;
}
List<EhsNoticeMessageFile> fileList = ehsNoticeMessageFileService.selectEhsNoticeMessageFileList(ehsNoticeMessageFile);
// fileList里面有deptId,但没有deptName,这里给他设置把,以后再说循环查库的问题
String cids=",";
for(EhsNoticeMessageFile efile:fileList){
cids= efile.getDeptId()+",";
// 避免循环查数据库库
efile.setDeptName(comMap.get(efile.getDeptId()));
//SysDept sysDept = deptService.selectDeptById(efile.getDeptId());
//efile.setDeptName(sysDept.getDeptName());
}
//String[] cc = ehsNoticeMessageFile.getCompaynList().split(",");
for(int i=0;i<cidsTemp.length;i++){

@ -66,7 +66,7 @@
<select id="selectEhsNoticeMessageListAdmin" parameterType="EhsNoticeMessage" resultMap="EhsNoticeMessageResult">
SELECT m.notice_message_id, m.create_user_id, m.create_time, m.dept_id,
m.title, m.display_content, m.STATUS, m.dept_list, GROUP_CONCAT( ft.dept_name SEPARATOR ';' ) dept_name,
m.mesg_type, m.read_dept_id, m.all_dept,m.file_temp_name,m.file_temp_original_name,
m.mesg_type, m.read_dept_id, m.all_dept,m.file_temp_name,m.file_temp_original_name, m.remark,
( SELECT count( 1 ) FROM ehs_notice_message_file f WHERE f.notice_message_id = m.notice_message_id ) file_count
FROM ehs_notice_message m
LEFT JOIN sys_user e ON e.user_id = m.CREATE_USER_ID

Loading…
Cancel
Save