正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -92,7 +92,7 @@ func (cmd *HistoryProductRecordQuery) Valid(validation *validation.Validation) { | @@ -92,7 +92,7 @@ func (cmd *HistoryProductRecordQuery) Valid(validation *validation.Validation) { | ||
92 | cmd.ProductBeginTime = t | 92 | cmd.ProductBeginTime = t |
93 | cmd.ProductEndTime = t.AddDate(0, 0, 1) | 93 | cmd.ProductEndTime = t.AddDate(0, 0, 1) |
94 | } | 94 | } |
95 | - if cmd.ProductRecordType == domain.RecordTypeReceiveMaterial && cmd.ProductRecordType == domain.RecordTypeReturnMaterial { | 95 | + if cmd.ProductRecordType == domain.RecordTypeReceiveMaterial || cmd.ProductRecordType == domain.RecordTypeReturnMaterial { |
96 | if cmd.Status == domain.ProductRecordNotApprove { | 96 | if cmd.Status == domain.ProductRecordNotApprove { |
97 | cmd.Status = domain.ProductRecordNotApprove | 97 | cmd.Status = domain.ProductRecordNotApprove |
98 | if xtime.IsZero(cmd.ProductBeginTime) || xtime.BeforeEqual(cmd.ProductBeginTime, xtime.BeginningOfDay()) { | 98 | if xtime.IsZero(cmd.ProductBeginTime) || xtime.BeforeEqual(cmd.ProductBeginTime, xtime.BeginningOfDay()) { |
-
请 注册 或 登录 后发表评论