feat: 退料闭环定稿(损耗台账/备料清单/退料AGV自动派车/剩余量参考)+ 工位托盘守卫
- MES 新增损耗台账 loss_ledger,差异确认损耗接口 ConfirmReceiveLoss(按工单归集) - 备料清单 preparation:MES 按 日计划×工单×工位×物料 实时计算,WMS 只读展示 PreparationList - 退料闭环:N5 工位托盘守卫(未完成禁止退料)、退料 AGV 自动派车(JBT21 空位判定 + 托盘回收链路)、退料参考剩余量接口(应剩余=实备-已耗-已退-已损) - 新增 AGV 车辆状态表 agv_vehicle_state 及查询 - 整合接驳台/叫料池/库存锁既有闭环,清理 sql 目录注释生成脚本与 catalog,更新文档
This commit is contained in:
@@ -174,6 +174,21 @@ func LossReason(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldLossReason, v))
|
||||
}
|
||||
|
||||
// ReceiveQty applies equality check predicate on the "receiveQty" field. It's identical to ReceiveQtyEQ.
|
||||
func ReceiveQty(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceiveQty, v))
|
||||
}
|
||||
|
||||
// ReceiveDiff applies equality check predicate on the "receiveDiff" field. It's identical to ReceiveDiffEQ.
|
||||
func ReceiveDiff(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceiveDiff, v))
|
||||
}
|
||||
|
||||
// ReceiveNote applies equality check predicate on the "receiveNote" field. It's identical to ReceiveNoteEQ.
|
||||
func ReceiveNote(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldCreatedAt, v))
|
||||
@@ -1489,6 +1504,171 @@ func LossReasonContainsFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContainsFold(FieldLossReason, v))
|
||||
}
|
||||
|
||||
// ReceiveQtyEQ applies the EQ predicate on the "receiveQty" field.
|
||||
func ReceiveQtyEQ(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceiveQty, v))
|
||||
}
|
||||
|
||||
// ReceiveQtyNEQ applies the NEQ predicate on the "receiveQty" field.
|
||||
func ReceiveQtyNEQ(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldReceiveQty, v))
|
||||
}
|
||||
|
||||
// ReceiveQtyIn applies the In predicate on the "receiveQty" field.
|
||||
func ReceiveQtyIn(vs ...float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldReceiveQty, vs...))
|
||||
}
|
||||
|
||||
// ReceiveQtyNotIn applies the NotIn predicate on the "receiveQty" field.
|
||||
func ReceiveQtyNotIn(vs ...float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldReceiveQty, vs...))
|
||||
}
|
||||
|
||||
// ReceiveQtyGT applies the GT predicate on the "receiveQty" field.
|
||||
func ReceiveQtyGT(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldReceiveQty, v))
|
||||
}
|
||||
|
||||
// ReceiveQtyGTE applies the GTE predicate on the "receiveQty" field.
|
||||
func ReceiveQtyGTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldReceiveQty, v))
|
||||
}
|
||||
|
||||
// ReceiveQtyLT applies the LT predicate on the "receiveQty" field.
|
||||
func ReceiveQtyLT(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldReceiveQty, v))
|
||||
}
|
||||
|
||||
// ReceiveQtyLTE applies the LTE predicate on the "receiveQty" field.
|
||||
func ReceiveQtyLTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldReceiveQty, v))
|
||||
}
|
||||
|
||||
// ReceiveQtyIsNil applies the IsNil predicate on the "receiveQty" field.
|
||||
func ReceiveQtyIsNil() predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIsNull(FieldReceiveQty))
|
||||
}
|
||||
|
||||
// ReceiveQtyNotNil applies the NotNil predicate on the "receiveQty" field.
|
||||
func ReceiveQtyNotNil() predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotNull(FieldReceiveQty))
|
||||
}
|
||||
|
||||
// ReceiveDiffEQ applies the EQ predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffEQ(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceiveDiff, v))
|
||||
}
|
||||
|
||||
// ReceiveDiffNEQ applies the NEQ predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffNEQ(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldReceiveDiff, v))
|
||||
}
|
||||
|
||||
// ReceiveDiffIn applies the In predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffIn(vs ...float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldReceiveDiff, vs...))
|
||||
}
|
||||
|
||||
// ReceiveDiffNotIn applies the NotIn predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffNotIn(vs ...float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldReceiveDiff, vs...))
|
||||
}
|
||||
|
||||
// ReceiveDiffGT applies the GT predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffGT(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldReceiveDiff, v))
|
||||
}
|
||||
|
||||
// ReceiveDiffGTE applies the GTE predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffGTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldReceiveDiff, v))
|
||||
}
|
||||
|
||||
// ReceiveDiffLT applies the LT predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffLT(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldReceiveDiff, v))
|
||||
}
|
||||
|
||||
// ReceiveDiffLTE applies the LTE predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffLTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldReceiveDiff, v))
|
||||
}
|
||||
|
||||
// ReceiveDiffIsNil applies the IsNil predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffIsNil() predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIsNull(FieldReceiveDiff))
|
||||
}
|
||||
|
||||
// ReceiveDiffNotNil applies the NotNil predicate on the "receiveDiff" field.
|
||||
func ReceiveDiffNotNil() predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotNull(FieldReceiveDiff))
|
||||
}
|
||||
|
||||
// ReceiveNoteEQ applies the EQ predicate on the "receiveNote" field.
|
||||
func ReceiveNoteEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteNEQ applies the NEQ predicate on the "receiveNote" field.
|
||||
func ReceiveNoteNEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteIn applies the In predicate on the "receiveNote" field.
|
||||
func ReceiveNoteIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldReceiveNote, vs...))
|
||||
}
|
||||
|
||||
// ReceiveNoteNotIn applies the NotIn predicate on the "receiveNote" field.
|
||||
func ReceiveNoteNotIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldReceiveNote, vs...))
|
||||
}
|
||||
|
||||
// ReceiveNoteGT applies the GT predicate on the "receiveNote" field.
|
||||
func ReceiveNoteGT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteGTE applies the GTE predicate on the "receiveNote" field.
|
||||
func ReceiveNoteGTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteLT applies the LT predicate on the "receiveNote" field.
|
||||
func ReceiveNoteLT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteLTE applies the LTE predicate on the "receiveNote" field.
|
||||
func ReceiveNoteLTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteContains applies the Contains predicate on the "receiveNote" field.
|
||||
func ReceiveNoteContains(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContains(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteHasPrefix applies the HasPrefix predicate on the "receiveNote" field.
|
||||
func ReceiveNoteHasPrefix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasPrefix(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteHasSuffix applies the HasSuffix predicate on the "receiveNote" field.
|
||||
func ReceiveNoteHasSuffix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasSuffix(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteEqualFold applies the EqualFold predicate on the "receiveNote" field.
|
||||
func ReceiveNoteEqualFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEqualFold(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// ReceiveNoteContainsFold applies the ContainsFold predicate on the "receiveNote" field.
|
||||
func ReceiveNoteContainsFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContainsFold(FieldReceiveNote, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldCreatedAt, v))
|
||||
|
||||
Reference in New Issue
Block a user