Browse Source

fix(tasksign): 修复任务签名后数据未保存的问题

- 在管道订单报告生成后添加保存操作
- 在通知表单报告签名更新后添加数据库保存操作
- 确保签名数据能够正确持久化到数据库中
xuzhancheng 4 days ago
parent
commit
9b830f21f3

+ 2 - 0
tz-module-pressure2/tz-module-pressure2-biz/src/main/java/cn/start/tz/module/pressure2/service/tasksign/TaskSignServiceImpl.java

@@ -455,6 +455,7 @@ public class TaskSignServiceImpl implements TaskSignService {
             } else {
                 orderReportService.generatePipeOrderReport(taskOrderDO.getAcceptOrderId());
             }
+            orderReportService.save(orderReport);
 
         } else if (reqVO.getBusinessType().equals(BUSINESS_TYPE_NOTIFICATIONFORM_REPORT)) {
             // 检验情况告知:更新第一个通知表单的签名信息,并批量创建动态报表
@@ -469,6 +470,7 @@ public class TaskSignServiceImpl implements TaskSignService {
             NotificationformReportDO notificationReportDO = notificationReportDOs.get(0);
             notificationReportDO.setSignUrl(reqVO.getSignUrl());
             notificationReportDO.setSignDate(now());
+            notificationformReportMapper.updateById(notificationReportDO);
 
             // 批量创建动态报表实例
             processSubReportInstances(taskOrderDO, notificationReportDOs);