作者 yangfu

版本 v1.0.2 物料相关

正在显示 38 个修改的文件 包含 492 行增加0 行删除
version: v1
kind: HttpApi
metadata:
service: productMaterial
path: /product-materials
endpoints:
- method: createProductMaterial
route:
post: /
- method: updateProductMaterial
route:
put: /{productMaterialId}
- method: getProductMaterial
route:
get: /{productMaterialId}
- method: removeProductMaterial
route:
delete: /{productMaterialId}
- method: listProductMaterial
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: HttpApi
metadata:
service: productMaterialGroup
path: /product-material-groups
endpoints:
- method: createProductMaterialGroup
route:
post: /
- method: updateProductMaterialGroup
route:
put: /{productMaterialGroupId}
- method: getProductMaterialGroup
route:
get: /{productMaterialGroupId}
- method: removeProductMaterialGroup
route:
delete: /{productMaterialGroupId}
- method: listProductMaterialGroup
route:
get: /
params:
- name: offset
- name: limit
... ...
version: v1
kind: Attribute
metadata:
name: path
description: 路径
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: pid
description: 父级ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: comStatus
description: 通讯状态:1:通讯正常,0:设备未上电或与采集端通讯故障
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: count
description: 生产计数:生产统计数量
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: frontTemp
description: 炸机前段温度:炸机前段当前温度 YZJ1 油炸机
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: startupState
description: 启动状态:1:启动,0:停止
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: temp1
description: 炸机前段温度:炸机前段当前温度 YZJ2 油炸机
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: deviceDailyRunningRecordId
description: 设备每日运行记录ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: deviceRunningRecordId
description: 设备运行记录ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: deviceRunningRecordInfo
description: 设备运行记录信息
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: materialAttribute
description: 物料属性
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: materialCategory
description: 物料类别
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: materialGroupName
description: 物料分组名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: materialGroupNumber
description: 物料分组编码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: materialName
description: 物料名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: materialNumber
description: 物料编码
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: productMaterialExt
description: 物料扩展
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: productMaterialGroupId
description: 物料分组ID
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: productMaterialId
description: 物料ID
type:
primitive: int
... ...
version: v1
kind: Schema
metadata:
name: deviceDailyRunningRecord
description: 设备每日运行记录(汇总)
attributes:
- ref: deviceDailyRunningRecordId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: workStation
required: true
- ref: deviceId
required: true
- ref: deviceCode
required: true
- ref: deviceRunningRecordInfo
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: deviceRunningData
description: 设备运行数据
attributes:
- ref: startupState
required: true
- ref: comStatus
required: true
- ref: count
required: true
- ref: frontTemp
required: true
- ref: temp1
required: true
- name: productType
description: 当前产品种类(产品编号)
type:
primitive: string
- ref: deviceCode
required: true
... ...
version: v1
kind: Schema
metadata:
name: deviceRunningRecord
description: 设备运行记录
attributes:
- ref: deviceRunningRecordId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: workStation
required: true
- ref: deviceId
required: true
- ref: deviceCode
required: true
- ref: deviceRunningRecordInfo
required: true
- ref: createdAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: productMaterial
description: 生产物料
attributes:
- ref: productMaterialId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: productMaterialGroupId
required: true
- ref: materialNumber
required: true
- ref: materialName
required: true
- ref: materialAttribute
required: true
- ref: materialCategory
required: true
- ref: productMaterialExt
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
- name: ext
description: 扩展
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: productMaterialGroup
description: 物料分组
attributes:
- ref: productMaterialGroupId
required: true
- ref: companyId
required: true
- ref: orgId
required: true
- ref: pid
required: true
- ref: path
required: true
- ref: materialGroupName
required: true
- ref: materialGroupNumber
required: true
- ref: createdAt
required: true
- ref: updatedAt
required: true
- ref: deletedAt
required: true
... ...
version: v1
kind: Method
metadata:
name: createProductMaterial
type: command
description: 创建生产物料服务
payload:
- ref: productMaterialGroupId
required: true
- ref: materialNumber
required: true
- ref: materialName
required: true
- ref: materialAttribute
required: true
- ref: materialCategory
required: true
- ref: productMaterialExt
required: true
result:
- name: productMaterial
type:
schema: productMaterial
required: true
... ...
version: v1
kind: Method
metadata:
name: getProductMaterial
type: query
description: 返回生产物料服务
payload:
- ref: productMaterialId
required: true
result:
- name: productMaterial
type:
schema: productMaterial
required: true
... ...
version: v1
kind: Method
metadata:
name: listProductMaterial
type: query
description: 返回生产物料服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
- ref: productMaterialGroupId
required: true
- ref: materialName
required: true
- ref: materialCategory
required: true
result:
- ref: count
required: true
- name: productMaterials
type:
array: productMaterial
required: true
... ...
version: v1
kind: Method
metadata:
name: removeProductMaterial
type: command
description: 移除生产物料服务
payload:
- ref: productMaterialId
required: true
result:
- name: productMaterial
type:
schema: productMaterial
required: true
... ...
version: v1
kind: Method
metadata:
name: updateProductMaterial
type: command
description: 更新生产物料服务
payload:
- ref: productMaterialId
required: true
result:
- name: productMaterial
type:
schema: productMaterial
required: true
... ...
version: v1
kind: Service
metadata:
name: productMaterial
description: 生产物料服务
... ...
version: v1
kind: Method
metadata:
name: createProductMaterialGroup
type: command
description: 创建物料分组服务
payload:
- ref: pid
required: true
- ref: materialGroupName
required: true
- ref: materialGroupNumber
result:
- name: productMaterialGroup
type:
schema: productMaterialGroup
required: true
... ...
version: v1
kind: Method
metadata:
name: getProductMaterialGroup
type: query
description: 返回物料分组服务
payload:
- ref: productMaterialGroupId
required: true
result:
- name: productMaterialGroup
type:
schema: productMaterialGroup
required: true
... ...
version: v1
kind: Method
metadata:
name: listProductMaterialGroup
type: query
description: 返回物料分组服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: productMaterialGroups
type:
array: productMaterialGroup
required: true
... ...
version: v1
kind: Method
metadata:
name: removeProductMaterialGroup
type: command
description: 移除物料分组服务
payload:
- ref: productMaterialGroupId
required: true
result:
- name: productMaterialGroup
type:
schema: productMaterialGroup
required: true
... ...
version: v1
kind: Method
metadata:
name: updateProductMaterialGroup
type: command
description: 更新物料分组服务
payload:
- ref: productMaterialGroupId
required: true
- ref: materialGroupName
required: true
- ref: materialGroupNumber
required: true
result:
- name: productMaterialGroup
type:
schema: productMaterialGroup
required: true
... ...
version: v1
kind: Service
metadata:
name: productMaterialGroup
description: 物料分组服务
... ...