feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -94,9 +94,19 @@ func ProcessSeq(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldProcessSeq, v))
|
||||
}
|
||||
|
||||
// RouteId applies equality check predicate on the "routeId" field. It's identical to RouteIdEQ.
|
||||
func RouteId(v int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldRouteId, v))
|
||||
// ContractNo applies equality check predicate on the "contractNo" field. It's identical to ContractNoEQ.
|
||||
func ContractNo(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// ProjectNo applies equality check predicate on the "projectNo" field. It's identical to ProjectNoEQ.
|
||||
func ProjectNo(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProductSerial applies equality check predicate on the "productSerial" field. It's identical to ProductSerialEQ.
|
||||
func ProductSerial(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
@@ -549,64 +559,199 @@ func ProcessSeqContainsFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContainsFold(FieldProcessSeq, v))
|
||||
}
|
||||
|
||||
// RouteIdEQ applies the EQ predicate on the "routeId" field.
|
||||
func RouteIdEQ(v int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldRouteId, v))
|
||||
// ContractNoEQ applies the EQ predicate on the "contractNo" field.
|
||||
func ContractNoEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteIdNEQ applies the NEQ predicate on the "routeId" field.
|
||||
func RouteIdNEQ(v int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNEQ(FieldRouteId, v))
|
||||
// ContractNoNEQ applies the NEQ predicate on the "contractNo" field.
|
||||
func ContractNoNEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNEQ(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteIdIn applies the In predicate on the "routeId" field.
|
||||
func RouteIdIn(vs ...int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldIn(FieldRouteId, vs...))
|
||||
// ContractNoIn applies the In predicate on the "contractNo" field.
|
||||
func ContractNoIn(vs ...string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldIn(FieldContractNo, vs...))
|
||||
}
|
||||
|
||||
// RouteIdNotIn applies the NotIn predicate on the "routeId" field.
|
||||
func RouteIdNotIn(vs ...int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNotIn(FieldRouteId, vs...))
|
||||
// ContractNoNotIn applies the NotIn predicate on the "contractNo" field.
|
||||
func ContractNoNotIn(vs ...string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNotIn(FieldContractNo, vs...))
|
||||
}
|
||||
|
||||
// RouteIdGT applies the GT predicate on the "routeId" field.
|
||||
func RouteIdGT(v int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGT(FieldRouteId, v))
|
||||
// ContractNoGT applies the GT predicate on the "contractNo" field.
|
||||
func ContractNoGT(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGT(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteIdGTE applies the GTE predicate on the "routeId" field.
|
||||
func RouteIdGTE(v int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGTE(FieldRouteId, v))
|
||||
// ContractNoGTE applies the GTE predicate on the "contractNo" field.
|
||||
func ContractNoGTE(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGTE(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteIdLT applies the LT predicate on the "routeId" field.
|
||||
func RouteIdLT(v int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLT(FieldRouteId, v))
|
||||
// ContractNoLT applies the LT predicate on the "contractNo" field.
|
||||
func ContractNoLT(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLT(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteIdLTE applies the LTE predicate on the "routeId" field.
|
||||
func RouteIdLTE(v int) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLTE(FieldRouteId, v))
|
||||
// ContractNoLTE applies the LTE predicate on the "contractNo" field.
|
||||
func ContractNoLTE(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLTE(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteIdIsNil applies the IsNil predicate on the "routeId" field.
|
||||
func RouteIdIsNil() predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldIsNull(FieldRouteId))
|
||||
// ContractNoContains applies the Contains predicate on the "contractNo" field.
|
||||
func ContractNoContains(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContains(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteIdNotNil applies the NotNil predicate on the "routeId" field.
|
||||
func RouteIdNotNil() predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNotNull(FieldRouteId))
|
||||
// ContractNoHasPrefix applies the HasPrefix predicate on the "contractNo" field.
|
||||
func ContractNoHasPrefix(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldHasPrefix(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteSnapshotIsNil applies the IsNil predicate on the "routeSnapshot" field.
|
||||
func RouteSnapshotIsNil() predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldIsNull(FieldRouteSnapshot))
|
||||
// ContractNoHasSuffix applies the HasSuffix predicate on the "contractNo" field.
|
||||
func ContractNoHasSuffix(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldHasSuffix(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// RouteSnapshotNotNil applies the NotNil predicate on the "routeSnapshot" field.
|
||||
func RouteSnapshotNotNil() predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNotNull(FieldRouteSnapshot))
|
||||
// ContractNoEqualFold applies the EqualFold predicate on the "contractNo" field.
|
||||
func ContractNoEqualFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEqualFold(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// ContractNoContainsFold applies the ContainsFold predicate on the "contractNo" field.
|
||||
func ContractNoContainsFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContainsFold(FieldContractNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoEQ applies the EQ predicate on the "projectNo" field.
|
||||
func ProjectNoEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoNEQ applies the NEQ predicate on the "projectNo" field.
|
||||
func ProjectNoNEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNEQ(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoIn applies the In predicate on the "projectNo" field.
|
||||
func ProjectNoIn(vs ...string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldIn(FieldProjectNo, vs...))
|
||||
}
|
||||
|
||||
// ProjectNoNotIn applies the NotIn predicate on the "projectNo" field.
|
||||
func ProjectNoNotIn(vs ...string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNotIn(FieldProjectNo, vs...))
|
||||
}
|
||||
|
||||
// ProjectNoGT applies the GT predicate on the "projectNo" field.
|
||||
func ProjectNoGT(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGT(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoGTE applies the GTE predicate on the "projectNo" field.
|
||||
func ProjectNoGTE(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGTE(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoLT applies the LT predicate on the "projectNo" field.
|
||||
func ProjectNoLT(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLT(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoLTE applies the LTE predicate on the "projectNo" field.
|
||||
func ProjectNoLTE(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLTE(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoContains applies the Contains predicate on the "projectNo" field.
|
||||
func ProjectNoContains(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContains(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoHasPrefix applies the HasPrefix predicate on the "projectNo" field.
|
||||
func ProjectNoHasPrefix(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldHasPrefix(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoHasSuffix applies the HasSuffix predicate on the "projectNo" field.
|
||||
func ProjectNoHasSuffix(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldHasSuffix(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoEqualFold applies the EqualFold predicate on the "projectNo" field.
|
||||
func ProjectNoEqualFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEqualFold(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProjectNoContainsFold applies the ContainsFold predicate on the "projectNo" field.
|
||||
func ProjectNoContainsFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContainsFold(FieldProjectNo, v))
|
||||
}
|
||||
|
||||
// ProductSerialEQ applies the EQ predicate on the "productSerial" field.
|
||||
func ProductSerialEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEQ(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialNEQ applies the NEQ predicate on the "productSerial" field.
|
||||
func ProductSerialNEQ(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNEQ(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialIn applies the In predicate on the "productSerial" field.
|
||||
func ProductSerialIn(vs ...string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldIn(FieldProductSerial, vs...))
|
||||
}
|
||||
|
||||
// ProductSerialNotIn applies the NotIn predicate on the "productSerial" field.
|
||||
func ProductSerialNotIn(vs ...string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldNotIn(FieldProductSerial, vs...))
|
||||
}
|
||||
|
||||
// ProductSerialGT applies the GT predicate on the "productSerial" field.
|
||||
func ProductSerialGT(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGT(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialGTE applies the GTE predicate on the "productSerial" field.
|
||||
func ProductSerialGTE(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldGTE(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialLT applies the LT predicate on the "productSerial" field.
|
||||
func ProductSerialLT(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLT(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialLTE applies the LTE predicate on the "productSerial" field.
|
||||
func ProductSerialLTE(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldLTE(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialContains applies the Contains predicate on the "productSerial" field.
|
||||
func ProductSerialContains(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContains(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialHasPrefix applies the HasPrefix predicate on the "productSerial" field.
|
||||
func ProductSerialHasPrefix(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldHasPrefix(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialHasSuffix applies the HasSuffix predicate on the "productSerial" field.
|
||||
func ProductSerialHasSuffix(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldHasSuffix(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialEqualFold applies the EqualFold predicate on the "productSerial" field.
|
||||
func ProductSerialEqualFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldEqualFold(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// ProductSerialContainsFold applies the ContainsFold predicate on the "productSerial" field.
|
||||
func ProductSerialContainsFold(v string) predicate.WorkOrder {
|
||||
return predicate.WorkOrder(sql.FieldContainsFold(FieldProductSerial, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
|
||||
@@ -29,10 +29,12 @@ const (
|
||||
FieldFailNum = "fail_num"
|
||||
// FieldProcessSeq holds the string denoting the processseq field in the database.
|
||||
FieldProcessSeq = "process_seq"
|
||||
// FieldRouteId holds the string denoting the routeid field in the database.
|
||||
FieldRouteId = "route_id"
|
||||
// FieldRouteSnapshot holds the string denoting the routesnapshot field in the database.
|
||||
FieldRouteSnapshot = "route_snapshot"
|
||||
// FieldContractNo holds the string denoting the contractno field in the database.
|
||||
FieldContractNo = "contract_no"
|
||||
// FieldProjectNo holds the string denoting the projectno field in the database.
|
||||
FieldProjectNo = "project_no"
|
||||
// FieldProductSerial holds the string denoting the productserial field in the database.
|
||||
FieldProductSerial = "product_serial"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldPlanStart holds the string denoting the planstart field in the database.
|
||||
@@ -62,8 +64,9 @@ var Columns = []string{
|
||||
FieldFinishedNum,
|
||||
FieldFailNum,
|
||||
FieldProcessSeq,
|
||||
FieldRouteId,
|
||||
FieldRouteSnapshot,
|
||||
FieldContractNo,
|
||||
FieldProjectNo,
|
||||
FieldProductSerial,
|
||||
FieldStatus,
|
||||
FieldPlanStart,
|
||||
FieldPlanEnd,
|
||||
@@ -104,6 +107,18 @@ var (
|
||||
DefaultProcessSeq string
|
||||
// ProcessSeqValidator is a validator for the "processSeq" field. It is called by the builders before save.
|
||||
ProcessSeqValidator func(string) error
|
||||
// DefaultContractNo holds the default value on creation for the "contractNo" field.
|
||||
DefaultContractNo string
|
||||
// ContractNoValidator is a validator for the "contractNo" field. It is called by the builders before save.
|
||||
ContractNoValidator func(string) error
|
||||
// DefaultProjectNo holds the default value on creation for the "projectNo" field.
|
||||
DefaultProjectNo string
|
||||
// ProjectNoValidator is a validator for the "projectNo" field. It is called by the builders before save.
|
||||
ProjectNoValidator func(string) error
|
||||
// DefaultProductSerial holds the default value on creation for the "productSerial" field.
|
||||
DefaultProductSerial string
|
||||
// ProductSerialValidator is a validator for the "productSerial" field. It is called by the builders before save.
|
||||
ProductSerialValidator func(string) error
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
@@ -166,9 +181,19 @@ func ByProcessSeq(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProcessSeq, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRouteId orders the results by the routeId field.
|
||||
func ByRouteId(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRouteId, opts...).ToFunc()
|
||||
// ByContractNo orders the results by the contractNo field.
|
||||
func ByContractNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldContractNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProjectNo orders the results by the projectNo field.
|
||||
func ByProjectNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProjectNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProductSerial orders the results by the productSerial field.
|
||||
func ByProductSerial(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProductSerial, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
|
||||
Reference in New Issue
Block a user