feat: 多系统新增扫码中间件与 AGV 对接,优化拧紧与退库流程
新增扫码中间件支持网络型扫码枪键盘注入,AGV 对接从 WMS 迁至 MES 统一管理;新增拧紧不合格人工处置与 PLC 对账机制,优化退库单关联与工位终端功能,同时清理旧 AGV 任务表,完善数据库与配置项。
This commit is contained in:
+185
-57
@@ -3,10 +3,12 @@
|
||||
package ent
|
||||
|
||||
import (
|
||||
"bj_power_mes/ent/agvtask"
|
||||
"bj_power_mes/ent/alert"
|
||||
"bj_power_mes/ent/alertrule"
|
||||
"bj_power_mes/ent/associationtrace"
|
||||
"bj_power_mes/ent/attachment"
|
||||
"bj_power_mes/ent/callpool"
|
||||
"bj_power_mes/ent/dailyplan"
|
||||
"bj_power_mes/ent/dock"
|
||||
"bj_power_mes/ent/eventlog"
|
||||
@@ -46,6 +48,78 @@ import (
|
||||
// (default values, validators, hooks and policies) and stitches it
|
||||
// to their package variables.
|
||||
func init() {
|
||||
agvtaskFields := schema.AgvTask{}.Fields()
|
||||
_ = agvtaskFields
|
||||
// agvtaskDescTaskNo is the schema descriptor for task_no field.
|
||||
agvtaskDescTaskNo := agvtaskFields[0].Descriptor()
|
||||
// agvtask.TaskNoValidator is a validator for the "task_no" field. It is called by the builders before save.
|
||||
agvtask.TaskNoValidator = agvtaskDescTaskNo.Validators[0].(func(string) error)
|
||||
// agvtaskDescHikTaskCode is the schema descriptor for hik_task_code field.
|
||||
agvtaskDescHikTaskCode := agvtaskFields[1].Descriptor()
|
||||
// agvtask.DefaultHikTaskCode holds the default value on creation for the hik_task_code field.
|
||||
agvtask.DefaultHikTaskCode = agvtaskDescHikTaskCode.Default.(string)
|
||||
// agvtask.HikTaskCodeValidator is a validator for the "hik_task_code" field. It is called by the builders before save.
|
||||
agvtask.HikTaskCodeValidator = agvtaskDescHikTaskCode.Validators[0].(func(string) error)
|
||||
// agvtaskDescSourceDock is the schema descriptor for source_dock field.
|
||||
agvtaskDescSourceDock := agvtaskFields[2].Descriptor()
|
||||
// agvtask.DefaultSourceDock holds the default value on creation for the source_dock field.
|
||||
agvtask.DefaultSourceDock = agvtaskDescSourceDock.Default.(string)
|
||||
// agvtask.SourceDockValidator is a validator for the "source_dock" field. It is called by the builders before save.
|
||||
agvtask.SourceDockValidator = agvtaskDescSourceDock.Validators[0].(func(string) error)
|
||||
// agvtaskDescTargetDock is the schema descriptor for target_dock field.
|
||||
agvtaskDescTargetDock := agvtaskFields[3].Descriptor()
|
||||
// agvtask.DefaultTargetDock holds the default value on creation for the target_dock field.
|
||||
agvtask.DefaultTargetDock = agvtaskDescTargetDock.Default.(string)
|
||||
// agvtask.TargetDockValidator is a validator for the "target_dock" field. It is called by the builders before save.
|
||||
agvtask.TargetDockValidator = agvtaskDescTargetDock.Validators[0].(func(string) error)
|
||||
// agvtaskDescMaterialsJSON is the schema descriptor for materials_json field.
|
||||
agvtaskDescMaterialsJSON := agvtaskFields[4].Descriptor()
|
||||
// agvtask.DefaultMaterialsJSON holds the default value on creation for the materials_json field.
|
||||
agvtask.DefaultMaterialsJSON = agvtaskDescMaterialsJSON.Default.(string)
|
||||
// agvtask.MaterialsJSONValidator is a validator for the "materials_json" field. It is called by the builders before save.
|
||||
agvtask.MaterialsJSONValidator = agvtaskDescMaterialsJSON.Validators[0].(func(string) error)
|
||||
// agvtaskDescRelatedRequestNo is the schema descriptor for related_request_no field.
|
||||
agvtaskDescRelatedRequestNo := agvtaskFields[5].Descriptor()
|
||||
// agvtask.DefaultRelatedRequestNo holds the default value on creation for the related_request_no field.
|
||||
agvtask.DefaultRelatedRequestNo = agvtaskDescRelatedRequestNo.Default.(string)
|
||||
// agvtask.RelatedRequestNoValidator is a validator for the "related_request_no" field. It is called by the builders before save.
|
||||
agvtask.RelatedRequestNoValidator = agvtaskDescRelatedRequestNo.Validators[0].(func(string) error)
|
||||
// agvtaskDescRelatedOutboundNo is the schema descriptor for related_outbound_no field.
|
||||
agvtaskDescRelatedOutboundNo := agvtaskFields[6].Descriptor()
|
||||
// agvtask.DefaultRelatedOutboundNo holds the default value on creation for the related_outbound_no field.
|
||||
agvtask.DefaultRelatedOutboundNo = agvtaskDescRelatedOutboundNo.Default.(string)
|
||||
// agvtask.RelatedOutboundNoValidator is a validator for the "related_outbound_no" field. It is called by the builders before save.
|
||||
agvtask.RelatedOutboundNoValidator = agvtaskDescRelatedOutboundNo.Validators[0].(func(string) error)
|
||||
// agvtaskDescStatus is the schema descriptor for status field.
|
||||
agvtaskDescStatus := agvtaskFields[7].Descriptor()
|
||||
// agvtask.DefaultStatus holds the default value on creation for the status field.
|
||||
agvtask.DefaultStatus = agvtaskDescStatus.Default.(string)
|
||||
// agvtask.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
agvtask.StatusValidator = agvtaskDescStatus.Validators[0].(func(string) error)
|
||||
// agvtaskDescOperator is the schema descriptor for operator field.
|
||||
agvtaskDescOperator := agvtaskFields[8].Descriptor()
|
||||
// agvtask.DefaultOperator holds the default value on creation for the operator field.
|
||||
agvtask.DefaultOperator = agvtaskDescOperator.Default.(string)
|
||||
// agvtask.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
agvtask.OperatorValidator = agvtaskDescOperator.Validators[0].(func(string) error)
|
||||
// agvtaskDescDispatchedAt is the schema descriptor for dispatched_at field.
|
||||
agvtaskDescDispatchedAt := agvtaskFields[9].Descriptor()
|
||||
// agvtask.DefaultDispatchedAt holds the default value on creation for the dispatched_at field.
|
||||
agvtask.DefaultDispatchedAt = agvtaskDescDispatchedAt.Default.(int64)
|
||||
// agvtaskDescArrivedAt is the schema descriptor for arrived_at field.
|
||||
agvtaskDescArrivedAt := agvtaskFields[10].Descriptor()
|
||||
// agvtask.DefaultArrivedAt holds the default value on creation for the arrived_at field.
|
||||
agvtask.DefaultArrivedAt = agvtaskDescArrivedAt.Default.(int64)
|
||||
// agvtaskDescRemark is the schema descriptor for remark field.
|
||||
agvtaskDescRemark := agvtaskFields[11].Descriptor()
|
||||
// agvtask.DefaultRemark holds the default value on creation for the remark field.
|
||||
agvtask.DefaultRemark = agvtaskDescRemark.Default.(string)
|
||||
// agvtask.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
agvtask.RemarkValidator = agvtaskDescRemark.Validators[0].(func(string) error)
|
||||
// agvtaskDescCreatedAt is the schema descriptor for created_at field.
|
||||
agvtaskDescCreatedAt := agvtaskFields[12].Descriptor()
|
||||
// agvtask.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
agvtask.DefaultCreatedAt = agvtaskDescCreatedAt.Default.(func() int64)
|
||||
alertFields := schema.Alert{}.Fields()
|
||||
_ = alertFields
|
||||
// alertDescRuleId is the schema descriptor for ruleId field.
|
||||
@@ -274,6 +348,68 @@ func init() {
|
||||
attachmentDescID := attachmentFields[0].Descriptor()
|
||||
// attachment.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
attachment.IDValidator = attachmentDescID.Validators[0].(func(int) error)
|
||||
callpoolFields := schema.CallPool{}.Fields()
|
||||
_ = callpoolFields
|
||||
// callpoolDescMaterialCode is the schema descriptor for materialCode field.
|
||||
callpoolDescMaterialCode := callpoolFields[2].Descriptor()
|
||||
// callpool.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
callpool.MaterialCodeValidator = callpoolDescMaterialCode.Validators[0].(func(string) error)
|
||||
// callpoolDescMaterialName is the schema descriptor for materialName field.
|
||||
callpoolDescMaterialName := callpoolFields[3].Descriptor()
|
||||
// callpool.DefaultMaterialName holds the default value on creation for the materialName field.
|
||||
callpool.DefaultMaterialName = callpoolDescMaterialName.Default.(string)
|
||||
// callpool.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
callpool.MaterialNameValidator = callpoolDescMaterialName.Validators[0].(func(string) error)
|
||||
// callpoolDescUnit is the schema descriptor for unit field.
|
||||
callpoolDescUnit := callpoolFields[4].Descriptor()
|
||||
// callpool.DefaultUnit holds the default value on creation for the unit field.
|
||||
callpool.DefaultUnit = callpoolDescUnit.Default.(string)
|
||||
// callpool.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
callpool.UnitValidator = callpoolDescUnit.Validators[0].(func(string) error)
|
||||
// callpoolDescSnMode is the schema descriptor for snMode field.
|
||||
callpoolDescSnMode := callpoolFields[5].Descriptor()
|
||||
// callpool.DefaultSnMode holds the default value on creation for the snMode field.
|
||||
callpool.DefaultSnMode = callpoolDescSnMode.Default.(int)
|
||||
// callpoolDescReqQty is the schema descriptor for reqQty field.
|
||||
callpoolDescReqQty := callpoolFields[6].Descriptor()
|
||||
// callpool.DefaultReqQty holds the default value on creation for the reqQty field.
|
||||
callpool.DefaultReqQty = callpoolDescReqQty.Default.(int)
|
||||
// callpoolDescAdjQty is the schema descriptor for adjQty field.
|
||||
callpoolDescAdjQty := callpoolFields[7].Descriptor()
|
||||
// callpool.DefaultAdjQty holds the default value on creation for the adjQty field.
|
||||
callpool.DefaultAdjQty = callpoolDescAdjQty.Default.(int)
|
||||
// callpoolDescSentQty is the schema descriptor for sentQty field.
|
||||
callpoolDescSentQty := callpoolFields[8].Descriptor()
|
||||
// callpool.DefaultSentQty holds the default value on creation for the sentQty field.
|
||||
callpool.DefaultSentQty = callpoolDescSentQty.Default.(int)
|
||||
// callpoolDescReservedQty is the schema descriptor for reservedQty field.
|
||||
callpoolDescReservedQty := callpoolFields[9].Descriptor()
|
||||
// callpool.DefaultReservedQty holds the default value on creation for the reservedQty field.
|
||||
callpool.DefaultReservedQty = callpoolDescReservedQty.Default.(int)
|
||||
// callpoolDescCrossDay is the schema descriptor for crossDay field.
|
||||
callpoolDescCrossDay := callpoolFields[10].Descriptor()
|
||||
// callpool.DefaultCrossDay holds the default value on creation for the crossDay field.
|
||||
callpool.DefaultCrossDay = callpoolDescCrossDay.Default.(bool)
|
||||
// callpoolDescPlanDates is the schema descriptor for planDates field.
|
||||
callpoolDescPlanDates := callpoolFields[11].Descriptor()
|
||||
// callpool.DefaultPlanDates holds the default value on creation for the planDates field.
|
||||
callpool.DefaultPlanDates = callpoolDescPlanDates.Default.(string)
|
||||
// callpool.PlanDatesValidator is a validator for the "planDates" field. It is called by the builders before save.
|
||||
callpool.PlanDatesValidator = callpoolDescPlanDates.Validators[0].(func(string) error)
|
||||
// callpoolDescCreatedAt is the schema descriptor for createdAt field.
|
||||
callpoolDescCreatedAt := callpoolFields[12].Descriptor()
|
||||
// callpool.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
callpool.DefaultCreatedAt = callpoolDescCreatedAt.Default.(func() time.Time)
|
||||
// callpoolDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
callpoolDescUpdatedAt := callpoolFields[13].Descriptor()
|
||||
// callpool.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
callpool.DefaultUpdatedAt = callpoolDescUpdatedAt.Default.(func() time.Time)
|
||||
// callpool.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
callpool.UpdateDefaultUpdatedAt = callpoolDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// callpoolDescID is the schema descriptor for id field.
|
||||
callpoolDescID := callpoolFields[0].Descriptor()
|
||||
// callpool.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
callpool.IDValidator = callpoolDescID.Validators[0].(func(int) error)
|
||||
dailyplanFields := schema.DailyPlan{}.Fields()
|
||||
_ = dailyplanFields
|
||||
// dailyplanDescOrderNo is the schema descriptor for orderNo field.
|
||||
@@ -808,120 +944,104 @@ func init() {
|
||||
materialrequestDescRequestNo := materialrequestFields[1].Descriptor()
|
||||
// materialrequest.RequestNoValidator is a validator for the "requestNo" field. It is called by the builders before save.
|
||||
materialrequest.RequestNoValidator = materialrequestDescRequestNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescOrderNo is the schema descriptor for orderNo field.
|
||||
materialrequestDescOrderNo := materialrequestFields[2].Descriptor()
|
||||
// materialrequest.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
materialrequest.OrderNoValidator = materialrequestDescOrderNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescPlanDate is the schema descriptor for planDate field.
|
||||
materialrequestDescPlanDate := materialrequestFields[3].Descriptor()
|
||||
// materialrequest.PlanDateValidator is a validator for the "planDate" field. It is called by the builders before save.
|
||||
materialrequest.PlanDateValidator = materialrequestDescPlanDate.Validators[0].(func(string) error)
|
||||
// materialrequestDescMaterialCode is the schema descriptor for materialCode field.
|
||||
materialrequestDescMaterialCode := materialrequestFields[4].Descriptor()
|
||||
materialrequestDescMaterialCode := materialrequestFields[2].Descriptor()
|
||||
// materialrequest.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
materialrequest.MaterialCodeValidator = materialrequestDescMaterialCode.Validators[0].(func(string) error)
|
||||
// materialrequestDescMaterialName is the schema descriptor for materialName field.
|
||||
materialrequestDescMaterialName := materialrequestFields[5].Descriptor()
|
||||
materialrequestDescMaterialName := materialrequestFields[3].Descriptor()
|
||||
// materialrequest.DefaultMaterialName holds the default value on creation for the materialName field.
|
||||
materialrequest.DefaultMaterialName = materialrequestDescMaterialName.Default.(string)
|
||||
// materialrequest.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
materialrequest.MaterialNameValidator = materialrequestDescMaterialName.Validators[0].(func(string) error)
|
||||
// materialrequestDescUnit is the schema descriptor for unit field.
|
||||
materialrequestDescUnit := materialrequestFields[6].Descriptor()
|
||||
materialrequestDescUnit := materialrequestFields[4].Descriptor()
|
||||
// materialrequest.DefaultUnit holds the default value on creation for the unit field.
|
||||
materialrequest.DefaultUnit = materialrequestDescUnit.Default.(string)
|
||||
// materialrequest.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
materialrequest.UnitValidator = materialrequestDescUnit.Validators[0].(func(string) error)
|
||||
// materialrequestDescSnMode is the schema descriptor for snMode field.
|
||||
materialrequestDescSnMode := materialrequestFields[7].Descriptor()
|
||||
materialrequestDescSnMode := materialrequestFields[5].Descriptor()
|
||||
// materialrequest.DefaultSnMode holds the default value on creation for the snMode field.
|
||||
materialrequest.DefaultSnMode = materialrequestDescSnMode.Default.(int)
|
||||
// materialrequestDescReqQty is the schema descriptor for reqQty field.
|
||||
materialrequestDescReqQty := materialrequestFields[8].Descriptor()
|
||||
materialrequestDescReqQty := materialrequestFields[6].Descriptor()
|
||||
// materialrequest.DefaultReqQty holds the default value on creation for the reqQty field.
|
||||
materialrequest.DefaultReqQty = materialrequestDescReqQty.Default.(float64)
|
||||
// materialrequestDescStatus is the schema descriptor for status field.
|
||||
materialrequestDescStatus := materialrequestFields[9].Descriptor()
|
||||
materialrequestDescStatus := materialrequestFields[7].Descriptor()
|
||||
// materialrequest.DefaultStatus holds the default value on creation for the status field.
|
||||
materialrequest.DefaultStatus = materialrequestDescStatus.Default.(string)
|
||||
// materialrequest.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
materialrequest.StatusValidator = materialrequestDescStatus.Validators[0].(func(string) error)
|
||||
// materialrequestDescTargetDock is the schema descriptor for targetDock field.
|
||||
materialrequestDescTargetDock := materialrequestFields[10].Descriptor()
|
||||
materialrequestDescTargetDock := materialrequestFields[8].Descriptor()
|
||||
// materialrequest.DefaultTargetDock holds the default value on creation for the targetDock field.
|
||||
materialrequest.DefaultTargetDock = materialrequestDescTargetDock.Default.(string)
|
||||
// materialrequest.TargetDockValidator is a validator for the "targetDock" field. It is called by the builders before save.
|
||||
materialrequest.TargetDockValidator = materialrequestDescTargetDock.Validators[0].(func(string) error)
|
||||
// materialrequestDescStationNo is the schema descriptor for stationNo field.
|
||||
materialrequestDescStationNo := materialrequestFields[11].Descriptor()
|
||||
materialrequestDescStationNo := materialrequestFields[9].Descriptor()
|
||||
// materialrequest.DefaultStationNo holds the default value on creation for the stationNo field.
|
||||
materialrequest.DefaultStationNo = materialrequestDescStationNo.Default.(int)
|
||||
// materialrequestDescFlowId is the schema descriptor for flowId field.
|
||||
materialrequestDescFlowId := materialrequestFields[12].Descriptor()
|
||||
// materialrequest.DefaultFlowId holds the default value on creation for the flowId field.
|
||||
materialrequest.DefaultFlowId = materialrequestDescFlowId.Default.(int)
|
||||
// materialrequestDescSentQty is the schema descriptor for sentQty field.
|
||||
materialrequestDescSentQty := materialrequestFields[13].Descriptor()
|
||||
materialrequestDescSentQty := materialrequestFields[10].Descriptor()
|
||||
// materialrequest.DefaultSentQty holds the default value on creation for the sentQty field.
|
||||
materialrequest.DefaultSentQty = materialrequestDescSentQty.Default.(float64)
|
||||
// materialrequestDescReceivedQty is the schema descriptor for receivedQty field.
|
||||
materialrequestDescReceivedQty := materialrequestFields[14].Descriptor()
|
||||
// materialrequest.DefaultReceivedQty holds the default value on creation for the receivedQty field.
|
||||
materialrequest.DefaultReceivedQty = materialrequestDescReceivedQty.Default.(float64)
|
||||
// materialrequestDescReceivedAt is the schema descriptor for receivedAt field.
|
||||
materialrequestDescReceivedAt := materialrequestFields[15].Descriptor()
|
||||
// materialrequest.DefaultReceivedAt holds the default value on creation for the receivedAt field.
|
||||
materialrequest.DefaultReceivedAt = materialrequestDescReceivedAt.Default.(int64)
|
||||
// materialrequestDescReceiveBy is the schema descriptor for receiveBy field.
|
||||
materialrequestDescReceiveBy := materialrequestFields[16].Descriptor()
|
||||
// materialrequest.DefaultReceiveBy holds the default value on creation for the receiveBy field.
|
||||
materialrequest.DefaultReceiveBy = materialrequestDescReceiveBy.Default.(string)
|
||||
// materialrequest.ReceiveByValidator is a validator for the "receiveBy" field. It is called by the builders before save.
|
||||
materialrequest.ReceiveByValidator = materialrequestDescReceiveBy.Validators[0].(func(string) error)
|
||||
// materialrequestDescReturnedQty is the schema descriptor for returnedQty field.
|
||||
materialrequestDescReturnedQty := materialrequestFields[11].Descriptor()
|
||||
// materialrequest.DefaultReturnedQty holds the default value on creation for the returnedQty field.
|
||||
materialrequest.DefaultReturnedQty = materialrequestDescReturnedQty.Default.(float64)
|
||||
// materialrequestDescSource is the schema descriptor for source field.
|
||||
materialrequestDescSource := materialrequestFields[17].Descriptor()
|
||||
materialrequestDescSource := materialrequestFields[12].Descriptor()
|
||||
// materialrequest.DefaultSource holds the default value on creation for the source field.
|
||||
materialrequest.DefaultSource = materialrequestDescSource.Default.(string)
|
||||
// materialrequest.SourceValidator is a validator for the "source" field. It is called by the builders before save.
|
||||
materialrequest.SourceValidator = materialrequestDescSource.Validators[0].(func(string) error)
|
||||
// materialrequestDescOverQty is the schema descriptor for overQty field.
|
||||
materialrequestDescOverQty := materialrequestFields[18].Descriptor()
|
||||
// materialrequest.DefaultOverQty holds the default value on creation for the overQty field.
|
||||
materialrequest.DefaultOverQty = materialrequestDescOverQty.Default.(float64)
|
||||
// materialrequestDescOverReason is the schema descriptor for overReason field.
|
||||
materialrequestDescOverReason := materialrequestFields[19].Descriptor()
|
||||
// materialrequest.DefaultOverReason holds the default value on creation for the overReason field.
|
||||
materialrequest.DefaultOverReason = materialrequestDescOverReason.Default.(string)
|
||||
// materialrequest.OverReasonValidator is a validator for the "overReason" field. It is called by the builders before save.
|
||||
materialrequest.OverReasonValidator = materialrequestDescOverReason.Validators[0].(func(string) error)
|
||||
// materialrequestDescRefReportNo is the schema descriptor for refReportNo field.
|
||||
materialrequestDescRefReportNo := materialrequestFields[20].Descriptor()
|
||||
materialrequestDescRefReportNo := materialrequestFields[13].Descriptor()
|
||||
// materialrequest.DefaultRefReportNo holds the default value on creation for the refReportNo field.
|
||||
materialrequest.DefaultRefReportNo = materialrequestDescRefReportNo.Default.(string)
|
||||
// materialrequest.RefReportNoValidator is a validator for the "refReportNo" field. It is called by the builders before save.
|
||||
materialrequest.RefReportNoValidator = materialrequestDescRefReportNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescNeedAgv is the schema descriptor for needAgv field.
|
||||
materialrequestDescNeedAgv := materialrequestFields[21].Descriptor()
|
||||
materialrequestDescNeedAgv := materialrequestFields[14].Descriptor()
|
||||
// materialrequest.DefaultNeedAgv holds the default value on creation for the needAgv field.
|
||||
materialrequest.DefaultNeedAgv = materialrequestDescNeedAgv.Default.(bool)
|
||||
// materialrequestDescBatchNo is the schema descriptor for batchNo field.
|
||||
materialrequestDescBatchNo := materialrequestFields[22].Descriptor()
|
||||
// materialrequest.DefaultBatchNo holds the default value on creation for the batchNo field.
|
||||
materialrequest.DefaultBatchNo = materialrequestDescBatchNo.Default.(string)
|
||||
// materialrequest.BatchNoValidator is a validator for the "batchNo" field. It is called by the builders before save.
|
||||
materialrequest.BatchNoValidator = materialrequestDescBatchNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescAgvTaskNo is the schema descriptor for agvTaskNo field.
|
||||
materialrequestDescAgvTaskNo := materialrequestFields[15].Descriptor()
|
||||
// materialrequest.DefaultAgvTaskNo holds the default value on creation for the agvTaskNo field.
|
||||
materialrequest.DefaultAgvTaskNo = materialrequestDescAgvTaskNo.Default.(string)
|
||||
// materialrequest.AgvTaskNoValidator is a validator for the "agvTaskNo" field. It is called by the builders before save.
|
||||
materialrequest.AgvTaskNoValidator = materialrequestDescAgvTaskNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescCrossDay is the schema descriptor for crossDay field.
|
||||
materialrequestDescCrossDay := materialrequestFields[16].Descriptor()
|
||||
// materialrequest.DefaultCrossDay holds the default value on creation for the crossDay field.
|
||||
materialrequest.DefaultCrossDay = materialrequestDescCrossDay.Default.(bool)
|
||||
// materialrequestDescOutboundNo is the schema descriptor for outboundNo field.
|
||||
materialrequestDescOutboundNo := materialrequestFields[17].Descriptor()
|
||||
// materialrequest.DefaultOutboundNo holds the default value on creation for the outboundNo field.
|
||||
materialrequest.DefaultOutboundNo = materialrequestDescOutboundNo.Default.(string)
|
||||
// materialrequest.OutboundNoValidator is a validator for the "outboundNo" field. It is called by the builders before save.
|
||||
materialrequest.OutboundNoValidator = materialrequestDescOutboundNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescRejectReason is the schema descriptor for rejectReason field.
|
||||
materialrequestDescRejectReason := materialrequestFields[18].Descriptor()
|
||||
// materialrequest.DefaultRejectReason holds the default value on creation for the rejectReason field.
|
||||
materialrequest.DefaultRejectReason = materialrequestDescRejectReason.Default.(string)
|
||||
// materialrequest.RejectReasonValidator is a validator for the "rejectReason" field. It is called by the builders before save.
|
||||
materialrequest.RejectReasonValidator = materialrequestDescRejectReason.Validators[0].(func(string) error)
|
||||
// materialrequestDescOperator is the schema descriptor for operator field.
|
||||
materialrequestDescOperator := materialrequestFields[23].Descriptor()
|
||||
materialrequestDescOperator := materialrequestFields[19].Descriptor()
|
||||
// materialrequest.DefaultOperator holds the default value on creation for the operator field.
|
||||
materialrequest.DefaultOperator = materialrequestDescOperator.Default.(string)
|
||||
// materialrequest.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
materialrequest.OperatorValidator = materialrequestDescOperator.Validators[0].(func(string) error)
|
||||
// materialrequestDescCreatedAt is the schema descriptor for createdAt field.
|
||||
materialrequestDescCreatedAt := materialrequestFields[24].Descriptor()
|
||||
materialrequestDescCreatedAt := materialrequestFields[20].Descriptor()
|
||||
// materialrequest.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
materialrequest.DefaultCreatedAt = materialrequestDescCreatedAt.Default.(func() time.Time)
|
||||
// materialrequestDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
materialrequestDescUpdatedAt := materialrequestFields[25].Descriptor()
|
||||
materialrequestDescUpdatedAt := materialrequestFields[21].Descriptor()
|
||||
// materialrequest.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
materialrequest.DefaultUpdatedAt = materialrequestDescUpdatedAt.Default.(func() time.Time)
|
||||
// materialrequest.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
@@ -1730,6 +1850,14 @@ func init() {
|
||||
workpiece.DefaultUpdatedAt = workpieceDescUpdatedAt.Default.(func() time.Time)
|
||||
// workpiece.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
workpiece.UpdateDefaultUpdatedAt = workpieceDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// workpieceDescTorqueNgPending is the schema descriptor for torque_ng_pending field.
|
||||
workpieceDescTorqueNgPending := workpieceFields[11].Descriptor()
|
||||
// workpiece.DefaultTorqueNgPending holds the default value on creation for the torque_ng_pending field.
|
||||
workpiece.DefaultTorqueNgPending = workpieceDescTorqueNgPending.Default.(bool)
|
||||
// workpieceDescTorqueNgBy is the schema descriptor for torque_ng_by field.
|
||||
workpieceDescTorqueNgBy := workpieceFields[13].Descriptor()
|
||||
// workpiece.TorqueNgByValidator is a validator for the "torque_ng_by" field. It is called by the builders before save.
|
||||
workpiece.TorqueNgByValidator = workpieceDescTorqueNgBy.Validators[0].(func(string) error)
|
||||
// workpieceDescID is the schema descriptor for id field.
|
||||
workpieceDescID := workpieceFields[0].Descriptor()
|
||||
// workpiece.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
|
||||
Reference in New Issue
Block a user