feat: 来料检处置项实体与复检、日排产达成对比、PLC/WMS 传输日志
- WMS 新增「检验处置项」实体(schema + ent 生成码),配套检验记录实体调整与复检接口,完善来料检/不良退货/入库检验前端 - MES 日排产:新增达成率统计与计划对比逻辑,调整日排产前端与流程卡/工序流 - 日志与传输:MES 新增 PLC 日志与 WMS 客户端传输日志,WMS 新增 MES 客户端传输日志 - MES 其他:扫码、工单/工件、AGV 客户端与告警、产品导入等逻辑完善及前端调整 - 工位终端:上线面板/作业面板、工件 handler 与 MES 客户端调整 - 配置与文档:更新 mes-api.yaml、三端构建产物与问题记录文档
This commit is contained in:
@@ -59,12 +59,6 @@ const (
|
||||
FieldDisposalStatus = "disposal_status"
|
||||
// FieldParentRecordID holds the string denoting the parent_record_id field in the database.
|
||||
FieldParentRecordID = "parent_record_id"
|
||||
// FieldDisposalType holds the string denoting the disposal_type field in the database.
|
||||
FieldDisposalType = "disposal_type"
|
||||
// FieldDisposalRemark holds the string denoting the disposal_remark field in the database.
|
||||
FieldDisposalRemark = "disposal_remark"
|
||||
// FieldReturnTrackingNo holds the string denoting the return_tracking_no field in the database.
|
||||
FieldReturnTrackingNo = "return_tracking_no"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
@@ -102,9 +96,6 @@ var Columns = []string{
|
||||
FieldInspectionConclusion,
|
||||
FieldDisposalStatus,
|
||||
FieldParentRecordID,
|
||||
FieldDisposalType,
|
||||
FieldDisposalRemark,
|
||||
FieldReturnTrackingNo,
|
||||
FieldRemark,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
@@ -141,8 +132,6 @@ var (
|
||||
DefaultDisposalStatus string
|
||||
// DefaultParentRecordID holds the default value on creation for the "parent_record_id" field.
|
||||
DefaultParentRecordID int64
|
||||
// DefaultDisposalType holds the default value on creation for the "disposal_type" field.
|
||||
DefaultDisposalType string
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() int64
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
|
||||
@@ -277,21 +266,6 @@ func ByParentRecordID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldParentRecordID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDisposalType orders the results by the disposal_type field.
|
||||
func ByDisposalType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDisposalType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDisposalRemark orders the results by the disposal_remark field.
|
||||
func ByDisposalRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDisposalRemark, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReturnTrackingNo orders the results by the return_tracking_no field.
|
||||
func ByReturnTrackingNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReturnTrackingNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRemark orders the results by the remark field.
|
||||
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemark, opts...).ToFunc()
|
||||
|
||||
@@ -173,21 +173,6 @@ func ParentRecordID(v int64) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldParentRecordID, v))
|
||||
}
|
||||
|
||||
// DisposalType applies equality check predicate on the "disposal_type" field. It's identical to DisposalTypeEQ.
|
||||
func DisposalType(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalRemark applies equality check predicate on the "disposal_remark" field. It's identical to DisposalRemarkEQ.
|
||||
func DisposalRemark(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNo applies equality check predicate on the "return_tracking_no" field. It's identical to ReturnTrackingNoEQ.
|
||||
func ReturnTrackingNo(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
||||
func Remark(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldRemark, v))
|
||||
@@ -1723,221 +1708,6 @@ func ParentRecordIDLTE(v int64) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLTE(FieldParentRecordID, v))
|
||||
}
|
||||
|
||||
// DisposalTypeEQ applies the EQ predicate on the "disposal_type" field.
|
||||
func DisposalTypeEQ(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeNEQ applies the NEQ predicate on the "disposal_type" field.
|
||||
func DisposalTypeNEQ(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNEQ(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeIn applies the In predicate on the "disposal_type" field.
|
||||
func DisposalTypeIn(vs ...string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldIn(FieldDisposalType, vs...))
|
||||
}
|
||||
|
||||
// DisposalTypeNotIn applies the NotIn predicate on the "disposal_type" field.
|
||||
func DisposalTypeNotIn(vs ...string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNotIn(FieldDisposalType, vs...))
|
||||
}
|
||||
|
||||
// DisposalTypeGT applies the GT predicate on the "disposal_type" field.
|
||||
func DisposalTypeGT(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldGT(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeGTE applies the GTE predicate on the "disposal_type" field.
|
||||
func DisposalTypeGTE(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldGTE(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeLT applies the LT predicate on the "disposal_type" field.
|
||||
func DisposalTypeLT(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLT(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeLTE applies the LTE predicate on the "disposal_type" field.
|
||||
func DisposalTypeLTE(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLTE(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeContains applies the Contains predicate on the "disposal_type" field.
|
||||
func DisposalTypeContains(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldContains(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeHasPrefix applies the HasPrefix predicate on the "disposal_type" field.
|
||||
func DisposalTypeHasPrefix(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeHasSuffix applies the HasSuffix predicate on the "disposal_type" field.
|
||||
func DisposalTypeHasSuffix(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeEqualFold applies the EqualFold predicate on the "disposal_type" field.
|
||||
func DisposalTypeEqualFold(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEqualFold(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalTypeContainsFold applies the ContainsFold predicate on the "disposal_type" field.
|
||||
func DisposalTypeContainsFold(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldContainsFold(FieldDisposalType, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkEQ applies the EQ predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkEQ(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkNEQ applies the NEQ predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkNEQ(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNEQ(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkIn applies the In predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkIn(vs ...string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldIn(FieldDisposalRemark, vs...))
|
||||
}
|
||||
|
||||
// DisposalRemarkNotIn applies the NotIn predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkNotIn(vs ...string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNotIn(FieldDisposalRemark, vs...))
|
||||
}
|
||||
|
||||
// DisposalRemarkGT applies the GT predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkGT(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldGT(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkGTE applies the GTE predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkGTE(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldGTE(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkLT applies the LT predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkLT(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLT(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkLTE applies the LTE predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkLTE(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLTE(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkContains applies the Contains predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkContains(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldContains(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkHasPrefix applies the HasPrefix predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkHasPrefix(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkHasSuffix applies the HasSuffix predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkHasSuffix(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkIsNil applies the IsNil predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkIsNil() predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldIsNull(FieldDisposalRemark))
|
||||
}
|
||||
|
||||
// DisposalRemarkNotNil applies the NotNil predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkNotNil() predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNotNull(FieldDisposalRemark))
|
||||
}
|
||||
|
||||
// DisposalRemarkEqualFold applies the EqualFold predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkEqualFold(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEqualFold(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// DisposalRemarkContainsFold applies the ContainsFold predicate on the "disposal_remark" field.
|
||||
func DisposalRemarkContainsFold(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldContainsFold(FieldDisposalRemark, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoEQ applies the EQ predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoEQ(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoNEQ applies the NEQ predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoNEQ(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNEQ(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoIn applies the In predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoIn(vs ...string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldIn(FieldReturnTrackingNo, vs...))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoNotIn applies the NotIn predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoNotIn(vs ...string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNotIn(FieldReturnTrackingNo, vs...))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoGT applies the GT predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoGT(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldGT(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoGTE applies the GTE predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoGTE(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldGTE(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoLT applies the LT predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoLT(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLT(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoLTE applies the LTE predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoLTE(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldLTE(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoContains applies the Contains predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoContains(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldContains(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoHasPrefix applies the HasPrefix predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoHasPrefix(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldHasPrefix(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoHasSuffix applies the HasSuffix predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoHasSuffix(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldHasSuffix(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoIsNil applies the IsNil predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoIsNil() predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldIsNull(FieldReturnTrackingNo))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoNotNil applies the NotNil predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoNotNil() predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldNotNull(FieldReturnTrackingNo))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoEqualFold applies the EqualFold predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoEqualFold(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEqualFold(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// ReturnTrackingNoContainsFold applies the ContainsFold predicate on the "return_tracking_no" field.
|
||||
func ReturnTrackingNoContainsFold(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldContainsFold(FieldReturnTrackingNo, v))
|
||||
}
|
||||
|
||||
// RemarkEQ applies the EQ predicate on the "remark" field.
|
||||
func RemarkEQ(v string) predicate.InspectionRecord {
|
||||
return predicate.InspectionRecord(sql.FieldEQ(FieldRemark, v))
|
||||
|
||||
Reference in New Issue
Block a user