rez_core 2.2.37 → 2.2.38
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/dist/module/workflow/controller/stage-group.controller.d.ts +2 -0
- package/dist/module/workflow/controller/stage.controller.js.map +1 -1
- package/dist/module/workflow/entity/action-data.entity.d.ts +1 -0
- package/dist/module/workflow/entity/action-data.entity.js +4 -0
- package/dist/module/workflow/entity/action-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage-group.entity.d.ts +2 -0
- package/dist/module/workflow/entity/stage-group.entity.js +8 -0
- package/dist/module/workflow/entity/stage-group.entity.js.map +1 -1
- package/dist/module/workflow/entity/task-data.entity.d.ts +1 -0
- package/dist/module/workflow/entity/task-data.entity.js +4 -0
- package/dist/module/workflow/entity/task-data.entity.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.js +1 -0
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage-group.repository.d.ts +2 -0
- package/dist/module/workflow/repository/stage-movement.repository.js +10 -4
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
- package/dist/module/workflow/repository/task.repository.js +1 -0
- package/dist/module/workflow/repository/task.repository.js.map +1 -1
- package/dist/module/workflow/service/stage-group.service.d.ts +2 -0
- package/dist/module/workflow/service/stage.service.js +1 -1
- package/dist/module/workflow/service/stage.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +5 -1
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow/controller/stage.controller.ts +0 -1
- package/src/module/workflow/entity/action-data.entity.ts +3 -0
- package/src/module/workflow/entity/stage-group.entity.ts +6 -0
- package/src/module/workflow/entity/task-data.entity.ts +3 -0
- package/src/module/workflow/repository/action-data.repository.ts +1 -0
- package/src/module/workflow/repository/stage-movement.repository.ts +10 -4
- package/src/module/workflow/repository/task.repository.ts +1 -0
- package/src/module/workflow/service/stage.service.ts +1 -1
- package/src/module/workflow/service/task.service.ts +5 -1
package/package.json
CHANGED
|
@@ -14,4 +14,10 @@ export class StageGroup extends BaseEntity {
|
|
|
14
14
|
|
|
15
15
|
@Column({ type: 'int', nullable: true })
|
|
16
16
|
sequence: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', nullable: true })
|
|
19
|
+
color: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', nullable: true })
|
|
22
|
+
dark_color: string;
|
|
17
23
|
}
|
|
@@ -40,6 +40,7 @@ export class ActionDataRepository {
|
|
|
40
40
|
is_current: isFirst ? 'Y' : null,
|
|
41
41
|
start_time: isFirst ? new Date() : null,
|
|
42
42
|
is_mandatory: is_mandatory[0]?.code === 'mandatory' ? true : false,
|
|
43
|
+
category: act?.action_category_code,
|
|
43
44
|
} as ActionDataEntity);
|
|
44
45
|
await this.actionDataRepo.save(actionData);
|
|
45
46
|
}
|
|
@@ -182,10 +182,16 @@ export class StageMovementRepository {
|
|
|
182
182
|
|
|
183
183
|
async getAllActionByStageId(stageId: number): Promise<any> {
|
|
184
184
|
const result = await this.dataSource.query(
|
|
185
|
-
`
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
`
|
|
186
|
+
SELECT
|
|
187
|
+
a.*,
|
|
188
|
+
m.stage_id,
|
|
189
|
+
ac.code AS action_category_code
|
|
190
|
+
FROM cr_wf_action a
|
|
191
|
+
INNER JOIN cr_wf_stage_action_mapping m ON a.id = m.action_id
|
|
192
|
+
LEFT JOIN cr_wf_action_category ac ON a.action_category = ac.id
|
|
193
|
+
WHERE m.stage_id = ?
|
|
194
|
+
`,
|
|
189
195
|
[stageId],
|
|
190
196
|
);
|
|
191
197
|
return result;
|
|
@@ -105,7 +105,7 @@ export class StageService extends EntityServiceImpl {
|
|
|
105
105
|
|
|
106
106
|
const result = allStages.map((stage) => ({
|
|
107
107
|
stage_id: stage.id,
|
|
108
|
-
full_name:
|
|
108
|
+
full_name: stage.name,
|
|
109
109
|
}));
|
|
110
110
|
return result;
|
|
111
111
|
}
|
|
@@ -82,11 +82,15 @@ export class TaskService extends EntityServiceImpl {
|
|
|
82
82
|
t.*,
|
|
83
83
|
sg.name AS stage_group_name,
|
|
84
84
|
s.name AS stage_name,
|
|
85
|
-
a.name AS action_name
|
|
85
|
+
a.name AS action_name,
|
|
86
|
+
u.name AS created_by_name,
|
|
87
|
+
u2.name AS task_owner_name
|
|
86
88
|
FROM cr_wf_task_data t
|
|
87
89
|
LEFT JOIN cr_wf_stage s ON t.stage_id = s.id
|
|
88
90
|
LEFT JOIN cr_wf_stage_group sg ON s.stage_group_id = sg.id
|
|
89
91
|
LEFT JOIN cr_wf_action a ON t.action_id = a.id
|
|
92
|
+
LEFT JOIN cr_user u ON t.created_by = u.id
|
|
93
|
+
LEFT JOIN cr_user u2 ON t.task_owner = u2.id
|
|
90
94
|
WHERE ${whereClauses.join(' AND ')}
|
|
91
95
|
ORDER BY t.due_date ASC, t.due_time ASC
|
|
92
96
|
`;
|