feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -68,6 +68,21 @@ func Description(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldDescription, v))
|
||||
}
|
||||
|
||||
// ShelfNo applies equality check predicate on the "shelf_no" field. It's identical to ShelfNoEQ.
|
||||
func ShelfNo(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// LayerNo applies equality check predicate on the "layer_no" field. It's identical to LayerNoEQ.
|
||||
func LayerNo(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// PositionNo applies equality check predicate on the "position_no" field. It's identical to PositionNoEQ.
|
||||
func PositionNo(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldStatus, v))
|
||||
@@ -288,6 +303,231 @@ func DescriptionContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldDescription, v))
|
||||
}
|
||||
|
||||
// ShelfNoEQ applies the EQ predicate on the "shelf_no" field.
|
||||
func ShelfNoEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoNEQ applies the NEQ predicate on the "shelf_no" field.
|
||||
func ShelfNoNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoIn applies the In predicate on the "shelf_no" field.
|
||||
func ShelfNoIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldShelfNo, vs...))
|
||||
}
|
||||
|
||||
// ShelfNoNotIn applies the NotIn predicate on the "shelf_no" field.
|
||||
func ShelfNoNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldShelfNo, vs...))
|
||||
}
|
||||
|
||||
// ShelfNoGT applies the GT predicate on the "shelf_no" field.
|
||||
func ShelfNoGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoGTE applies the GTE predicate on the "shelf_no" field.
|
||||
func ShelfNoGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoLT applies the LT predicate on the "shelf_no" field.
|
||||
func ShelfNoLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoLTE applies the LTE predicate on the "shelf_no" field.
|
||||
func ShelfNoLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoContains applies the Contains predicate on the "shelf_no" field.
|
||||
func ShelfNoContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoHasPrefix applies the HasPrefix predicate on the "shelf_no" field.
|
||||
func ShelfNoHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoHasSuffix applies the HasSuffix predicate on the "shelf_no" field.
|
||||
func ShelfNoHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoIsNil applies the IsNil predicate on the "shelf_no" field.
|
||||
func ShelfNoIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldShelfNo))
|
||||
}
|
||||
|
||||
// ShelfNoNotNil applies the NotNil predicate on the "shelf_no" field.
|
||||
func ShelfNoNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldShelfNo))
|
||||
}
|
||||
|
||||
// ShelfNoEqualFold applies the EqualFold predicate on the "shelf_no" field.
|
||||
func ShelfNoEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// ShelfNoContainsFold applies the ContainsFold predicate on the "shelf_no" field.
|
||||
func ShelfNoContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldShelfNo, v))
|
||||
}
|
||||
|
||||
// LayerNoEQ applies the EQ predicate on the "layer_no" field.
|
||||
func LayerNoEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoNEQ applies the NEQ predicate on the "layer_no" field.
|
||||
func LayerNoNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoIn applies the In predicate on the "layer_no" field.
|
||||
func LayerNoIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldLayerNo, vs...))
|
||||
}
|
||||
|
||||
// LayerNoNotIn applies the NotIn predicate on the "layer_no" field.
|
||||
func LayerNoNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldLayerNo, vs...))
|
||||
}
|
||||
|
||||
// LayerNoGT applies the GT predicate on the "layer_no" field.
|
||||
func LayerNoGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoGTE applies the GTE predicate on the "layer_no" field.
|
||||
func LayerNoGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoLT applies the LT predicate on the "layer_no" field.
|
||||
func LayerNoLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoLTE applies the LTE predicate on the "layer_no" field.
|
||||
func LayerNoLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoContains applies the Contains predicate on the "layer_no" field.
|
||||
func LayerNoContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoHasPrefix applies the HasPrefix predicate on the "layer_no" field.
|
||||
func LayerNoHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoHasSuffix applies the HasSuffix predicate on the "layer_no" field.
|
||||
func LayerNoHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoIsNil applies the IsNil predicate on the "layer_no" field.
|
||||
func LayerNoIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldLayerNo))
|
||||
}
|
||||
|
||||
// LayerNoNotNil applies the NotNil predicate on the "layer_no" field.
|
||||
func LayerNoNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldLayerNo))
|
||||
}
|
||||
|
||||
// LayerNoEqualFold applies the EqualFold predicate on the "layer_no" field.
|
||||
func LayerNoEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// LayerNoContainsFold applies the ContainsFold predicate on the "layer_no" field.
|
||||
func LayerNoContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldLayerNo, v))
|
||||
}
|
||||
|
||||
// PositionNoEQ applies the EQ predicate on the "position_no" field.
|
||||
func PositionNoEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoNEQ applies the NEQ predicate on the "position_no" field.
|
||||
func PositionNoNEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNEQ(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoIn applies the In predicate on the "position_no" field.
|
||||
func PositionNoIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIn(FieldPositionNo, vs...))
|
||||
}
|
||||
|
||||
// PositionNoNotIn applies the NotIn predicate on the "position_no" field.
|
||||
func PositionNoNotIn(vs ...string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotIn(FieldPositionNo, vs...))
|
||||
}
|
||||
|
||||
// PositionNoGT applies the GT predicate on the "position_no" field.
|
||||
func PositionNoGT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGT(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoGTE applies the GTE predicate on the "position_no" field.
|
||||
func PositionNoGTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldGTE(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoLT applies the LT predicate on the "position_no" field.
|
||||
func PositionNoLT(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLT(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoLTE applies the LTE predicate on the "position_no" field.
|
||||
func PositionNoLTE(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldLTE(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoContains applies the Contains predicate on the "position_no" field.
|
||||
func PositionNoContains(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContains(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoHasPrefix applies the HasPrefix predicate on the "position_no" field.
|
||||
func PositionNoHasPrefix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasPrefix(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoHasSuffix applies the HasSuffix predicate on the "position_no" field.
|
||||
func PositionNoHasSuffix(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldHasSuffix(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoIsNil applies the IsNil predicate on the "position_no" field.
|
||||
func PositionNoIsNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldIsNull(FieldPositionNo))
|
||||
}
|
||||
|
||||
// PositionNoNotNil applies the NotNil predicate on the "position_no" field.
|
||||
func PositionNoNotNil() predicate.Zone {
|
||||
return predicate.Zone(sql.FieldNotNull(FieldPositionNo))
|
||||
}
|
||||
|
||||
// PositionNoEqualFold applies the EqualFold predicate on the "position_no" field.
|
||||
func PositionNoEqualFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEqualFold(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// PositionNoContainsFold applies the ContainsFold predicate on the "position_no" field.
|
||||
func PositionNoContainsFold(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldContainsFold(FieldPositionNo, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.Zone {
|
||||
return predicate.Zone(sql.FieldEQ(FieldStatus, v))
|
||||
|
||||
Reference in New Issue
Block a user