feat: 完成WMS系统权限体系与业务功能迭代
本提交完成了WMS系统的多维度优化升级: 1. 新增RBAC权限系统,支持角色/菜单/按钮三级权限管控 2. 重构库存盘点、物料管理、区域维护等模块的查询筛选与展示逻辑 3. 优化入库/出库/质检等业务流程,完善数据冗余与业务闭环 4. 移除旧装箱表,将装箱逻辑合并到出库主表 5. 新增前端权限判断工具、导出工具与端到端测试用例 6. 补充完善各类注释与数据库字段说明
This commit is contained in:
@@ -271,6 +271,66 @@ func (_u *OutboundOrderUpdate) ClearRemark() *OutboundOrderUpdate {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetBoxNo sets the "box_no" field.
|
||||
func (_u *OutboundOrderUpdate) SetBoxNo(v string) *OutboundOrderUpdate {
|
||||
_u.mutation.SetBoxNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableBoxNo sets the "box_no" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdate) SetNillableBoxNo(v *string) *OutboundOrderUpdate {
|
||||
if v != nil {
|
||||
_u.SetBoxNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearBoxNo clears the value of the "box_no" field.
|
||||
func (_u *OutboundOrderUpdate) ClearBoxNo() *OutboundOrderUpdate {
|
||||
_u.mutation.ClearBoxNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetBoxSnList sets the "box_sn_list" field.
|
||||
func (_u *OutboundOrderUpdate) SetBoxSnList(v string) *OutboundOrderUpdate {
|
||||
_u.mutation.SetBoxSnList(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableBoxSnList sets the "box_sn_list" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdate) SetNillableBoxSnList(v *string) *OutboundOrderUpdate {
|
||||
if v != nil {
|
||||
_u.SetBoxSnList(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearBoxSnList clears the value of the "box_sn_list" field.
|
||||
func (_u *OutboundOrderUpdate) ClearBoxSnList() *OutboundOrderUpdate {
|
||||
_u.mutation.ClearBoxSnList()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetContractNo sets the "contract_no" field.
|
||||
func (_u *OutboundOrderUpdate) SetContractNo(v string) *OutboundOrderUpdate {
|
||||
_u.mutation.SetContractNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableContractNo sets the "contract_no" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdate) SetNillableContractNo(v *string) *OutboundOrderUpdate {
|
||||
if v != nil {
|
||||
_u.SetContractNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearContractNo clears the value of the "contract_no" field.
|
||||
func (_u *OutboundOrderUpdate) ClearContractNo() *OutboundOrderUpdate {
|
||||
_u.mutation.ClearContractNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (_u *OutboundOrderUpdate) SetCreatedAt(v int64) *OutboundOrderUpdate {
|
||||
_u.mutation.ResetCreatedAt()
|
||||
@@ -402,6 +462,24 @@ func (_u *OutboundOrderUpdate) sqlSave(ctx context.Context) (_node int, err erro
|
||||
if _u.mutation.RemarkCleared() {
|
||||
_spec.ClearField(outboundorder.FieldRemark, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.BoxNo(); ok {
|
||||
_spec.SetField(outboundorder.FieldBoxNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.BoxNoCleared() {
|
||||
_spec.ClearField(outboundorder.FieldBoxNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.BoxSnList(); ok {
|
||||
_spec.SetField(outboundorder.FieldBoxSnList, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.BoxSnListCleared() {
|
||||
_spec.ClearField(outboundorder.FieldBoxSnList, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.ContractNo(); ok {
|
||||
_spec.SetField(outboundorder.FieldContractNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.ContractNoCleared() {
|
||||
_spec.ClearField(outboundorder.FieldContractNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.CreatedAt(); ok {
|
||||
_spec.SetField(outboundorder.FieldCreatedAt, field.TypeInt64, value)
|
||||
}
|
||||
@@ -672,6 +750,66 @@ func (_u *OutboundOrderUpdateOne) ClearRemark() *OutboundOrderUpdateOne {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetBoxNo sets the "box_no" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetBoxNo(v string) *OutboundOrderUpdateOne {
|
||||
_u.mutation.SetBoxNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableBoxNo sets the "box_no" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdateOne) SetNillableBoxNo(v *string) *OutboundOrderUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetBoxNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearBoxNo clears the value of the "box_no" field.
|
||||
func (_u *OutboundOrderUpdateOne) ClearBoxNo() *OutboundOrderUpdateOne {
|
||||
_u.mutation.ClearBoxNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetBoxSnList sets the "box_sn_list" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetBoxSnList(v string) *OutboundOrderUpdateOne {
|
||||
_u.mutation.SetBoxSnList(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableBoxSnList sets the "box_sn_list" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdateOne) SetNillableBoxSnList(v *string) *OutboundOrderUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetBoxSnList(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearBoxSnList clears the value of the "box_sn_list" field.
|
||||
func (_u *OutboundOrderUpdateOne) ClearBoxSnList() *OutboundOrderUpdateOne {
|
||||
_u.mutation.ClearBoxSnList()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetContractNo sets the "contract_no" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetContractNo(v string) *OutboundOrderUpdateOne {
|
||||
_u.mutation.SetContractNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableContractNo sets the "contract_no" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdateOne) SetNillableContractNo(v *string) *OutboundOrderUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetContractNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearContractNo clears the value of the "contract_no" field.
|
||||
func (_u *OutboundOrderUpdateOne) ClearContractNo() *OutboundOrderUpdateOne {
|
||||
_u.mutation.ClearContractNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetCreatedAt(v int64) *OutboundOrderUpdateOne {
|
||||
_u.mutation.ResetCreatedAt()
|
||||
@@ -833,6 +971,24 @@ func (_u *OutboundOrderUpdateOne) sqlSave(ctx context.Context) (_node *OutboundO
|
||||
if _u.mutation.RemarkCleared() {
|
||||
_spec.ClearField(outboundorder.FieldRemark, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.BoxNo(); ok {
|
||||
_spec.SetField(outboundorder.FieldBoxNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.BoxNoCleared() {
|
||||
_spec.ClearField(outboundorder.FieldBoxNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.BoxSnList(); ok {
|
||||
_spec.SetField(outboundorder.FieldBoxSnList, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.BoxSnListCleared() {
|
||||
_spec.ClearField(outboundorder.FieldBoxSnList, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.ContractNo(); ok {
|
||||
_spec.SetField(outboundorder.FieldContractNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.ContractNoCleared() {
|
||||
_spec.ClearField(outboundorder.FieldContractNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.CreatedAt(); ok {
|
||||
_spec.SetField(outboundorder.FieldCreatedAt, field.TypeInt64, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user