|
|
@ -67,7 +67,7 @@
|
|
|
|
SELECT m.notice_message_id, m.create_user_id, m.create_time, m.dept_id,
|
|
|
|
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.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.remark,
|
|
|
|
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
|
|
|
|
( SELECT count( 1 ) FROM ehs_notice_message_file f WHERE f.notice_message_id = m.notice_message_id and f.state=1 ) file_count
|
|
|
|
FROM ehs_notice_message m
|
|
|
|
FROM ehs_notice_message m
|
|
|
|
LEFT JOIN sys_user e ON e.user_id = m.CREATE_USER_ID
|
|
|
|
LEFT JOIN sys_user e ON e.user_id = m.CREATE_USER_ID
|
|
|
|
LEFT JOIN sys_dept ft ON FIND_IN_SET( ft.DEPT_ID, m.dept_list )
|
|
|
|
LEFT JOIN sys_dept ft ON FIND_IN_SET( ft.DEPT_ID, m.dept_list )
|
|
|
|