查詢整理

AccountEmployeeRepository

1.select * from account_employee ae where ae.ownerId = ? 判斷傳入的employee的request是不是存在,不存在創(chuàng)建新的employee,存在的話返回到當(dāng)前employee下

AdminRepository

1.select a from admin a where a.token=? and a.time(token expire_time)=? 判斷某個(gè)token是否過期時(shí)候用的查詢,如果admin不存在就創(chuàng)建一個(gè)新admin,如果存在就更新session key

2.select a from admin a where a.token=? and a.role =? 還沒用到

3.select a from admin a where a.openId=? 微信服務(wù) 通過通過openId獲取admin的信息

4.select a from admin a where a.companyId=? 將公司名添加到admin中去

BillSourceWorkRepository

1.select bs.* from bill_source_work bs join account_employee ae on bs.id_account = ae.id where ae.id_owner= ?3 and bs.source_type in ?4 and bs.create_time >= ?1 and bs.create_time <= ?2 limit ?5,?6 還沒用到

2.select * from bill_source_work bs where bs.accountId=? and sourceType=? and bs.create_time >= ?1 and bs.create_time <= ?2 limit ?5,?6還沒用到

CityRepository

1.select * from city 查找區(qū)域信息

EmployeeRepository

1.select * from employee where openId=? 通過openId判斷是否存在該employee,如果不存在創(chuàng)建新的employee,如果存在更新該employee的sessin key

2.select * from employee where token =?and time=? 驗(yàn)證權(quán)限,通過token過期時(shí)間和token判斷employee是否存在

3.select * from employee where recommenderId=? limit 通過employee的id找到所有recommendId=該employee的id所有用戶,也就是該用戶所有發(fā)展的下線人員

JobFollowRelationRepository(MongoRepository)

1.db.jobFollowRelation.find({"employeeId":?}) 通過employeeId查找到該 employee 所有收藏的 job,再判斷與傳入的 jobid 是否相同,相同刪去,也就是取消關(guān)注收藏的job

JobComplainRepository(MongoRepository)

1.db.jobComplain.find({"status":?,"pageable":?}) // 未應(yīng)用

JobRepository

3.select * from Job j where j.status=? and j.admin=?

4.select j from Job j where j.status = ?1and j.adminId=2 or j.publisherId=?

5.select * from Job j where j.admin=?

6.select * from Job j where j.id=?

7.select j.* from job j inner join district d on d.id=j.id_district join city c on d.id_city=c.id where j.id_job_type in ?1 and c.id=?2 and job_status=?3 and test=0 order by salary_total desc,start_time limit ?4,?5

8.select j.* from job j inner join district d on d.id=j.id_district join city c on d.id_city=c.id where j.id_job_type in ?1 and c.id=?2 and job_status=?3 and test=0 order by start_time,salary_total desc limit ?4,?5

9.select j.* from job j inner join district d on d.id=j.id_district join city c on d.id_city=c.id where j.id_job_type in ?1 and c.id=?2 and job_status=?3 and test=0 order by j.commission_level1 desc limit ?4,?5

10.select * from Job j where j. districtIds=? and j. status=? and j.test=?

11.select * from Job j where j. districtIds=? and j. status=? and j.test=? and j. jobTypeIds=?

12.select j.* from job j inner join district d on d.id=j.id_district join city c on d.id_city=c.id where c.id=?1 and job_status=?2 and test=0 order by salary_total desc,start_time limit ?3,?4

13.select j.* from job j inner join district d on d.id=j.id_district join city c on d.id_city=c.id where c.id=?1 and job_status=?2 and test=0 order by start_time,salary_total desc limit ?3,?4

14.select j.* from job j inner join district d on d.id=j.id_district join city c on d.id_city=c.id where c.id=?1 and job_status=?2 and test=0 order by j.commission_level1 desc limit ?3,?4

JobTypeRepository

1.select * from Job

2.select * from Job j where j.id=?

RegionRepository

1.select * from Region where cityNum=?

2.select *from Region where id=?

SubscribePrincpleRepository(MongoRepository)

1.db.subscribePrincple.find({"jobSymbole":?,"salary":?,"switchOn":?})

2.db.subscribePrincple.find({"subscriberId":?})

WechatUnifiedOrderRepository

1.select * from WechatPay where id=?

WorksRepository

1.select * from Works w where w.id = ?1

2.select w from Works w where w.id = ?1

3.select * from Works w where w. employeeId = ? and w. jobId=?

4.select * from Works w where w. jobId=?

5.select * from Works w where w. jobId=? and w.status=?

6.select * from Works w where w. employeeId = ? and w. jobId=? and w.status=?

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,097評(píng)論 0 23
  • 1. Java基礎(chǔ)部分 基礎(chǔ)部分的順序:基本語法,類相關(guān)的語法,內(nèi)部類的語法,繼承相關(guān)的語法,異常的語法,線程的語...
    子非魚_t_閱讀 34,697評(píng)論 18 399
  • 本想著要做溫柔的女子,卻越來越暴躁,尤其在工作中遇到奇葩事時(shí)更為明顯。獨(dú)自待在一個(gè)地方,從陌生到漸漸熟悉,經(jīng)歷過窘...
    YMYM閱讀 153評(píng)論 0 0
  • 記得以前看到過一個(gè)小段子,說是要了解一個(gè)女人,需要去她家看看廚房,要了解一個(gè)男人,需要去他家看看書房。如今看來,前...
    于洛閱讀 576評(píng)論 0 1
  • 筆者在實(shí)習(xí)了幾個(gè)月之后,不知道自己是老幾了,雖然知道自己很菜,但是卻迷失了學(xué)習(xí)的方向,看看大牛寫的代碼,頓時(shí)感覺自...
    全世界_gl閱讀 438評(píng)論 1 1

友情鏈接更多精彩內(nèi)容