@dssp/supervision 0.0.21 → 0.0.23
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/client/pages/building-inspection/building-inspection-detail-checklist.ts +15 -0
- package/client/pages/building-inspection/building-inspection-list.ts +4 -30
- package/client/pages/building-inspection/component/inspection-event-provider.ts +54 -5
- package/client/pages/building-inspection/inspection-create-popup.ts +50 -23
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +15 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +0 -1
- package/dist-client/pages/building-inspection/building-inspection-list.js +5 -29
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +4 -3
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +50 -5
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.js +54 -27
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.js +6 -8
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/server/service/building-inspection/building-inspection-query.ts +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dssp/supervision",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
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.
|
|
31
|
-
"@dssp/project": "^0.0.
|
|
30
|
+
"@dssp/building-complex": "^0.0.23",
|
|
31
|
+
"@dssp/project": "^0.0.23",
|
|
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": "
|
|
40
|
+
"gitHead": "d2b020ad1b7ba93251c07e69192af8fdadeded23"
|
|
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
|
|
133
|
+
async buildingInspectionDateSummaryOfLevelAndPeriod(
|
|
134
134
|
@Arg('buildingLevelId') buildingLevelId: string,
|
|
135
|
-
@Arg('
|
|
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"`)
|