feat: 完成MES工位终端系统全量功能迭代
本次提交包含以下核心变更: 1. 新增按钮级权限控制框架与前端权限校验 2. 新增工位管理、工艺流程、巡检终端等核心业务模块 3. 完善用户体系,支持工位终端专属登录权限 4. 新增文件上传下载、报表查询等配套功能 5. 修复多系统兼容性与交互体验问题 6. 完成所有文档与配置项的规范化更新
This commit is contained in:
@@ -13,6 +13,8 @@ const (
|
||||
Label = "process_step"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldFlowId holds the string denoting the flowid field in the database.
|
||||
FieldFlowId = "flow_id"
|
||||
// FieldProcessCode holds the string denoting the processcode field in the database.
|
||||
FieldProcessCode = "process_code"
|
||||
// FieldSeq holds the string denoting the seq field in the database.
|
||||
@@ -34,6 +36,7 @@ const (
|
||||
// Columns holds all SQL columns for processstep fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldFlowId,
|
||||
FieldProcessCode,
|
||||
FieldSeq,
|
||||
FieldName,
|
||||
@@ -82,6 +85,11 @@ func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByFlowId orders the results by the flowId field.
|
||||
func ByFlowId(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldFlowId, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProcessCode orders the results by the processCode field.
|
||||
func ByProcessCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProcessCode, opts...).ToFunc()
|
||||
|
||||
@@ -54,6 +54,11 @@ func IDLTE(id int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// FlowId applies equality check predicate on the "flowId" field. It's identical to FlowIdEQ.
|
||||
func FlowId(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// ProcessCode applies equality check predicate on the "processCode" field. It's identical to ProcessCodeEQ.
|
||||
func ProcessCode(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldProcessCode, v))
|
||||
@@ -89,6 +94,56 @@ func CreatedAt(v time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// FlowIdEQ applies the EQ predicate on the "flowId" field.
|
||||
func FlowIdEQ(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdNEQ applies the NEQ predicate on the "flowId" field.
|
||||
func FlowIdNEQ(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdIn applies the In predicate on the "flowId" field.
|
||||
func FlowIdIn(vs ...int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIn(FieldFlowId, vs...))
|
||||
}
|
||||
|
||||
// FlowIdNotIn applies the NotIn predicate on the "flowId" field.
|
||||
func FlowIdNotIn(vs ...int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotIn(FieldFlowId, vs...))
|
||||
}
|
||||
|
||||
// FlowIdGT applies the GT predicate on the "flowId" field.
|
||||
func FlowIdGT(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGT(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdGTE applies the GTE predicate on the "flowId" field.
|
||||
func FlowIdGTE(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGTE(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdLT applies the LT predicate on the "flowId" field.
|
||||
func FlowIdLT(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLT(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdLTE applies the LTE predicate on the "flowId" field.
|
||||
func FlowIdLTE(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdIsNil applies the IsNil predicate on the "flowId" field.
|
||||
func FlowIdIsNil() predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIsNull(FieldFlowId))
|
||||
}
|
||||
|
||||
// FlowIdNotNil applies the NotNil predicate on the "flowId" field.
|
||||
func FlowIdNotNil() predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotNull(FieldFlowId))
|
||||
}
|
||||
|
||||
// ProcessCodeEQ applies the EQ predicate on the "processCode" field.
|
||||
func ProcessCodeEQ(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldProcessCode, v))
|
||||
|
||||
Reference in New Issue
Block a user