select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark 
		from "PUBLIC"."sys_notice"
    
    
    
    
    
    
    
        insert into "PUBLIC"."sys_notice" (
			notice_title, 
			notice_type, 
			notice_content, 
			status, 
			remark,
 			create_by,
 			create_time
 		)values(
			#{noticeTitle}, 
			#{noticeType}, 
			#{noticeContent}, 
			#{status}, 
			#{remark},
 			#{createBy},
        now()
		)
    
	 
    
        update "PUBLIC"."sys_notice"
        
            notice_title = #{noticeTitle}, 
            notice_type = #{noticeType}, 
            notice_content = #{noticeContent}, 
            status = #{status}, 
            update_by = #{updateBy},
 			update_time = now()
        
        where notice_id = #{noticeId}
    
	
    
        delete from "PUBLIC"."sys_notice" where notice_id = #{noticeId}
    
    
    
        delete from "PUBLIC"."sys_notice" where notice_id in
        
            #{noticeId}