feat: 多系统新增扫码中间件与 AGV 对接,优化拧紧与退库流程
新增扫码中间件支持网络型扫码枪键盘注入,AGV 对接从 WMS 迁至 MES 统一管理;新增拧紧不合格人工处置与 PLC 对账机制,优化退库单关联与工位终端功能,同时清理旧 AGV 任务表,完善数据库与配置项。
This commit is contained in:
+16
-77
@@ -3,7 +3,6 @@
|
||||
package ent
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/agvtask"
|
||||
"bj_power_wms/ent/attachment"
|
||||
"bj_power_wms/ent/eventlog"
|
||||
"bj_power_wms/ent/inbounddetail"
|
||||
@@ -31,72 +30,6 @@ 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)
|
||||
// agvtaskDescRelatedOutboundNo is the schema descriptor for related_outbound_no field.
|
||||
agvtaskDescRelatedOutboundNo := agvtaskFields[5].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[6].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[7].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[8].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[9].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[10].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[11].Descriptor()
|
||||
// agvtask.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
agvtask.DefaultCreatedAt = agvtaskDescCreatedAt.Default.(func() int64)
|
||||
attachmentFields := schema.Attachment{}.Fields()
|
||||
_ = attachmentFields
|
||||
// attachmentDescFileSize is the schema descriptor for file_size field.
|
||||
@@ -479,44 +412,50 @@ func init() {
|
||||
returnorderDescOrderNo := returnorderFields[2].Descriptor()
|
||||
// returnorder.DefaultOrderNo holds the default value on creation for the order_no field.
|
||||
returnorder.DefaultOrderNo = returnorderDescOrderNo.Default.(string)
|
||||
// returnorderDescRefNo is the schema descriptor for ref_no field.
|
||||
returnorderDescRefNo := returnorderFields[3].Descriptor()
|
||||
// returnorder.DefaultRefNo holds the default value on creation for the ref_no field.
|
||||
returnorder.DefaultRefNo = returnorderDescRefNo.Default.(string)
|
||||
// returnorder.RefNoValidator is a validator for the "ref_no" field. It is called by the builders before save.
|
||||
returnorder.RefNoValidator = returnorderDescRefNo.Validators[0].(func(string) error)
|
||||
// returnorderDescStationNo is the schema descriptor for station_no field.
|
||||
returnorderDescStationNo := returnorderFields[3].Descriptor()
|
||||
returnorderDescStationNo := returnorderFields[4].Descriptor()
|
||||
// returnorder.DefaultStationNo holds the default value on creation for the station_no field.
|
||||
returnorder.DefaultStationNo = returnorderDescStationNo.Default.(int)
|
||||
// returnorderDescSn is the schema descriptor for sn field.
|
||||
returnorderDescSn := returnorderFields[4].Descriptor()
|
||||
returnorderDescSn := returnorderFields[5].Descriptor()
|
||||
// returnorder.DefaultSn holds the default value on creation for the sn field.
|
||||
returnorder.DefaultSn = returnorderDescSn.Default.(string)
|
||||
// returnorderDescQty is the schema descriptor for qty field.
|
||||
returnorderDescQty := returnorderFields[8].Descriptor()
|
||||
returnorderDescQty := returnorderFields[9].Descriptor()
|
||||
// returnorder.DefaultQty holds the default value on creation for the qty field.
|
||||
returnorder.DefaultQty = returnorderDescQty.Default.(int)
|
||||
// returnorderDescUnit is the schema descriptor for unit field.
|
||||
returnorderDescUnit := returnorderFields[9].Descriptor()
|
||||
returnorderDescUnit := returnorderFields[10].Descriptor()
|
||||
// returnorder.DefaultUnit holds the default value on creation for the unit field.
|
||||
returnorder.DefaultUnit = returnorderDescUnit.Default.(string)
|
||||
// returnorderDescReason is the schema descriptor for reason field.
|
||||
returnorderDescReason := returnorderFields[10].Descriptor()
|
||||
returnorderDescReason := returnorderFields[11].Descriptor()
|
||||
// returnorder.DefaultReason holds the default value on creation for the reason field.
|
||||
returnorder.DefaultReason = returnorderDescReason.Default.(string)
|
||||
// returnorderDescStatus is the schema descriptor for status field.
|
||||
returnorderDescStatus := returnorderFields[11].Descriptor()
|
||||
returnorderDescStatus := returnorderFields[12].Descriptor()
|
||||
// returnorder.DefaultStatus holds the default value on creation for the status field.
|
||||
returnorder.DefaultStatus = returnorderDescStatus.Default.(string)
|
||||
// returnorderDescOperator is the schema descriptor for operator field.
|
||||
returnorderDescOperator := returnorderFields[12].Descriptor()
|
||||
returnorderDescOperator := returnorderFields[13].Descriptor()
|
||||
// returnorder.DefaultOperator holds the default value on creation for the operator field.
|
||||
returnorder.DefaultOperator = returnorderDescOperator.Default.(string)
|
||||
// returnorderDescReceiveBy is the schema descriptor for receive_by field.
|
||||
returnorderDescReceiveBy := returnorderFields[13].Descriptor()
|
||||
returnorderDescReceiveBy := returnorderFields[14].Descriptor()
|
||||
// returnorder.DefaultReceiveBy holds the default value on creation for the receive_by field.
|
||||
returnorder.DefaultReceiveBy = returnorderDescReceiveBy.Default.(string)
|
||||
// returnorderDescCreatedAt is the schema descriptor for created_at field.
|
||||
returnorderDescCreatedAt := returnorderFields[14].Descriptor()
|
||||
returnorderDescCreatedAt := returnorderFields[15].Descriptor()
|
||||
// returnorder.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
returnorder.DefaultCreatedAt = returnorderDescCreatedAt.Default.(func() int64)
|
||||
// returnorderDescReceiveAt is the schema descriptor for receive_at field.
|
||||
returnorderDescReceiveAt := returnorderFields[15].Descriptor()
|
||||
returnorderDescReceiveAt := returnorderFields[16].Descriptor()
|
||||
// returnorder.DefaultReceiveAt holds the default value on creation for the receive_at field.
|
||||
returnorder.DefaultReceiveAt = returnorderDescReceiveAt.Default.(int64)
|
||||
roleFields := schema.Role{}.Fields()
|
||||
|
||||
Reference in New Issue
Block a user