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 | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/service/process_model.go b/service/process_model.go index 728248d..bb42646 100644 --- a/service/process_model.go +++ b/service/process_model.go @@ -5,14 +5,14 @@ "apsClient/model" ) -func GetProcessModelList(page, pageSize int) (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"). - SetPage(page, pageSize).SetProcedures(device.ProceduresArr).Find() + SetIsNew(true).SetOrder("id desc").SetCurrentNumber(currentNumber). + SetPage(offset, limit).SetProcedures(device.ProceduresArr).Find() return } -- Gitblit v1.8.0