作者 yangfu

fix: 历史生产记录查询修改

@@ -4,7 +4,6 @@ import ( @@ -4,7 +4,6 @@ import (
4 "github.com/linmadan/egglib-go/utils/xtime" 4 "github.com/linmadan/egglib-go/utils/xtime"
5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/domain" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/domain"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/utils" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/utils"
7 - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/log"  
8 ) 7 )
9 8
10 // HistoryProductRecord 历史生成记录 9 // HistoryProductRecord 历史生成记录
@@ -39,7 +38,7 @@ func (d *HistoryProductRecord) LoadDto(m *domain.ProductRecord) *HistoryProductR @@ -39,7 +38,7 @@ func (d *HistoryProductRecord) LoadDto(m *domain.ProductRecord) *HistoryProductR
39 if m.ProductRecordType != domain.RecordTypeSecondLevelWeigh && 38 if m.ProductRecordType != domain.RecordTypeSecondLevelWeigh &&
40 m.ProductRecordInfo.ApproveStatus == domain.ProductRecordNotApprove && 39 m.ProductRecordInfo.ApproveStatus == domain.ProductRecordNotApprove &&
41 !(xtime.BeginningOfDay().Equal(xtime.New(m.CreatedAt.Local()).BeginningOfDay())) { 40 !(xtime.BeginningOfDay().Equal(xtime.New(m.CreatedAt.Local()).BeginningOfDay())) {
42 - log.Logger.Debug("not equal", map[string]interface{}{"t1": xtime.BeginningOfDay(), "t2": xtime.New(m.CreatedAt.Local()).BeginningOfDay()}) 41 + //log.Logger.Debug("not equal", map[string]interface{}{"t1": xtime.BeginningOfDay(), "t2": xtime.New(m.CreatedAt.Local()).BeginningOfDay()})
43 d.Status = domain.ProductRecordLogged 42 d.Status = domain.ProductRecordLogged
44 } 43 }
45 return d 44 return d
@@ -28,7 +28,7 @@ type HistoryProductRecordQuery struct { @@ -28,7 +28,7 @@ type HistoryProductRecordQuery struct {
28 // 页数 28 // 页数
29 PageSize int `cname:"页数" json:"pageSize,omitempty"` 29 PageSize int `cname:"页数" json:"pageSize,omitempty"`
30 // 车间ID 30 // 车间ID
31 - WorkshopId int `cname:"车间ID" json: workshopId,omitempty"` 31 + WorkshopId int `cname:"车间ID" json:"workshopId,omitempty"`
32 // 生产线ID 32 // 生产线ID
33 LineId int `cname:"生产线ID" json:"lineId,omitempty"` 33 LineId int `cname:"生产线ID" json:"lineId,omitempty"`
34 // 工段ID 34 // 工段ID