...
|
...
|
@@ -550,15 +550,15 @@ func (productRecordService *ProductRecordService) BatchAddProductRecord(operate |
|
|
failRows = append(failRows, param[i])
|
|
|
continue
|
|
|
}
|
|
|
//获取生产班组
|
|
|
var productGroup *domain.ProductGroup
|
|
|
if v, ok := productGroupMap[param[i].ProductGroupName]; ok {
|
|
|
productGroup = v
|
|
|
} else {
|
|
|
param[i].FailReason = "班组不存在"
|
|
|
failRows = append(failRows, param[i])
|
|
|
continue
|
|
|
}
|
|
|
// //获取生产班组
|
|
|
// var productGroup *domain.ProductGroup
|
|
|
// if v, ok := productGroupMap[param[i].ProductGroupName]; ok {
|
|
|
// productGroup = v
|
|
|
// } else {
|
|
|
// param[i].FailReason = "班组不存在"
|
|
|
// failRows = append(failRows, param[i])
|
|
|
// continue
|
|
|
// }
|
|
|
//检查员工姓名
|
|
|
var worker *domain.User
|
|
|
workKey := param[i].WorkshopName + "/" + param[i].WorkerName
|
...
|
...
|
@@ -615,8 +615,8 @@ func (productRecordService *ProductRecordService) BatchAddProductRecord(operate |
|
|
ProductPlanId: productPlanData.ProductPlanId,
|
|
|
PlanProductName: productPlanData.PlanProductName,
|
|
|
BatchNumber: productPlanData.BatchNumber,
|
|
|
ProductGroupId: productGroup.ProductGroupId,
|
|
|
WorkOn: productGroup.WorkOn,
|
|
|
ProductGroupId: 0,
|
|
|
WorkOn: productPlanData.WorkOn,
|
|
|
},
|
|
|
Ext: &domain.Ext{
|
|
|
Operator: operateUser,
|
...
|
...
|
|