chore: 批量完成项目多模块迭代优化
1. 废弃半成品库存表并统一库存主表 2. 修复列表排序与搜索大小写不敏感问题 3. 新增用户最近登录时间、工单BOM名称字段 4. 完善角色管理、工位选择器功能 5. 增加拧紧数据补录、成品自动回流WMS能力 6. 统一导出时间范围校验规则 7. 丰富物料/备料单筛选条件 8. 调整菜单与权限命名适配产品型号业务
This commit is contained in:
@@ -102,6 +102,20 @@ func (_c *UserCreate) SetNillableStatus(v *string) *UserCreate {
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetLastLoginAt sets the "lastLoginAt" field.
|
||||
func (_c *UserCreate) SetLastLoginAt(v int64) *UserCreate {
|
||||
_c.mutation.SetLastLoginAt(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableLastLoginAt sets the "lastLoginAt" field if the given value is not nil.
|
||||
func (_c *UserCreate) SetNillableLastLoginAt(v *int64) *UserCreate {
|
||||
if v != nil {
|
||||
_c.SetLastLoginAt(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "createdAt" field.
|
||||
func (_c *UserCreate) SetCreatedAt(v time.Time) *UserCreate {
|
||||
_c.mutation.SetCreatedAt(v)
|
||||
@@ -303,6 +317,10 @@ func (_c *UserCreate) createSpec() (*User, *sqlgraph.CreateSpec) {
|
||||
_spec.SetField(user.FieldStatus, field.TypeString, value)
|
||||
_node.Status = value
|
||||
}
|
||||
if value, ok := _c.mutation.LastLoginAt(); ok {
|
||||
_spec.SetField(user.FieldLastLoginAt, field.TypeInt64, value)
|
||||
_node.LastLoginAt = &value
|
||||
}
|
||||
if value, ok := _c.mutation.CreatedAt(); ok {
|
||||
_spec.SetField(user.FieldCreatedAt, field.TypeTime, value)
|
||||
_node.CreatedAt = value
|
||||
|
||||
Reference in New Issue
Block a user