正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -155,6 +155,9 @@ func (productRecordService *ProductRecordService) CreateProductRecord(operateInf | @@ -155,6 +155,9 @@ func (productRecordService *ProductRecordService) CreateProductRecord(operateInf | ||
155 | return nil, application.ThrowError(application.ARG_ERROR, "保存生产记录"+err.Error()) | 155 | return nil, application.ThrowError(application.ARG_ERROR, "保存生产记录"+err.Error()) |
156 | } | 156 | } |
157 | productRecordIds = append(productRecordIds, productRecordData.ProductRecordId) | 157 | productRecordIds = append(productRecordIds, productRecordData.ProductRecordId) |
158 | + if param.SaveAndApprove { | ||
159 | + _ = domainService.SendProductRecordStaticsJob(productRecordData) | ||
160 | + } | ||
158 | } | 161 | } |
159 | if err := transactionContext.CommitTransaction(); err != nil { | 162 | if err := transactionContext.CommitTransaction(); err != nil { |
160 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 163 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
-
请 注册 或 登录 后发表评论