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