func (r *GormWorkItemRepository) FindFirstItem(id string) (*float64, error) {
	Item := WorkItemStorage{}
	Id, err := strconv.ParseUint(id, 10, 64)
	if err != nil || Id == 0 {
		return nil, errors.NewNotFoundError("work item", string(Id))
	}
	tx := r.db.First(&Item, Id)
	if tx.RecordNotFound() {
		return nil, errors.NewNotFoundError("work item", id)
	}
	if tx.Error != nil {
		return nil, errors.NewInternalError(tx.Error.Error())
	}
	return &Item.ExecutionOrder, nil
}
// FindFirstItem returns the order of the target workitem
FindFirstItem returns the order of the target workitem
// FindFirstItem returns the order of the target workitem
func (r *GormWorkItemRepository) FindFirstItem(id string) (*float64, error) {
	Item := WorkItemStorage{}
	Id, err := strconv.ParseUint(id, 10, 64)
	if err != nil || Id == 0 {
		return nil, errors.NewNotFoundError("work item", string(Id))
	}
	tx := r.db.First(&Item, Id)
	if tx.RecordNotFound() {
		return nil, errors.NewNotFoundError("work item", id)
	}
	if tx.Error != nil {
		return nil, errors.NewInternalError(tx.Error.Error())
	}
	return &Item.ExecutionOrder, nil
}
func ( r * GormWorkItemRepository ) FindFirstItem ( id string ) ( * float64 , error ) { Item := WorkItemStorage { } Id , err := strconv . ParseUint ( id , 10 , 64 ) if err != nil || Id == 0 { return nil , errors . NewNotFoundError ( " " , string ( Id ) ) } tx := r . db . First ( & Item , Id ) if tx . RecordNotFound ( ) { return nil , errors . NewNotFoundError ( " " , id ) } if tx . Error != nil { return nil , errors . NewInternalError ( tx . Error . Error ( ) ) } return & Item . ExecutionOrder , nil }
FindFirstItem returns the order of the target workitem
FindFirstItem returns the order of the target workitem