add: sort data
This commit is contained in:
parent
1c6c123142
commit
03036c8b77
17 changed files with 19 additions and 0 deletions
|
@ -12,6 +12,7 @@ export default abstract class CalendarService {
|
|||
.getRepository(calendar)
|
||||
.createQueryBuilder("calendar")
|
||||
.leftJoinAndSelect("calendar.type", "type")
|
||||
.orderBy("starttime", "ASC")
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
|
|
@ -16,6 +16,7 @@ export default abstract class CommunicationService {
|
|||
.leftJoinAndSelect("communication.member", "member")
|
||||
.leftJoinAndSelect("member.sendNewsletter", "sendNewsletter")
|
||||
.where("communication.memberId = :memberId", { memberId: memberId })
|
||||
.orderBy("communicationType.type", "ASC")
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
|
|
@ -14,6 +14,7 @@ export default abstract class MemberAwardService {
|
|||
.createQueryBuilder("memberAwards")
|
||||
.leftJoinAndSelect("memberAwards.award", "award")
|
||||
.where("memberAwards.memberId = :memberId", { memberId: memberId })
|
||||
.orderBy("award.award", "ASC")
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
|
|
@ -14,6 +14,8 @@ export default abstract class MemberExecutivePositionService {
|
|||
.createQueryBuilder("memberExecutivePositions")
|
||||
.leftJoinAndSelect("memberExecutivePositions.executivePosition", "executivePosition")
|
||||
.where("memberExecutivePositions.memberId = :memberId", { memberId: memberId })
|
||||
.orderBy("executivePosition.position", "ASC")
|
||||
.addOrderBy("memberExecutivePositions.start", "DESC")
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
|
|
@ -14,6 +14,7 @@ export default abstract class MemberQualificationService {
|
|||
.createQueryBuilder("memberQualifications")
|
||||
.leftJoinAndSelect("memberQualifications.qualification", "qualification")
|
||||
.where("memberQualifications.memberId = :memberId", { memberId: memberId })
|
||||
.orderBy("qualification.qualification", "ASC")
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue