is_pic_msg,modify_time, creation_time, valid_flag, pub_org, pub_user, pub_time, link_uri, title, msg_mode, msg_type, id, content,content_text,save_status,save_level,relevent_stand,relevent_laws,data_text, relevent_group,source where 1=1 and modify_time ${modifyTimeOperator} #{modifyTime} and modify_time >= #{modifyTime1} and modify_time <= #{modifyTime2} and creation_time ${creationTimeOperator} #{creationTime} and creation_time >= #{creationTime1} and creation_time <= #{creationTime2} and valid_flag ${validFlagOperator} #{validFlag} and pub_org ${pubOrgOperator} #{pubOrg} and pub_user ${pubUserOperator} #{pubUser} and pub_time ${pubTimeOperator} #{pubTime} and pub_time >= #{pubTime1} and pub_time <= #{pubTime2} and link_uri ${linkUriOperator} #{linkUri} and content ${contentOperator} #{content} and title ${titleOperator} concat(concat('%',#{title}),'%') and msg_mode ${msgModeOperator} #{msgMode} and msg_type ${msgTypeOperator} #{msgType} and (msg_type = 'INLAND' or msg_type = 'FOREIGN') and id ${idOperator} #{id} and is_pic_msg ${isPicMsgOperator} #{isPicMsg} and save_level ${isPicMsgOperator} #{saveLevel} and relevent_stand ${isPicMsgOperator} #{releventStand} and relevent_laws ${isPicMsgOperator} #{releventLaws} and data_text ${isPicMsgOperator} #{dataText} and source = #{source} insert into MSG_DYNAMIC_INFO() values (#{isPicMsg},#{modifyTime, jdbcType=TIMESTAMP}, #{creationTime, jdbcType=TIMESTAMP}, #{validFlag, jdbcType=INTEGER}, #{pubOrg, jdbcType=VARCHAR}, #{pubUser, jdbcType=VARCHAR}, #{pubTime, jdbcType=TIMESTAMP}, #{linkUri, jdbcType=VARCHAR},#{title, jdbcType=VARCHAR}, #{msgMode, jdbcType=VARCHAR}, #{msgType, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR},#{content, jdbcType=VARCHAR},#{contentText,jdbcType=CLOB}) insert into MSG_DYNAMIC_INFO is_pic_msg, modify_time, creation_time, valid_flag, pub_org, pub_user, pub_time, link_uri, content, title, msg_mode, msg_type, id, content_text, save_status, save_level, relevent_stand relevent_laws, relevent_group, data_text, source, #{isPicMsg, jdbcType=INTEGER}, #{modifyTime, jdbcType=TIMESTAMP}, #{creationTime, jdbcType=TIMESTAMP}, #{validFlag, jdbcType=INTEGER}, #{pubOrg, jdbcType=VARCHAR}, #{pubUser, jdbcType=VARCHAR}, #{pubTime, jdbcType=TIMESTAMP}, #{linkUri, jdbcType=VARCHAR}, #{content, jdbcType=VARCHAR}, #{title, jdbcType=VARCHAR}, #{msgMode, jdbcType=VARCHAR}, #{msgType, jdbcType=VARCHAR}, #{id, jdbcType=VARCHAR}, #{contentText,jdbcType=CLOB}, #{saveStatus,jdbcType=VARCHAR}, #{saveLevel,jdbcType=VARCHAR}, #{releventStand,jdbcType=VARCHAR}, #{releventLaws,jdbcType=VARCHAR}, #{releventGroup,jdbcType=VARCHAR}, #{dataText,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, update MSG_DYNAMIC_INFO set modify_time = #{modifyTime}, is_pic_msg = #{isPicMsg}, creation_time = #{creationTime}, valid_flag = #{validFlag}, pub_org = #{pubOrg}, pub_user = #{pubUser}, pub_time = #{pubTime}, link_uri = #{linkUri}, content = #{content}, content_text = #{contentText,jdbcType=CLOB}, title = #{title}, msg_mode = #{msgMode}, msg_type = #{msgType} where id = #{id} update MSG_DYNAMIC_INFO modify_time = #{modifyTime}, creation_time = #{creationTime}, valid_flag = #{validFlag}, pub_org = #{pubOrg}, pub_user = #{pubUser}, pub_time = #{pubTime}, link_uri = #{linkUri}, content = #{content}, title = #{title}, msg_mode = #{msgMode}, msg_type = #{msgType}, is_pic_msg = #{isPicMsg}, content_text = #{contentText,jdbcType=CLOB}, save_status = #{saveStatus}, save_level = #{saveLevel}, relevent_stand = #{releventStand}, relevent_laws = #{releventLaws}, relevent_group = #{releventGroup}, data_text = #{dataText}, where id = #{id} UPDATE MSG_DYNAMIC_INFO set valid_Flag = 1 WHERE id = #{id} update MSG_DYNAMIC_INFO set valid_flag = 1,save_status='delete' where id in #{msgId}