Browse Source

添加字段

pull/93/head
zhangxin 3 years ago
parent
commit
575a406fae
3 changed files with 7 additions and 3 deletions
  1. +5
    -3
      meta/base/OPCComRule.meta.go
  2. +1
    -0
      models/base/OPCComRule.model.go
  3. +1
    -0
      models/om/SerialOrder.model.go

+ 5
- 3
meta/base/OPCComRule.meta.go View File

@ -23,6 +23,7 @@ var OPCComRule_WorkPlaceNr = grmi.NewField("WorkPlaceNr", "OPCComRule.WorkPlaceN
var OPCComRule_PO = grmi.NewField("PO", "OPCComRule.PO", "po", grmi.TypeInt) var OPCComRule_PO = grmi.NewField("PO", "OPCComRule.PO", "po", grmi.TypeInt)
var OPCComRule_StepNo = grmi.NewField("StepNo", "OPCComRule.StepNo", "stepno", grmi.TypeInt) var OPCComRule_StepNo = grmi.NewField("StepNo", "OPCComRule.StepNo", "stepno", grmi.TypeInt)
var OPCComRule_StepDesc = grmi.NewField("StepDesc", "OPCComRule.StepDesc", "stepdesc", grmi.TypeString) var OPCComRule_StepDesc = grmi.NewField("StepDesc", "OPCComRule.StepDesc", "stepdesc", grmi.TypeString)
var OPCComRule_OPCDesc = grmi.NewField("OPCDesc", "OPCComRule.OPCDesc", "opcdesc", grmi.TypeString)
var OPCComRule_ProjectId = grmi.NewField("ProjectId", "OPCComRule.ProjectId", "projectid", grmi.TypeString) var OPCComRule_ProjectId = grmi.NewField("ProjectId", "OPCComRule.ProjectId", "projectid", grmi.TypeString)
var OPCComRule_ActionType = grmi.NewField("ActionType", "OPCComRule.ActionType", "actiontype", grmi.TypeString) var OPCComRule_ActionType = grmi.NewField("ActionType", "OPCComRule.ActionType", "actiontype", grmi.TypeString)
var OPCComRule_DBlockAddress = grmi.NewField("DBlockAddress", "OPCComRule.DBlockAddress", "dblockaddress", grmi.TypeString) var OPCComRule_DBlockAddress = grmi.NewField("DBlockAddress", "OPCComRule.DBlockAddress", "dblockaddress", grmi.TypeString)
@ -54,16 +55,17 @@ var OPCComRule = grmi.NewEntity(
OPCComRule_PO.Name: OPCComRule_PO, OPCComRule_PO.Name: OPCComRule_PO,
OPCComRule_StepNo.Name: OPCComRule_StepNo, OPCComRule_StepNo.Name: OPCComRule_StepNo,
OPCComRule_StepDesc.Name: OPCComRule_StepDesc, OPCComRule_StepDesc.Name: OPCComRule_StepDesc,
OPCComRule_OPCDesc.Name: OPCComRule_OPCDesc,
OPCComRule_ProjectId.Name: OPCComRule_ProjectId, OPCComRule_ProjectId.Name: OPCComRule_ProjectId,
OPCComRule_ActionType.Name: OPCComRule_ActionType, OPCComRule_ActionType.Name: OPCComRule_ActionType,
OPCComRule_DBlockAddress.Name: OPCComRule_DBlockAddress, OPCComRule_DBlockAddress.Name: OPCComRule_DBlockAddress,
OPCComRule_DBlockValueType.Name: OPCComRule_DBlockValueType, OPCComRule_DBlockValueType.Name: OPCComRule_DBlockValueType,
OPCComRule_DBlockValue.Name: OPCComRule_DBlockValue, OPCComRule_DBlockValue.Name: OPCComRule_DBlockValue,
OPCComRule_Formula.Name: OPCComRule_Formula,
OPCComRule_OperatorSimbol.Name: OPCComRule_OperatorSimbol,
OPCComRule_Formula.Name: OPCComRule_Formula,
OPCComRule_OperatorSimbol.Name: OPCComRule_OperatorSimbol,
OPCComRule_LastModify.Name: OPCComRule_LastModify, OPCComRule_LastModify.Name: OPCComRule_LastModify,
OPCComRule_LastUser.Name: OPCComRule_LastUser, OPCComRule_LastUser.Name: OPCComRule_LastUser,
OPCComRule_CreateTime.Name: OPCComRule_CreateTime, OPCComRule_CreateTime.Name: OPCComRule_CreateTime,
}, },
[]string{"PlantNr"}, []string{"PlantNr"},
[]string{"PO", "StepNo", "StepDesc", "ProjectId", "ActionType", "DBlockAddress", "DBlockValueType", "DBlockValue", "Formula", "OperatorSimbol", "LastUser"})
[]string{"PO", "StepNo", "StepDesc", "OPCDesc", "ProjectId", "ActionType", "DBlockAddress", "DBlockValueType", "DBlockValue", "Formula", "OperatorSimbol", "LastUser"})

+ 1
- 0
models/base/OPCComRule.model.go View File

@ -27,6 +27,7 @@ type OPCComRule struct {
PO int `xorm:"int 'PO' not null" json:"OPCComRule-PO"` PO int `xorm:"int 'PO' not null" json:"OPCComRule-PO"`
StepNo int `xorm:"int 'StepNo' not null" json:"OPCComRule-StepNo"` StepNo int `xorm:"int 'StepNo' not null" json:"OPCComRule-StepNo"`
StepDesc string `xorm:"nvarchar(100) 'StepDesc' not null" json:"OPCComRule-StepDesc"` StepDesc string `xorm:"nvarchar(100) 'StepDesc' not null" json:"OPCComRule-StepDesc"`
OPCDesc string `xorm:"nvarchar(100) 'OPCDesc' not null" json:"OPCComRule-OPCDesc"`
ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OPCComRule-ProjectId"` ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OPCComRule-ProjectId"`
ActionType string `xorm:"nvarchar(20) 'ActionType' not null" json:"OPCComRule-ActionType"` ActionType string `xorm:"nvarchar(20) 'ActionType' not null" json:"OPCComRule-ActionType"`
DBlockAddress string `xorm:"nvarchar(40) 'DBlockAddress' not null" json:"OPCComRule-DBlockAddress"` DBlockAddress string `xorm:"nvarchar(40) 'DBlockAddress' not null" json:"OPCComRule-DBlockAddress"`


+ 1
- 0
models/om/SerialOrder.model.go View File

@ -42,6 +42,7 @@ type SerialOrder struct {
ActStartTime grmi.DateTime `xorm:"datetime 'ActStartTime' not null" json:"OM_SerialOrder-ActStartTime"` ActStartTime grmi.DateTime `xorm:"datetime 'ActStartTime' not null" json:"OM_SerialOrder-ActStartTime"`
ActEndTime grmi.DateTime `xorm:"datetime 'ActEndTime' not null" json:"OM_SerialOrder-ActEndTime"` ActEndTime grmi.DateTime `xorm:"datetime 'ActEndTime' not null" json:"OM_SerialOrder-ActEndTime"`
ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OM_SerialOrder-ProjectId"` ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OM_SerialOrder-ProjectId"`
Sort string `xorm:"nvarchar(40) 'Sort' not null" json:"OM_SerialOrder-Sort"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OM_SerialOrder-LastModify"` LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OM_SerialOrder-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OM_SerialOrder-LastUser"` LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OM_SerialOrder-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OM_SerialOrder-CreateTime"` CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OM_SerialOrder-CreateTime"`


Loading…
Cancel
Save