@dssp/supervision 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dssp/supervision",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -27,8 +27,8 @@
27
27
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
28
28
  },
29
29
  "dependencies": {
30
- "@dssp/building-complex": "^0.0.22",
31
- "@dssp/project": "^0.0.22",
30
+ "@dssp/building-complex": "^0.0.24",
31
+ "@dssp/project": "^0.0.24",
32
32
  "@operato/event-view": "^8.0.0-alpha",
33
33
  "@operato/graphql": "^8.0.0-alpha",
34
34
  "@operato/image-marker": "^8.0.0-alpha",
@@ -37,5 +37,5 @@
37
37
  "@things-factory/auth-base": "^8.0.0-alpha",
38
38
  "@things-factory/shell": "^8.0.0-alpha"
39
39
  },
40
- "gitHead": "4d4d67ec1e975949ba2cef68fc3c8d2e407c29e6"
40
+ "gitHead": "534da1901bb069b633bb2aa390817724cc542a6f"
41
41
  }
@@ -130,15 +130,12 @@ export class BuildingInspectionQuery {
130
130
 
131
131
  // 층 별로 검수 개수 써머리
132
132
  @Query(returns => [BuildingInspectionSummary]!, { nullable: true, description: 'To fetch a BuildingInspection Summary' })
133
- async buildingInspectionDateSummaryOfLevelAndMonth(
133
+ async buildingInspectionDateSummaryOfLevelAndPeriod(
134
134
  @Arg('buildingLevelId') buildingLevelId: string,
135
- @Arg('yearMonth') yearMonth: string,
135
+ @Arg('startDate') startDate: string,
136
+ @Arg('endDate') endDate: string,
136
137
  @Ctx() context: ResolverContext
137
138
  ): Promise<BuildingInspectionSummary[]> {
138
- const [year, month] = yearMonth.split('-') // 'YYYY-MM' 형식에서 연도와 월 추출
139
- const startDate = `${year}-${month}-01`
140
- const endDate = new Date(Number(year), Number(month), 0).toISOString().split('T')[0] // 해당 월의 마지막 날짜 계산
141
-
142
139
  const buildingInspectionSummary = await getRepository(BuildingInspection)
143
140
  .createQueryBuilder('bi')
144
141
  .select(`TO_CHAR(bi.request_date, 'YYYY-MM-DD') AS "requestDate"`)