feat: AGV三段链安全机制、补料/损耗/下班闭环、接驳台左右互换
AGV 调度: - 任务重构为 GO_LOAD/TRANSPORT/EMPTY_RETURN/FREE 三段链,到位即停(ARRIVED)需人工确认装卸 - 自由调度单点步进,每段强制弹"请确保路径畅通无杂物";托盘回收独立工作台 - 接驳台 PLC 传感器检测到托盘即自动卸货放行,传感器故障由人工按钮兜底(无轮询) - 车辆状态只读展示(海康3.1.7 queryAgvStatus),调度仍由 RCS 负责 物料闭环: - 补料管理(SHORTAGE):工位申请 + 主管审批调增叫料池额度,与借料/差异补发三轨并行 - 损耗台账(loss_ledger):退料实际 < 理论必填原因、后审核,工单不记损耗 - 退料强制指定左/右接驳台,WMS 库管可代工位退料 下班闭环: - 工位终端自检接驳台剩余物料后下班;库管收货 + 托盘拉走后事件驱动自动结班 - 退出登录未下班仅作安全提示(不强制拦截、不新增责任审批) 接驳台左右按操作员朝向建模(dock.side 字段),废除"奇左偶右"隐式约定; 看板标签 / seed / 迁移补丁 / 布局文档统一为中文左/右。 产线布局说明:C1 前线头 AGV 点、C15 后线尾 AGV 点、外部 O1/O2/O3 散点, 清理修订痕迹为最终态描述。
This commit is contained in:
+222
-11
@@ -17,6 +17,7 @@ import (
|
||||
"bj_power_mes/ent/flowmaterial"
|
||||
"bj_power_mes/ent/inspectionrecord"
|
||||
"bj_power_mes/ent/linepoint"
|
||||
"bj_power_mes/ent/lossledger"
|
||||
"bj_power_mes/ent/material"
|
||||
"bj_power_mes/ent/materialqtyreport"
|
||||
"bj_power_mes/ent/materialrequest"
|
||||
@@ -28,7 +29,9 @@ import (
|
||||
"bj_power_mes/ent/productprocessitem"
|
||||
"bj_power_mes/ent/role"
|
||||
"bj_power_mes/ent/semiflow"
|
||||
"bj_power_mes/ent/shortagerequest"
|
||||
"bj_power_mes/ent/station"
|
||||
"bj_power_mes/ent/stationshift"
|
||||
"bj_power_mes/ent/stationstate"
|
||||
"bj_power_mes/ent/stepcriterion"
|
||||
"bj_power_mes/ent/stepdata"
|
||||
@@ -122,28 +125,62 @@ func init() {
|
||||
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)
|
||||
// agvtaskDescKind is the schema descriptor for kind field.
|
||||
agvtaskDescKind := agvtaskFields[8].Descriptor()
|
||||
// agvtask.DefaultKind holds the default value on creation for the kind field.
|
||||
agvtask.DefaultKind = agvtaskDescKind.Default.(string)
|
||||
// agvtask.KindValidator is a validator for the "kind" field. It is called by the builders before save.
|
||||
agvtask.KindValidator = agvtaskDescKind.Validators[0].(func(string) error)
|
||||
// agvtaskDescBizType is the schema descriptor for biz_type field.
|
||||
agvtaskDescBizType := agvtaskFields[9].Descriptor()
|
||||
// agvtask.DefaultBizType holds the default value on creation for the biz_type field.
|
||||
agvtask.DefaultBizType = agvtaskDescBizType.Default.(string)
|
||||
// agvtask.BizTypeValidator is a validator for the "biz_type" field. It is called by the builders before save.
|
||||
agvtask.BizTypeValidator = agvtaskDescBizType.Validators[0].(func(string) error)
|
||||
// agvtaskDescBizNo is the schema descriptor for biz_no field.
|
||||
agvtaskDescBizNo := agvtaskFields[10].Descriptor()
|
||||
// agvtask.DefaultBizNo holds the default value on creation for the biz_no field.
|
||||
agvtask.DefaultBizNo = agvtaskDescBizNo.Default.(string)
|
||||
// agvtask.BizNoValidator is a validator for the "biz_no" field. It is called by the builders before save.
|
||||
agvtask.BizNoValidator = agvtaskDescBizNo.Validators[0].(func(string) error)
|
||||
// agvtaskDescChainNo is the schema descriptor for chain_no field.
|
||||
agvtaskDescChainNo := agvtaskFields[11].Descriptor()
|
||||
// agvtask.DefaultChainNo holds the default value on creation for the chain_no field.
|
||||
agvtask.DefaultChainNo = agvtaskDescChainNo.Default.(string)
|
||||
// agvtask.ChainNoValidator is a validator for the "chain_no" field. It is called by the builders before save.
|
||||
agvtask.ChainNoValidator = agvtaskDescChainNo.Validators[0].(func(string) error)
|
||||
// agvtaskDescAutoEnd is the schema descriptor for auto_end field.
|
||||
agvtaskDescAutoEnd := agvtaskFields[12].Descriptor()
|
||||
// agvtask.DefaultAutoEnd holds the default value on creation for the auto_end field.
|
||||
agvtask.DefaultAutoEnd = agvtaskDescAutoEnd.Default.(bool)
|
||||
// agvtaskDescAgvCode is the schema descriptor for agv_code field.
|
||||
agvtaskDescAgvCode := agvtaskFields[13].Descriptor()
|
||||
// agvtask.DefaultAgvCode holds the default value on creation for the agv_code field.
|
||||
agvtask.DefaultAgvCode = agvtaskDescAgvCode.Default.(string)
|
||||
// agvtask.AgvCodeValidator is a validator for the "agv_code" field. It is called by the builders before save.
|
||||
agvtask.AgvCodeValidator = agvtaskDescAgvCode.Validators[0].(func(string) error)
|
||||
// agvtaskDescOperator is the schema descriptor for operator field.
|
||||
agvtaskDescOperator := agvtaskFields[8].Descriptor()
|
||||
agvtaskDescOperator := agvtaskFields[14].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()
|
||||
agvtaskDescDispatchedAt := agvtaskFields[15].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()
|
||||
agvtaskDescArrivedAt := agvtaskFields[16].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()
|
||||
agvtaskDescRemark := agvtaskFields[17].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()
|
||||
agvtaskDescCreatedAt := agvtaskFields[18].Descriptor()
|
||||
// agvtask.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
agvtask.DefaultCreatedAt = agvtaskDescCreatedAt.Default.(func() int64)
|
||||
alertFields := schema.Alert{}.Fields()
|
||||
@@ -560,24 +597,30 @@ func init() {
|
||||
dockDescStationNo := dockFields[3].Descriptor()
|
||||
// dock.DefaultStationNo holds the default value on creation for the stationNo field.
|
||||
dock.DefaultStationNo = dockDescStationNo.Default.(int)
|
||||
// dockDescSide is the schema descriptor for side field.
|
||||
dockDescSide := dockFields[4].Descriptor()
|
||||
// dock.DefaultSide holds the default value on creation for the side field.
|
||||
dock.DefaultSide = dockDescSide.Default.(string)
|
||||
// dock.SideValidator is a validator for the "side" field. It is called by the builders before save.
|
||||
dock.SideValidator = dockDescSide.Validators[0].(func(string) error)
|
||||
// dockDescHasPallet is the schema descriptor for hasPallet field.
|
||||
dockDescHasPallet := dockFields[4].Descriptor()
|
||||
dockDescHasPallet := dockFields[5].Descriptor()
|
||||
// dock.DefaultHasPallet holds the default value on creation for the hasPallet field.
|
||||
dock.DefaultHasPallet = dockDescHasPallet.Default.(bool)
|
||||
// dockDescPalletRef is the schema descriptor for palletRef field.
|
||||
dockDescPalletRef := dockFields[5].Descriptor()
|
||||
dockDescPalletRef := dockFields[6].Descriptor()
|
||||
// dock.DefaultPalletRef holds the default value on creation for the palletRef field.
|
||||
dock.DefaultPalletRef = dockDescPalletRef.Default.(string)
|
||||
// dock.PalletRefValidator is a validator for the "palletRef" field. It is called by the builders before save.
|
||||
dock.PalletRefValidator = dockDescPalletRef.Validators[0].(func(string) error)
|
||||
// dockDescStatus is the schema descriptor for status field.
|
||||
dockDescStatus := dockFields[6].Descriptor()
|
||||
dockDescStatus := dockFields[7].Descriptor()
|
||||
// dock.DefaultStatus holds the default value on creation for the status field.
|
||||
dock.DefaultStatus = dockDescStatus.Default.(string)
|
||||
// dock.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
dock.StatusValidator = dockDescStatus.Validators[0].(func(string) error)
|
||||
// dockDescCreatedAt is the schema descriptor for createdAt field.
|
||||
dockDescCreatedAt := dockFields[7].Descriptor()
|
||||
dockDescCreatedAt := dockFields[8].Descriptor()
|
||||
// dock.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
dock.DefaultCreatedAt = dockDescCreatedAt.Default.(func() time.Time)
|
||||
eventlogFields := schema.EventLog{}.Fields()
|
||||
@@ -858,6 +901,66 @@ func init() {
|
||||
linepointDescID := linepointFields[0].Descriptor()
|
||||
// linepoint.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
linepoint.IDValidator = linepointDescID.Validators[0].(func(int) error)
|
||||
lossledgerFields := schema.LossLedger{}.Fields()
|
||||
_ = lossledgerFields
|
||||
// lossledgerDescMaterialCode is the schema descriptor for materialCode field.
|
||||
lossledgerDescMaterialCode := lossledgerFields[1].Descriptor()
|
||||
// lossledger.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
lossledger.MaterialCodeValidator = lossledgerDescMaterialCode.Validators[0].(func(string) error)
|
||||
// lossledgerDescMaterialName is the schema descriptor for materialName field.
|
||||
lossledgerDescMaterialName := lossledgerFields[2].Descriptor()
|
||||
// lossledger.DefaultMaterialName holds the default value on creation for the materialName field.
|
||||
lossledger.DefaultMaterialName = lossledgerDescMaterialName.Default.(string)
|
||||
// lossledger.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
lossledger.MaterialNameValidator = lossledgerDescMaterialName.Validators[0].(func(string) error)
|
||||
// lossledgerDescReason is the schema descriptor for reason field.
|
||||
lossledgerDescReason := lossledgerFields[6].Descriptor()
|
||||
// lossledger.ReasonValidator is a validator for the "reason" field. It is called by the builders before save.
|
||||
lossledger.ReasonValidator = lossledgerDescReason.Validators[0].(func(string) error)
|
||||
// lossledgerDescReturnNo is the schema descriptor for returnNo field.
|
||||
lossledgerDescReturnNo := lossledgerFields[7].Descriptor()
|
||||
// lossledger.DefaultReturnNo holds the default value on creation for the returnNo field.
|
||||
lossledger.DefaultReturnNo = lossledgerDescReturnNo.Default.(string)
|
||||
// lossledger.ReturnNoValidator is a validator for the "returnNo" field. It is called by the builders before save.
|
||||
lossledger.ReturnNoValidator = lossledgerDescReturnNo.Validators[0].(func(string) error)
|
||||
// lossledgerDescWorkOrderNo is the schema descriptor for workOrderNo field.
|
||||
lossledgerDescWorkOrderNo := lossledgerFields[8].Descriptor()
|
||||
// lossledger.DefaultWorkOrderNo holds the default value on creation for the workOrderNo field.
|
||||
lossledger.DefaultWorkOrderNo = lossledgerDescWorkOrderNo.Default.(string)
|
||||
// lossledger.WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
lossledger.WorkOrderNoValidator = lossledgerDescWorkOrderNo.Validators[0].(func(string) error)
|
||||
// lossledgerDescStatus is the schema descriptor for status field.
|
||||
lossledgerDescStatus := lossledgerFields[9].Descriptor()
|
||||
// lossledger.DefaultStatus holds the default value on creation for the status field.
|
||||
lossledger.DefaultStatus = lossledgerDescStatus.Default.(string)
|
||||
// lossledger.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
lossledger.StatusValidator = lossledgerDescStatus.Validators[0].(func(string) error)
|
||||
// lossledgerDescComment is the schema descriptor for comment field.
|
||||
lossledgerDescComment := lossledgerFields[10].Descriptor()
|
||||
// lossledger.DefaultComment holds the default value on creation for the comment field.
|
||||
lossledger.DefaultComment = lossledgerDescComment.Default.(string)
|
||||
// lossledger.CommentValidator is a validator for the "comment" field. It is called by the builders before save.
|
||||
lossledger.CommentValidator = lossledgerDescComment.Validators[0].(func(string) error)
|
||||
// lossledgerDescCommenter is the schema descriptor for commenter field.
|
||||
lossledgerDescCommenter := lossledgerFields[11].Descriptor()
|
||||
// lossledger.DefaultCommenter holds the default value on creation for the commenter field.
|
||||
lossledger.DefaultCommenter = lossledgerDescCommenter.Default.(string)
|
||||
// lossledger.CommenterValidator is a validator for the "commenter" field. It is called by the builders before save.
|
||||
lossledger.CommenterValidator = lossledgerDescCommenter.Validators[0].(func(string) error)
|
||||
// lossledgerDescCommentedAt is the schema descriptor for commentedAt field.
|
||||
lossledgerDescCommentedAt := lossledgerFields[12].Descriptor()
|
||||
// lossledger.DefaultCommentedAt holds the default value on creation for the commentedAt field.
|
||||
lossledger.DefaultCommentedAt = lossledgerDescCommentedAt.Default.(int64)
|
||||
// lossledgerDescOperator is the schema descriptor for operator field.
|
||||
lossledgerDescOperator := lossledgerFields[13].Descriptor()
|
||||
// lossledger.DefaultOperator holds the default value on creation for the operator field.
|
||||
lossledger.DefaultOperator = lossledgerDescOperator.Default.(string)
|
||||
// lossledger.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
lossledger.OperatorValidator = lossledgerDescOperator.Validators[0].(func(string) error)
|
||||
// lossledgerDescCreatedAt is the schema descriptor for createdAt field.
|
||||
lossledgerDescCreatedAt := lossledgerFields[14].Descriptor()
|
||||
// lossledger.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
lossledger.DefaultCreatedAt = lossledgerDescCreatedAt.Default.(func() time.Time)
|
||||
materialFields := schema.Material{}.Fields()
|
||||
_ = materialFields
|
||||
// materialDescCode is the schema descriptor for code field.
|
||||
@@ -1120,12 +1223,30 @@ func init() {
|
||||
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)
|
||||
// materialrequestDescWorkOrderNo is the schema descriptor for workOrderNo field.
|
||||
materialrequestDescWorkOrderNo := materialrequestFields[21].Descriptor()
|
||||
// materialrequest.DefaultWorkOrderNo holds the default value on creation for the workOrderNo field.
|
||||
materialrequest.DefaultWorkOrderNo = materialrequestDescWorkOrderNo.Default.(string)
|
||||
// materialrequest.WorkOrderNoValidator is a validator for the "workOrderNo" field. It is called by the builders before save.
|
||||
materialrequest.WorkOrderNoValidator = materialrequestDescWorkOrderNo.Validators[0].(func(string) error)
|
||||
// materialrequestDescReturnDock is the schema descriptor for returnDock field.
|
||||
materialrequestDescReturnDock := materialrequestFields[22].Descriptor()
|
||||
// materialrequest.DefaultReturnDock holds the default value on creation for the returnDock field.
|
||||
materialrequest.DefaultReturnDock = materialrequestDescReturnDock.Default.(string)
|
||||
// materialrequest.ReturnDockValidator is a validator for the "returnDock" field. It is called by the builders before save.
|
||||
materialrequest.ReturnDockValidator = materialrequestDescReturnDock.Validators[0].(func(string) error)
|
||||
// materialrequestDescLossReason is the schema descriptor for lossReason field.
|
||||
materialrequestDescLossReason := materialrequestFields[25].Descriptor()
|
||||
// materialrequest.DefaultLossReason holds the default value on creation for the lossReason field.
|
||||
materialrequest.DefaultLossReason = materialrequestDescLossReason.Default.(string)
|
||||
// materialrequest.LossReasonValidator is a validator for the "lossReason" field. It is called by the builders before save.
|
||||
materialrequest.LossReasonValidator = materialrequestDescLossReason.Validators[0].(func(string) error)
|
||||
// materialrequestDescCreatedAt is the schema descriptor for createdAt field.
|
||||
materialrequestDescCreatedAt := materialrequestFields[21].Descriptor()
|
||||
materialrequestDescCreatedAt := materialrequestFields[26].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[22].Descriptor()
|
||||
materialrequestDescUpdatedAt := materialrequestFields[27].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.
|
||||
@@ -1446,6 +1567,60 @@ func init() {
|
||||
semiflowDescID := semiflowFields[0].Descriptor()
|
||||
// semiflow.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
semiflow.IDValidator = semiflowDescID.Validators[0].(func(int) error)
|
||||
shortagerequestFields := schema.ShortageRequest{}.Fields()
|
||||
_ = shortagerequestFields
|
||||
// shortagerequestDescMaterialCode is the schema descriptor for materialCode field.
|
||||
shortagerequestDescMaterialCode := shortagerequestFields[1].Descriptor()
|
||||
// shortagerequest.MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
shortagerequest.MaterialCodeValidator = shortagerequestDescMaterialCode.Validators[0].(func(string) error)
|
||||
// shortagerequestDescMaterialName is the schema descriptor for materialName field.
|
||||
shortagerequestDescMaterialName := shortagerequestFields[2].Descriptor()
|
||||
// shortagerequest.DefaultMaterialName holds the default value on creation for the materialName field.
|
||||
shortagerequest.DefaultMaterialName = shortagerequestDescMaterialName.Default.(string)
|
||||
// shortagerequest.MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
shortagerequest.MaterialNameValidator = shortagerequestDescMaterialName.Validators[0].(func(string) error)
|
||||
// shortagerequestDescUnit is the schema descriptor for unit field.
|
||||
shortagerequestDescUnit := shortagerequestFields[3].Descriptor()
|
||||
// shortagerequest.DefaultUnit holds the default value on creation for the unit field.
|
||||
shortagerequest.DefaultUnit = shortagerequestDescUnit.Default.(string)
|
||||
// shortagerequest.UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
shortagerequest.UnitValidator = shortagerequestDescUnit.Validators[0].(func(string) error)
|
||||
// shortagerequestDescReason is the schema descriptor for reason field.
|
||||
shortagerequestDescReason := shortagerequestFields[5].Descriptor()
|
||||
// shortagerequest.ReasonValidator is a validator for the "reason" field. It is called by the builders before save.
|
||||
shortagerequest.ReasonValidator = shortagerequestDescReason.Validators[0].(func(string) error)
|
||||
// shortagerequestDescStatus is the schema descriptor for status field.
|
||||
shortagerequestDescStatus := shortagerequestFields[6].Descriptor()
|
||||
// shortagerequest.DefaultStatus holds the default value on creation for the status field.
|
||||
shortagerequest.DefaultStatus = shortagerequestDescStatus.Default.(string)
|
||||
// shortagerequest.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
shortagerequest.StatusValidator = shortagerequestDescStatus.Validators[0].(func(string) error)
|
||||
// shortagerequestDescComment is the schema descriptor for comment field.
|
||||
shortagerequestDescComment := shortagerequestFields[7].Descriptor()
|
||||
// shortagerequest.DefaultComment holds the default value on creation for the comment field.
|
||||
shortagerequest.DefaultComment = shortagerequestDescComment.Default.(string)
|
||||
// shortagerequest.CommentValidator is a validator for the "comment" field. It is called by the builders before save.
|
||||
shortagerequest.CommentValidator = shortagerequestDescComment.Validators[0].(func(string) error)
|
||||
// shortagerequestDescCommenter is the schema descriptor for commenter field.
|
||||
shortagerequestDescCommenter := shortagerequestFields[8].Descriptor()
|
||||
// shortagerequest.DefaultCommenter holds the default value on creation for the commenter field.
|
||||
shortagerequest.DefaultCommenter = shortagerequestDescCommenter.Default.(string)
|
||||
// shortagerequest.CommenterValidator is a validator for the "commenter" field. It is called by the builders before save.
|
||||
shortagerequest.CommenterValidator = shortagerequestDescCommenter.Validators[0].(func(string) error)
|
||||
// shortagerequestDescCommentedAt is the schema descriptor for commentedAt field.
|
||||
shortagerequestDescCommentedAt := shortagerequestFields[9].Descriptor()
|
||||
// shortagerequest.DefaultCommentedAt holds the default value on creation for the commentedAt field.
|
||||
shortagerequest.DefaultCommentedAt = shortagerequestDescCommentedAt.Default.(int64)
|
||||
// shortagerequestDescOperator is the schema descriptor for operator field.
|
||||
shortagerequestDescOperator := shortagerequestFields[10].Descriptor()
|
||||
// shortagerequest.DefaultOperator holds the default value on creation for the operator field.
|
||||
shortagerequest.DefaultOperator = shortagerequestDescOperator.Default.(string)
|
||||
// shortagerequest.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
shortagerequest.OperatorValidator = shortagerequestDescOperator.Validators[0].(func(string) error)
|
||||
// shortagerequestDescCreatedAt is the schema descriptor for createdAt field.
|
||||
shortagerequestDescCreatedAt := shortagerequestFields[11].Descriptor()
|
||||
// shortagerequest.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
shortagerequest.DefaultCreatedAt = shortagerequestDescCreatedAt.Default.(func() time.Time)
|
||||
stationFields := schema.Station{}.Fields()
|
||||
_ = stationFields
|
||||
// stationDescName is the schema descriptor for name field.
|
||||
@@ -1478,6 +1653,42 @@ func init() {
|
||||
stationDescID := stationFields[0].Descriptor()
|
||||
// station.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
station.IDValidator = stationDescID.Validators[0].(func(int) error)
|
||||
stationshiftFields := schema.StationShift{}.Fields()
|
||||
_ = stationshiftFields
|
||||
// stationshiftDescOperator is the schema descriptor for operator field.
|
||||
stationshiftDescOperator := stationshiftFields[1].Descriptor()
|
||||
// stationshift.DefaultOperator holds the default value on creation for the operator field.
|
||||
stationshift.DefaultOperator = stationshiftDescOperator.Default.(string)
|
||||
// stationshift.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
stationshift.OperatorValidator = stationshiftDescOperator.Validators[0].(func(string) error)
|
||||
// stationshiftDescStatus is the schema descriptor for status field.
|
||||
stationshiftDescStatus := stationshiftFields[2].Descriptor()
|
||||
// stationshift.DefaultStatus holds the default value on creation for the status field.
|
||||
stationshift.DefaultStatus = stationshiftDescStatus.Default.(string)
|
||||
// stationshift.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
stationshift.StatusValidator = stationshiftDescStatus.Validators[0].(func(string) error)
|
||||
// stationshiftDescStartAt is the schema descriptor for startAt field.
|
||||
stationshiftDescStartAt := stationshiftFields[3].Descriptor()
|
||||
// stationshift.DefaultStartAt holds the default value on creation for the startAt field.
|
||||
stationshift.DefaultStartAt = stationshiftDescStartAt.Default.(int64)
|
||||
// stationshiftDescEndApplyAt is the schema descriptor for endApplyAt field.
|
||||
stationshiftDescEndApplyAt := stationshiftFields[4].Descriptor()
|
||||
// stationshift.DefaultEndApplyAt holds the default value on creation for the endApplyAt field.
|
||||
stationshift.DefaultEndApplyAt = stationshiftDescEndApplyAt.Default.(int64)
|
||||
// stationshiftDescClosedAt is the schema descriptor for closedAt field.
|
||||
stationshiftDescClosedAt := stationshiftFields[5].Descriptor()
|
||||
// stationshift.DefaultClosedAt holds the default value on creation for the closedAt field.
|
||||
stationshift.DefaultClosedAt = stationshiftDescClosedAt.Default.(int64)
|
||||
// stationshiftDescRemark is the schema descriptor for remark field.
|
||||
stationshiftDescRemark := stationshiftFields[6].Descriptor()
|
||||
// stationshift.DefaultRemark holds the default value on creation for the remark field.
|
||||
stationshift.DefaultRemark = stationshiftDescRemark.Default.(string)
|
||||
// stationshift.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
stationshift.RemarkValidator = stationshiftDescRemark.Validators[0].(func(string) error)
|
||||
// stationshiftDescCreatedAt is the schema descriptor for createdAt field.
|
||||
stationshiftDescCreatedAt := stationshiftFields[7].Descriptor()
|
||||
// stationshift.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
stationshift.DefaultCreatedAt = stationshiftDescCreatedAt.Default.(func() time.Time)
|
||||
stationstateFields := schema.StationState{}.Fields()
|
||||
_ = stationstateFields
|
||||
// stationstateDescDate is the schema descriptor for date field.
|
||||
|
||||
Reference in New Issue
Block a user