這是乙個ibatIS xml檔案

2021-06-26 16:37:23 字數 4032 閱讀 7197

<?xml version="1.0" encoding="utf-8" ?>

msg_id = #eqmsgid:bigint#

msg_id in ( $inmsgids$ )

msg_id in #inmsgidlist:bigint#

account_id = #eqaccountid:bigint#

account_id ]]> #gtaccountid:bigint#

msg_type = #eqmsgtype:varchar#

msg_type like #likemsgtype:varchar#

title = #eqtitle:varchar#

title like #liketitle:varchar#

status = #eqstatus:integer#

status = #eqstatus2:integer#

push_type = #eqpushtype:integer#

create_time ]]> #gtcreatetime:timestamp#

create_time #ltcreatetime:timestamp#

send_time ]]> #gtsendtime:timestamp#

send_time #ltsendtime:timestamp#

total_count = #eqtotalcount:integer#

total_count ]]> #gttotalcount:integer#

filter_count = #eqfiltercount:integer#

filter_count ]]> #gtfiltercount:integer#

sent_count = #eqsentcount:integer#

sent_count ]]> #gtsentcount:integer#

offline_count = #eqofflinecount:integer#

offline_count ]]> #gtofflinecount:integer#

fail_count = #eqfailcount:integer#

fail_count ]]> #gtfailcount:integer#

read_count = #eqreadcount:integer#

read_count ]]> #gtreadcount:integer#

read_count = read_count + #increasecount:integer#

msg_id

account_id

msg_type

title

status

create_time

send_time

total_count

filter_count

sent_count

offline_count

fail_count

read_count

desc

ascselect msg_id, account_id, msg_type, title, status,push_type, create_time, send_time, total_count,

filter_count, sent_count, offline_count, fail_count, read_count

from t_um_message

where msg_id = #value#

select msg_id, account_id, msg_type, title, status,push_type, create_time, send_time, total_count,

filter_count, sent_count, offline_count, fail_count, read_count

from t_um_message

order by $orderbyclause$

select count(1) from t_um_message

delete from t_um_message

where msg_id = #value#

delete from t_um_message

insert into t_um_message (msg_id, account_id, msg_type, title, status, push_type,create_time, send_time,

total_count, filter_count, sent_count, offline_count, fail_count, read_count)

values (#msgid:bigint#, #accountid:bigint#, #msgtype:varchar#, #title:varchar#,

#status:integer#,#pushtype:integer#, #createtime:timestamp#, #sendtime:timestamp#, #totalcount:integer#,

#filtercount:integer#, #sentcount:integer#, #offlinecount:integer#, #failcount:integer#,

#readcount:integer#)

update t_um_message

set account_id = #accountid:bigint#,

msg_type = #msgtype:varchar#,

title = #title:varchar#,

status = #status:integer#,

push_type= #pushtype:integer#,

send_time = #sendtime:timestamp#,

total_count = #totalcount:integer#,

filter_count = #filtercount:integer#,

sent_count = #sentcount:integer#,

offline_count = #offlinecount:integer#,

fail_count = #failcount:integer#,

read_count = #readcount:integer#

where msg_id = #msgid:bigint#

update t_um_message

account_id = #accountid:bigint#

msg_type = #msgtype:varchar#

title = #title:varchar#

status = #status:integer#

push_type = #pushtype:integer#

send_time = #sendtime:timestamp#

total_count = #totalcount:integer#

filter_count = #filtercount:integer#

sent_count = #sentcount:integer#

offline_count = #offlinecount:integer#

fail_count = #failcount:integer#

read_count = #readcount:integer#

status = #eqstatus2:integer#

這個地方有個or條件,當我有and 又有 or 時,特別不好用。求解

資料庫查詢注意事項:

注意 or 的使用 , 順序是不一樣的。我的解決辦法:

( status = #orstatus:integer#

status = #orstatus2:integer# )

加上括號就能優先執行or條件了

msg_id in

conjunction=",">#inmsgidlist:bigint#

inmsgidlist是乙個list,把需要查詢的條件list放到map , 就能查詢

這是乙個開始

準備正式的應對職業之路,是從劉未鵬的部落格開始 在此之前,從事的工作比較漫不經心,因為不熱愛的緣故,也只是工作而已 經朋友推薦,瀏覽了劉的部落格,一下仿似給自己找到了乙個出口。長期以來自己不成條理,漫無目標的思考,找到了乙個可以依附的體系 在新下來的日子裡,我認真的做事,努力學習周邊,在漂亮完成兩個...

這是乙個Scanner

最近,老師讓寫乙個ftp掃瞄器並匿名登陸。要求掃瞄到所有的檔案。預備知識 ftplib的使用 python異常處理知識 字串處理技巧 牽扯到拼接路徑 遞迴程式設計技巧 需要用遞迴來遍歷所有檔案 思路通過思考問題,我設計的遞迴引數是將父目錄當作引數。這個是肯定存在的。所以不需要進行異常處理 有以下幾種...

這是乙個隨筆

自我介紹 21160635 我的名字是曾磊鑫 愛好玩遊戲和聽 最喜歡吃的就是老黃牛的麻辣香鍋 晉級賽bo5又輸了xd 問題簡答 1 回想一下你初入大學時對本專業的暢想 1.當初你是如何做出選擇軟體工程專業的決定的?年輕不懂事當初以為選了軟工就可以在大學有理由好好玩遊戲了,現在發現家裡沒礦學業要緊。2...