...
|
...
|
@@ -4,7 +4,6 @@ import ( |
|
|
"github.com/linmadan/egglib-go/utils/xtime"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/utils"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/log"
|
|
|
)
|
|
|
|
|
|
// HistoryProductRecord 历史生成记录
|
...
|
...
|
@@ -39,7 +38,7 @@ func (d *HistoryProductRecord) LoadDto(m *domain.ProductRecord) *HistoryProductR |
|
|
if m.ProductRecordType != domain.RecordTypeSecondLevelWeigh &&
|
|
|
m.ProductRecordInfo.ApproveStatus == domain.ProductRecordNotApprove &&
|
|
|
!(xtime.BeginningOfDay().Equal(xtime.New(m.CreatedAt.Local()).BeginningOfDay())) {
|
|
|
log.Logger.Debug("not equal", map[string]interface{}{"t1": xtime.BeginningOfDay(), "t2": xtime.New(m.CreatedAt.Local()).BeginningOfDay()})
|
|
|
//log.Logger.Debug("not equal", map[string]interface{}{"t1": xtime.BeginningOfDay(), "t2": xtime.New(m.CreatedAt.Local()).BeginningOfDay()})
|
|
|
d.Status = domain.ProductRecordLogged
|
|
|
}
|
|
|
return d
|
...
|
...
|
|