Files
bj_power/bj_power_wms/ent/inboundorder/inboundorder.go
T
SunYF 0ab21b1234 feat&refactor: 完成多模块功能迭代与配置优化
本次提交覆盖多个业务模块的功能完善与体验优化:
1.  **鉴权与配置调整**:
    - 统一JWT滑动续签逻辑,简化Token存储,移除RefreshToken相关冗余代码
    - 调整多项目配置文件中JWT过期时间为3600秒,统一会话闲置窗口
    - 工位配置放开1~12限制,改为仅校验大于0
2.  **术语统一替换**:全链路将"精密件"替换为"电气件",修正物料管理描述
3.  **功能新增**:
    - 新增工位类型、工艺路线与产线点位台账模块
    - 添加工艺PDF预览面板、工位终端代理转发接口
    - 新增操作日志按操作人列表筛选、工位登出日志记录
    - 新增PLC移料指令与产线点位状态管理
4.  **业务流程优化**:
    - 调整BOM物料删除校验逻辑,优化工单备料计算
    - 补充物料图号、检测单号等追溯字段
    - 完善工艺流程图与工位绑定关系说明
    - 优化前端页面文案与交互细节
5.  **代码规范与维护**:
    - 新增通用工具函数与前端静态资源
    - 整理路由权限与中间件逻辑
    - 修复部分接口与配置的不兼容问题
2026-09-10 16:59:15 +08:00

147 lines
5.1 KiB
Go

// Code generated by ent, DO NOT EDIT.
package inboundorder
import (
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the inboundorder type in the database.
Label = "inbound_order"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldInboundNo holds the string denoting the inbound_no field in the database.
FieldInboundNo = "inbound_no"
// FieldInboundType holds the string denoting the inbound_type field in the database.
FieldInboundType = "inbound_type"
// FieldMaterialCode holds the string denoting the material_code field in the database.
FieldMaterialCode = "material_code"
// FieldMaterialName holds the string denoting the material_name field in the database.
FieldMaterialName = "material_name"
// FieldManageMode holds the string denoting the manage_mode field in the database.
FieldManageMode = "manage_mode"
// FieldBatchNo holds the string denoting the batch_no field in the database.
FieldBatchNo = "batch_no"
// FieldZoneCode holds the string denoting the zone_code field in the database.
FieldZoneCode = "zone_code"
// FieldQuantity holds the string denoting the quantity field in the database.
FieldQuantity = "quantity"
// FieldOperator holds the string denoting the operator field in the database.
FieldOperator = "operator"
// FieldRemark holds the string denoting the remark field in the database.
FieldRemark = "remark"
// FieldInspectionNo holds the string denoting the inspection_no field in the database.
FieldInspectionNo = "inspection_no"
// FieldCreatedAt holds the string denoting the created_at field in the database.
FieldCreatedAt = "created_at"
// Table holds the table name of the inboundorder in the database.
Table = "inbound_orders"
)
// Columns holds all SQL columns for inboundorder fields.
var Columns = []string{
FieldID,
FieldInboundNo,
FieldInboundType,
FieldMaterialCode,
FieldMaterialName,
FieldManageMode,
FieldBatchNo,
FieldZoneCode,
FieldQuantity,
FieldOperator,
FieldRemark,
FieldInspectionNo,
FieldCreatedAt,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// DefaultInboundType holds the default value on creation for the "inbound_type" field.
DefaultInboundType string
// DefaultManageMode holds the default value on creation for the "manage_mode" field.
DefaultManageMode int
// DefaultQuantity holds the default value on creation for the "quantity" field.
DefaultQuantity int
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultCreatedAt func() int64
)
// OrderOption defines the ordering options for the InboundOrder queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByInboundNo orders the results by the inbound_no field.
func ByInboundNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldInboundNo, opts...).ToFunc()
}
// ByInboundType orders the results by the inbound_type field.
func ByInboundType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldInboundType, opts...).ToFunc()
}
// ByMaterialCode orders the results by the material_code field.
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
}
// ByMaterialName orders the results by the material_name field.
func ByMaterialName(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldMaterialName, opts...).ToFunc()
}
// ByManageMode orders the results by the manage_mode field.
func ByManageMode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldManageMode, opts...).ToFunc()
}
// ByBatchNo orders the results by the batch_no field.
func ByBatchNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldBatchNo, opts...).ToFunc()
}
// ByZoneCode orders the results by the zone_code field.
func ByZoneCode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldZoneCode, opts...).ToFunc()
}
// ByQuantity orders the results by the quantity field.
func ByQuantity(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldQuantity, opts...).ToFunc()
}
// ByOperator orders the results by the operator field.
func ByOperator(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldOperator, opts...).ToFunc()
}
// ByRemark orders the results by the remark field.
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRemark, opts...).ToFunc()
}
// ByInspectionNo orders the results by the inspection_no field.
func ByInspectionNo(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldInspectionNo, opts...).ToFunc()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
}