From e4957d48bb364f7ee34bd672f53b71a66ca31e14 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 26 十月 2023 09:46:56 +0800 Subject: [PATCH] 工序增加实际开始时间和实际结束时间 --- service/process_model.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/process_model.go b/service/process_model.go index adf53ba..bb42646 100644 --- a/service/process_model.go +++ b/service/process_model.go @@ -5,14 +5,14 @@ "apsClient/model" ) -func GetProcessModelList(page, pageSize int, currentNumber string) (list []*model.ProcessModel, total int64, err error) { +func GetProcessModelList(offset, limit int, currentNumber string) (list []*model.ProcessModel, total int64, err error) { device, err := model.NewDeviceSearch().SetDeviceId(conf.Conf.System.DeviceId).First() if err != nil { return } list, total, err = model.NewProcessModelSearch(). SetIsNew(true).SetOrder("id desc").SetCurrentNumber(currentNumber). - SetPage(page, pageSize).SetProcedures(device.ProceduresArr).Find() + SetPage(offset, limit).SetProcedures(device.ProceduresArr).Find() return } -- Gitblit v1.8.0