Browse Source

添加字段操作类型字段

pull/54/head
zhangxin 3 years ago
parent
commit
64afa521cf
2 changed files with 6 additions and 4 deletions
  1. +5
    -4
      models/base/base.go
  2. +1
    -0
      services/base/implments/Process.service.impl.go

+ 5
- 4
models/base/base.go View File

@ -275,10 +275,11 @@ type PlantDataTree struct {
// OperationDataTree 展示工序到工步的树形结构体
type OperationDataTree struct {
ItemId interface{} `json:"itemId"`
ItemDesc string `json:"itemDesc"`
IsEnd bool `json:"isEnd"`
Children []OperationDataTree `json:"children"`
ItemId interface{} `json:"itemId"`
ItemDesc string `json:"itemDesc"`
IsEnd bool `json:"isEnd"`
OperationType string `json:"operationType"`
Children []OperationDataTree `json:"children"`
}
// WorkLineOfPlant 工厂下的产线


+ 1
- 0
services/base/implments/Process.service.impl.go View File

@ -580,6 +580,7 @@ func (impl *ProcessServiceImplement) SelectOperation(user *global.User, po strin
ItemId: operation.OperationId,
ItemDesc: operation.StepDesc,
IsEnd: true,
OperationType: operation.StepType,
}
bkTree.Children = append(bkTree.Children, operationData)
}


Loading…
Cancel
Save