一庶近、我的地盤相關(guān)的表
[if !supportLists]·?[endif]zt_todo鼻吮,待辦事宜表像街。
二、產(chǎn)品相關(guān)的表
[if !supportLists]·?[endif]zt_product抖僵,記錄了產(chǎn)品相關(guān)的信息鲤看。
[if !supportLists]·?[endif]zt_productplan,記錄了產(chǎn)品的計(jì)劃信息耍群。
[if !supportLists]·?[endif]zt_story义桂,是非常重要的一張表,記錄了系統(tǒng)中所有的需求記錄蹈垢。
[if !supportLists]·?[endif]zt_storyspec澡刹,記錄了需求的描述信息。
[if !supportLists]·?[endif]zt_storystage耘婚,記錄需求的階段信息。
[if !supportLists]·?[endif]zt_release陆赋,記錄了產(chǎn)品的發(fā)布信息沐祷。這張表同時(shí)也和zt_build互相關(guān)聯(lián)。
[if !supportLists]·?[endif]zt_branch攒岛,記錄產(chǎn)品的分支和平臺(tái)信息赖临。
三、項(xiàng)目相關(guān)的表
[if !supportLists]·?[endif]zt_project灾锯,項(xiàng)目表兢榨。
[if !supportLists]·?[endif]zt_projectproduct,記錄了項(xiàng)目和產(chǎn)品之間的關(guān)聯(lián)關(guān)系顺饮。
[if !supportLists]·?[endif]zt_projectstory吵聪,記錄了項(xiàng)目中需要做的需求列表。
[if !supportLists]·?[endif]zt_task兼雄,任務(wù)表吟逝。
[if !supportLists]·?[endif]zt_burn,燃盡圖數(shù)據(jù)表赦肋。燃盡圖就是根據(jù)這張表的數(shù)據(jù)畫出來(lái)的块攒。
[if !supportLists]·?[endif]zt_team,記錄了項(xiàng)目中的團(tuán)隊(duì)成員佃乘。
[if !supportLists]·?[endif]zt_build囱井,記錄了項(xiàng)目中產(chǎn)品的版本列表。
[if !supportLists]·?[endif]zt_taskestimate趣避,項(xiàng)目任務(wù)工時(shí)表庞呕。
四、測(cè)試相關(guān)的表
[if !supportLists]·?[endif]zt_bug程帕,bug表千扶,也是大家非常熟悉的一張表了料祠。
[if !supportLists]·?[endif]zt_case,用例表澎羞。記錄了所有的測(cè)試用例髓绽。
[if !supportLists]·?[endif]zt_casestep,則是記錄了用例相關(guān)的步驟妆绞,包括歷史顺呕。
[if !supportLists]·?[endif]zt_testtask,測(cè)試版本表括饶,記錄了歷次的測(cè)試任務(wù)株茶。
[if !supportLists]·?[endif]zt_testrun,則記錄了每個(gè)測(cè)試任務(wù)所對(duì)應(yīng)的用例執(zhí)行情況图焰。
[if !supportLists]·?[endif]zt_testresult启盛,記錄了每個(gè)用例歷次執(zhí)行的結(jié)果。
[if !supportLists]·?[endif]zt_testsuite技羔,測(cè)試套件表僵闯。
[if !supportLists]·?[endif]zt_suitecase,套件用例表藤滥。
[if !supportLists]·?[endif]zt_testreport鳖粟,測(cè)試報(bào)告表。
五拙绊、文檔庫(kù)相關(guān)的表
[if !supportLists]·?[endif]zt_doclib向图,記錄了自定義文檔庫(kù)列表。
[if !supportLists]·?[endif]zt_doc标沪,則記錄了所有的文檔榄攀。
[if !supportLists]·?[endif]zt_doccontent,文檔的內(nèi)容表金句。
六航攒、組織管理相關(guān)的表
[if !supportLists]·?[endif]zt_user,用戶表趴梢。
[if !supportLists]·?[endif]zt_group漠畜,分組表。
[if !supportLists]·?[endif]zt_usergroup坞靶,用戶和分組之間的對(duì)應(yīng)關(guān)系憔狞。
[if !supportLists]·?[endif]zt_grouppriv,分組的權(quán)限彰阴。
[if !supportLists]·?[endif]zt_dept瘾敢,部門結(jié)構(gòu)表。
[if !supportLists]·?[endif]zt_userquery,用戶自定義查詢表簇抵。
[if !supportLists]·?[endif]zt_usertpl庆杜,用戶的自定義模板表。
[if !supportLists]·?[endif]zt_usercontact碟摆,用戶聯(lián)系人表晃财。
[if !supportLists]·?[endif]zt_company,這張表記錄了當(dāng)前公司的信息典蜕,也是頂級(jí)的一張表断盛。
七、后臺(tái)管理相關(guān)的表
[if !supportLists]·?[endif]zt_action愉舔,系統(tǒng)日志表钢猛。
[if !supportLists]·?[endif]zt_cron,定時(shí)任務(wù)表轩缤,記錄計(jì)劃任務(wù)命迈。
[if !supportLists]·?[endif]zt_extension,插件表火的。
[if !supportLists]·?[endif]zt_history壶愤,操作歷史表,?記錄對(duì)任何一個(gè)對(duì)象的所有修改記錄卫玖,?前后值的變化。
[if !supportLists]·?[endif]zt_lang踊淳,語(yǔ)言定義表假瞬。
八、其他模塊相關(guān)的表
[if !supportLists]·?[endif]zt_module迂尝,也是非常重要的一張表脱茉,它維護(hù)了禪道系統(tǒng)中的模塊劃分?jǐn)?shù)據(jù),比如需求的模塊劃分垄开。
[if !supportLists]·?[endif]zt_effort琴许,日志表。
[if !supportLists]·?[endif]zt_entry溉躲,應(yīng)用表榜田。
[if !supportLists]·?[endif]zt_log,接口日志表锻梳。
[if !supportLists]·?[endif]zt_mailqueue箭券,郵件列隊(duì)表。
[if !supportLists]·?[endif]zt_module疑枯,模塊表辩块,記錄模塊信息。
[if !supportLists]·?[endif]zt_notify,提醒信息表废亭,記錄所有的提醒信息国章。
[if !supportLists]·?[endif]zt_score,積分表豆村,記錄積分信息液兽。
[if !supportLists]·?[endif]zt_file,附件表你画。記錄了所有的附件抵碟。
[if !supportLists]·?[endif]zt_block,區(qū)塊表坏匪,記錄我的地盤首頁(yè)拟逮,產(chǎn)品主頁(yè),項(xiàng)目主頁(yè)适滓,測(cè)試主頁(yè)的區(qū)塊信息敦迄。
[if !supportLists]·?[endif]zt_config,系統(tǒng)配置表凭迹,記錄所有的基本配置信息罚屋。
[if !supportLists]·?[endif]zt_webhook,記錄webhook信息嗅绸。
[if !supportLists]·?[endif]zt_webhookdatas脾猛,記錄webhook的數(shù)據(jù)表。
記錄個(gè)人任務(wù)列表語(yǔ)句:
?SELECT * FROM zt_task z WHERE z.id in( SELECT task FROM `zt_taskestimate` WHERE account = 'cd2019')
SELECT *FROM zt_userview zu WHERE zu.account ='cd2019'
// 歷史記錄
SELECT * FROM zt_history以前的記錄
SELECT * FROM zt_user zu LEFT JOIN zt_action za on zu.account = za.actor LEFT JOIN ?zt_history zh on zh.action = za.id
SELECT * FROM zt_action za LEFT JOIN zt_task zt on za.objectID = zt.id left JOIN zt_module zm on zm.id = zt.module LEFT JOIN zt_history zh on za.id = zh.action LEFT JOIN zt_project zp on zt.project = zp.id
//最終數(shù)據(jù)庫(kù)查詢語(yǔ)句
SELECT
zu.account, zu.`password`, zu.realname, za.objectType, za.action, zt.`name` taskName, zm.`name` moduleName, zp.`name` projectName, zpd.`name` productName, zp.`status` projectStatus, zt.`status` taskStatus, zh.field, zh.new, za.date
FROM
zt_user zu
LEFT JOIN zt_action za ON zu.account = za.actor
LEFT JOIN zt_task zt ON za.objectID = zt.id
LEFT JOIN zt_module zm ON zm.id = zt.module
LEFT JOIN zt_product zpd on zm.root = zpd.id
LEFT JOIN zt_project zp ON zt.project = zp.id
LEFT JOIN zt_history zh ON zh.action = za.id WHERE za.objectType = 'task'? AND (zh.field = 'desc' or zh.field ='status')? ORDER BY zm.`name`,zt.`name`,zu.realname