chore: 批量完成项目多模块迭代优化
1. 废弃半成品库存表并统一库存主表 2. 修复列表排序与搜索大小写不敏感问题 3. 新增用户最近登录时间、工单BOM名称字段 4. 完善角色管理、工位选择器功能 5. 增加拧紧数据补录、成品自动回流WMS能力 6. 统一导出时间范围校验规则 7. 丰富物料/备料单筛选条件 8. 调整菜单与权限命名适配产品型号业务
This commit is contained in:
@@ -146,6 +146,33 @@ func (_u *UserUpdate) SetNillableStatus(v *string) *UserUpdate {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetLastLoginAt sets the "lastLoginAt" field.
|
||||
func (_u *UserUpdate) SetLastLoginAt(v int64) *UserUpdate {
|
||||
_u.mutation.ResetLastLoginAt()
|
||||
_u.mutation.SetLastLoginAt(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableLastLoginAt sets the "lastLoginAt" field if the given value is not nil.
|
||||
func (_u *UserUpdate) SetNillableLastLoginAt(v *int64) *UserUpdate {
|
||||
if v != nil {
|
||||
_u.SetLastLoginAt(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// AddLastLoginAt adds value to the "lastLoginAt" field.
|
||||
func (_u *UserUpdate) AddLastLoginAt(v int64) *UserUpdate {
|
||||
_u.mutation.AddLastLoginAt(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearLastLoginAt clears the value of the "lastLoginAt" field.
|
||||
func (_u *UserUpdate) ClearLastLoginAt() *UserUpdate {
|
||||
_u.mutation.ClearLastLoginAt()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetUpdatedAt sets the "updatedAt" field.
|
||||
func (_u *UserUpdate) SetUpdatedAt(v time.Time) *UserUpdate {
|
||||
_u.mutation.SetUpdatedAt(v)
|
||||
@@ -277,6 +304,15 @@ func (_u *UserUpdate) sqlSave(ctx context.Context) (_node int, err error) {
|
||||
if value, ok := _u.mutation.Status(); ok {
|
||||
_spec.SetField(user.FieldStatus, field.TypeString, value)
|
||||
}
|
||||
if value, ok := _u.mutation.LastLoginAt(); ok {
|
||||
_spec.SetField(user.FieldLastLoginAt, field.TypeInt64, value)
|
||||
}
|
||||
if value, ok := _u.mutation.AddedLastLoginAt(); ok {
|
||||
_spec.AddField(user.FieldLastLoginAt, field.TypeInt64, value)
|
||||
}
|
||||
if _u.mutation.LastLoginAtCleared() {
|
||||
_spec.ClearField(user.FieldLastLoginAt, field.TypeInt64)
|
||||
}
|
||||
if value, ok := _u.mutation.UpdatedAt(); ok {
|
||||
_spec.SetField(user.FieldUpdatedAt, field.TypeTime, value)
|
||||
}
|
||||
@@ -422,6 +458,33 @@ func (_u *UserUpdateOne) SetNillableStatus(v *string) *UserUpdateOne {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetLastLoginAt sets the "lastLoginAt" field.
|
||||
func (_u *UserUpdateOne) SetLastLoginAt(v int64) *UserUpdateOne {
|
||||
_u.mutation.ResetLastLoginAt()
|
||||
_u.mutation.SetLastLoginAt(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableLastLoginAt sets the "lastLoginAt" field if the given value is not nil.
|
||||
func (_u *UserUpdateOne) SetNillableLastLoginAt(v *int64) *UserUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetLastLoginAt(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// AddLastLoginAt adds value to the "lastLoginAt" field.
|
||||
func (_u *UserUpdateOne) AddLastLoginAt(v int64) *UserUpdateOne {
|
||||
_u.mutation.AddLastLoginAt(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearLastLoginAt clears the value of the "lastLoginAt" field.
|
||||
func (_u *UserUpdateOne) ClearLastLoginAt() *UserUpdateOne {
|
||||
_u.mutation.ClearLastLoginAt()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetUpdatedAt sets the "updatedAt" field.
|
||||
func (_u *UserUpdateOne) SetUpdatedAt(v time.Time) *UserUpdateOne {
|
||||
_u.mutation.SetUpdatedAt(v)
|
||||
@@ -583,6 +646,15 @@ func (_u *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) {
|
||||
if value, ok := _u.mutation.Status(); ok {
|
||||
_spec.SetField(user.FieldStatus, field.TypeString, value)
|
||||
}
|
||||
if value, ok := _u.mutation.LastLoginAt(); ok {
|
||||
_spec.SetField(user.FieldLastLoginAt, field.TypeInt64, value)
|
||||
}
|
||||
if value, ok := _u.mutation.AddedLastLoginAt(); ok {
|
||||
_spec.AddField(user.FieldLastLoginAt, field.TypeInt64, value)
|
||||
}
|
||||
if _u.mutation.LastLoginAtCleared() {
|
||||
_spec.ClearField(user.FieldLastLoginAt, field.TypeInt64)
|
||||
}
|
||||
if value, ok := _u.mutation.UpdatedAt(); ok {
|
||||
_spec.SetField(user.FieldUpdatedAt, field.TypeTime, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user