作者 Your Name

添加消息发送

@@ -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())