refactor(survey): 优化SOP回执处理逻辑,新增增量保存接口

1. 调整survey_sop_result实体的receiptValue字段类型为TEXT,扩展存储长度
2. 新增SOP回执增量保存的controller和service接口
3. 优化回执详情查询,自动将照片key转换为预签名访问URL
4. 统一处理回执内容的JSON序列化与反序列化
This commit is contained in:
andyesfly committed 2026-09-19 15:12:34 +08:00
1 parent d581fad237
commit 4fe77be1af
3 files changed
+76 -4

No files matched your search

@@ -23,6 +23,11 @@ export class SurveyOrderController {
@Post("/") async create(@Body() body: any) { return this.surveyOrderService.create(body, this.ctx); }
@Put("/:id") async update(@Param("id") id: string, @Body() body: any) { return this.surveyOrderService.update(Number(id), body, this.ctx); }
// 现场回执:按 SOP 检查项增量录入(照片/截图 key 数组、表单值、备注)
@Put("/:id/sop-results") async saveSopResults(@Param("id") id: string, @Body() body: any) {
return this.surveyOrderService.saveSopResults(Number(id), body, this.ctx);
}
// 指派 / 改派共享电工
@Put("/:id/assign") async assign(@Param("id") id: string, @Body() body: any) {
return this.surveyOrderService.assign(Number(id), body, this.ctx);