INSERT INTO socket_notice( notice_id, notice_title, notice_msg, notice_target, notice_system, notice_module, notice_menu, notice_service_id, user_id, is_handle, gmt_create, creator, gmt_modified, modifier, is_delete ) VALUES( #{noticeId}, #{noticeTitle}, #{noticeMsg}, #{noticeTarget}, #{noticeSystem}, #{noticeModule}, #{noticeMenu}, #{noticeServiceId}, #{userId}, #{isHandle}, #{gmtCreate}, #{creator}, #{gmtModified}, #{modifier}, #{isDelete} )
UPDATE socket_notice SET is_handle = #{isHandle}, gmt_modified = #{gmtModified}, modifier = #{modifier} WHERE notice_system = #{noticeSystem} AND notice_service_id = #{noticeServiceId}
DELETE FROM socket_notice WHERE notice_service_id IN #{serviceIds[${index}]}
SELECT notice_id, notice_title, notice_msg, notice_target, notice_system, notice_module, notice_menu, notice_service_id, user_id, is_handle, gmt_create, creator, gmt_modified, modifier, is_delete FROM socket_notice WHERE is_delete = 0 AND notice_id = #{noticeId} AND notice_system = #{noticeSystem} AND notice_module = #{noticeModule} AND notice_menu = #{noticeMenu} AND notice_service_id = #{noticeServiceId} AND user_id = #{userId}
SELECT notice_id, notice_title, notice_msg, notice_target, notice_system, notice_module, notice_menu, notice_service_id, user_id, is_handle, gmt_create, creator, gmt_modified, modifier, is_delete FROM socket_notice WHERE is_delete = 0 AND notice_system = #{noticeSystem} AND notice_module = #{noticeModule} AND notice_menu = #{noticeMenu} AND notice_service_id = #{noticeServiceId} AND user_id = #{userId} AND is_handle = #{isHandle} AND notice_service_id = #{serviceId} AND notice_service_id IN #{serviceIds[${index}]}
SELECT notice_system FROM socket_notice WHERE is_delete = 0 AND user_id = #{userId} GROUP BY notice_system
SELECT notice_module FROM socket_notice WHERE is_delete = 0 AND user_id = #{userId} AND notice_system = #{noticeSystem} GROUP BY notice_module
SELECT notice_menu FROM socket_notice WHERE is_delete = 0 AND user_id = #{userId} AND notice_system = #{noticeSystem} AND notice_module = #{noticeModule} GROUP BY notice_menu
SELECT COUNT(*) FROM socket_notice WHERE is_delete = 0 AND user_id = #{userId} AND notice_system = #{noticeSystem} AND notice_module = #{noticeModule} AND notice_menu = #{noticeMenu} AND is_handle = #{isHandle}