...
|
...
|
@@ -92,6 +92,7 @@ func (employeeProductRecord *EmployeeProductRecord) UpdateProductWeigh(weigh flo |
|
|
if productRecordType == RecordTypeWeigh {
|
|
|
employeeProductRecord.ProductWeigh += weigh
|
|
|
}
|
|
|
employeeProductRecord.ProductWeigh = utils.Round(employeeProductRecord.ProductWeigh, 1)
|
|
|
employeeProductRecord.ProductRecordInfo.PreStatistics(employeeProductRecord.ProductWeigh, employeeProductRecord.SecondLevelWeigh, yesterdayWeight, bestWeight)
|
|
|
employeeProductRecord.UpdatedAt = time.Now()
|
|
|
employeeProductRecord.Version += 1
|
...
|
...
|
|