作者 Your Name

更新

@@ -50,7 +50,7 @@ func (srv ProductTroubleService) SaveProductTrouble(operateInfo *domain.OperateI @@ -50,7 +50,7 @@ func (srv ProductTroubleService) SaveProductTrouble(operateInfo *domain.OperateI
50 if workShopData.CompanyId != operateInfo.CompanyId { 50 if workShopData.CompanyId != operateInfo.CompanyId {
51 return nil, application.ThrowError(application.ARG_ERROR, "车间数据填写错误") 51 return nil, application.ThrowError(application.ARG_ERROR, "车间数据填写错误")
52 } 52 }
53 - workStation, err := workShopData.FindWorkStation(param.WorkshopId, param.LineId, param.WorkshopId) 53 + workStation, err := workShopData.FindWorkStation(param.WorkshopId, param.LineId, param.SectionId)
54 if err != nil { 54 if err != nil {
55 return nil, application.ThrowError(application.ARG_ERROR, err.Error()) 55 return nil, application.ThrowError(application.ARG_ERROR, err.Error())
56 } 56 }
@@ -409,8 +409,8 @@ func (srv ProductTroubleService) BatchAddProductTrouble(operateInfo *domain.Oper @@ -409,8 +409,8 @@ func (srv ProductTroubleService) BatchAddProductTrouble(operateInfo *domain.Oper
409 } 409 }
410 item := &domain.ProductTrouble{ 410 item := &domain.ProductTrouble{
411 Id: 0, 411 Id: 0,
412 - CompanyId: 0,  
413 - OrgId: 0, 412 + CompanyId: operateInfo.CompanyId,
  413 + OrgId: operateInfo.OrgId,
414 WorkStation: *workStation, 414 WorkStation: *workStation,
415 ProductWorker: *worker, 415 ProductWorker: *worker,
416 AmountLoss: amountLoss, 416 AmountLoss: amountLoss,