feat: 两库对等物料管理及产品工号贯通全流程
- 新增 MES 本地物料表及双向同步接口,WMS 物料变更自动同步 - 全流程新增产品工号字段,贯通入库/库存/出库/检验环节 - 工单管理支持多工单混产,移除单工单互斥限制 - 新增批次号/SN 字段支持质量检验联动 WMS 库存处置 - 修复权限规则,仅内置管理员账号不允许修改删除 - 工位终端新增 SN 扫码自动切换所属工单功能
This commit is contained in:
@@ -63,6 +63,8 @@ const (
|
||||
FieldContractNo = "contract_no"
|
||||
// FieldInspectionNo holds the string denoting the inspection_no field in the database.
|
||||
FieldInspectionNo = "inspection_no"
|
||||
// FieldProductWorkNo holds the string denoting the product_work_no field in the database.
|
||||
FieldProductWorkNo = "product_work_no"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the outboundorder in the database.
|
||||
@@ -98,6 +100,7 @@ var Columns = []string{
|
||||
FieldBoxSnList,
|
||||
FieldContractNo,
|
||||
FieldInspectionNo,
|
||||
FieldProductWorkNo,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -264,6 +267,11 @@ func ByInspectionNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldInspectionNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProductWorkNo orders the results by the product_work_no field.
|
||||
func ByProductWorkNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProductWorkNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
|
||||
@@ -183,6 +183,11 @@ func InspectionNo(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldInspectionNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNo applies equality check predicate on the "product_work_no" field. It's identical to ProductWorkNoEQ.
|
||||
func ProductWorkNo(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldCreatedAt, v))
|
||||
@@ -1963,6 +1968,81 @@ func InspectionNoContainsFold(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldContainsFold(FieldInspectionNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoEQ applies the EQ predicate on the "product_work_no" field.
|
||||
func ProductWorkNoEQ(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoNEQ applies the NEQ predicate on the "product_work_no" field.
|
||||
func ProductWorkNoNEQ(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNEQ(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoIn applies the In predicate on the "product_work_no" field.
|
||||
func ProductWorkNoIn(vs ...string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldIn(FieldProductWorkNo, vs...))
|
||||
}
|
||||
|
||||
// ProductWorkNoNotIn applies the NotIn predicate on the "product_work_no" field.
|
||||
func ProductWorkNoNotIn(vs ...string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNotIn(FieldProductWorkNo, vs...))
|
||||
}
|
||||
|
||||
// ProductWorkNoGT applies the GT predicate on the "product_work_no" field.
|
||||
func ProductWorkNoGT(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldGT(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoGTE applies the GTE predicate on the "product_work_no" field.
|
||||
func ProductWorkNoGTE(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldGTE(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoLT applies the LT predicate on the "product_work_no" field.
|
||||
func ProductWorkNoLT(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldLT(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoLTE applies the LTE predicate on the "product_work_no" field.
|
||||
func ProductWorkNoLTE(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldLTE(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoContains applies the Contains predicate on the "product_work_no" field.
|
||||
func ProductWorkNoContains(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldContains(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoHasPrefix applies the HasPrefix predicate on the "product_work_no" field.
|
||||
func ProductWorkNoHasPrefix(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldHasPrefix(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoHasSuffix applies the HasSuffix predicate on the "product_work_no" field.
|
||||
func ProductWorkNoHasSuffix(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldHasSuffix(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoIsNil applies the IsNil predicate on the "product_work_no" field.
|
||||
func ProductWorkNoIsNil() predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldIsNull(FieldProductWorkNo))
|
||||
}
|
||||
|
||||
// ProductWorkNoNotNil applies the NotNil predicate on the "product_work_no" field.
|
||||
func ProductWorkNoNotNil() predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldNotNull(FieldProductWorkNo))
|
||||
}
|
||||
|
||||
// ProductWorkNoEqualFold applies the EqualFold predicate on the "product_work_no" field.
|
||||
func ProductWorkNoEqualFold(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEqualFold(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// ProductWorkNoContainsFold applies the ContainsFold predicate on the "product_work_no" field.
|
||||
func ProductWorkNoContainsFold(v string) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldContainsFold(FieldProductWorkNo, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.OutboundOrder {
|
||||
return predicate.OutboundOrder(sql.FieldEQ(FieldCreatedAt, v))
|
||||
|
||||
Reference in New Issue
Block a user