feat: 新增工序签字功能,移除移料指令模块
新增操作工/检验员工序签字功能,支持工艺步骤配置签字要求;删除移料指令相关代码,将移料页签重命名为产线点位(上料/下料);新增成品入库功能及相关权限;优化备料单状态、质量状态逻辑,新增批次序号字段;修复AGV取消后备料单回退状态问题。
This commit is contained in:
+117
-110
@@ -17,7 +17,6 @@ import (
|
||||
"bj_power_mes/ent/materialqtyreport"
|
||||
"bj_power_mes/ent/materialrequest"
|
||||
"bj_power_mes/ent/permission"
|
||||
"bj_power_mes/ent/plcmovecmd"
|
||||
"bj_power_mes/ent/plcsendlog"
|
||||
"bj_power_mes/ent/processflow"
|
||||
"bj_power_mes/ent/processstep"
|
||||
@@ -27,8 +26,8 @@ import (
|
||||
"bj_power_mes/ent/stationstate"
|
||||
"bj_power_mes/ent/stepcriterion"
|
||||
"bj_power_mes/ent/stepdata"
|
||||
"bj_power_mes/ent/stepsignrecord"
|
||||
"bj_power_mes/ent/sysconfig"
|
||||
"bj_power_mes/ent/torqueauditlog"
|
||||
"bj_power_mes/ent/torquerecord"
|
||||
"bj_power_mes/ent/user"
|
||||
"bj_power_mes/ent/userstation"
|
||||
@@ -552,8 +551,16 @@ func init() {
|
||||
inspectionrecordDescBatchSn := inspectionrecordFields[23].Descriptor()
|
||||
// inspectionrecord.BatchSnValidator is a validator for the "batchSn" field. It is called by the builders before save.
|
||||
inspectionrecord.BatchSnValidator = inspectionrecordDescBatchSn.Validators[0].(func(string) error)
|
||||
// inspectionrecordDescRelatedStandard is the schema descriptor for relatedStandard field.
|
||||
inspectionrecordDescRelatedStandard := inspectionrecordFields[24].Descriptor()
|
||||
// inspectionrecord.RelatedStandardValidator is a validator for the "relatedStandard" field. It is called by the builders before save.
|
||||
inspectionrecord.RelatedStandardValidator = inspectionrecordDescRelatedStandard.Validators[0].(func(string) error)
|
||||
// inspectionrecordDescTestRecordNo is the schema descriptor for testRecordNo field.
|
||||
inspectionrecordDescTestRecordNo := inspectionrecordFields[25].Descriptor()
|
||||
// inspectionrecord.TestRecordNoValidator is a validator for the "testRecordNo" field. It is called by the builders before save.
|
||||
inspectionrecord.TestRecordNoValidator = inspectionrecordDescTestRecordNo.Validators[0].(func(string) error)
|
||||
// inspectionrecordDescCreatedAt is the schema descriptor for createdAt field.
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[24].Descriptor()
|
||||
inspectionrecordDescCreatedAt := inspectionrecordFields[26].Descriptor()
|
||||
// inspectionrecord.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
inspectionrecord.DefaultCreatedAt = inspectionrecordDescCreatedAt.Default.(func() time.Time)
|
||||
// inspectionrecordDescID is the schema descriptor for id field.
|
||||
@@ -954,62 +961,6 @@ func init() {
|
||||
permissionDescID := permissionFields[0].Descriptor()
|
||||
// permission.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
permission.IDValidator = permissionDescID.Validators[0].(func(int) error)
|
||||
plcmovecmdFields := schema.PlcMoveCmd{}.Fields()
|
||||
_ = plcmovecmdFields
|
||||
// plcmovecmdDescCmdNo is the schema descriptor for cmdNo field.
|
||||
plcmovecmdDescCmdNo := plcmovecmdFields[1].Descriptor()
|
||||
// plcmovecmd.CmdNoValidator is a validator for the "cmdNo" field. It is called by the builders before save.
|
||||
plcmovecmd.CmdNoValidator = plcmovecmdDescCmdNo.Validators[0].(func(string) error)
|
||||
// plcmovecmdDescSn is the schema descriptor for sn field.
|
||||
plcmovecmdDescSn := plcmovecmdFields[2].Descriptor()
|
||||
// plcmovecmd.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
plcmovecmd.SnValidator = plcmovecmdDescSn.Validators[0].(func(string) error)
|
||||
// plcmovecmdDescOrderNo is the schema descriptor for orderNo field.
|
||||
plcmovecmdDescOrderNo := plcmovecmdFields[3].Descriptor()
|
||||
// plcmovecmd.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
plcmovecmd.DefaultOrderNo = plcmovecmdDescOrderNo.Default.(string)
|
||||
// plcmovecmd.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
plcmovecmd.OrderNoValidator = plcmovecmdDescOrderNo.Validators[0].(func(string) error)
|
||||
// plcmovecmdDescFromPoint is the schema descriptor for fromPoint field.
|
||||
plcmovecmdDescFromPoint := plcmovecmdFields[4].Descriptor()
|
||||
// plcmovecmd.FromPointValidator is a validator for the "fromPoint" field. It is called by the builders before save.
|
||||
plcmovecmd.FromPointValidator = plcmovecmdDescFromPoint.Validators[0].(func(string) error)
|
||||
// plcmovecmdDescToPoint is the schema descriptor for toPoint field.
|
||||
plcmovecmdDescToPoint := plcmovecmdFields[5].Descriptor()
|
||||
// plcmovecmd.ToPointValidator is a validator for the "toPoint" field. It is called by the builders before save.
|
||||
plcmovecmd.ToPointValidator = plcmovecmdDescToPoint.Validators[0].(func(string) error)
|
||||
// plcmovecmdDescStatus is the schema descriptor for status field.
|
||||
plcmovecmdDescStatus := plcmovecmdFields[6].Descriptor()
|
||||
// plcmovecmd.DefaultStatus holds the default value on creation for the status field.
|
||||
plcmovecmd.DefaultStatus = plcmovecmdDescStatus.Default.(string)
|
||||
// plcmovecmd.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
plcmovecmd.StatusValidator = plcmovecmdDescStatus.Validators[0].(func(string) error)
|
||||
// plcmovecmdDescOperator is the schema descriptor for operator field.
|
||||
plcmovecmdDescOperator := plcmovecmdFields[7].Descriptor()
|
||||
// plcmovecmd.DefaultOperator holds the default value on creation for the operator field.
|
||||
plcmovecmd.DefaultOperator = plcmovecmdDescOperator.Default.(string)
|
||||
// plcmovecmd.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
plcmovecmd.OperatorValidator = plcmovecmdDescOperator.Validators[0].(func(string) error)
|
||||
// plcmovecmdDescMessage is the schema descriptor for message field.
|
||||
plcmovecmdDescMessage := plcmovecmdFields[8].Descriptor()
|
||||
// plcmovecmd.DefaultMessage holds the default value on creation for the message field.
|
||||
plcmovecmd.DefaultMessage = plcmovecmdDescMessage.Default.(string)
|
||||
// plcmovecmd.MessageValidator is a validator for the "message" field. It is called by the builders before save.
|
||||
plcmovecmd.MessageValidator = plcmovecmdDescMessage.Validators[0].(func(string) error)
|
||||
// plcmovecmdDescCreatedAt is the schema descriptor for createdAt field.
|
||||
plcmovecmdDescCreatedAt := plcmovecmdFields[9].Descriptor()
|
||||
// plcmovecmd.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
plcmovecmd.DefaultCreatedAt = plcmovecmdDescCreatedAt.Default.(func() time.Time)
|
||||
// plcmovecmdDescUpdatedAt is the schema descriptor for updatedAt field.
|
||||
plcmovecmdDescUpdatedAt := plcmovecmdFields[10].Descriptor()
|
||||
// plcmovecmd.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
|
||||
plcmovecmd.DefaultUpdatedAt = plcmovecmdDescUpdatedAt.Default.(func() time.Time)
|
||||
// plcmovecmd.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.
|
||||
plcmovecmd.UpdateDefaultUpdatedAt = plcmovecmdDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// plcmovecmdDescID is the schema descriptor for id field.
|
||||
plcmovecmdDescID := plcmovecmdFields[0].Descriptor()
|
||||
// plcmovecmd.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
plcmovecmd.IDValidator = plcmovecmdDescID.Validators[0].(func(int) error)
|
||||
plcsendlogFields := schema.PlcSendLog{}.Fields()
|
||||
_ = plcsendlogFields
|
||||
// plcsendlogDescOrderNo is the schema descriptor for orderNo field.
|
||||
@@ -1122,14 +1073,22 @@ func init() {
|
||||
processstepDescNeedCheck := processstepFields[6].Descriptor()
|
||||
// processstep.DefaultNeedCheck holds the default value on creation for the needCheck field.
|
||||
processstep.DefaultNeedCheck = processstepDescNeedCheck.Default.(bool)
|
||||
// processstepDescNeedOperatorSign is the schema descriptor for needOperatorSign field.
|
||||
processstepDescNeedOperatorSign := processstepFields[7].Descriptor()
|
||||
// processstep.DefaultNeedOperatorSign holds the default value on creation for the needOperatorSign field.
|
||||
processstep.DefaultNeedOperatorSign = processstepDescNeedOperatorSign.Default.(bool)
|
||||
// processstepDescNeedInspectorSign is the schema descriptor for needInspectorSign field.
|
||||
processstepDescNeedInspectorSign := processstepFields[8].Descriptor()
|
||||
// processstep.DefaultNeedInspectorSign holds the default value on creation for the needInspectorSign field.
|
||||
processstep.DefaultNeedInspectorSign = processstepDescNeedInspectorSign.Default.(bool)
|
||||
// processstepDescRemark is the schema descriptor for remark field.
|
||||
processstepDescRemark := processstepFields[8].Descriptor()
|
||||
processstepDescRemark := processstepFields[10].Descriptor()
|
||||
// processstep.DefaultRemark holds the default value on creation for the remark field.
|
||||
processstep.DefaultRemark = processstepDescRemark.Default.(string)
|
||||
// processstep.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
processstep.RemarkValidator = processstepDescRemark.Validators[0].(func(string) error)
|
||||
// processstepDescCreatedAt is the schema descriptor for createdAt field.
|
||||
processstepDescCreatedAt := processstepFields[9].Descriptor()
|
||||
processstepDescCreatedAt := processstepFields[11].Descriptor()
|
||||
// processstep.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
processstep.DefaultCreatedAt = processstepDescCreatedAt.Default.(func() time.Time)
|
||||
// processstepDescID is the schema descriptor for id field.
|
||||
@@ -1364,6 +1323,102 @@ func init() {
|
||||
stepdataDescID := stepdataFields[0].Descriptor()
|
||||
// stepdata.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
stepdata.IDValidator = stepdataDescID.Validators[0].(func(int) error)
|
||||
stepsignrecordFields := schema.StepSignRecord{}.Fields()
|
||||
_ = stepsignrecordFields
|
||||
// stepsignrecordDescSn is the schema descriptor for sn field.
|
||||
stepsignrecordDescSn := stepsignrecordFields[1].Descriptor()
|
||||
// stepsignrecord.DefaultSn holds the default value on creation for the sn field.
|
||||
stepsignrecord.DefaultSn = stepsignrecordDescSn.Default.(string)
|
||||
// stepsignrecord.SnValidator is a validator for the "sn" field. It is called by the builders before save.
|
||||
stepsignrecord.SnValidator = stepsignrecordDescSn.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescOrderNo is the schema descriptor for orderNo field.
|
||||
stepsignrecordDescOrderNo := stepsignrecordFields[2].Descriptor()
|
||||
// stepsignrecord.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
stepsignrecord.DefaultOrderNo = stepsignrecordDescOrderNo.Default.(string)
|
||||
// stepsignrecord.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
stepsignrecord.OrderNoValidator = stepsignrecordDescOrderNo.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescFlowId is the schema descriptor for flowId field.
|
||||
stepsignrecordDescFlowId := stepsignrecordFields[3].Descriptor()
|
||||
// stepsignrecord.DefaultFlowId holds the default value on creation for the flowId field.
|
||||
stepsignrecord.DefaultFlowId = stepsignrecordDescFlowId.Default.(int)
|
||||
// stepsignrecordDescStationNo is the schema descriptor for stationNo field.
|
||||
stepsignrecordDescStationNo := stepsignrecordFields[4].Descriptor()
|
||||
// stepsignrecord.DefaultStationNo holds the default value on creation for the stationNo field.
|
||||
stepsignrecord.DefaultStationNo = stepsignrecordDescStationNo.Default.(string)
|
||||
// stepsignrecord.StationNoValidator is a validator for the "stationNo" field. It is called by the builders before save.
|
||||
stepsignrecord.StationNoValidator = stepsignrecordDescStationNo.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescStepId is the schema descriptor for stepId field.
|
||||
stepsignrecordDescStepId := stepsignrecordFields[5].Descriptor()
|
||||
// stepsignrecord.DefaultStepId holds the default value on creation for the stepId field.
|
||||
stepsignrecord.DefaultStepId = stepsignrecordDescStepId.Default.(int)
|
||||
// stepsignrecordDescStepName is the schema descriptor for stepName field.
|
||||
stepsignrecordDescStepName := stepsignrecordFields[6].Descriptor()
|
||||
// stepsignrecord.DefaultStepName holds the default value on creation for the stepName field.
|
||||
stepsignrecord.DefaultStepName = stepsignrecordDescStepName.Default.(string)
|
||||
// stepsignrecord.StepNameValidator is a validator for the "stepName" field. It is called by the builders before save.
|
||||
stepsignrecord.StepNameValidator = stepsignrecordDescStepName.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescSignRole is the schema descriptor for signRole field.
|
||||
stepsignrecordDescSignRole := stepsignrecordFields[7].Descriptor()
|
||||
// stepsignrecord.DefaultSignRole holds the default value on creation for the signRole field.
|
||||
stepsignrecord.DefaultSignRole = stepsignrecordDescSignRole.Default.(string)
|
||||
// stepsignrecord.SignRoleValidator is a validator for the "signRole" field. It is called by the builders before save.
|
||||
stepsignrecord.SignRoleValidator = stepsignrecordDescSignRole.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescResult is the schema descriptor for result field.
|
||||
stepsignrecordDescResult := stepsignrecordFields[8].Descriptor()
|
||||
// stepsignrecord.DefaultResult holds the default value on creation for the result field.
|
||||
stepsignrecord.DefaultResult = stepsignrecordDescResult.Default.(string)
|
||||
// stepsignrecord.ResultValidator is a validator for the "result" field. It is called by the builders before save.
|
||||
stepsignrecord.ResultValidator = stepsignrecordDescResult.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescSignedBy is the schema descriptor for signedBy field.
|
||||
stepsignrecordDescSignedBy := stepsignrecordFields[9].Descriptor()
|
||||
// stepsignrecord.DefaultSignedBy holds the default value on creation for the signedBy field.
|
||||
stepsignrecord.DefaultSignedBy = stepsignrecordDescSignedBy.Default.(string)
|
||||
// stepsignrecord.SignedByValidator is a validator for the "signedBy" field. It is called by the builders before save.
|
||||
stepsignrecord.SignedByValidator = stepsignrecordDescSignedBy.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescSignedAt is the schema descriptor for signedAt field.
|
||||
stepsignrecordDescSignedAt := stepsignrecordFields[10].Descriptor()
|
||||
// stepsignrecord.DefaultSignedAt holds the default value on creation for the signedAt field.
|
||||
stepsignrecord.DefaultSignedAt = stepsignrecordDescSignedAt.Default.(func() time.Time)
|
||||
// stepsignrecordDescRound is the schema descriptor for round field.
|
||||
stepsignrecordDescRound := stepsignrecordFields[11].Descriptor()
|
||||
// stepsignrecord.DefaultRound holds the default value on creation for the round field.
|
||||
stepsignrecord.DefaultRound = stepsignrecordDescRound.Default.(int)
|
||||
// stepsignrecordDescSource is the schema descriptor for source field.
|
||||
stepsignrecordDescSource := stepsignrecordFields[12].Descriptor()
|
||||
// stepsignrecord.DefaultSource holds the default value on creation for the source field.
|
||||
stepsignrecord.DefaultSource = stepsignrecordDescSource.Default.(string)
|
||||
// stepsignrecord.SourceValidator is a validator for the "source" field. It is called by the builders before save.
|
||||
stepsignrecord.SourceValidator = stepsignrecordDescSource.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescRemark is the schema descriptor for remark field.
|
||||
stepsignrecordDescRemark := stepsignrecordFields[13].Descriptor()
|
||||
// stepsignrecord.DefaultRemark holds the default value on creation for the remark field.
|
||||
stepsignrecord.DefaultRemark = stepsignrecordDescRemark.Default.(string)
|
||||
// stepsignrecord.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
stepsignrecord.RemarkValidator = stepsignrecordDescRemark.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescRevoked is the schema descriptor for revoked field.
|
||||
stepsignrecordDescRevoked := stepsignrecordFields[14].Descriptor()
|
||||
// stepsignrecord.DefaultRevoked holds the default value on creation for the revoked field.
|
||||
stepsignrecord.DefaultRevoked = stepsignrecordDescRevoked.Default.(bool)
|
||||
// stepsignrecordDescRevokedBy is the schema descriptor for revokedBy field.
|
||||
stepsignrecordDescRevokedBy := stepsignrecordFields[15].Descriptor()
|
||||
// stepsignrecord.DefaultRevokedBy holds the default value on creation for the revokedBy field.
|
||||
stepsignrecord.DefaultRevokedBy = stepsignrecordDescRevokedBy.Default.(string)
|
||||
// stepsignrecord.RevokedByValidator is a validator for the "revokedBy" field. It is called by the builders before save.
|
||||
stepsignrecord.RevokedByValidator = stepsignrecordDescRevokedBy.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescRevokeReason is the schema descriptor for revokeReason field.
|
||||
stepsignrecordDescRevokeReason := stepsignrecordFields[17].Descriptor()
|
||||
// stepsignrecord.DefaultRevokeReason holds the default value on creation for the revokeReason field.
|
||||
stepsignrecord.DefaultRevokeReason = stepsignrecordDescRevokeReason.Default.(string)
|
||||
// stepsignrecord.RevokeReasonValidator is a validator for the "revokeReason" field. It is called by the builders before save.
|
||||
stepsignrecord.RevokeReasonValidator = stepsignrecordDescRevokeReason.Validators[0].(func(string) error)
|
||||
// stepsignrecordDescCreatedAt is the schema descriptor for createdAt field.
|
||||
stepsignrecordDescCreatedAt := stepsignrecordFields[18].Descriptor()
|
||||
// stepsignrecord.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
stepsignrecord.DefaultCreatedAt = stepsignrecordDescCreatedAt.Default.(func() time.Time)
|
||||
// stepsignrecordDescID is the schema descriptor for id field.
|
||||
stepsignrecordDescID := stepsignrecordFields[0].Descriptor()
|
||||
// stepsignrecord.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
stepsignrecord.IDValidator = stepsignrecordDescID.Validators[0].(func(int) error)
|
||||
sysconfigFields := schema.SysConfig{}.Fields()
|
||||
_ = sysconfigFields
|
||||
// sysconfigDescKey is the schema descriptor for key field.
|
||||
@@ -1378,48 +1433,6 @@ func init() {
|
||||
sysconfigDescRemark := sysconfigFields[2].Descriptor()
|
||||
// sysconfig.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
sysconfig.RemarkValidator = sysconfigDescRemark.Validators[0].(func(string) error)
|
||||
torqueauditlogFields := schema.TorqueAuditLog{}.Fields()
|
||||
_ = torqueauditlogFields
|
||||
// torqueauditlogDescAction is the schema descriptor for action field.
|
||||
torqueauditlogDescAction := torqueauditlogFields[2].Descriptor()
|
||||
// torqueauditlog.ActionValidator is a validator for the "action" field. It is called by the builders before save.
|
||||
torqueauditlog.ActionValidator = torqueauditlogDescAction.Validators[0].(func(string) error)
|
||||
// torqueauditlogDescFieldName is the schema descriptor for fieldName field.
|
||||
torqueauditlogDescFieldName := torqueauditlogFields[3].Descriptor()
|
||||
// torqueauditlog.DefaultFieldName holds the default value on creation for the fieldName field.
|
||||
torqueauditlog.DefaultFieldName = torqueauditlogDescFieldName.Default.(string)
|
||||
// torqueauditlog.FieldNameValidator is a validator for the "fieldName" field. It is called by the builders before save.
|
||||
torqueauditlog.FieldNameValidator = torqueauditlogDescFieldName.Validators[0].(func(string) error)
|
||||
// torqueauditlogDescOldVal is the schema descriptor for oldVal field.
|
||||
torqueauditlogDescOldVal := torqueauditlogFields[4].Descriptor()
|
||||
// torqueauditlog.DefaultOldVal holds the default value on creation for the oldVal field.
|
||||
torqueauditlog.DefaultOldVal = torqueauditlogDescOldVal.Default.(string)
|
||||
// torqueauditlog.OldValValidator is a validator for the "oldVal" field. It is called by the builders before save.
|
||||
torqueauditlog.OldValValidator = torqueauditlogDescOldVal.Validators[0].(func(string) error)
|
||||
// torqueauditlogDescNewVal is the schema descriptor for newVal field.
|
||||
torqueauditlogDescNewVal := torqueauditlogFields[5].Descriptor()
|
||||
// torqueauditlog.DefaultNewVal holds the default value on creation for the newVal field.
|
||||
torqueauditlog.DefaultNewVal = torqueauditlogDescNewVal.Default.(string)
|
||||
// torqueauditlog.NewValValidator is a validator for the "newVal" field. It is called by the builders before save.
|
||||
torqueauditlog.NewValValidator = torqueauditlogDescNewVal.Validators[0].(func(string) error)
|
||||
// torqueauditlogDescOperator is the schema descriptor for operator field.
|
||||
torqueauditlogDescOperator := torqueauditlogFields[6].Descriptor()
|
||||
// torqueauditlog.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
|
||||
torqueauditlog.OperatorValidator = torqueauditlogDescOperator.Validators[0].(func(string) error)
|
||||
// torqueauditlogDescRemark is the schema descriptor for remark field.
|
||||
torqueauditlogDescRemark := torqueauditlogFields[7].Descriptor()
|
||||
// torqueauditlog.DefaultRemark holds the default value on creation for the remark field.
|
||||
torqueauditlog.DefaultRemark = torqueauditlogDescRemark.Default.(string)
|
||||
// torqueauditlog.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
torqueauditlog.RemarkValidator = torqueauditlogDescRemark.Validators[0].(func(string) error)
|
||||
// torqueauditlogDescCreatedAt is the schema descriptor for createdAt field.
|
||||
torqueauditlogDescCreatedAt := torqueauditlogFields[8].Descriptor()
|
||||
// torqueauditlog.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
torqueauditlog.DefaultCreatedAt = torqueauditlogDescCreatedAt.Default.(func() time.Time)
|
||||
// torqueauditlogDescID is the schema descriptor for id field.
|
||||
torqueauditlogDescID := torqueauditlogFields[0].Descriptor()
|
||||
// torqueauditlog.IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
torqueauditlog.IDValidator = torqueauditlogDescID.Validators[0].(func(int) error)
|
||||
torquerecordFields := schema.TorqueRecord{}.Fields()
|
||||
_ = torquerecordFields
|
||||
// torquerecordDescWorkOrderNo is the schema descriptor for workOrderNo field.
|
||||
@@ -1472,14 +1485,8 @@ func init() {
|
||||
torquerecordDescTime := torquerecordFields[10].Descriptor()
|
||||
// torquerecord.DefaultTime holds the default value on creation for the time field.
|
||||
torquerecord.DefaultTime = torquerecordDescTime.Default.(func() time.Time)
|
||||
// torquerecordDescAuditBy is the schema descriptor for auditBy field.
|
||||
torquerecordDescAuditBy := torquerecordFields[11].Descriptor()
|
||||
// torquerecord.DefaultAuditBy holds the default value on creation for the auditBy field.
|
||||
torquerecord.DefaultAuditBy = torquerecordDescAuditBy.Default.(string)
|
||||
// torquerecord.AuditByValidator is a validator for the "auditBy" field. It is called by the builders before save.
|
||||
torquerecord.AuditByValidator = torquerecordDescAuditBy.Validators[0].(func(string) error)
|
||||
// torquerecordDescCreatedAt is the schema descriptor for createdAt field.
|
||||
torquerecordDescCreatedAt := torquerecordFields[13].Descriptor()
|
||||
torquerecordDescCreatedAt := torquerecordFields[11].Descriptor()
|
||||
// torquerecord.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
torquerecord.DefaultCreatedAt = torquerecordDescCreatedAt.Default.(func() time.Time)
|
||||
// torquerecordDescID is the schema descriptor for id field.
|
||||
|
||||
Reference in New Issue
Block a user