Browse Source

修改表结构对应

pull/65/head
zhangxin 3 years ago
parent
commit
a95919cd50
3 changed files with 9 additions and 5 deletions
  1. +5
    -3
      meta/base/ProcessDependOn.meta.go
  2. +2
    -1
      models/base/ProcessDependOn.model.go
  3. +2
    -1
      services/base/implments/ProcessDependOn.service.impl.go

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

@ -20,7 +20,8 @@ var ProcessDependOn_PlantNr = grmi.NewField("PlantNr", "ProcessDependOn.PlantNr"
var ProcessDependOn_PO = grmi.NewField("PO", "ProcessDependOn.PO", "po", grmi.TypeInt) var ProcessDependOn_PO = grmi.NewField("PO", "ProcessDependOn.PO", "po", grmi.TypeInt)
var ProcessDependOn_WorkLineId = grmi.NewField("WorkLineId", "ProcessDependOn.WorkLineId", "worklineid", grmi.TypeString) var ProcessDependOn_WorkLineId = grmi.NewField("WorkLineId", "ProcessDependOn.WorkLineId", "worklineid", grmi.TypeString)
var ProcessDependOn_Pos = grmi.NewField("Pos", "ProcessDependOn.Pos", "pos", grmi.TypeInt) var ProcessDependOn_Pos = grmi.NewField("Pos", "ProcessDependOn.Pos", "pos", grmi.TypeInt)
var ProcessDependOn_StepNo = grmi.NewField("StepNo", "ProcessDependOn.StepNo", "stepno", grmi.TypeInt)
var ProcessDependOn_DependPO = grmi.NewField("DependPO", "ProcessDependOn.DependPO", "dependpo", grmi.TypeInt)
var ProcessDependOn_DependStepNo = grmi.NewField("DependStepNo", "ProcessDependOn.DependStepNo", "dependstepno", grmi.TypeInt)
var ProcessDependOn_DependOnField = grmi.NewField("DependOnField", "ProcessDependOn.DependOnField", "dependonfield", grmi.TypeString) var ProcessDependOn_DependOnField = grmi.NewField("DependOnField", "ProcessDependOn.DependOnField", "dependonfield", grmi.TypeString)
var ProcessDependOn_DependOnValue1 = grmi.NewField("DependOnValue1", "ProcessDependOn.DependOnValue1", "dependonvalue1", grmi.TypeInt) var ProcessDependOn_DependOnValue1 = grmi.NewField("DependOnValue1", "ProcessDependOn.DependOnValue1", "dependonvalue1", grmi.TypeInt)
var ProcessDependOn_DependOnValue2 = grmi.NewField("DependOnValue2", "ProcessDependOn.DependOnValue2", "dependonvalue2", grmi.TypeString) var ProcessDependOn_DependOnValue2 = grmi.NewField("DependOnValue2", "ProcessDependOn.DependOnValue2", "dependonvalue2", grmi.TypeString)
@ -51,7 +52,8 @@ var ProcessDependOn = grmi.NewEntity(
ProcessDependOn_PO.Name: ProcessDependOn_PO, ProcessDependOn_PO.Name: ProcessDependOn_PO,
ProcessDependOn_WorkLineId.Name: ProcessDependOn_WorkLineId, ProcessDependOn_WorkLineId.Name: ProcessDependOn_WorkLineId,
ProcessDependOn_Pos.Name: ProcessDependOn_Pos, ProcessDependOn_Pos.Name: ProcessDependOn_Pos,
ProcessDependOn_StepNo.Name: ProcessDependOn_StepNo,
ProcessDependOn_DependPO.Name: ProcessDependOn_DependPO,
ProcessDependOn_DependStepNo.Name: ProcessDependOn_DependStepNo,
ProcessDependOn_DependOnField.Name: ProcessDependOn_DependOnField, ProcessDependOn_DependOnField.Name: ProcessDependOn_DependOnField,
ProcessDependOn_DependOnValue1.Name: ProcessDependOn_DependOnValue1, ProcessDependOn_DependOnValue1.Name: ProcessDependOn_DependOnValue1,
ProcessDependOn_DependOnValue2.Name: ProcessDependOn_DependOnValue2, ProcessDependOn_DependOnValue2.Name: ProcessDependOn_DependOnValue2,
@ -66,4 +68,4 @@ var ProcessDependOn = grmi.NewEntity(
ProcessDependOn_CreateTime.Name: ProcessDependOn_CreateTime, ProcessDependOn_CreateTime.Name: ProcessDependOn_CreateTime,
}, },
[]string{"PlantNr"}, []string{"PlantNr"},
[]string{"StepNo", "DependOnField", "DependOnValue1", "DependOnValue2", "CtrlPara1", "CtrlPara2", "CtrlPara3", "CtrlPara4", "CtrlPara5", "CtrlPara6", "LastUser"})
[]string{"DependPO", "DependStepNo", "DependOnField", "DependOnValue1", "DependOnValue2", "CtrlPara1", "CtrlPara2", "CtrlPara3", "CtrlPara4", "CtrlPara5", "CtrlPara6", "LastUser"})

+ 2
- 1
models/base/ProcessDependOn.model.go View File

@ -24,7 +24,8 @@ type ProcessDependOn struct {
PO int `xorm:"pk int 'PO'" json:"ProcessDependOn-PO"` PO int `xorm:"pk int 'PO'" json:"ProcessDependOn-PO"`
WorkLineId string `xorm:"pk nvarchar(40) 'WorkLineId'" json:"ProcessDependOn-WorkLineId"` WorkLineId string `xorm:"pk nvarchar(40) 'WorkLineId'" json:"ProcessDependOn-WorkLineId"`
Pos int `xorm:"pk int 'Pos'" json:"ProcessDependOn-Pos"` Pos int `xorm:"pk int 'Pos'" json:"ProcessDependOn-Pos"`
StepNo int `xorm:"int 'StepNo' not null" json:"ProcessDependOn-StepNo"`
DependPO int `xorm:"int 'DependPO' not null" json:"ProcessDependOn-DependPO"`
DependStepNo int `xorm:"int 'DependStepNo' not null" json:"ProcessDependOn-DependStepNo"`
DependOnField string `xorm:"nvarchar(40) 'DependOnField' not null" json:"ProcessDependOn-DependOnField"` DependOnField string `xorm:"nvarchar(40) 'DependOnField' not null" json:"ProcessDependOn-DependOnField"`
DependOnValue1 int `xorm:"int 'DependOnValue1' not null" json:"ProcessDependOn-DependOnValue1"` DependOnValue1 int `xorm:"int 'DependOnValue1' not null" json:"ProcessDependOn-DependOnValue1"`
DependOnValue2 string `xorm:"nvarchar(40) 'DependOnValue2' not null" json:"ProcessDependOn-DependOnValue2"` DependOnValue2 string `xorm:"nvarchar(40) 'DependOnValue2' not null" json:"ProcessDependOn-DependOnValue2"`


+ 2
- 1
services/base/implments/ProcessDependOn.service.impl.go View File

@ -25,7 +25,8 @@ var DefaultConditionOfProcessDependOn = grmi.NewCondition(
meta.ProcessDependOn_PO.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_PO, grmi.Equal, true), meta.ProcessDependOn_PO.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_PO, grmi.Equal, true),
meta.ProcessDependOn_WorkLineId.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_WorkLineId, grmi.Equal, true), meta.ProcessDependOn_WorkLineId.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_WorkLineId, grmi.Equal, true),
meta.ProcessDependOn_Pos.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_Pos, grmi.Equal, true), meta.ProcessDependOn_Pos.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_Pos, grmi.Equal, true),
meta.ProcessDependOn_StepNo.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_StepNo, grmi.Equal, false),
meta.ProcessDependOn_DependPO.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_DependPO, grmi.Equal, false),
meta.ProcessDependOn_DependStepNo.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_DependStepNo, grmi.Equal, false),
meta.ProcessDependOn_DependOnField.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_DependOnField, grmi.Equal, false), meta.ProcessDependOn_DependOnField.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_DependOnField, grmi.Equal, false),
meta.ProcessDependOn_DependOnValue1.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_DependOnValue1, grmi.Equal, false), meta.ProcessDependOn_DependOnValue1.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_DependOnValue1, grmi.Equal, false),
meta.ProcessDependOn_DependOnValue2.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_DependOnValue2, grmi.Equal, false), meta.ProcessDependOn_DependOnValue2.UrlParameterName: grmi.NewConditionItem(meta.ProcessDependOn_DependOnValue2, grmi.Equal, false),


Loading…
Cancel
Save