From efec800478214f3a412f879d2b51c2968515995d Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 25 十一月 2023 17:04:25 +0800 Subject: [PATCH] plc断开连接时获取工序最后一次报工数量作为加工数 --- model/production_progress.go | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/model/production_progress.go b/model/production_progress.go index d928936..293a660 100644 --- a/model/production_progress.go +++ b/model/production_progress.go @@ -133,17 +133,6 @@ return nil } -// CreateBatch 鎵归噺鎻掑叆 -func (slf *ProductionProgressSearch) CreateBatch(records []*ProductionProgress) error { - var db = slf.build() - - if err := db.Create(&records).Error; err != nil { - return fmt.Errorf("create batch err: %v, records: %+v", err, records) - } - - return nil -} - func (slf *ProductionProgressSearch) Save(record *ProductionProgress) error { var db = slf.build() -- Gitblit v1.8.0